‎2011 Oct 07 10:45 AM
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.
‎2011 Oct 07 11:29 AM
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
‎2011 Oct 07 11:50 AM
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.
‎2011 Oct 07 12:31 PM
Dear Rshankar,
Thanks for reply but can you explain in brief because i am not getting how to do.
Regards,
Shivam.
‎2011 Oct 07 11:58 AM
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.