Application Development and Automation 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: 
Read only

Input Fields of Selection Screen

Former Member
0 Likes
2,014

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,889

Hi

You can use FM RS_SCRP_GET_SCREEN_INFOS

I hope it's usefull for you

Regards

Max

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.

13 REPLIES 13
Read only

Former Member
0 Likes
1,890

Hi

You can use FM RS_SCRP_GET_SCREEN_INFOS

I hope it's usefull for you

Regards

Max

Read only

Former Member
0 Likes
1,889

RS_REFRESH_FROM_SELECTOPTIONS

Message was edited by: Srinivas Adavi

Sorry it is RS_SELECTIONS_DESCRIPTION. This will give you what you wanted.

Read only

0 Likes
1,889

Awesome .. This Works for me ...

Ravi.

Read only

0 Likes
1,889

Then in that case can you close the thread please?

Thanks,

Srinivas

Read only

0 Likes
1,889

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.

Read only

0 Likes
1,889

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

Read only

0 Likes
1,889

'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

Read only

0 Likes
1,889

If these answers helped you, please reward and close the post.

Thanks,

Srinivas

Read only

0 Likes
1,889

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.

Read only

0 Likes
1,889

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

Read only

0 Likes
1,889

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.

Read only

0 Likes
1,889

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

Read only

0 Likes
1,889

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