Wednesday, July 31, 2013
FM RH_OBJECT_CREATE is used to create Objects used in HR. Once object is created, record will be available in HRP1000 table.

CALL FUNCTION 'RH_OBJECT_CREATE'
  EXPORTING
    LANGU               = SY-LANGU
    PLVAR               = '01'
    OTYPE               = 'QK'
    SHORT               = 'OVH Qual1'
    STEXT               = 'OVH Qual1'
    BEGDA               = '19000101'
    ENDDA               = '99990101'
    OSTAT               = '1'
    VTASK               = 'D'
  IMPORTING
    OBJID               = LV_OBJID
  EXCEPTIONS
    TEXT_REQUIRED       = 1
    INVALID_OTYPE       = 2
    INVALID_DATE        = 3
    ERROR_DURING_INSERT = 4
    ERROR_EXT_NUMBER    = 5
    UNDEFINED           = 6
    OTHERS              = 7.
FM RH_OBJECT_DELETE is used to delete objects in HR.
 CALL FUNCTION 'RH_OBJECT_DELETE'
       EXPORTING
            PLVAR              = PLVAR
            OTYPE              = $CPATH
            OBJID              = OBJID
*           STATUS             = '1'
            GDATE              = GDATE
            VTASK              = VTASK
       IMPORTING
            DEL_STEXT          = STEXT
       EXCEPTIONS
            NO_AUTHORIZATION   = 1
            OBJECT_NOT_FOUND   = 2
            OBJECT_NOT_DELETED = 3
            GDATE_BEFORE_BEGDA = 4
            WRONG_DATE_FORMAT  = 5
            HISTORICIZED       = 6
            OBJECT_ENQUEUED    = 7
            UNDEFINED          = 8
            OTHERS             = 9.

0 comments:

Post a Comment

Your useful comments, suggestions are appreciated.Your comments are moderated.

Followers

Contact Form

Name

Email *

Message *

Web Dynpro ABAP Book

An SAP Consultant

Follow US


Want to Contribute ?

If you are interested in writing about the new stuff you learn everyday while working, please write to the.sap.consultants@gmail.com.

Click on Contribution for more details.