cancel
Showing results for 
Search instead for 
Did you mean: 

customer infotype object type o - function module

walda86
Explorer
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

walda86
Explorer
0 Kudos

Now I have fixed this Problem.

If i use VTASK = 'V' then it's working.

Thank you for your help!!!

walda86
Explorer
0 Kudos

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!

former_member226519
Active Contributor
0 Kudos

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