Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

reg infotype with table control

Former Member
0 Kudos

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.

3 REPLIES 3

venkat_o
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Venkat,

Thanks for the reply.I am creating 9100 infotype..i want to update pa9100.

Former Member
0 Kudos

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.