* Through this document, we can come to know that through Function Module we can create an OM objects like Organizational Unit, Position, Jobs.

* Through this we can maintain following infotypes likes 1000, 1001, 1002….

 

&———————————————————————*
*&     Form  CREATE_ORGANIZATIONAL_UNIT
*&———————————————————————*
*       Create an Organizational Unit…
*———————————————————————-*

  DATA : lc_inse   TYPE okcode VALUE ‘INSE’,

         lc_vtask TYPE  vtask   VALUE ‘D’.

  CALL FUNCTION ‘RH_INSERT_INFTY’

    EXPORTING

      fcode               = lc_inse

      vtask               = lc_vtask

      authy               = space

      commit_flg          = c_x        ” ‘X’

    TABLES

      innnn               = pt_table   ” Here we can pass the Infotypes 1000, 1001…

    EXCEPTIONS

      no_authorization    = 1

      error_during_insert = 2

      repid_form_initial  = 3

      corr_exit           = 4

      begda_greater_endda = 5

      OTHERS              = 6.

  IF sy-subrc <> 0.

    EXIT.

  ENDIF.

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply