‎2010 Jun 04 9:39 AM
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
‎2010 Jun 04 9:50 AM
can you try using fm DYNP_VALUES_READ in your exit, it has a documentation
‎2010 Jun 04 9:50 AM
can you try using fm DYNP_VALUES_READ in your exit, it has a documentation
‎2010 Jun 04 10:00 AM
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
‎2010 Jun 04 10:25 AM
Use function module
CALL FUNCTION 'DYNP_VALUES_READ'
Regards,
Uma
‎2010 Jun 04 10:31 AM
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
‎2010 Jun 07 9:17 AM
Hi,
Thanks for your help, i was able to get the values in the FM mentioned by you.
Thanks
Meenkashi