2008 Nov 03 9:38 AM
Hello,
I'm trying to insert a record in hrp1008 for a position (code below)
GOAL: copy bukrs and persa (and brtrl) from a specific org. unit
sy-subrc = 2
Can anyone help me with this one?
Thanks.
SELECT *
INTO corresponding fields of it1008
FROM HRP1008
WHERE OTYPE = 'O' AND OBJID = Orgunitid AND PLVAR = '01'.
endselect.
clear it1008a.
it1008a-MANDT = it1008-MANDT.
it1008a-plvar = '01'.
it1008a-OTYPE = 'S'.
it1008a-OBJID = OBJ.
it1008a-istat = '1'.
it1008a-BEGDA = begda.
it1008a-endda = endda.
it1008a-infty = '1008'.
it1008a-BUKRS = it1008-BUKRS.
it1008a-PersA = it1008-PERSA.
it1008a-BTRTL = it1008-BTRTL.
append it1008a.
call function 'RH_INSERT_INFTY'
EXPORTING
fcode = 'INSE'
vtask = 'D'
TABLES
innnn = it1008a
EXCEPTIONS
no_authorization = 1
error_during_insert = 2
repid_form_initial = 3
corr_exit = 4
begda_greater_endda = 5
others = 6.
2008 Dec 10 2:55 PM
Please check your authorisation. If you look into the exceptions tab you can see "Error during Insert" = sy-subrc 2 is "No authorisation".
Please put a break point in form INSERT_INFTY in Include LRHAPF0Z and check
a®
Please check your authorisation. If you look into the exceptions tab you can see "Error during Insert" = sy-subrc 2 is "No authorisation".
Please put a break point in form INSERT_INFTY in Include LRHAPF0Z and check
a®
2008 Dec 10 2:45 PM
2008 Dec 10 2:55 PM
Please check your authorisation. If you look into the exceptions tab you can see "Error during Insert" = sy-subrc 2 is "No authorisation".
Please put a break point in form INSERT_INFTY in Include LRHAPF0Z and check
a®
2008 Dec 10 2:58 PM
2008 Dec 10 5:51 PM
@Tarangini: The fm & Class you mentioned are for PA Infotypes & cannot be used for HRP1008 which is a PD Infotype.. hope you know the difference..
@Ilse:
Insert the following statement after clear it1008wa.
it1008wa = it1008.
~Suresh
2008 Dec 10 2:57 PM
Hi,
Use this
Function Module.
HR_INFOTYPE_OPERATION
or
Classe
CL_HRPA_INFOTYPE_NNNN
It may solve u r pblm.
Thanks
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |