08-24-2010 8:09 AM
Dear All,
I'm encountering a problem during execution of my BDC program in dismode 'N'. I have this BDC program with call transaction MB1B, while using dismode 'A', it works fine and create a matdoc, but if i'll try to use dismode 'N' it fails to create matdoc. I also tried using dismode 'E', there is no error but it will stop on a "coding block" within the process. I also tried to test my SHDB record by simulate background mode and it's working fine. Please help.
Thanks.
08-24-2010 8:28 AM
Why don't you try creating the Mat. Doc. using BAPIs (BAPI_GOODSMVT_CREATE) ? It's easier to maintain & to code
08-24-2010 2:00 PM
There could be some reasons like storing the error log in session for reprocessing
08-24-2010 8:45 AM
1. I guess going with a BAPI, if available, will be the best solution
2. What I assume from your explanation is that your SHDB is not exclusive or you have not correctly converted your recording into program.
3. "Coding Block" screen, is it taken care in the recording?
4. Are you executing the BDCDATA using SM35 or Call transaction ? if its SM35 did you analyse the error log? Is it also failing at the "coding block"?
08-24-2010 2:06 PM
Hello,
You can go for BAPI . If there is option for bapi you should go with that instead of BDC .For your case bapi is BAPI_GOODSMVT_CREATE...
Thanks
Subhankar
08-24-2010 6:53 PM
Even though I would also suggest to use BAPI_GOODSMVT_CREATE, to fix your problem as is, while recording check the "Simulate Background Mode".
I have faced the same issue before, the new recording with "Simulate Background Mode" works well.
Hope it helps.
Sujay