* 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 |