Application Development 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: 

how to skip initial screen when calling a parameter transaction

former_member185116
Active Participant
0 Kudos

hello all,

i have created a Parameter Transaction for a Report Painter program....

i want call this transaction and skip initial screen(i.e directly displaying the output by passing the desired value form another ZReport)...

i used code Call Transaction 'ZPS106' and skip first screen...(here ZPS106 is parameter transaction for Report Painter Program)....

but the problem the initial selection screen is still displayed,

how do i avoid this,

12 REPLIES 12

former_member191761
Active Participant
0 Kudos

Hi Vinay,

Please try creating a Dialog Transaction.

Regards

Sri

0 Kudos

we are not supposed to create a dialog transaction for report painter programs...

0 Kudos

hi vinay,

if u want want to skip parameter screen just use the code

SUBMIT <Z program Name>  WITH <parameter>

enter your parameter name of zprog in <parameter> and pass the desired value.


i hope its will help you.


Regards,

Adarsh         

0 Kudos

hi adarsh,

i don't think we can use SUBMIT for programs created using report painter,

because the report name varies every time an updation is done,

need some other way...

former_member435048
Discoverer
0 Kudos

hi,

give the parameter Id in the screen . where u have the option for parameter id in  screen painter.

Attributes -->parameter Id

here is the code after that.

set parameter id 'parameter id ' field name lv_field.

Call Transaction 'ZPS106' and skip first screen.

0 Kudos

hi viajy kiran

i have already done like that but still the initial screen is displayed,

how to avoid this...

0 Kudos

select the set parameter and get parameter options in the screen.

even if it wont work....

use the code

get parameter id  'param id' field name in the program zps106

Former Member
0 Kudos

Dear Vinay,

Use this code submit program name using selection screen 1000. & pass first program ouput to your screen fields. in coding like this as an example.

SUBMIT yrm07mlbd USING SELECTION-SCREEN '1000'
         WITH matnr IN/EQ  first report output field
         WITH bukrs IN/EQ  first report output field
         WITH werks IN/EQ  first report output field
         EXPORTING LIST TO MEMORY AND RETURN.

0 Kudos

Hi vinal Use Function module GRW_JOB_SUBMIT_PREPARE to get program name.. take it in a variable and pass it through submit...

or else u can find user program name using user tcode in table TSTCP and you can  use it in your submit stament.

Regards,

Adarsh

0 Kudos


Hi Vinay,

For call transaction 'XY' and skip first screen. to work properly you should have a navigation defined from first screen to second.

Either have the 'Next Screen' (in first screen's attributes tab) filled with the details of the next screen.

Or have a call screen <next screen number> in one of the PAI modules of the first screen.

Basically the PBO is skipped and PAI is directly called and if there is no navigation defined to second screen then the first screen itself is called.

Best regards,

Saurabh

raymond_giuseppi
Active Contributor
0 Kudos

You could also try to use report-to-report interface ?

Perform some search at scn on those FM (or look at attached sample)

  • RSTI_APPL_STACK_POP
  • RSTI_APPL_STACK_INITIALIZE
  • RSTI_SELECTION_EXPORT
  • RSTI_COMMUNICATION_HANDLER

Regards,

Raymond

0 Kudos

You can try one more thing.

Have this piece of code in the first PBO module of the first screen -

If sy-tcode = <name of transaction>

     supress dialog.

endif.

This will ensure that when the screen is called from your transaction the first screen is skipped and it goes directly to second screen. But one of the two conditions for navigation that I mentioned earlier should be met here as well.

Best regards,

Saurabh