Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9238

Re: How to default value in hr report category

$
0
0

Hi Sujaha,

 

I guess u used logic database PNPCE,

so use below source code FYA.

You can add the other values in the list. Now I added two only. (“D” and "Y")

 

NODES peras.

 

TABLES: pernr. " Standard Selections for HR Master Data Reporting FOR THE DEFAULT SCREEN.

 

AT SELECTION-SCREEN OUTPUT.

   PERFORM set_date.

 

START-OF-SELECTION.

GET peras.

 

*&---------------------------------------------------------------------*

*&      Form  set_date

*&---------------------------------------------------------------------*

*       set_date

*----------------------------------------------------------------------*

FORM set_date .

 

   DATA: lv_vrm_id TYPE vrm_id,

         lt_vrm_values TYPE STANDARD TABLE OF vrm_value,

         lwa_vrm_values TYPE vrm_value.

 

   lwa_vrm_values-key = 'D'.

   lwa_vrm_values-text = 'Today.Good day'.

   APPEND lwa_vrm_values TO lt_vrm_values.

 

   lwa_vrm_values-key = 'Y'.

   lwa_vrm_values-text = 'Current Year. Horse Year'.

   APPEND lwa_vrm_values TO lt_vrm_values.

 

   lv_vrm_id 'PNPTIMED'.

   CALL FUNCTION 'VRM_SET_VALUES'

     EXPORTING

       id              = lv_vrm_id

       values          = lt_vrm_values

     EXCEPTIONS

       id_illegal_name = 1

       OTHERS          = 2.

 

ENDFORM.                    "set_date


sap HR.png


Viewing all articles
Browse latest Browse all 9238

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>