12-21-2004 5:37 AM
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
12-21-2004 6:06 AM
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.
12-21-2004 6:06 AM
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.
12-21-2004 7:21 AM
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
12-21-2004 7:39 AM
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.
12-21-2004 8:34 AM
Hello Subramanian,
Thanks a lot man! It worked!
You're a GURU!
Rregards,
Jeffrey