Hey folks,
I have written bdc for ME31k and when it reaches 26 record it says Field ekpo-lgort(27) doesn't exist on the screen SAPMM06E 0220. It has to do something with the scolling. I am pasting the code writen by me . i have tried but couldn't figure it out. Could some body tell me where I am doing the mistake in the code.
Thanks in advance.
w = 1.
LOOP AT it_item INTO wa_item WHERE ebeln = wa_header-ebeln.
CONCATENATE 'EKPO-EMATN( ' w ' )' INTO ws_field1.
CONCATENATE 'EKPO-NETPR( ' w ' )' INTO ws_field2.
CONCATENATE 'EKPO-WERKS( ' w ' )' INTO ws_field3.
CONCATENATE 'EKPO-MATKL( ' w ' )' INTO ws_field4.
CONCATENATE 'EKPO-LGORT( ' w ' )' INTO ws_field5.
CONCATENATE 'EKPO-UNTTO( ' w ' )' INTO ws_field6.
CONCATENATE 'EKPO-UEBTO( 'w ' )' INTO ws_field7.
PERFORM dynpro USING:
'X' 'SAPMM06E' '0220',
' ' 'BDC_OKCODE' '/00',
' ' ws_field1 wa_item-matnr,
' ' 'EKPO-KTMNG(01)' wa_item-ktmng,
' ' ws_field2 wa_item-netpr,
' ' ws_field3 wa_item-werks,
' ' ws_field4 wa_item-matkl,
' ' ws_field5 wa_item-lgort.
PERFORM dynpro USING:
' ' 'BDC_OKCODE' '=DETA'.
*PERFORM dynpro USING:
'X' 'SAPMM06E' '0211',
' ' WS_FIELD6 wa_item-under,
' ' WS_FIELD7 wa_item-over.
w = w + 1.
indx = indx + 1.
ENDLOOP.
PERFORM dynpro USING:
'X' 'SAPMM06E' '0220',
' ' 'BDC_OKCODE' '=BU'.
PERFORM call_transaction USING w_tcode.
Regards
Rock