HI EXPERTS,
I AM CREATED one BDC FOR IT 0008 BASIC PAY in COPY MODE,MY flat file structure contains like below
types : begin of ty_tab,
pernr type char8,
begda type char8,
endda type char8,
lgart3 type char4, " WAGE TYPE
betrg3 type char13, " Wage Type Amount for Payments
end of ty_tab.
in COPY MODE IT IS Creating record in 3 rd row of basic pay table,because in my recording declared fields like
THIRD RECORD
perform bdc_field using 'Q0008-LGART(03)' it_tab-lgart3.
perform bdc_field using 'Q0008-BETRG(03)' it_tab-betrg3 .
IT IS CREATING record for all PERNR 3 RD ROW,MY PROBLEM IS SOME employess already having more than 2 wages
type records in basic pay table ,in that case my code over writing existing third record inserting new wage type and amount
in that third row in table.
MY REQUIREMENT IS IN COPY MODE IT CREATING NEW RECORD ONLY EMPTY ROW PLACE with out disturbing
the existing WAGE TYPE RECORD.
please any body let me know the solution for this handling this record ,give me the reply.
thanks and regards,
M.gopal