SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

Structure conversion from INNNN to PXXXX



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> HR
View previous topic :: View next topic  
Author Message
admin
Администратор
Администратор



Joined: 01 Sep 2007
Posts: 1639

PostPosted: Wed Aug 13, 2008 1:31 pm    Post subject: Structure conversion from INNNN to PXXXX Reply with quote

In human resource, information contained in infotypes are mainly stored in structures such as "prelp."

They are often reported as follows:
Code:
INNNN LIKE PRELP STRUCTURE PRELP


But to access the values contained in the fields of each infotype, it is nécesaire to work with structures or types PXXXX XXXX is the number of the infotype.

Here is the code to do the transformation:

Code:
FIELD-SYMBOLS: <fs_p0008> TYPE ANY.
DATA: i0008 LIKE p0008.
 
 *   Transformation de la structure INNNN en p0008
ASSIGN ('INNNN') TO <fs_p0008> CASTING TYPE p0008.
CHECK sy-subrc = 0.
MOVE <fs_p0008> TO i0008.

Source: http: //lyriance-labs.com/sap/dev/dev-hr/115-sap-dev-hr-some-usefull-codes/114-sap-dev-hr-structure-conversion-from-innnn-to-pxxxx
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> HR All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.