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: 

Reading select optiosn and parameters ..confusion in Function Modules

Former Member
0 Kudos

Hello all

can any one tell me the exact use of the following fn modules

F4IF_FIELD_VALUE_REQUEST

DYNP_VALUES_READ

DYNP_VALUES_UPDATE

<b>RS_REFRESH_FROM_SELECTOPTIONS</b>

To be more specific i called the FM 'RS_REFRESH_FROM_SELECTOPTIONS 'but i dun understand how to use the table parameter in this afer wards

for EX .

DATA : select-options s1 for sfliht-carrd no intervals.

DATA : ITAB1 LIKE RSPARAMS OCCURS 0 WITH HEADER LINE.

CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'

EXPORTING

CURR_REPORT = PROGNAME

TABLES

SELECTION_TABLE = ITAB1

but now what to do ahead ?how can i access the select options from this table ITAB1..whhat is the use of calling this function. ?

Thanks in advance

Nilesh

5 REPLIES 5

Former Member
0 Kudos

F4IF_FIELD_VALUE_REQUEST - for f4 help

DYNP_VALUES_READ- for table control

u can go thru following thread also

for DYNP_VALUES_READ

for DYNP_VALUES_UPDATE

for RS_REFRESH_FROM_SELECTOPTIONS

<b>plz reward if useful</b>

Swati

Former Member
0 Kudos

Hi,

You can use this FM to get the details of the Parameters, Selectoptions and other input fields of an other program in your current program.

You can read ITAB1 and continue using the values in the current program.

Pls award points if useful

Regards,

Shruthi

Former Member
0 Kudos

Hi,

please check out the below program it will help you

REPORT zvenki.

TABLES: t001w.

DATA : it_marc TYPE STANDARD TABLE OF marc WITH HEADER LINE,

it_werks TYPE STANDARD TABLE OF t001w WITH HEADER LINE.

PARAMETERS material RADIOBUTTON GROUP abc. "Material General Details

PARAMETERS plant RADIOBUTTON GROUP abc DEFAULT 'X'. "Material Plant Details

START-OF-SELECTION.

IF material EQ 'X'.

*If Material selected own code executes

SELECT * FROM marc INTO TABLE it_marc UP TO 200 ROWS .

LOOP AT it_marc.

WRITE 😕 it_marc-matnr,

it_marc-werks.

ENDLOOP.

ENDIF.

IF plant EQ 'X'.

*If Plant selected data fetched

SELECT * FROM t001w INTO TABLE it_werks UP TO 50 ROWS.

*Exported to Memory

EXPORT it_werks[] TO MEMORY ID 'TEST'.

*Declare on selection table type RSPARAMS

DATA : stable LIKE rsparams OCCURS 0 WITH HEADER LINE.

*Call this FM to get the Selection screen details

*of Program ZZTEST_ARUN_2 (it returns Select Options, Parameters..)

CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'

EXPORTING

curr_report = 'ZZTEST_ARUN_2'

TABLES

selection_table = stable

EXCEPTIONS

not_found = 1

no_report = 2

OTHERS = 3.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

stable-sign = 'I'.

stable-option = 'BT'.

  • populate some selection condition

READ TABLE it_werks INDEX 10.

stable-low = it_werks-werks.

READ TABLE it_werks INDEX 40.

stable-high = it_werks-werks.

APPEND stable.

*Submit it then

SUBMIT zztest_arun_2

WITH SELECTION-TABLE stable

AND RETURN.

ENDIF.

**********please reward points if the information is helpful to you**************

former_member491305
Active Contributor
0 Kudos

Hi Nilesh,

To read all the values in a select-option,do like this.

DATA:wa_param type rsparams,

itab1 TYPE STANDARD TABLE OF rsparams .

CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'

EXPORTING

curr_report = sy-repid

TABLES

selection_table = itab1.

DATA:s_matnr1 TYPE RANGE OF mara-matnr WITH HEADER LINE.

LOOP AT itab1 wa_param .

IF wa_param-selname = 'S_MATNR'.

s_matnr1 = wa_param.

APPEND s_matnr1.

ENDIF.

ENDLOOP.

Here i am moving all the values in select-option s_matrn into s_matnr1.

0 Kudos

hello all

I dun want to call another report using submit commnad.

here is my code

DATA : ITAB1 LIKE RSPARAMS OCCURS 0 WITH HEADER LINE.

SELECT-OPTIONS S1 FOR SPFLI-CITYFROM.

CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'

EXPORTING

CURR_REPORT = SY-repid

  • IMPORTING

  • SP =

TABLES

SELECTION_TABLE = ITAB1

.

now on the selection screen when i enter 'Franfurt '' in the select option S1 ..then after the execuion of this F.M. i can see 'S1' in the table ITAB1 .but i should get value 'Frankfurt' in ITAB1-LOW' field ,, m i ryte ? or do i need to use some other FM ?

so my qn is how to get the value entered int he select option S1 ?so that i can use it to restrict the values in other input fields on the screen ..

plz help !!!

Nilesh