10-04-2008 9:13 AM
Hi,
I am running the BDC on t code FB05 and its running fine in foreground mode , but in background it throws the error Screen not Found.
After passig the screen also , then it says that for line item 2 G?l is mandatory. Now how to select the second line item.
I recored the BDc and for that '=PI' ok code is there that slect second line item. but in background its not doning that?
10-04-2008 12:53 PM
Hi, It its a line control the fill the items as below:
LOOP AT IT_WBS.
CLEAR : L_FNAM.
L_COUNT = L_COUNT + 1.
PERFORM BDC_DYNPRO USING 'SAPLCJSS' '0901'.
PERFORM BDC_FIELD USING 'BDC_OKCODE' '/00'.
PERFORM BDC_FIELD USING 'BDC_SUBSCR' 'SAPLCJSS 0902LISTE'.
L_CTR = L_CTR + 1.
CONDENSE L_CTR.
IF L_CTR < 10.
CONCATENATE '0' L_CTR INTO L_CTR.
ENDIF.
CONCATENATE 'PRPS-FAKKZ(' L_CTR ')' INTO L_FNAM.
Endloop.
For each line item increas the Counter to +1.
Also use p+ code once u fill all the lines in screen to scroll the data into next screen.
PERFORM BDC_FIELD USING 'BDC_OKCODE' '=P+'.
Thanks
Piyush
10-04-2008 11:11 AM
I haven't work with this transaction but i think you are working with table controls. You must fill line one and then advance one line with BDC. Repeat the operation until you haven't more data .
10-04-2008 12:49 PM
actually the lines items are coming and after that i have to fill the data in second line itm.First is already filled.
10-04-2008 12:53 PM
Hi, It its a line control the fill the items as below:
LOOP AT IT_WBS.
CLEAR : L_FNAM.
L_COUNT = L_COUNT + 1.
PERFORM BDC_DYNPRO USING 'SAPLCJSS' '0901'.
PERFORM BDC_FIELD USING 'BDC_OKCODE' '/00'.
PERFORM BDC_FIELD USING 'BDC_SUBSCR' 'SAPLCJSS 0902LISTE'.
L_CTR = L_CTR + 1.
CONDENSE L_CTR.
IF L_CTR < 10.
CONCATENATE '0' L_CTR INTO L_CTR.
ENDIF.
CONCATENATE 'PRPS-FAKKZ(' L_CTR ')' INTO L_FNAM.
Endloop.
For each line item increas the Counter to +1.
Also use p+ code once u fill all the lines in screen to scroll the data into next screen.
PERFORM BDC_FIELD USING 'BDC_OKCODE' '=P+'.
Thanks
Piyush