Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with PSPNR

Former Member
0 Kudos

Hi,

I am retrieving PSPNR from PRS table in my ITAB. when i see the entry in the PRPS for PSPNR it is displayed as ANT00012.1.2. however in my itab it is stored as 00001007.

I am comparing this PSPNR with BSEG-PROJK and retrieving PSWBT. However internal table is passing 00001007 for ANT00012.1.2. Even though there is a entry in the BSEG for this, the data is not selected.

Do i need to use some conversion routines or any function modules to convert the values....

Please help me.

2 REPLIES 2

Sougata
Active Contributor
0 Kudos

Hi Alexandar,

Yes, you do indeed need to use a conversion routine to convert the PSPNR from the internal format to external format.

Use Function Module <b>CONVERSION_EXIT_ABPSP_OUTPUT</b> and pass your internal table PSPNR field (value 00001007) to convert it into the external format (ANT00012). Then after the conversion you can carry on doing subsequent Selects as per your requirement.

Hope this helps,

Cheers,

Sougata.

<b>Where are my points champ??</b>

Message was edited by:

Sougata Chatterjee

Former Member
0 Kudos

Hi Alexander,

Pass PSPHI instead of PSPNR, your problem will get solved.

Reward points if it helps,

Satish