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

Infotypes Decleration Statement

Former Member
0 Likes
603

Gents,

what is the use of Infotypes statement in a program e-g INFOTYPES : 0001

do this statment populate relevent infotype data into the internal table P0001 ?

if yes then how to filter the specific values based on criteria?

Thanks & Regards

Sreeni

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
481

If an Infotype is declared using this Infotypes declaration .. then at GET PERNR

event this infotype is filled for the first pernr which satisfies the selection screen

conditions.

Infotypes:0001.

Start-of-selection.

Get pernr.

  • U can read/loop the structure P0001 and get the data for one pernr

(this has data for only one pernr at any point of time)

end-of-selection.

2 REPLIES 2
Read only

Former Member
0 Likes
481

Hi,

It's like how you use TABLES statement to create an work area for that table.

Similarly if you define the INFOTYPES a defualt work area is create.

When you assign PNP LDB and declare infotypes, then only you can use the macros like

rp_provide_from_last and RP_PROVIDE_FROM FIRST etc. for that infotype, data will come into that and you can loop that structure and modify that data

loop at p0001.

endloop.

reward if useful

regards,

Anji

Read only

Former Member
0 Likes
482

If an Infotype is declared using this Infotypes declaration .. then at GET PERNR

event this infotype is filled for the first pernr which satisfies the selection screen

conditions.

Infotypes:0001.

Start-of-selection.

Get pernr.

  • U can read/loop the structure P0001 and get the data for one pernr

(this has data for only one pernr at any point of time)

end-of-selection.