Go Back   Wiki NewForum > Career Forum > Tech Forum & Tutorial > SAP Forum > SAP HR Forum

Sponsored Links

SAP HR Forum Payroll, Time, PA, PD, OM, PCR & Schema, Time Evaluation, Recruitment, Performance Appraisal, Compensation, Benefits & More

Click Here to see Poll Results @ Poll
Reply
Views: 805  
Thread Tools Rate Thread Display Modes
  #1  
Old 08-12-2010, 11:11 AM
bholas bholas is offline
Award Winner
 
Join Date: Apr 2010
Posts: 5,181
Default 'BAPI_HRMASTER_SAVE_REPL_MULT -issue with multiple profiles

Questions

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?


Answers

resolveddmyself..

we should specify tab_ref_no in info type 1017.

Reply With Quote
Reply

New topics in SAP HR Forum


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Forum Jump


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