‎2007 Jun 21 3:44 PM
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
‎2007 Jun 21 4:04 PM
why don't use BAPI For sales order change ?
BDC OK_CODE for scroll is ' =P+' ' Scroll down '
Scroll UP is '=P-'
‎2007 Jun 21 4:16 PM
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.
‎2007 Jun 21 6:01 PM
Blag is correct. For VA02, you can use "Position cursor" F13.
Rob
‎2007 Jun 21 4:33 PM
hi,
the ok-code for getting vertical scrolling for a table control in bdc is <b>=p+</b>
regards,
Ashokreddy
‎2007 Jun 21 6:33 PM
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
‎2007 Jun 22 9:23 AM
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.
‎2007 Jun 22 2:10 PM
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
‎2007 Jun 25 9:33 AM
Hi,
Thanks Rob, but i don´t have the 'F13' key on my notebook. There is another way of doing it?
‎2007 Jun 26 2:25 PM
‎2009 Dec 15 9:34 AM
‎2011 Jan 21 6:13 AM
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.