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

call tcode and skip first screen

Former Member
0 Likes
2,688

hi all,

before i think of posing a question i have searched SDN for 2days but dint get the desired results.

so i am posting a question.

in my prog am calling a TCODE and in that TCODE i have a mandatory field so when i say skip first screen it does not skip as their is a mandatory field.

so i used my code like this and checked twice and i found i have value in L_PERNO and id is: EHS00PERSONID.

i have a value in L_PERNO.

parameter id of the tcode field is : EHS00PERSONID

set parameter id 'EHS00PERSONID' field L_PERNO.

CALL TRANSACTION 'ZEDIT' AND SKIP FIRST SCREEN .

but it does not set the value... what am i missing still to get it done can i have some input pls.

thanks a lot in advance,

pasala.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,298

You can in your program

EXPORT L_PERNO TO MEMORY ID 'L_PERNO'.

CALL TRANSACTION 'ZEDIT' AND SKIP FIRST SCREEN .

and in the other program:

IMPORT L_PERNO FROM MEMORY ID 'L_PERNO'.

8 REPLIES 8
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
2,298

If you are facing problems do it via bdc.

record the first screen of transaction and call it like

call transaction 'ZEDIT' with i_bdcdata.

Read only

Former Member
0 Likes
2,299

You can in your program

EXPORT L_PERNO TO MEMORY ID 'L_PERNO'.

CALL TRANSACTION 'ZEDIT' AND SKIP FIRST SCREEN .

and in the other program:

IMPORT L_PERNO FROM MEMORY ID 'L_PERNO'.

Read only

Former Member
0 Likes
2,298

Hi,

Try to call the tcode passing the options ..

DATA : opt TYPE ctu_params.

opt-dismode = 'E'.

opt-defsize = 'X'.

CALL TRANSACTION 'ZEDIT' USING bdcdata_tab OPTIONS FROM opt.

Regards,

Srini.

Read only

Sridharnekkanti
Active Participant
0 Likes
2,298

Dont Post Same Message in multiple threads

Read only

0 Likes
2,298

I've rejected the other thread.

Read only

former_member188827
Active Contributor
0 Likes
2,298

what is the data type of mandatory field in tcode ZEDIT?

Read only

Former Member
0 Likes
2,298

Hi Pasala,

You have done everything right and your program will work with simple addition.

Just add the statement below in your transaction 'ZEDIT' in PBO of screen on which mandatory field exist.

get parameter id 'EHS00PERSONID' field 'XXX.'

where XXX is the name of mandatory field on the screen.

Amit Singla

Read only

Former Member
0 Likes
2,298

thank you all and its been sorted using one of your threads i,e using BDC.