Professional Documents
Culture Documents
Automatic GI and GR Through BAPI For MFBF - SAP Community
Automatic GI and GR Through BAPI For MFBF - SAP Community
Automatic GI and GR Through BAPI For MFBF - SAP Community
Community
Amit Sharma
Jun 24, 2019 at 06:58 PM
Hi Experts,
I am working on interface project where i have to post production booking against planned order automatically
through BAPI or through some program
1.I have tried to use BAPI BAPI_REPMANCONF_CREATE_MTS but in return i am getting error Enter storage location,
I have already maintained storage location in import parameters of BFLUSHDATAGEN in this BAPI.
2.I have also tried to use BAPI BAPI_REPMANCONF1_CREATE_MTS , I have maintained all the required import
parameters in BFLUSHDATAGEN and in table GOODSMOVEMENTS but after execution of this BAPI , system is
generating only Confirmation number and not posting any material document.
Need your expert advice that do I need to post goods movement separately with BAPI BAPI_GOODSMVT_CREATE
or do I have to write any custom logic in RM_BFLUSH_GOODSMVT.
I have gone through many SCN threads but didn't find any solution.
Regards,
https://answers.sap.com/questions/12715818/automatic-gi-and-gr-through-bapi-for-mfbf.html 1/6
2/24/23, 5:16 PM Automatic GI and GR through BAPI for MFBF | SAP Community
Amit
Assigned Tags
MM (Materials Management)
Similar Questions
Any other T.code except MFBF for production booking in REM Process?
Debraj Bhaduri Jul 11, 2015
4 Answers
Best Answer
R Brahmankar
Jun 25, 2019 at 04:44 AM
Hello,
0
The BAPI table GOODSMOVEMENTS can only be used to post the backflush of the components. This
is similar to the 'post with correction' functionality available in MFBF.
Are the components material are batch managed? Then you need to send batches along with storage
location.
Best Regards,
https://answers.sap.com/questions/12715818/automatic-gi-and-gr-through-bapi-for-mfbf.html 2/6
2/24/23, 5:16 PM Automatic GI and GR through BAPI for MFBF | SAP Community
R.Brahmankar
Caetano Almeida
Jun 24, 2019 at 10:18 PM
Hello
0
Are you sure that the storage location has been also sent as a parameter for the components to be
issued in GOODSMOVEMENTS?
You can try to set the storage location directly in the BOM item, so that it is automatically determined
by the BAPI when posting the goods issue.
Regards,
Caetano
Amit Sharma
Jun 25, 2019 at 06:56 AM
Hi,
0
Thank you for your prompt response.
1. I have maintained storage location in planned order but i am not able to post the material document
with BAPI_REPMANCONF_CREATE_MTS and getting return error as Function module
MB_CREATE_GOODS_MOVEMENT cannot be executedbapi-1.png
2. With same data i am able to post data with MFBF and material is not batch managed.
Regards,
Amit
https://answers.sap.com/questions/12715818/automatic-gi-and-gr-through-bapi-for-mfbf.html 3/6
2/24/23, 5:16 PM Automatic GI and GR through BAPI for MFBF | SAP Community
Attachments
Amit Sharma
Jun 25, 2019 at 10:36 AM
Hi Experts ,
0
Issue has been resolved, BAPI_TRANSACTION_COMMIT has been used to commit the posting and
material document has been posted successfully.
Import Parameters:
BFLUSHFLAGS : 01
BFLUSHDATAGEN: PDC- Number, Material, Prod Plant, Planning plant, Sloc, version,Posting date, Doc
date,Quanity, UOM,Planned order number
Export parameters:
After passing all these parameters confirmation will be posted and material document will be
generated in background.
Regards,
Amit
https://answers.sap.com/questions/12715818/automatic-gi-and-gr-through-bapi-for-mfbf.html 4/6
2/24/23, 5:16 PM Automatic GI and GR through BAPI for MFBF | SAP Community
Before answering
You should only submit an answer when you are proposing a solution to the poster's problem. If you want
the poster to clarify the question or provide more information, please leave a comment instead, requesting
additional details. When answering, please include specifics, such as step-by-step instructions, context for
the solution, and links to useful resources. Also, please make sure that your answer complies with our Rules
of Engagement.
Rules of Engagement
Please provide a distinct answer and use the comment option for clarifying purposes.
10 characters required.
Find us on
https://answers.sap.com/questions/12715818/automatic-gi-and-gr-through-bapi-for-mfbf.html 5/6
2/24/23, 5:16 PM Automatic GI and GR through BAPI for MFBF | SAP Community
Newsletter Support
https://answers.sap.com/questions/12715818/automatic-gi-and-gr-through-bapi-for-mfbf.html 6/6