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: 

Two selection screen

Former Member
0 Kudos

Hi,

I have copied a standard program of SAP and need to modify, My problem is I need a different selection and i dont want to disturb the existing SAP selection screen.

So my plan is to create my selection screen and pass the value to the SAP Standard program selection screen and execute, I dont want the SAP standard selection screen to be visible to the user.

Please advice me how to go about this and Please give some example for Multiple selection screen.

regards,

Prabhu

Points assured.

1 ACCEPTED SOLUTION

Rashid_Javed
Contributor
0 Kudos

You can use submit statement to call the SAP program and pass your selection-screen or selection fields to it.

So in you program , you define your own selection screen, take user input, than use the "submit" statement to call the sap program with passing your selection-screen values.

Please check SAP help for submit command, you will also find the example program there.

RJv
5 REPLIES 5

Rashid_Javed
Contributor
0 Kudos

You can use submit statement to call the SAP program and pass your selection-screen or selection fields to it.

So in you program , you define your own selection screen, take user input, than use the "submit" statement to call the sap program with passing your selection-screen values.

Please check SAP help for submit command, you will also find the example program there.

RJv

Former Member
0 Kudos

Hi,

Go to transaction "SPRO" where in you can modify standard Transcation selection screens i.e Screen exits.

And to modify the program related to the screen you have to look fro enhancement points in PAI and PBO module.

Regards,

Nisrin

0 Kudos

Hi,

Javed, I dont want to create two programs and use submit.

Nisrin, I will copy the report in to a Zprogram.

regards,

prabhu

Former Member
0 Kudos

Hi,

SUBMIT standard progname

WITH P_VBELN EQ p_vbeln " pass the parameters of u r s

WITH P_POSNR EQ p_posnr

AND RETURN.

u r standard sel screen will not appear since u r not calling u r standard program by using via selection-screen addition ie, submit standard pgogname via selection-screen.....

Former Member
0 Kudos

Hi,

Call your Std report pgm by passing the paramaters as shown in the below example:

submit ZRPTPSH10 and return

with pnpbegda = wa_2001-begda

with pnpendda = wa_2001-endda

with pnppernr = wa_2001-pernr.

import hd to hd from memory id 'HD1'.

free memory id 'HD1'.

In your Std pgm export the internal table if any with export stmt as shown below:

export hd to hd1.

So u can display the values in ur own pgm itself.

Regards,

K.Tharani.