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: 

Issue - Ok code of Scrollbar in KE51

Former Member
0 Kudos
187

Hi All ,

I have done a BDC recording using KE51 tcode . In which there is a tab of " Company Code " . I want to keep the Company code

checked , to which thr profit center belongs to and rest other company codes i want to uncheck .

This is working fine for me .. This company code screen is a Table control screen and which shows 8 company codes at a time in the screen . So when i want to SCROLL DOWN for more company codes , that recording captures the OK Code - '/00' for the Scrolling down .

But when i process the SHDB recording , at this Scroll down the Ok Code does not work and its not scrolling down to show more socmpany codes ( 9 Th company code ) .

I hope my query is clear .

Any suggestions will be highly appreciated .

Regards

Prabhudutta

1 ACCEPTED SOLUTION

former_member320332
Contributor
0 Kudos
102

Does your table control have the insert button to add one row at a time

if it has then you can modify the recording woth recoring first record of

table control then press this button to inser a new line then fill this

line and for next record again press this button and so on.Also check the

default size while recoring transaction.

Generally we can use 'P+'ok code to scroll down in table control if they

are defineds as scroll keys in the GUI status and handled in the program.

Regards,

Pawan

4 REPLIES 4

former_member320332
Contributor
0 Kudos
103

Does your table control have the insert button to add one row at a time

if it has then you can modify the recording woth recoring first record of

table control then press this button to inser a new line then fill this

line and for next record again press this button and so on.Also check the

default size while recoring transaction.

Generally we can use 'P+'ok code to scroll down in table control if they

are defineds as scroll keys in the GUI status and handled in the program.

Regards,

Pawan

0 Kudos
102

Hi,

Thanks for your reply .

I have mentioned in the post that , The SCROLL is being captured in the recording of BDC as OK CODE - '/00' .

But when i am processing that recording its not identifying the OK CODE , and does not scroll down .

If the recording captures the OK - CODE for Scroll down as '/00' then how 'P+' can be used .

Hope this gives more clarity on my query .

Thanks

Prabhudutta

0 Kudos
102

Check the below FAQ on BDC

Question How to scroll a table control?

http://wiki.sdn.sap.com/wiki/display/ABAP/BatchInputFAQ#BatchInputFAQ-Howtoscrollatablecontrol%3F

So to overcome it we use the ok_code '=P+' which means page down. While recording check the default size option.And in recording fix the no of rows displayed in table control and then scroll i.e. do page down for table control.

Check the below wiki document to know coding of BDC with this ok code.

http://wiki.sdn.sap.com/wiki/display/ABAP/bdcontable+control and

always search in SDN you will get many examples for this issue.

I think you can check the below BAPI for KE51 BAPI_PROFITCENTER_CREATE profit center creatino.

check the business object BUS1116 in SWO1 for the BAPI' for profit center.

0 Kudos
102

Thanks . This has been solved by using - BAPI_PROFITCENTER_CREATE .

Regards

Prabhu