I want to use batch input for the transaction MB1B.
I already used the batch input recorder to get the right fieldnames and values.
My problem is that the ok_codes seems not to be used.
I just want to skip the first screen and enter in the second one only materials and batch no via batch input (I already have these data in an internal table) - so on the second screen (0421) the user should enter the quantity for each single line at the end.
My coding is following:
*perform oben using 'SAPLMM07M' '0400' 'X'.
*perform unten using 'BDC_CURSOR' 'RM07M-LGORT'.
*perform unten using 'BDC_OKCODE' '/00'.
*perform unten using 'MKPF-BLDAT' '27.12.2007'.
*perform unten using 'MKPF-BUDAT' '27.12.2007'.
*perform unten using 'RM07M-BWARTWA' '311'.
*perform unten using 'RM07M-WERKS' '1000'.
*perform unten using 'RM07M-LGORT' '1000'.
*perform unten using 'XFULL' 'X'.
*perform unten using 'RM07M-WVERS3' 'X'.
*perform unten using 'RM07M-XNAPR' 'X'.
*loop at itab.
*n = n + 1.
*perform oben using 'SAPMM07M' '0421' 'X'.
*perform unten using 'MSEG-MATNR(n)' itab-matnr.
*perform unten using 'mseg-charg(n)' itab-charg.
Looks like it is not working properly, it is not continuing after the first screen (0400).
Can I use the batch input with this loop???
Thanks for your help,