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

Submit Statement Query

Former Member
0 Likes
645

Dear All,

I have one query during calling program in report.I need to pass two parameters in another program.Currently data is passing in another program and after passing paramentes it is executing but my requirement is, after passing parameters it should not be execute but i have put pushbutton and that should be execute. Eg,

submit ztest1 with p_werks = gv_werks with s_baleno in s_baleno

and return.

After written above statement zetst1 report will execute but this is not my requirement.Currently i have put below statement like,

submit ztest1 with p_werks = gv_werks with s_baleno in s_baleno via selection-screen

and return.

Above statement will pass only parameters and report screen will display and sfter that user will click on pushbutton but i need to pass that pushbutton also so user will see direct output.

Regards,

Shivam Pastagia.

4 REPLIES 4
Read only

Former Member
0 Likes
569

u jst need to do a bdc recording for that tcode and the perform which is is getting generated when the button is pushed .

copy that perform and use it jst after the set get parameter

Read only

Former Member
0 Likes
569

Hi,

You can use Call Transaction 'ZTRN' with BDCDATA or if its acceptable then you can try to assign function code F8 to your button. then use submit prg with parameters and return. this will execute your button action..

Regards,

Ravi.

Read only

0 Likes
569

Dear Rshankar,

Thanks for reply but can you explain in brief because i am not getting how to do.

Regards,

Shivam.

Read only

Former Member
0 Likes
569

Hi,

you should write the statement after start-of-selection and must put condidtion for executing the SUBMIT statement.

Example.

START-OF-SELECTION.

IF p_button is not inital.

SUBMIT ztest1 with paramters.

ENDIF.

try this code.

Ram.