cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between P structure and PS structure

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Tek,

If possible can you explain it with some example plz....

Regards,

Rakesh.

Former Member
0 Kudos

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.