10-08-2007 7:50 AM
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
10-08-2007 8: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
10-08-2007 8: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.
10-08-2007 9: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^
02-23-2015 8: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?