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

selection-screen values

Former Member
0 Likes
869

Hi Friends,

I have a requirement to get the values entered in the selection-screen in an user-exit for an SAP standard report , the problem is whenever variants are used iam able to get the values using FM RS_VARIANTS_GET but when the users directly enter the values on the selection-screen how we can find the values entered.

Based on the values entered on the selection-screen i need to do some calculations in the user-exit. Please suggest.

Thanks for your continued support.

Thanks

Meenakshi

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
818

can you try using fm DYNP_VALUES_READ in your exit, it has a documentation

5 REPLIES 5
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
819

can you try using fm DYNP_VALUES_READ in your exit, it has a documentation

Read only

Former Member
0 Likes
818

Hi Meenakshi,

There is another way of getting values

in the debugging mode, go to Call tab there u will get all program names thru which program logic flows

then u can use like this:

to get PO order type while saving PO

Ex : w_name = '(SAPLMEGUI)MEPO_TOPLINE-BSART'.

ASSIGN (w_name) TO <w_bstyp>.

May be it will help u

Like this u can get the value which user enters. just check the program and screen field.

Eswar

Read only

Former Member
0 Likes
818

Use function module

CALL FUNCTION 'DYNP_VALUES_READ'

Regards,

Uma

Read only

former_member585060
Active Contributor
0 Likes
818

Hi,

Use the following FM 'RS_REFRESH_FROM_SELECTOPTIONS'

Sample code

DATA : lv_curr_report TYPE rsvar-report,
              lt_rsparams    TYPE STANDARD TABLE OF rsparams.


lv_curr_report = sy-cprog.            " sy-cprog gives the main program name


* Function module to capture the selection screen values
  CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
    EXPORTING
      curr_report           = lv_curr_report
* IMPORTING
*   SP                    =
    TABLES
      selection_table       = lt_rsparams         
      " This table will have your selection sceen values
   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.

If you want the variant name also, this system field holds the variant name sy-slset.

Regards

Bala Krishna

Edited by: Rob Burbank on Jun 4, 2010 9:53 AM

Read only

0 Likes
818

Hi,

Thanks for your help, i was able to get the values in the FM mentioned by you.

Thanks

Meenkashi