Technical Articles
How to fetch the data from a PE03 feature
-
- Find the feature in PE03.
Go to transaction PE03 in sap t code and identify the feature you would want to use. For this document purpose we would try to use the feature NUMKR. - Click on attributed in the subobject and click on change. Once that is done, we would see the next screen
- Click on Struct. Button as shown above. Once you click on the button the next screen shows up. Please look at the highlighted box.
- Find the feature in PE03.
- This structure could change for every other feature, there are few features which would use the similar structure .
- To fetch the data from this feature you can use the function module : “HR_FEATURE_BACKFIELD” . The problem with this is – we can not run this function module in tcode se37 since this FM would expect a structure we need a simple report to use this.
- Sample abap report –
"create structure type data lt_pm01 type pme01. data lt_pa0001 type p0001. data lv_value type string . "move the data from pa0001 to lv_pm01. select single * from pa0001 into lt_pa0001 where pernr = '8960' . MOVE-CORRESPONDING lt_pa0001 to lt_pm01. CALL FUNCTION 'HR_FEATURE_BACKFIELD' EXPORTING FEATURE = 'NUMKR' STRUC_CONTENT = lt_pm01 * KIND_OF_ERROR = IMPORTING BACK = lv_value . . IF SY-SUBRC eq 0. * Implement suitable error handling here write :/ lv_value . ENDIF.
Be the first to leave a comment
You must be Logged on to comment or reply to a post.