07-05-2005 9:05 AM
Using BDC, I am trying to enter the data in the table control (with wizard).
I want to know what is the specific command to scroll down in table control (With Wizard).
While recording I am getting these steps:
SAPLCKBASCR1 0202 X
BDC_CURSOR CKI94B-MATNR
BDC_OKCODE /00
When I use above command and run BDC, it does not scroll.
Kindly let me know where am I going wrong.
Thanks in advance for your kind help.
Ashish
07-05-2005 11:10 AM
07-05-2005 9:11 AM
07-05-2005 9:16 AM
Hello,
While you record a BDC for a Table Control, there are many points to be kept in mind.
1. Mode: If the BDC is recorded for a Change mode, then it is better to position the appropriate line item by a menu option ( like Edit->Find option in CA03 ). In create mode different transactions may behave differently. You can use P++ to scroll to the last page or P+ to sctoll a page down.
2. I would prefer an object in LSMW (DI/BI) for the Create mode.
3. Screen Size: Make CTU_PARAMS-DEFSIZ = 'X' in your BDC.
Hope these points help you. <b>Please let me know the Tx. and other details where you are stuck.</b>
Best Regards, Murugesh AS
Message was edited by: Murugesh Arcot
07-05-2005 11:10 AM
07-05-2005 12:13 PM
I tried to run BDC with OK_CODE = ' ' for page down, but it is not working.
Also the Page down, Page up etc functionality are disabled in the given transaction.
Kindly help me out.
Thanks a lot.
Ashish
07-05-2005 12:53 PM
07-05-2005 1:36 PM
The functionality of Page up, Page down (p, p+)etc. are disabled.
Thus giving OK_CODE = '=p' ot '=p+' will not work.
Thanks for your help Sumeet but we need to find some other solution for this.
07-05-2005 1:40 PM
Hello,
Please let me know the Transaction / and Screen details.
Regds, Murugesh AS
07-05-2005 1:50 PM
The transaction is CK94
and the BDC recording is :
-
T CK94
SAPLCKBASCR1 0200 X
BDC_CURSOR CKI94A-BDATJ
BDC_OKCODE =ENTR
CKI94A-MATNR 10000789
CKI94A-WERKS VA79
CKI94A-BDATJ 2005
CKI94A-MGTYP ZDU01
SAPLCKBASCR1 0202 X
BDC_CURSOR CKI94B-MISCH_VERH(02)
BDC_OKCODE /00
CKI94B-MIXCOST_PC(01)
CKI94B-MIXCOST_PC(02) X
CKI94B-MISCH_VERH(01)
CKI94B-MISCH_VERH(02) 40
SAPLCKBASCR1 0202 X
BDC_CURSOR CKI94B-MATNR
BDC_OKCODE /00
SAPLCKBASCR1 0202 X
BDC_CURSOR CKI94B-MATNR
BDC_OKCODE /00
SAPLCKBASCR1 0202 X
BDC_CURSOR CKI94B-MISCH_VERH(07)
BDC_OKCODE /00
CKI94B-MIXCOST_PC(07)
CKI94B-MISCH_VERH(07) 60
SAPLCKBASCR1 0202 X
BDC_CURSOR CKI94B-MATNR
BDC_OKCODE /00
SAPLCKBASCR1 0202 X
BDC_CURSOR CKI94B-MATNR
BDC_OKCODE /00
SAPLCKBASCR1 0202 X
BDC_CURSOR CKI94B-MATNR
BDC_OKCODE =STOR
-
BDC_OKCODE '/00' is recorded when I scroll down in the table control.
Thanks for your kind concern.
Ashish
07-05-2005 2:06 PM
hi ,
just to know ...Are U working on IDES .
regards ,
Sumeet Kaul
07-05-2005 2:54 PM
Hello,
I checked the Tx. now. It is not a good design for BDC!
But I see SAP is making updates by FMs: CKML_MGV_CROSS_RATIO_UPDATE and CKML_MGV_PLANT_DATA_UPDATE.
Try in debug mode. Also you can see many FMs in FUGR: CKMLMVUTIL.
Hope this gives you some hints.
Best Regards, Murugesh AS
07-05-2005 2:01 PM
Hi,
prior going for the recording for writing an bdc we should identify what are all possible options by the manual entry. Only those options can be used in the recording. if you are not able to scroll even in the standard transaction using manual entry. Then we have check the configuration and setting to related to that transaction in the SPRO or if we identify any bapi also be helpful.
07-05-2005 3:10 PM
Doing it using page down is a bit tricky. and dangerous too. For it will dpeend on the users display configuration. you dont knwo how many lines the user can see at a time. It will completely depend on the user's OS settings. I dont think this is safe.
Usually, in the trasnaction there will be some way of doing the same...Like through a menu path or something to access the items.
Check on this..
01-07-2009 8:17 AM
01-07-2009 8:30 AM
Hi Ashish,
Scrolling using mouse will not work in BDC, you have to use 'P+'(Page Down).
While filling table controls in case your number of records may vary you have to use your logic there.
for example in first display you can fill only 5 entries in TC and for 6th you have scroll down, then
"Elements of header you get from recording
loop at <int tab> into <work area>. "internal table contains values for TC
"Elements which you get from recording for filling the particular TC
if sy-tabix gt 5.
"ok code for page down
endif.
endloop.
Hope this helps you.
Regards,
Manoj Kumar P