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: 

sscrfields

Former Member
0 Kudos

Hi friends,

Can any one explain what is sscrfields what is the main use of sscrfields and

where we are using this structure.

thanks in advance,

with regards,

sharma

6 REPLIES 6

Former Member
0 Kudos

Hi..

SSCRFIELDS - is Fields on selection screens

he table SSCRFIELDS save the function code of a pushbutton inserted in selection-screen or a command to related to a radiobutton or a checkbox.

see the following links:

http://help.sap.com/saphelp_nw04/helpdata/en/bd/79b2370f9cbe68e10000009b38f8cf/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba80935c111d1829f0000e829fbfe/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/9f/dba81635c111d1829f0000e829fbfe/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/3d/c3b23782a9cc68e10000009b38f8cf/frameset.htm

Hope it helps you...

Let me know if u have any more doubt...

Reward points if useful......

Suresh.......

former_member673464
Active Contributor
0 Kudos

hi..

SSCRFIELDS structure stores the selection screen fields. You must declare this structure as an interface work area using the TABLES statement.

If the user chooses one of these buttons, the runtime environment triggers the AT SELECTION-SCREEN event and the function code FC0<i> is placed into the component UCOMM of the structure SSCRFIELDS.

When the user clicks the pushbutton on the selection screen, <ucom> is entered in the UCOMM of the SSCRFIELDS interface work area. You must use the TABLES statement to declare the SSCRFIELDS structure. The contents of the SSCRFIELDS-UCOMM field can be processed during the AT SELECTION-SCREEN event.

When you select a checkbox or radio button in a group, the runtime analysis triggers the AT SELECTION-SCREEN event and places the function code <ucom> into component UCOMM of the interface work area SSCRFIELDS. You must use the TABLES statement to declare the SSCRFIELDS structure.

REGARDS,

VEERESH

Former Member
0 Kudos

Hi,

sscrfields are used 2 add buttons on selection screen.

In the application toolbar of the standard GUI status of the selection screen, five pushbuttons are predefined with the function codes FC01 to FC05, but are inactive by default. You can activate them during the definition of the selection screen as follows:

SELECTION-SCREEN FUNCTION KEY <i>.

The numbering <i> must be between 1 and 5. The individual function texts must be assigned to the FUNCTXT_0<i> components of structure SSCRFIELDS before the selection screen is called. You must declare this structure as an interface work area using the TABLES statement.

If the user chooses one of these buttons, the runtime environment triggers the AT SELECTION-SCREEN event and the function code FC0<i> is placed into the component UCOMM of the structure SSCRFIELDS.

After the AT SELECTION-SCREEN event has been processed, the system displays the selection screen again. The only way to exit the selection screen and carry on processing the program is to choose Execute (F8). Consequently, the pushbuttons on the application toolbar are more suitable for controlling dynamic modifications of the selection screen than for controlling the program flow.

REPORT demo_sel_screen_function_key.

TABLES sscrfields.

PARAMETERS: p_carrid TYPE s_carr_id,

p_cityfr TYPE s_from_cit.

SELECTION-SCREEN: FUNCTION KEY 1,

FUNCTION KEY 2.

INITIALIZATION.

sscrfields-functxt_01 = 'LH'.

sscrfields-functxt_02 = 'UA'.

AT SELECTION-SCREEN.

CASE sscrfields-ucomm.

WHEN'FC01'.

p_carrid = 'LH'.

p_cityfr = 'Frankfurt'.

WHEN 'FC02'.

p_carrid = 'UA'.

p_cityfr = 'Chicago'.

ENDCASE.

START-OF-SELECTION.

WRITE / 'START-OF-SELECTION'.

This defines a standard selection screen with two parameters. In the application toolbar, two pushbuttons are assigned the texts LH and UA and activated.

When the user clicks one of the buttons, the AT SELECTION-SCREEN event is triggered and there the input fields are preassigned correspondingly.

reward points if helpful.

regards,

kiran kumar k

Former Member
0 Kudos

We use SSCRFIELDS if you need to give any puch button on the selection screen.

We use SSCRFIELDS mostly to handle any pushbutton on slection-screen.

AT SELECTION-SCREEN OUTPUT.

if sscrfields-ucomm = 'FC01'.

PERFORM f0100_get_data1.

endif.

Former Member
0 Kudos

SSCRFIELDS is the structure to store the selection-screen fields at runtime

TABLES : SSCRFIELDS.

AT SELECTION-SCREEN.

CHECK SSCRFIELDS-UCOMM = 'ONLI'.  " <--to check if Execute button is selected

Former Member
0 Kudos

SSCRFIELDS is the structure used to store the properties of the selection-screen elements during run time