Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Onclick of button goto script / smartform program

Hi,

I have made a module pool progam for sales order data entry in which i have 2 buttons say 'A' and 'B'.

Onclick of the button 'A' i want to go to the sales order in script which i have already created &

Onclick of the button 'B' i want to go to the sales order in smartform that is also created.

Basically i want to call 2 of my own progams onclick of button.

Is there a way to do that. Please help me out.

Regards,

Darpana.

replied

Hi,

as per my understanding of question, i suggest You to create the t-codes for those two driver programs of script and form.

Then in PAI event write:

IF btn clicked = 'A'

call transaction <tcode_script>

elseif btn clicked = 'B'

call transaction <tcode_smartform>

endif.

Hope this can solve ur problem.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question