Go Back   Wiki NewForum | Latest Entertainment News > Career Forum & Tips > Tech Forum & Tutorial > SAP Forum > SAP HR Forum


'BAPI_HRMASTER_SAVE_REPL_MULT -issue with multiple profiles


Reply
Views: 1827  
Thread Tools Rate Thread
Payroll Time OM & PA Portal Payroll Fixes Career Tips SuccessFactors
  #1  
Old 06-29-2010, 07:36 AM
bholas bholas is offline
Award Winner
 
Join Date: Apr 2010
Posts: 4,977
Default 'BAPI_HRMASTER_SAVE_REPL_MULT -issue with multiple profiles

I am trying to insert profiles for existing position . which is usually done manually by PO13.

it works fine for single profile. but when i try to insert multiple it never gets updated. only 1 records goes in.

Let me know what i am doing wrong?

I am passing dfiffertn record numbers, sequence numer and text modes...

I am passing only 1 record for HR_OBJECT_HEADER & HR_INFOTYPE_HEADER .

move sy-mandt to wa_BAPIHR1017-client.
move '01' to wa_BAPIHR1017-plan_ver.
move p_objtyp to wa_BAPIHR1017-obj_type.
move p_objid to wa_BAPIHR1017-obj_id.
move 1017 to wa_BAPIHR1017-infotype.
move 1 to wa_BAPIHR1017-pl_status.
move sy-datum to wa_BAPIHR1017-from_date.
move '99991231' to wa_BAPIHR1017-to_date.

move 001 to wa_BAPIHR1017-it_rec_no.
move 00000001 to wa_BAPIHR1017-it_txt_mod.
move 000001 to wa_BAPIHR1017-td_seq_no.
move XYZ1 to wa_BAPIHR1017-auth_prof.
APPEND wa_BAPIHR1017 to it_BAPIHR1017.

move sy-mandt to wa_BAPIHR1017-client.
move '01' to wa_BAPIHR1017-plan_ver.
move p_objtyp to wa_BAPIHR1017-obj_type.
move p_objid to wa_BAPIHR1017-obj_id.
move 1017 to wa_BAPIHR1017-infotype.
move 1 to wa_BAPIHR1017-pl_status.
move sy-datum to wa_BAPIHR1017-from_date.
move '99991231' to wa_BAPIHR1017-to_date.

move 002 to wa_BAPIHR1017-it_rec_no.
move 00000002 to wa_BAPIHR1017-it_txt_mod.
move 000002 to wa_BAPIHR1017-td_seq_no.
move 'XYZ2' to wa_BAPIHR1017-auth_prof.

APPEND wa_BAPIHR1017 to it_BAPIHR1017.

CALL FUNCTION 'BAPI_HRMASTER_SAVE_REPL_MULT'
TABLES
HR_OBJECT_HEADER = it_bapihrobj
HR_INFOTYPE_HEADER = it_bapihrinf
PD_OBJECT_PD_PROFILES = it_bapihr1017
RETURN = it_BAPIRET2.
What am i doing wrong?

Reply With Quote
Payroll Time OM & PA Portal Payroll Fixes Career Tips SuccessFactors
  #2  
Old 06-29-2010, 07:36 AM
bholas bholas is offline
Award Winner
 
Join Date: Apr 2010
Posts: 4,977
resolveddmyself..

we should specify tab_ref_no in info type 1017.
Reply With Quote
Reply

Latest News in SAP HR Forum





Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2024, vBulletin Solutions, Inc.