Skip to Content
avatar image
Former Member

ABAP Sample code for HR_MAINTAIN_MASTERDATA

Hi folks,

I want to delimit a record in the HR master Table wi the help of Function Module HR_MAINTAIN_MASTERDATA, but its not updating HR master table correctly so please send me some sample code for that function module.

usefull points will rewarded.

Reg,

Hariharan

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Oct 08, 2007 at 07:00 AM

    call function 'HR_MAINTAIN_MASTERDATA'

    exporting

    pernr = pernr

    MASSN = massn

    actio = actio

    TCLAS = tclas

    begda = begda

    endda = endda

    OBJPS = objps

    SEQNR = seqnr

    SPRPS = sprps

    subty = subty

    WERKS =

    PERSG =

    PERSK =

    PLANS =

    dialog_mode = '0'

    luw_mode = '0'

    NO_EXISTENCE_CHECK = ' '

    NO_ENQUEUE = ' '

    importing

    return = l_return

    return1 = l_return1

    HR_RETURN =

    tables

    proposed_values = li_pprop.

    MODIFIED_KEYS =

    endfunction.

    Check this Reprot for the Usage - RPLAPL00

    Please check standard program RPLAPL00 for sample code on how to use FM HR_MAINTAIN_MASTERDATA.

    Please give me reward point If it is useful

    Thanks

    Murali Poli

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 08, 2007 at 07:03 AM

    Hi,

    CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'

    EXPORTING

    PERNR = NUMBER(personal Number)

    ACTIO = OPERATION (INS or COP or DEL)

    TCLAS = TCLAS ('B')

    BEGDA = VALIDITYBEGIN (Begin Date)

    ENDDA = VALIDITYEND (End date)

    DIALOG_MODE = DIALOG_MODE (1 or 0-foreground or Background)

    NO_ENQUEUE = 'X'

    IMPORTING

    RETURN1 = RETURN

    TABLES

    PROPOSED_VALUES = PROPOSED_VALUES (p0006 Structure value-Nothing But IT 6 record)

    EXCEPTIONS

    OTHERS = 0.

    Thanks,

    Reward If Helpful.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 08, 2007 at 08:41 AM

    hi

    good

    check with this code

    • Call update function module:

    CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'

    EXPORTING

    PERNR = SS300_0001T-PERNR

    ACTIO = OPERATION

    BEGDA = VALIDITYBEGIN

    ENDDA = '99991231'

    SUBTY = SPACE

    NO_ENQUEUE = SPACE

    IMPORTING

    RETURN1 = RETURN

    TABLES

    PROPOSED_VALUES = VALUES

    • MODIFIED_KEYS =

    EXCEPTIONS

    OTHERS = 1.

    IF RETURN IS INITIAL.

    CONCATENATE SS300_0002-VORNA SS300_0002-NACHN

    INTO ENAME SEPARATED BY SPACE.

    CONDENSE ENAME.

    MESSAGE S006 WITH ENAME SPACE.

    ELSE.

    MESSAGE ID RETURN-ID

    TYPE 'S'

    NUMBER RETURN-NUMBER

    WITH RETURN-MESSAGE_V1 RETURN-MESSAGE_V2

    RETURN-MESSAGE_V3 RETURN-MESSAGE_V4.

    ENDIF.

    http://help.sap.com/saphelp_nw04/helpdata/en/f1/0ce464dc8b11d2803800c04f99fbf0/content.htm

    reward point if helpful.

    thanks

    mrutyun^

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 23, 2015 at 08:19 AM

    Will the same work for deleting the Set of actions in PA40? If not, can anyone suggest the same?

    Which FM or BAPI would be better to delete the records in a set of Infotypes based on the Action Type?

    Add comment
    10|10000 characters needed characters exceeded