Enterprise Resource Planning Blogs by Members
Gain new perspectives and knowledge about enterprise resource planning in blog posts from community members. Share your own comments and ERP insights today!
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member
0 Kudos

* 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.

Labels in this area