2012 Sep 03 1:17 PM
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-
2012 Sep 03 1:26 PM
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
2012 Sep 03 2:33 PM
Dear sap mail,
I am already using the loop with Count.
Thanks & Regards
Naresh
2012 Sep 03 1:37 PM
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....
2012 Sep 03 2:38 PM
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
2012 Sep 04 4:57 AM
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....
2012 Sep 04 11:13 AM
Dear Suruchi,
The transaction is a Customized Transaction It has no button to add new rows.
Regards
Naresh
2012 Sep 04 10:19 AM
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.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |