on 10-01-2008 12:53 PM
Hi All,
What is the difference between P structure and PS structure.Normally in the macros every one will use P structure along with the begda and endda.So what is the main difference.If possible with sample code.
Thanks in advance..
Regards,
Rakesh.
PS Structure is common for all the infotype
It holds ths standard fields
Pstructure is variable structure.
These fields vary from infotype to infotype
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rakesh,
The Data Dictionary contains a Pnnnn structure for each infotype nnnn.
The infotype structure Pnnnn corresponds to the table PAnnnn. However, the client, for example,
is missing, therefore the infotype number is retained.
The infotype is defined in the Data Dictionary as a structure without a database.
The Pnnnn structure of the infotype is used as the field structure for the infotype entry screen.
When you declare an infotype using the INFOTYPES statement, an internal table Pnnnn with the
structure Pnnnn is created and all records of the infotype are transferred to this table:
DATA BEGIN OF Pnnnn OCCURS 10.
INCLUDE STRUCTURE Pnnnn.
DATA END OF Pnnnn VALID BETWEEN BEGDA AND ENDDA.
The infotype records can be processed using the infotype structure when the report is run.
PSNNNN.
Each infotype includes data fields that are only stored within that particular infotype. The fields are required when the infotypeu2019s data structures and database tables are defined. The data fields are grouped together in structure PSnnnn to keep the definition as free of redundancy as possible. Structure PSnnnn can then be used as a substructure when further structures and tables are defined in the Data Dictionary.
Thanks & Regards,
Shiva vs.
User | Count |
---|---|
88 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.