Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BDC MB01

Former Member
0 Likes
805

Hi.

I am facing a strange issue while recording BDC for MB01 (Post GR) . When I run SHDB and process MB01, it completes the recording but does not process the data actually in system.

On the other hand if I process the data through MB01 (without recording), it was able to post GR successfully.

Earlier I was using BAPI_GOODSMVT_CREATE but it was not working fine as I am calling it from Web AS via RFC(Note: 520813 Q. 13). So I had to move on BDC.

Please suggest.

Thanks.

5 REPLIES 5
Read only

madhu_vadlamani
Active Contributor
0 Likes
748

Hi Gaurav,

Create the recording in SHDB and save it in a report and the keep your coding.What is the issue you are facing with the bapi.

Regards,

Madhu.

Read only

0 Likes
748

Thank you Madhu.

BDC - I have done SHDB and used in report but when i execute my program the BDC is neither giving me process error nor posting the GR. But when I run MB01 and try to process the same data which I used during recording, it post the GR successfully.

BAPI - I am calling the BAPI in a Z_FunctionModule and I am calling this RFC enabled FM from Web AS(another system). In this case it is returning the material document but not able to COMMIT the changes (I have tried with BAPI COMMIT as well as manual COMMIT.

In SAP Note 520813 Q. 13, though they have mentioned this issue but I am wondering how to achieve this functionality as I have not way but to call via RFC.

Please suggest if I could run through either of two ..BDC or BAPI.

Read only

0 Likes
748

Hi Gaurav,

Are you able to see the screens while you run bdc.Can you explain document return but not able to changes.

Regards,

Madhu.

Edited by: madhurao123 on Feb 7, 2012 10:13 PM

Read only

0 Likes
748

Are you able to see the screens while you run bdc.Can you explain document return but not able to changes.

Yes..the BDC recording is normal(2 screens)..but it is not able to post GR.

BAPI - When I pass the values in FM manually (as I cannot debug RFC FM in 4.6), it posts the GR. But when I run it through usual process(i.e., Web AS calling RFC in R3) it is not posting GR. Also returning the BAPI RET 0. So I doubt if calling this BAPI via RFC has any issue.

Read only

0 Likes
748

Hi Gaurav,

Both are possible.I did not get where you struck.Check this thread.[MB01|;.Still if there is any issues post it.

Regards,

Madhu.