2005 Sep 15 5:06 PM
HI
GIven the program name and the Screen #, i need to figure out all the Input fields , Data type and Length for that program( SAP STD REPORT).
I checked out the Element List in Se51 for the program name and screen number, I need something similar to it ..I need to pull out that data. How should i approach.
-Ravi.
2005 Sep 15 5:14 PM
Hi
You can use FM RS_SCRP_GET_SCREEN_INFOS
I hope it's usefull for you
Regards
Max
2005 Sep 15 5:14 PM
Hi
You can use FM RS_SCRP_GET_SCREEN_INFOS
I hope it's usefull for you
Regards
Max
2005 Sep 15 5:24 PM
RS_REFRESH_FROM_SELECTOPTIONS
Message was edited by: Srinivas Adavi
Sorry it is RS_SELECTIONS_DESCRIPTION. This will give you what you wanted.
2005 Sep 15 8:02 PM
2005 Sep 15 8:09 PM
Then in that case can you close the thread please?
Thanks,
Srinivas
2005 Sep 15 8:16 PM
HI Srinivas,
If we check the Screen Elements List in Se51.
In the General Attributes Sub Screen. It has attributes like Name , Type , line ..... Format, Input , Output , Output Only ....
I am Curious to know the functionality of Output and Output only Check Boxes here... Does it mean that Structure of Output of the report is determined by these values.
Let me know ..
Thanks a lot
Ravi.
2005 Sep 15 8:19 PM
Output checkbox, means that it is a "disabled" input field. Output Only checkbox, means that it is more like a static text box.
F1 Help on Output Only.
<i>Pure output field
This specification makes sense only for template fields.
At runtime, the format of a template field can be distinguished from that of a field/text field, if it is defined as an output field, but not if it is defined as an input field.
If the flag is set for an output template, you cannot distinguish the format of a template field from that of a text field. This allows you to insert variable components in apparently fixed texts.
At runtime, you cannot dynamically modify the input/output attributes of output templates which have this flag set within the LOOP AT SCREEN ... ENDLOOP block in PBO modules.</i>
Regards,
Rich Heilman
Message was edited by: Rich Heilman
2005 Sep 15 8:32 PM
'Output', if checked means that the field is output to the screen. Every field has to have one of 'Input' or 'Output' to be checked. If you check 'Input' and uncheck 'Output', it will not be output, but the value will be available to the program.
'Output Only' is synonymous to text field. But the only difference is that you can move dynamic values to this field so that you can change what you show on the screen. Whereas if you use 'Text box', you cannot achieve dynamic value assignment.
Srinivas
2005 Sep 15 11:46 PM
If these answers helped you, please reward and close the post.
Thanks,
Srinivas
2005 Sep 19 8:04 PM
Hi Srinivas,
The FM which you provided seems to work fine, but it provides me some extra Fields which are not present in the Selection Screen.
How should i Eliminate them.
Thanks
Ravi.
2005 Sep 19 8:09 PM
The extra fields have to be in the selection screen, otherwise you will not have them in this output. Can you tell me if you are trying to get the standard program selection screen fields and if so, which one?
Sometimes the selection fields are there but are suppressed based on some conditions or with the option no-display. You will get those attributes also in this output.
Srinivas
2005 Sep 19 8:57 PM
Hi Srinivas,
I am trying to read the Selection Screen of the Standard SAP program.
Consider for Example RPLMIT00 program, I tried to read the fields using the FM RS_SELECTION_DESCRIPTION and RS_REFRESH_FROM_SELECTOPTIONS. I got more fields than the ones on the Selection Screen.
I even the Checked the future Selection option in the report. Still there are some other fields i cannot see on the Selection Screen.
My requirement is to find all the
Field Names , Search helps(if available) , Data Type and Length, For any SAP report.
Thanks
Ravi.
2005 Sep 19 9:24 PM
Hi Ravi,
You standard SAP report has a logical database in its attributes and this function module is returning you all the selections from the logical database program as well. To find that out, you go to attributes and double click on the logical database name. In the subsequent screen, click the selections button. There you will find all the additional selections.
What this does is use the following key statement.
LOAD REPORT P_REPORT PART 'SSCR' INTO P_SSCR.
Here P_REPORT is like RSVAR-REPORT and P_SSCR is an internal table of structure RSSCR. Now you will get all the information you need from this structure including search helps. But the problem is, this will give you everything, I mean everything including boxes, comments, etc. You need to screen the unnecessary junk out of it to get your selection fields. But I am not sure if there is a way to just get the fields shown on the screen.
Srinivas
2005 Sep 28 5:14 AM
Hi srinivas,
please can any one give me the sol,
i want to create the input fields, checkboxes on my screen dynamically. if materials are 10 i want to create 5 input fields for each material, if materials are 20 then for all 20 mat all fields are to be created with the values from program. how can i do this..tell me its very urgent..please can anyone... im new to this so i dont know how to open a new thread.. sorry
waiting for ur reply...
kumar