Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Incorrect value getting fetched

Hi in my requirement I want to fetch the wbs element based on the prefixed placed in it .I have coded as follows for one part

check gw_auak-objnr CA 'PR'.

SELECT pspnr FROM prps INTO TABLE gi_prps WHERE objnr =

gw_auak-objnr.

Here the value is getting fetched incorrectely in gi_prps table ie)if the value is PR000041 only the value 000041 is coming .I want the prefix PR also how to do.Please help

Tags:
Former Member
Former Member replied

here you are selecting only pspnr from prps.

so only you are getting value as 000041.

use,

SELECT objnr pspnr FROM prps INTO TABLE gi_prps WHERE objnr = gw_auak-objnr.

objnr will have PR000041...

check in SE16 for table PRPS what values are been stored for various fields...

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question