Automatic GI and GR Through BAPI For MFBF - SAP Community

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

2/24/23, 5:16 PM Automatic GI and GR through BAPI for MFBF | SAP Community

Community

Ask a Question Write a Blog Post Login

Search Questions and Answers

Amit Sharma
Jun 24, 2019 at 06:58 PM

Automatic GI and GR through BAPI for MFBF


0 763 Views

Follow RSS Feed

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

I am struggling with below issues:

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.

Is there anything i am missing in the execution of BAPI's ?

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.

Looking forward for some solution on this...!!

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

Add a Comment | Alert Moderator

Assigned Tags

MAN Production Planning (PP)

MM (Materials Management)

Similar Questions 
Any other T.code except MFBF for production booking in REM Process?
Debraj Bhaduri Jul 11, 2015

Can we replace MFBF by MIGO?


Former Member Oct 28, 2010

4 Answers

Sort by: Votes | Newest | Oldest

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 you able to post MFBF with same set of data?

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

Add a Comment | Alert Moderator | Share

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

Add a Comment | Alert Moderator | Share

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.

3. With BAPI BAPI_REPMANCONF1_CREATE_MTS, system is only posting confirmation number and


no material document is getting createdbapi-2.png, bapi-21.png and again facing the same error bapi-
22.png

Is there any missing parameters which i am missing ?

I am planning to go with BDC method. Please suggest

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

bapi-1.png (39.2 kB)

bapi-2.png (34.2 kB)

bapi-21.png (44.1 kB)

bapi-22.png (46.0 kB)

Add a Comment | Alert Moderator | Share

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.

Following parameters need to passed in BAPI for execution

Import Parameters:

BFLUSHFLAGS : 01

BFLUSHDATAGEN: PDC- Number, Material, Prod Plant, Planning plant, Sloc, version,Posting date, Doc
date,Quanity, UOM,Planned order number

BFLUSHDATAMTS: REPP- 0001

Export parameters:

GOODSMOVEMENTS: Enter the components to be backflushed

After passing all these parameters confirmation will be posted and material document will be
generated in background.

Thank you for help..!!

Regards,

Amit

Add a Comment | Alert Moderator | Share

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 

Know someone who can answer? Share a link to this question.

You must be Logged in to submit an answer.

Please provide a distinct answer and use the comment option for clarifying purposes.

10 characters required.

Submit your Answer

Find us on

Privacy Terms of Use

Legal Disclosure Copyright

Trademark Cookie Preferences

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

You might also like