04-16-2008 7:51 AM
Hi,
I created custom infotype with table control,If i enter values in tab control and press save,I want it be saved in pa table(repeat str).how to do it? if u hav idea help me.
Regards,
Suchithra.
04-16-2008 8:54 AM
Hi Suchitra, give the table control internal table structure and which table u want to update in PA. how do u want to update those tables ? using UPDATE statement or through BDC like ? There are many repetitive structure tables in HR like PA0008 and PA0041.. Which one u want to update ? Regards, Venkat.O
04-16-2008 9:16 AM
Hi Venkat,
Thanks for the reply.I am creating 9100 infotype..i want to update pa9100.
04-16-2008 9:21 AM
Hi,
1. assuming that you have the repeat
structure in your PA* table
2. then something like this :
*----- Then Populate from IT
DO bunch TIMES
VARYING pilot-fatanum FROM p9004-fatanum01 NEXT p9004-fatanum02
VARYING pilot-fatafrom FROM p9004-fatafrom01 NEXT p9004-fatafrom02
VARYING pilot-fatato FROM p9004-fatato01 NEXT p9004-fatato02.
myindex = sy-index.
READ TABLE pilot_ver INDEX myindex.
IF sy-subrc = 0.
pilot-fatanum = pilot_ver-fatanum.
pilot-fatafrom = pilot_ver-fatafrom.
pilot-fatato = pilot_ver-fatato.
ENDIF.
ENDDO
regards,
amit m.