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: 

Selection-screen in a Dialog Screen

former_member355937
Participant
0 Kudos

Hi Harald,

Thanks for the tip you gave regarding this problem.

It's working fine now. I have another question, How can I assign a default value for one of the parameters in the selection screen I created? I know that there is an additional 'Default' argument which works fine when I'm assigning a constant value. But the value must be coming from a specified parameter ID. Considering that I'm am doing this in a normal Dynpro.

I put an 'INITIALIZATION' event in my code this is where I call my subroutine to get the value from specified parameter ID and assigned it to one of the parameters in my sel. screen. But it still not working. It doesn't pass through this event.

Need your help on this one :-).

Thanks a lot,

Jeffrey

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Is this for Harold only ?

One question that comes to my mind is :

a) Is it a <b>selection-screen</b> or a <b>dialog screen</b> ? (The confusion is because of the title).

Can you paste the code where you have declared the parameters and also the code written in the '<b>Initialization</b>' event ?

Regards,

Subramanian V.

4 REPLIES 4

Former Member
0 Kudos

Is this for Harold only ?

One question that comes to my mind is :

a) Is it a <b>selection-screen</b> or a <b>dialog screen</b> ? (The confusion is because of the title).

Can you paste the code where you have declared the parameters and also the code written in the '<b>Initialization</b>' event ?

Regards,

Subramanian V.

0 Kudos

Hello Subramanian,

I'm sorry this is not intended for Harald only. I just want to acknowledge him for solving the problem I encountered in creating a selection-screen in a Dialog screen (normal dynpro). This is in connection with the one I posted last dec. 19 the details are in

Since this is not a normal selection screen programming like what I usually do in a report type program, I'm having problems dealing with it.

Below is a part of my code in the main program:

SELECTION-SCREEN BEGIN OF SCREEN 1003 AS SUBSCREEN.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

Parameters: pMdusNo like zcanvass_hdr-mdusno,

pPurGrp like kssk-objek default sPurchGroup obligatory,

pMCat like mara-matkl obligatory.

Select-options: so_Matnr for mara-matnr obligatory,

so_Valid for sy-datum default sy-datum obligatory,

so_SGrp for klah-class.

SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN END OF SCREEN 1003.

INITIALIZATION.

perform GetPurchGrp.

pPurGrp = sPurchGroup.

START-OF-SELECTION.

Call screen 1001.

Hope you could help me on this one :-).

Thanks a lot,

Jeffrey

0 Kudos

Instead of writing the statements in <b>Initialization</b>, why don't you write it in <b>PBO</b>(PROCESS BEFORE OUTPUT) of the screen 1001?

Also try removing the default which you are currently using in the selection-screen parameters.

Regards,

Subramanian V.

0 Kudos

Hello Subramanian,

Thanks a lot man! It worked!

You're a GURU!

Rregards,

Jeffrey