Application Development 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: 

BDC problem in background?

Former Member
0 Kudos

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?

1 ACCEPTED SOLUTION

piyush_mathur
Active Participant
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

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 .

0 Kudos

actually the lines items are coming and after that i have to fill the data in second line itm.First is already filled.

piyush_mathur
Active Participant
0 Kudos

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