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: How to enter data in Table control (With wizard) using scrolling?

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

andreas_mann3
Active Contributor
0 Kudos

Hi,

or look here:

regards Andreas

14 REPLIES 14

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

Just try P++.I am not sure.

former_member214131
Active Contributor
0 Kudos

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

andreas_mann3
Active Contributor
0 Kudos

Hi,

or look here:

regards Andreas

0 Kudos

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

0 Kudos

hi ,

Run BDC with OK_CODE = '=p' or '=p+' .

regards ,

Sumeet Kaul

0 Kudos

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.

0 Kudos

Hello,

Please let me know the Transaction / and Screen details.

Regds, Murugesh AS

0 Kudos

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

0 Kudos

hi ,

just to know ...Are U working on IDES .

regards ,

Sumeet Kaul

0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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..

Former Member
0 Kudos

hv a look on dis following link :-

Former Member
0 Kudos

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