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

screen/tabstrip

Former Member
0 Likes
646

Hi,

can we directly go to a particular screen/tabstrip in a transaction such as va03 .

i want to go directly from my prog to the schdule line tabstrip in item-overview tabstrip in first screen of va03 transaction by just passing the sales document no from my program.

please do the needful.

Hemant.

4 REPLIES 4
Read only

Former Member
0 Likes
581

hi,

try the below code,just execute it and give a sales doc no.,it will take u to the va03 transaction 2nd screen directly as u needed(skipping the 1st screen to input as it is done in the program)

u can even use VBAK table instead of VBAP.

<b>parameter:p_vbeln like vbap-vbeln.

data:v_vbeln like vbap-vbeln.

start-of-selection.

select vbeln into v_vbeln from vbap where vbeln = p_vbeln.

endselect.

set parameter id 'AUN' field v_vbeln.

call transaction 'VA03' and skip first screen.</b>

do assign points if it helps you

Message was edited by:

sowjanya suggula

Read only

Former Member
0 Likes
581

Hi

U have to create a little bdc and run it by CALL TRANSACTION in error mode:

  • Start VA03

PERFORM BDC_DYNPRO USING 'SAPMV45A' '0102'.

PERFORM BDC_FIELD USING 'BDC_CURSOR'

'VBAK-VBELN'.

PERFORM BDC_FIELD USING 'BDC_OKCODE'

'/00'.

PERFORM BDC_FIELD USING 'VBAK-VBELN'

<SALES ORDER>.

  • Choose item

PERFORM BDC_DYNPRO USING 'SAPMV45A' '4001'.

PERFORM BDC_FIELD USING 'BDC_OKCODE'

'=POPO'.

PERFORM BDC_FIELD USING 'BDC_CURSOR'

'RV45A-MABNR(01)'.

PERFORM BDC_DYNPRO USING 'SAPMV45A' '0251'.

PERFORM BDC_FIELD USING 'BDC_CURSOR'

'RV45A-POSNR'.

PERFORM BDC_FIELD USING 'BDC_OKCODE'

'=POSI'.

PERFORM BDC_FIELD USING 'RV45A-POSNR'

<ITEM>.

  • Go to tabstrip

PERFORM BDC_DYNPRO USING 'SAPMV45A' '4001'.

PERFORM BDC_FIELD USING 'BDC_OKCODE'

'=PDE3'.

CALL TRANSACTION 'VA03' USING BDCDATA

MODE 'E'.

Max

Read only

Former Member
0 Likes
581

Hi,

After using the Call Transaction .... Statement, you can use the SET CURSOR POSITION <Field-name>.

Field-name is the screen field name on which the cursor resides when the transaction is executed.

Cheers..

Santosh

<b>P.S. Mark Usefull Answers.</b>

Read only

Former Member
0 Likes
581

hi

good

you can do it using bdc CALL TRANSACTION method,if you want to run in the A mode it ll show you all the screen than it ll go there but if you take any wrong data and run the bdc than it ll take you to this particular field, while recording make it ok but while passing the data , pass the data wrongly.

thanks

mrutyun^