2007 May 23 4:12 PM
Hi experts,
Lets say I have a report program PRG1.
there is a selection screen for that program.
Now i am in second report program PRG2.
Is there any way to find out the first program's(PRG1) screen number and obligatory fields of that program from second program.
i mean any table which i can read by just passing the program name.
please guide me. its really urgent.
thanks in advance.
azad.
2007 May 23 4:25 PM
Use this FM to get selection-screen values from other program to ur progarm RS_REFRESH_FROM_DYNAMICAL_SEL ,
RS_REFRESH_FROM_SELECTOPTIONS
and use sy-cprog and do not use sy-repid.
Message was edited by:
Seshu Maramreddy
Hi experts,
Lets say I have a report program PRG1.
there is a selection screen for that program.
Now i am in second report program PRG2.
Is there any way to find out the first program's(PRG1) screen number and obligatory fields of that program from second program.
i mean any table which i can read by just passing the program name.
please guide me. its really urgent.
thanks in advance.
azad.
2007 May 23 4:19 PM
Hi
From the second program write a select statement to a Std table (something like D020*.. ( like D010SINF) .) which stores the Screen Number and program number by giving the first program name and will come to know about the first program details.
Reward points if useful
Regards
Anji
2007 May 23 4:23 PM
Thanks for ur reply ...
But how can i get the obligatory field from this table???
2007 May 23 4:24 PM
2007 May 23 4:34 PM
Also, you can use the functino module RPY_DYNPRO_READ to get the list of fields in the screen, and there is a column for obligatory.
Check out the tables parameter, FIELDS_TO_CONTAINERS, here it should list all of the selection screen elements, check the column name REQU_ENTRY to see if the field is obligatory.
Regards,
RIch Heilman
2007 May 23 4:25 PM
Use this FM to get selection-screen values from other program to ur progarm RS_REFRESH_FROM_DYNAMICAL_SEL ,
RS_REFRESH_FROM_SELECTOPTIONS
and use sy-cprog and do not use sy-repid.
Message was edited by:
Seshu Maramreddy
2007 May 23 4:28 PM
2007 May 23 4:37 PM
Hi
You can't know whether that field is obligatory or not
but only thing you know that whether that field is a paramter or select -options and the values for sign, option, low and high etc from this fun module
RS_REFRESH_FROM_SELECTOPTIONS
Reward points if useful
Regards
Anji
2007 May 23 4:37 PM
Hi,
I think it is better to check the other report program manullay to check for required fields..
If the field is made required in the event START-OF-SELECTION..Then none of the FMs would be able to provide you that information...
Thanks,
Naren
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |