Application Development and Automation 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: 
Read only

PRPS-PSPHI

Former Member
0 Likes
4,363

Dear All,

I want to get data from PRPS-PSPHI

its coming but my problem is in the table

i put W_190000-0 for prps-posid

and prps-psphi value is KTAI-0001B

there unconverted value is 00000656

in the select statment its comming only unconverted value (00000656) i want only value (KTAI-0001B)

please give some hint to solve this problem

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,460

Use the following conversion routines for conversion.

CONVERSION_EXIT_KONPD_INPUT

CONVERSION_EXIT_KONPD_OUTPUT

Mark full points if successfull.

Else reply back with your problem.

Thanks and regards,

Veerendrnath Maddula.

4 REPLIES 4
Read only

Former Member
0 Likes
2,460

Hi Nelson

w_posid like prps-posid value '9659100'

w_posid_c(24)

w_pspnr2 like prps-pspnr

write w_posid

9659100

write w_posid to w_posid_c

9659100

write w_posid t o w_pspnr2

<<<PR9659100 >>> (If this had been PR00009101 it would have been useful. )

KONPR (conversion exit for domain PS_POSNR)

This is very useful. It converts the internal number to the external number. Show what happens when move is used instead of write.

w_pspnr like prps-pspnr value '00009101'

w_pspnr_c(8)

write w_pspnr

9659100

write w_pspnr to w_pspnr_c

9659100

w_objnr like prps-objnr (none) value PR00009101

w_psphi like prps-psphi (KONPD) value 00004626 (9319000)

write w_objnr

PR00009101

write w_psphi

9319000

write w_objnr to w_objnr_c

PR00009101

write w_psphi to w_psphi_c

9319000

w_objnr_c(22)

w_psphi_c(8)

reward points to all helpful answers

kiran.M

Read only

Former Member
0 Likes
2,461

Use the following conversion routines for conversion.

CONVERSION_EXIT_KONPD_INPUT

CONVERSION_EXIT_KONPD_OUTPUT

Mark full points if successfull.

Else reply back with your problem.

Thanks and regards,

Veerendrnath Maddula.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,460

You need to convert Project id from internal to external, there are some ways to do it

- Write PRPS-PSPHI to a char field

- Use CONVERSION_EXIT_KONPD_OUTPUT to convert into external format

(These two are in fact the same way)

- Read table PROJ joined with PRPS and use PROJ~PSPID.

Regards

Read only

0 Likes
2,460

i had try dear but still same the problem