‎2009 Jul 10 3:40 AM
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.
‎2009 Jul 10 3:47 AM
‎2009 Jul 10 3:56 AM
i've already do the recording in SHDB and the program also.
and when I run SM35 that message appear.
thank you
‎2009 Jul 10 4:41 AM
‎2009 Jul 10 3:47 AM
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
‎2009 Jul 10 3:58 AM
Thank you. the tcode is MB1A and yes the MSEG-ERFMG is in the screen SAPMM07M 0421.
thank you
‎2009 Jul 10 4:38 AM
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
‎2009 Jul 10 9:01 AM
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
‎2009 Jul 13 3:46 AM
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
‎2009 Jul 14 4:01 AM
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.
‎2009 Jul 14 4:27 AM
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
‎2009 Jul 10 4:35 AM
‎2009 Jul 13 7:42 AM
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