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

Batch Input Problems with CS01

Former Member
0 Likes
1,194

Hi all,

I have written a batch input program to create new material BOMs using CS01. The BOM gets its effective date from an ECM number which is entered into the RC29N-AENNR field in cs01. When the enter key is pressed to submit the data from the screen a warning message is posted by SAP to say "Date dd.mm.yyyy copied from change number".

This is all very well in manual input mode, where the message can be cleared by the user, but in batch input mode it stops the program dead in its tracks, and causes the whole batch input session to barf.

Can anyone tell me how I can clear this message in code so my program can proceed with adding the new BOM?

Thanks in advance,

Mark Wheaton

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
997

Hi,

Try using function module CS_BI_BOM_CREATE_BATCH_INPUT1 if this fm meets your requirements.

Sri

5 REPLIES 5
Read only

Former Member
0 Likes
997

hi,

in the recording after the error you press enter ( it also get recorded )

we need to pass addition enter key

cheers,

sasi

Read only

0 Likes
997

Hi Sasi,

I did think of this, and unfortunately, the recorder does not record the second press of the enter key. Or if it does, then it doesn't get played back when I run the transaction from the recording.

Got any other ideas?

Mark

Read only

0 Likes
997

hi mark

in that particular screen add one more line in the coding like

perform bdc_field using 'BDC_OKCODE'

'/00'. or '=OKAY'

and you run in foreground then see what it happens

cheers,

sasi

Read only

Former Member
0 Likes
998

Hi,

Try using function module CS_BI_BOM_CREATE_BATCH_INPUT1 if this fm meets your requirements.

Sri

Read only

0 Likes
997

Could you give me these source code for how to bi Material BOM Creation using function module CS_BI_BOM_CREATE_BATCH_INPUT1.... Thank you very much