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

Problem with Batch input

Former Member
0 Likes
1,597

Hi expert.

i create zreport to generate batch input for mass goods receive like scrap or other material from text file data, use transaction MB1C and movement type is 511.

after execute and check in sm35, i found batch not complete. log display error "Formatting error in the field MSEG-SGTXT; see next message"

when reprocess i found batch stop at this page.

Link: [http://i41.photobucket.com/albums/e271/260325/error1.jpg]

system issue error message at bottom of page "Make a entry in all required field". and assign data in bdc tab not input in assign field.

i try to simulate this process, use sm35 with transaction record . and copy to program but no luck. batch input still stop at this screen.

here is my dynpro code.


    'X' 'SAPMM07M' '0421',  
    ' ' 'MSEG-MATNR'  upd_tab-matnr,
    ' ' 'MSEG-ERFMG'  upd_tab-xmenge,
    ' ' 'MSEG-ERFME' upd_tab-meins,
    ' ' 'MSEG-LGORT'  upd_tab-loc_pr,
    ' ' 'MSEG-CHARG'  upd_tab-charg,
    ' ' 'BDC_OKCODE' '/00',

    'X' 'SAPLKACB' '0002',
    ' ' 'BDC_OKCODE' '=ENTE',
    ' ' 'BDC_SUBSCR' 'SAPLKACB'   ,


    'X' 'SAPMM07M' '0410',   **** Batch input stop at this screen
    ' ' 'MSEG-WEMPF' 'No',
    ' ' 'MSEG-SGTXT' 'No',
    ' ' 'DKACB-FMORE' 'X',
    ' ' 'BDC_CURSOR' 'MSEG-SGTXT',
    ' ' 'BDC_OKCODE' '/00',



 

please suggest me , how to solve this

regards,

Kittisak.B

1 ACCEPTED SOLUTION
Read only

former_member585060
Active Contributor
0 Likes
922

Hi,

Do the recording as below way, and see

1) After filling the initial screen in MB1C transaction, click on New item(=NPE) Screen 400.

2) It takes you to Screen 410, here give all the values, along with the SGTXT, the click on New item(=NPE), it will return to same screen to give another line item values.

3) After entering click on Save.

See the below sample recording

May be additional screens may be in your system just check it.

'SAPMM07M'	'0400'.
'BDC_CURSOR'	'MKPF-BUDAT'.
'BDC_OKCODE'	'=NPE'.                       "------>New item Function code
'MKPF-BLDAT'	'04/04/2006'.
'MKPF-BUDAT'	'05/05/2006'.
'RM07M-BWARTWA'	'511'.
'RM07M-WERKS'	'1000'.
'RM07M-LGORT'	'0001'.
'XFULL'	'X'.
'RM07M-WVERS2'	'X'.

'SAPMM07M'	'0410'.
'BDC_CURSOR'	'MSEG-CHARG'.
'BDC_OKCODE'	'=NPE'.                 "------>New item Function code
'MSEG-MATNR'	'100-100'.
'MSEG-ERFMG'	'5'.
'MSEG-WERKS'	'1000'.
'MSEG-LGORT'	'0001'.
'MSEG-LIFNR'	'1000'.
'MSEG-SGTXT'	'No'.
'DKACB-FMORE'	'X'.

'SAPLKACB'	'0002'.
'BDC_OKCODE'	'=ENTE'.

'SAPMM07M'	'0410'.
'BDC_CURSOR'	'MSEG-SGTXT'.
'BDC_OKCODE'	'=BU'.
'MSEG-MATNR'	'100-100'.
'MSEG-ERFMG'	'5'.
'MSEG-WERKS'	'1000'.
'MSEG-LGORT'	'0001'.
'MSEG-LIFNR'	'1000'.
'MSEG-SGTXT'	'No'.
'DKACB-FMORE'	'X'.

'SAPLKACB'	'0002'.
'BDC_OKCODE''	=ENTE'.	

Regards

Bala Krishna

4 REPLIES 4
Read only

former_member585060
Active Contributor
0 Likes
922

Hi,

Are you passing any value to that field? just make sure that the field length of the SGTXT of the internal table is same as the MSEG-SGTXT field.

Regards

Bala Krishna

Read only

0 Likes
922

Mseg-sgtxt in this screen is required field. so i put text 'No' as test to this field >>> ' ' 'MSEG-SGTXT' 'No',

but system issue error of this field before input data in any field.

Read only

former_member585060
Active Contributor
0 Likes
923

Hi,

Do the recording as below way, and see

1) After filling the initial screen in MB1C transaction, click on New item(=NPE) Screen 400.

2) It takes you to Screen 410, here give all the values, along with the SGTXT, the click on New item(=NPE), it will return to same screen to give another line item values.

3) After entering click on Save.

See the below sample recording

May be additional screens may be in your system just check it.

'SAPMM07M'	'0400'.
'BDC_CURSOR'	'MKPF-BUDAT'.
'BDC_OKCODE'	'=NPE'.                       "------>New item Function code
'MKPF-BLDAT'	'04/04/2006'.
'MKPF-BUDAT'	'05/05/2006'.
'RM07M-BWARTWA'	'511'.
'RM07M-WERKS'	'1000'.
'RM07M-LGORT'	'0001'.
'XFULL'	'X'.
'RM07M-WVERS2'	'X'.

'SAPMM07M'	'0410'.
'BDC_CURSOR'	'MSEG-CHARG'.
'BDC_OKCODE'	'=NPE'.                 "------>New item Function code
'MSEG-MATNR'	'100-100'.
'MSEG-ERFMG'	'5'.
'MSEG-WERKS'	'1000'.
'MSEG-LGORT'	'0001'.
'MSEG-LIFNR'	'1000'.
'MSEG-SGTXT'	'No'.
'DKACB-FMORE'	'X'.

'SAPLKACB'	'0002'.
'BDC_OKCODE'	'=ENTE'.

'SAPMM07M'	'0410'.
'BDC_CURSOR'	'MSEG-SGTXT'.
'BDC_OKCODE'	'=BU'.
'MSEG-MATNR'	'100-100'.
'MSEG-ERFMG'	'5'.
'MSEG-WERKS'	'1000'.
'MSEG-LGORT'	'0001'.
'MSEG-LIFNR'	'1000'.
'MSEG-SGTXT'	'No'.
'DKACB-FMORE'	'X'.

'SAPLKACB'	'0002'.
'BDC_OKCODE''	=ENTE'.	

Regards

Bala Krishna

Read only

0 Likes
922

thank you bala , problem solve.