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

Re: How to Modify in Data IT0001?

$
0
0

Hi Ramesh,

 

Make use of FM 'HR_INFOTYPE_OPERATION' to modify record. First lock the employee and then make changes, after that unlock that pernr.

 

Read the infotype 1 record which needs to be modified and pass it into work area 'wa_P0001'.


        CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'

           EXPORTING

             NUMBER = wa_P0001-PERNR.

 

         CALL FUNCTION 'HR_INFOTYPE_OPERATION'

           EXPORTING

             INFTY         = '0001'

             NUMBER        = wa_P0001-PERNR

             VALIDITYEND   = wa_P0001-ENDDA

             VALIDITYBEGIN = wa_P0001-BEGDA

             RECORD        = wa_P0001

             OPERATION     = 'MOD'

             TCLAS         = 'A'

           IMPORTING

             RETURN        = wa_return.

 

         COMMIT WORK.

         CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'

           EXPORTING

             NUMBER = wa_P0001-PERNR.


Viewing all articles
Browse latest Browse all 3354

Trending Articles



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