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 UPloading Error

Former Member
0 Likes
1,763

Hi Guru's

i create batch input but during uploading

the message will prompt that

"Field MSEG-ERFMG does not exist in the screen SAPMM07M 0421"

Thanks in advance.

12 REPLIES 12
Read only

Former Member
0 Likes
1,385

hi,

Please check al the fields that you are giving into the sceen ..do a recording in SHDB and then do BDC

check this link

thanks

Read only

0 Likes
1,385

i've already do the recording in SHDB and the program also.

and when I run SM35 that message appear.

thank you

Read only

0 Likes
1,385

hi ,

you can go for BAPi or

check this link

BAPI_MATERIAL_SAVEDATA

BAPI_GOODSMVT_CREATE

Read only

Former Member
0 Likes
1,385

Hi dranel,

Welcome to SCN, need more info abt What is T-code you done recording, what are the fields You need to Upload and

need to check whether MSEG-ERFMG is existing in Screen 0421 or not.

Regards,

Suneel G

Read only

0 Likes
1,385

Thank you. the tcode is MB1A and yes the MSEG-ERFMG is in the screen SAPMM07M 0421.

thank you

Read only

0 Likes
1,385

Hi dranel,

Here is the following snippet of recording what I have done, as we have Material line items Screen 0421 the first line should be like this 'MSEG-ERFMG(01)', 01 means first line and I guess You would have removed (01) this.... Just try to paste snippet of your recording which will help to solve you issu.

perform bdc_dynpro      using 'SAPMM07M' '0421'.
perform bdc_field       using 'BDC_CURSOR'
                              'MSEG-ERFMG(01)'.
perform bdc_field       using 'BDC_OKCODE'
                              '/00'.
perform bdc_field       using 'MSEGK-KONTO'
                              ''.
perform bdc_field       using 'MSEG-MATNR(01)'
                              'MAT02'.
perform bdc_field       using 'MSEG-ERFMG(01)' " Have a look here
                              '2'.

Regards,

Suneel G

Read only

0 Likes
1,385

hi Suneel G

i also try to do what you've been told but the error still occur.

IF WKG-FLAG1 = 'X'. " First Record

PERFORM DYNPRO_0400. " Initial Screen

CLEAR:WKG-FLAG1.

ELSE.

PERFORM DYNPRO_0421_1 USING WKL-ERFME. " Item Screen(Next)

ENDIF.

IF WKG-FLAG2 = 'X'.

WKL-ERFMG = INPUT_TAB-ERFMG.

ENDIF.

PERFORM DYNPRO_0421_1 USING WKL-ERFME. " Item Screen

PERFORM DYNPRO_0002 USING INPUT_TAB-PRCTR.

  • Append Error data table (Work)

MOVE-CORRESPONDING INPUT_TAB TO ERROR_TAB_W.

APPEND ERROR_TAB_W.

  • When Last Doc. no.-->Batch Input(T-code:MB1A)

IF WKG-FLAG2 = 'X'. " Last Record

PERFORM DYNPRO_0002 USING INPUT_TAB-PRCTR.

IF NOT INPUT_TAB-ERFMG IS INITIAL.

PERFORM DYNPRO_0421_2 USING INPUT_TAB-ERFMG. " More Data

ENDIF.

PERFORM DYNPRO_SAVE_RTN.

ELSE.

WKL-PRCTR = INPUT_TAB-PRCTR.

WKL-ERFMG = INPUT_TAB-ERFMG.

ENDIF.

ENDLOOP.

do you think there is a problem here???

thanks in advance

Read only

0 Likes
1,385

Hi Dranel,

Good Morning,

I do't know why are you using this flags WKG-FLAG1, FLAG2. and you did not post wht is in this PERFORM DYNPRO_0421_1 USING WKL-ERFME and I think we need to add some other logic.

And If possible try to post your Flat file struture and Forms too ...

Found any solution ????

Regards,

Suneel G

Read only

0 Likes
1,385

Good Morning.

Yes my program is already running yet it cant upload a large amount of data.

You're answer is a big help.

Thank you.

Read only

0 Likes
1,385

Hi Dranel,

If you want solve your problem, definately need your code ... Untill unless u post it no one can help you out.

And I have given you reply yesterday and there no spontanious reply from you ???

Rrds,

Suneel G

Read only

Former Member
0 Likes
1,385

hi Dranel,

Take a look on this Thread , this Will help you in gtting rid of your problem

Regards

Saurabh Goel

Read only

Former Member
0 Likes
1,385

Hi,

Try to process the session in foreground.

Possibly it may happen that the bdc is stopping at some error.

Hence it does not find the screen field.

Process your session in foreground to see if you get some error message.

Regards,

Ankur Parab