2007 Mar 20 6:48 AM
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
2007 Mar 20 7:33 AM
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.
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
2007 Mar 20 7:18 AM
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
2007 Mar 20 7:33 AM
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.
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |