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

Vertical Scroll bar Issue in BDC

Former Member
0 Likes
1,372

Dear All,

I have a written a BDC Call Transaction Program to upload values into a Custom 'Z' Transaction , there are some 25  records that needs to be uploaded into the Transaction and the 'Z'  transaction screen consists around 16 rows . Upto 16 rows my BDC is executing perfectly and after that I getting an error saying that the "FIELD DOES NOT EXISTS IN THE SCREEN" . Basically the Vertical scroll bar of My screen is working in Background.  I have done  a recording of the transaction for the scroll bar I am getting  as BDC_OKCODE  '=/00'. I have Used  '=P+'  for moving it to next page but in vain.

I have to use only BDC not Bapi.

Please suggest how to handle this situation..

Thanks-

Dear All,

I have a written a BDC Call Transaction Program to upload values into a Custom 'Z' Transaction , there are some 25  records that needs to be uploaded into the Transaction and the 'Z'  transaction screen consists around 16 rows . Upto 16 rows my BDC is executing perfectly and after that I getting an error saying that the "FIELD DOES NOT EXISTS IN THE SCREEN" . Basically the Vertical scroll bar of My screen is working in Background.  I have done  a recording of the transaction for the scroll bar I am getting  as BDC_OKCODE  '=/00'. I have Used  '=P+'  for moving it to next page but in vain.

I have to use only BDC not Bapi.

Please suggest how to handle this situation..

Thanks-

7 REPLIES 7
Read only

Former Member
0 Likes
977

rather than using okcode ,why dont you use concatenate and loop it

here is the sample code

DATA : FNAM(20) TYPE C,

       IDX      TYPE C.

  MOVE 1 TO IDX.

LOOP AT IT_BANK WHERE LIFNR = IT_XK01-LIFNR.

  CONCATENATE 'LFBK-BANKS(' IDX ')' INTO FNAM.

  perform bdc_field       using FNAM

                                IT_BANK-BANKS.

  CONCATENATE 'LFBK-BANKL(' IDX ')' INTO FNAM.

  perform bdc_field       using FNAM

                                IT_BANK-BANKL.

  CONCATENATE 'LFBK-BANKN(' IDX ')' INTO FNAM.

  perform bdc_field       using FNAM

                                IT_BANK-BANKN.

  CONCATENATE 'LFBK-KOINH(' IDX ')' INTO FNAM.

  perform bdc_field       using FNAM

                                IT_BANK-KOINH.

  IDX = IDX + 1.

ENDLOOP

Read only

0 Likes
977

Dear sap mail,

I am already using the loop with Count.

Thanks & Regards

Naresh

Read only

Former Member
0 Likes
977

Initially Try executing your BDC in Foreground Mode (A) Mode and check that whether your Z Transaction identifies P+ okcode and does vertical scrolling of the screen or not....

As per my knowledge,  even if you have written P+ okcode to do vertical scrolling , the transaction is unable to identify this. Most of the transaction have this Drawback

So this code wont work.

Its better to find another Alternative.

Just check  your Screen has a Add button on it.... Try using it.... Its okcode is usually '0005' or '0006'. 

I have already faced this case and usually doing coding on  Add  '+' button will solve this problem....

Read only

0 Likes
977

Dear Suruchi,

The Vertical Scroll bar is not functioning when I am  running  BDC in fore ground or in Background. So the scroll bar is not Triggering with /00 or /P+. The transaction is not Standard it is Customized. I have seen that there is no option to add new rows. But when the time of user entering manually into the screen it is allowing,but not in batch.

Thanks

Naresh

Read only

0 Likes
977

Yes I know that manually it will allow to add rows in foreground Mode but not in Batch session.

So the only way to do in background is to add the functionality which i have mentioned earlier in my last post i.e. Add Row functionality...

This will only solve ur problem as per my knowledge....

Read only

0 Likes
977

Dear Suruchi,

The transaction is a Customized Transaction It has no button to add new rows.

Regards

Naresh

Read only

former_member821147
Participant
0 Likes
977

Hi,

While recording just observe the function code for vertical scrrol and use same after filling 16 records and reset the IDX to 0 again.