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

ok-code to scroll down in a table control on batch input

Former Member
0 Likes
6,693

Hello,

I'm trying to create a batch input session for transaction VA02 (Change sales order) :

I need to go scroll down in the table control of the screen (item -> Conditions) 3 times to delete the a line; In the batch input (SHDB), i go scroll down by clicking on the scroll bar of the table control, mark the line of the page and delete it.

The recording show me the ok-code /00 to scroll down (with BDC_CURSOR in the second line), but in the program it don't work, the ok do nothing the 3 times and mark the incorrect line.

Can anyone tell an idea of what is the correct ok-code to scroll down?

Thanks in advance

Alvaro

PD: My SAP system is an ECC 6.0

11 REPLIES 11
Read only

Former Member
0 Likes
2,841

why don't use BAPI For sales order change ?

BDC OK_CODE for scroll is ' =P+' ' Scroll down '

Scroll UP is '=P-'

Read only

Former Member
0 Likes
2,841

Some transactions had the "POSITION" field....Like SM30....You can use that to simulate a scroll....For example...You got 100 records....You pass the first 10, use position 10, so you got 9 more fields to pass data....then you go on till you finish passing data -;)

Greetings,

Blag.

Read only

0 Likes
2,841

Blag is correct. For VA02, you can use "Position cursor" F13.

Rob

Read only

Former Member
0 Likes
2,841

hi,

the ok-code for getting vertical scrolling for a table control in bdc is <b>=p+</b>

regards,

Ashokreddy

Read only

Former Member
0 Likes
2,841

Hi Alvaro

One time i had to do similar work for Creation of General Task List in PM module and this is how i did it

'X' 'SAPLCMDI' '3500',

' ' 'BDC_CURSOR' 'RIHSTPX-DISP(01)',

' ' 'BDC_OKCODE' '=P+',

' ' 'RIHSTPX-IDNRK(01)' itab-idnrk,

' ' 'RIHSTPX-MENGE(01)' itab-menge,

' ' 'RIHSTPX-MEINS(01)' itab-meins,

' ' 'RIHSTPX-DISP(01)' itab-disp.

I had to select line 1 hence you can see the position number ( 01 ) in the field name. As you can see based on this positioning you can select the appropriate line and make modifications as you like and also use okcode of '=P+' to scroll done. Hope this helps. Reward if appropriate.

Best Regards

Sid Arora

Read only

Former Member
0 Likes
2,841

Hi to all, thanks to all for the replyes.

Two things:

Can someone tell me how the "POSITON" field works? I don´t know how to use it. Thanks.

When I execute the program with 'P+' ok-code, at the Item -> Conditions screen it show me the next error:

"Flow control: Entry SAPMV45B, P , K0, KKO1, * , * is missing in T185+"

Regars, Alvaro.

Read only

0 Likes
2,841

Positioning is quite easy. You can capture this quite easily by doing a recoding where you press F13 on the overview screen (4001 I think).

Rob

Read only

0 Likes
2,841

Hi,

Thanks Rob, but i don´t have the 'F13' key on my notebook. There is another way of doing it?

Read only

0 Likes
2,841

That would be shift-F1.

Rob

Read only

Former Member
0 Likes
2,841

Answered.

Read only

0 Likes
2,841

Hello Experts,

I am Recording T.Code: GJVV and facing similar problem.

Its giving OK-CODE = '\00'..

I tried Using P++ and other Ok_codes as well i tried SHIFT + F1...

Thanks alot for your time

Regards,

Ankit.