‎2010 Sep 04 4:48 PM
I have this BDC program with call transaction MB1B, while using dismode 'E', it works fine and create a matdoc, but for every material on the screen appears empty screen "coding block" and I have to push OK button in order to close this "coding block".
How can I suppress "coding block" screen ?
‎2010 Sep 04 6:41 PM
1. You can use simulate background mode while recording. To use the same in the program
data w_ctu_params type ctu_params.
w_ctu_params-dismode = 'H'.
w_ctu_params-defsize = 'X'.
w_ctu_params-nobiend = 'X'.
call transaction 'MB1B' using bdcdata options from w_ctu_params.
Refer to the wiki link
https://wiki.sdn.sap.com/wiki/display/ABAP/BatchInput-+BDC
2. You can use BAPI_GOODSMVT_CREATE. You can refer the documentation for more details or search in the forum.
Hope it helps.
Sujay
Edited by: Sujay Venkateswaran Krishnakumar on Sep 5, 2010 4:47 PM
‎2010 Sep 05 10:08 PM
Hi,
I tried your solution, but "coding block" continue to appears with every record.
The case is like that: I'd like to import external file / called "order" / for material transfer from one storage location to another.
I have 3 fields / st.loc, material, qty / and many records in the file.
When bdc calls MB1B "coding block" appears on the screen.
It is not so convenient to push enter on every single record. Imagine if you have 500 records.
Please advice !