on 2006 Feb 20 2:35 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.