cancel
Showing results for 
Search instead for 
Did you mean: 

Adding/Inserting new records into Infotype Using FM, HR_INFOTYPE_OPERATION

Former Member
0 Kudos
714

Hi,

I am trying to create a BAPI that need to be called from Domino Server. In the functionality, I'm trying to add a new record in IT0207 using FM, HR_INFOTYPE_OPERATION. The new record is "State Code(STATE) from IT0006, and I need to insert this Field/Record in the Residence Tax Authority Field of IT0207". I'm really tired of doing this and even tired of browsing. I used all the options. I even tried by Locking and Unlocking the PERNR using Functions, BAPI_EMPLOYEE_ENQUEUE and BAPI_EMPLOYEE_DEQUEUE but couldn't succeed. The new record is not getting Inserted. Any sample working code would be a great help.

Thanking You,

Exertive.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

try to use 'ENQUEUE_EPPRELE' and 'DEQUEUE_EPPRELE', and pass all the importing parameters to HR_INFOTYPE_OPERATION and the structure you should be passing to parameter RECORD for FM HR_INFOTYPE_OPERATION should be p0207 not pa0207.

Thanks,

Aditya

Answers (2)

Answers (2)

suresh_datti
Active Contributor
0 Kudos

Hi,

What is the error you get? As you might already know, you have to assign an Employer ID to the residence state you entered in the 0207 record. Please check the entries in table T5UTI to ensure that your configuration is correct. You can also set DIALOG_MODE = '2' and see if the error in the foreground.

Regards,

Suresh Datti

Former Member
0 Kudos

Hi,

The foll..piece of code may helps u.

CALL FUNCTION 'ENQUEUE_EPPRELE'

EXPORTING

pernr = l_wa_p0015-pernr

EXCEPTIONS

foreign_lock = 1

system_failure = 2

OTHERS = 3.

IF sy-subrc = 0.

CALL FUNCTION 'HR_INFOTYPE_OPERATION'

EXPORTING

INFTY = c_0015

NUMBER = l_wa_p0015-pernr

SUBTYPE = l_wa_p0015-subty

  • OBJECTID =

  • LOCKINDICATOR =

VALIDITYEND = l_wa_p0015-begda

VALIDITYBEGIN = l_wa_p0015-endda

  • RECORDNUMBER =

RECORD = l_wa_p0015

OPERATION = c_ins1

TCLAS = c_a

DIALOG_MODE = '0'

  • NOCOMMIT =

  • VIEW_IDENTIFIER =

  • SECONDARY_RECORD =

IMPORTING

RETURN = l_i_return .

  • KEY =

.

  • To dequeue the selected employee

CALL FUNCTION 'DEQUEUE_EPPRELE'

EXPORTING

pernr = l_wa_p0015-pernr.

Thanks

Eswar