02-17-2017 1:08 PM - edited 02-04-2024 7:03 AM
Hi all,
I created a new customer infotype with the attribute object type O (Organizational unit). The new
infotype works fine and can be filled by transaction PO.
But I would like to fill this new infotype by report. Unfortunately I can’t find a function module for this case. For object Type P (person) I found the FM HR_INFOTYPE_OPERATION. But this function module doesn’t work by object type O.
Is there a function module how works like FM HR_INFOTYPE_OPERATION for object type O?
I know the function module RH_INSERT_INFTY but it doesn’t work in this case.
Many thanks!
Best regards,
Walda86
Now I have fixed this Problem.
If i use VTASK = 'V' then it's working.
Thank you for your help!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Volker,
thank you for yor answer.
Sorry for my late answer but I was out of office till now.
The functuin module RH_INSERT_INFTY is not working because he doesn't fill the infotype.
Here you can see my coding:
CALL FUNCTION 'RH_INSERT_INFTY'
EXPORTING
* FCODE = 'INSE'
vtask = 'S'
* ORDER_FLG = 'X'
* COMMIT_FLG = 'X'
* AUTHY = 'X'
* PPPAR_IMP =
* OLD_TABNR = ' '
* REPID = ' '
* FORM = ' '
* KEEP_LUPD =
* WORKF_ACTV = 'X'
tables
innnn = it_p9400
* ILFCODE =
* EXCEPTIONS
* NO_AUTHORIZATION = 1
* ERROR_DURING_INSERT = 2
* REPID_FORM_INITIAL = 3
* CORR_EXIT = 4
* BEGDA_GREATER_ENDDA = 5
* OTHERS = 6
After the function call I get sy-subrc = 0. But it doesn't working.
In internal table I have all Information for this infotype.
What's could be the problem?
Thank you in advance!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
why does RH_INSERT_INFTY not work?
You could try HR_ECM_INSERT_INFOTYPE
note that you have to enqueue/dequeu the object
and to write changes to database you have to call
HR_ECM_FLUSH_INFOTYPE
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
6 | |
3 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.