Application Development and Automation 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: 
Read only

loading infotype table

Former Member
0 Likes
344

Hello,

May I know how can I load an infotype table at the initialization stage and read it later on using the READ TABLE statement? I would appreciate if someone could offer me an example on this. Thanks!

Anyi

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
312

Sure, you can just do a fetch.


data: ipa0001 type table of pa0001 with header line.

initialization.

select * into table ipa0001 from pa0001.

Then you can read it later....



read table ipa0001 with key pernr = p_pernr.


Regards,

Rich Heilman

1 REPLY 1
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
313

Sure, you can just do a fetch.


data: ipa0001 type table of pa0001 with header line.

initialization.

select * into table ipa0001 from pa0001.

Then you can read it later....



read table ipa0001 with key pernr = p_pernr.


Regards,

Rich Heilman