Skip to Content
avatar image
Former Member

customer infotype object type o - function module

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Feb 17, 2017 at 01:27 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 22, 2017 at 08:24 AM

    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!

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 22, 2017 at 09:36 AM

    Now I have fixed this Problem.

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

    Thank you for your help!!!

    Add comment
    10|10000 characters needed characters exceeded