Posted: Wed Aug 13, 2008 1:31 pm Post subject: Structure conversion from INNNN to PXXXX
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.
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.