Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3523

Infotype 2 upload program

$
0
0

Hi Friends,

 

I have upload program to upload the infotype 2 Master Data to SAP, following FMs I am using,

 

I would like to modify the data if the record is already existing with Pernr, start date and end date.

If the Record is not available, I want to create new record.

 

BAPI_EMPLOYEE_ENQUEUE

 

CALL FUNCTION 'HR_INFOTYPE_OPERATION'

           EXPORTING

             infty             = '0002'

             number         = ls_infotype0002-pernr

             subtype        = ''

             record          = ls_infotype0002

             operation      = 'MOD'

             nocommit     = ''

             tclas            = 'A'

             dialog_mode = '0'

           IMPORTING

             return           = ls_return.


BAPI_EMPLOYEE_DEQUEUE

 

Above code is not working for updating the existing record.

 

Thanks,

Prasad.


Viewing all articles
Browse latest Browse all 3523

Trending Articles



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