‎2007 Mar 06 6:33 AM
Hi Guys,
Im developing a dialog program that the first screen is the Selection screen, where it contains select options and parameters.
My question is how can i make my dialog's selection screen having the same functionality as normal SE38 program's selection screen? Basically in dialog's selection screen, i want to save the input as variant.
I did tried to copied standard status - Program RSSYSTDB, Status %_00 as my dialog selection screen's status. but the save button will not trigger the variant saving.
Pls comment.
Thanks in advance.
‎2007 Mar 06 6:49 AM
Hi,
Create the program in SE38 TCode with Program type as 'M'. and declare all declarations and design your selection screen similar to executable program.
Create the screen in SE51 and in the start-of-selection of the Program, you use the command:
CALL SCREEN <No>(which you have created in SE51).
Once you execute this program through the TCODE which you attached in SE93, the same selection screen will come. In the SE93 while attaching the program give the screen number as '1000'. and save.
Regards,
Anji
‎2007 Mar 06 6:43 AM
‎2007 Mar 06 6:49 AM
Hi,
Create the program in SE38 TCode with Program type as 'M'. and declare all declarations and design your selection screen similar to executable program.
Create the screen in SE51 and in the start-of-selection of the Program, you use the command:
CALL SCREEN <No>(which you have created in SE51).
Once you execute this program through the TCODE which you attached in SE93, the same selection screen will come. In the SE93 while attaching the program give the screen number as '1000'. and save.
Regards,
Anji
‎2007 Mar 06 7:52 AM
Hi Anji,
Thanks for your reply.
As per your recommendation, i put my selection-screen declaration under a Type 'M' program, but i can not pass the syntax check. Am i perceived your message wrongly?
Could u pls give me the detail explanation?
Thanks in advance.
‎2007 Mar 06 8:13 AM
Hi,
Why not create it like a normal report program only?
In the start-of-selection part , you can call your screen.
parameters: p_matnr like mara-matnr.
select-options: s_ebeln for ekko-ebeln.
start-of-selection.
call screen '0100'. "Please note this is not the selection screen. This is another screen which you have to create b ydouble clicking on '0100'.
Regards,
Ravi
‎2007 Mar 06 9:03 AM
Have you tried getting SAP to generate the selection screen for you?
For example :
selection-screen begin of screen 200.
selection-screen begin of block a with frame title text-t01.
select-options s_vendor for eina-lifnr obligatory no intervals.
select-options s_matnr for mara-matnr.
parameters p_werks type mard-werks default 'D100'.
parameters p_lgort type mard-lgort default '0002'.
selection-screen end of block a.
selection-screen end of screen 200.
You would need to call screen 200 from your main program, and after execute is hit the main program continues populated with the selection parameters