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

Coding block in BDC

stefan_kolev4
Participant
0 Likes
997

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 ?

2 REPLIES 2
Read only

Former Member
0 Likes
579

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

Read only

0 Likes
579

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 !