‎2006 Nov 15 11:24 AM
Hello everybody!!
I am working with table PROJ, and I would like to get the OBJNR field.
The problem is that in transaction se11 I fill the field PSPNR with a short description of the project (eg. PA/0166), but when the system finds the entry in the table the field PSPNR has another value (00000303). So, in my program by using the short description I am not able to find the corresponding entry in the table.
Can anybody help me?
Thank you very much.
‎2006 Nov 15 11:28 AM
Hi Reyes,
The field PSPNR has converion routine.
YOu need to use the following function modules.
CONVERSION_EXIT_KONPD_INPUT : To get Internal Value (00000303)
CONVERSION_EXIT_KONPD_OUTPUT : To Get external Value (PA/0166)
Thanks
Ramakrishna
‎2006 Nov 15 11:27 AM
There is a conversion routine 'KONPD' for the domain PS_PSPNR.
This uses the two FM's
CONVERSION_EXIT_KONPD_INPUT
CONVERSION_EXIT_KONPD_OUTPUT
Use these to convert your values.
‎2006 Nov 15 11:57 AM
‎2006 Nov 15 11:28 AM
Hi Reyes,
The field PSPNR has converion routine.
YOu need to use the following function modules.
CONVERSION_EXIT_KONPD_INPUT : To get Internal Value (00000303)
CONVERSION_EXIT_KONPD_OUTPUT : To Get external Value (PA/0166)
Thanks
Ramakrishna
‎2006 Nov 15 11:58 AM
‎2006 Nov 15 12:00 PM
Hi Rayes,
Martin posted the answer first. So Martin should be awarded with full points.
You may award helpful/very helpful for me as per your wish.
Thanks
Ramakrishna
‎2006 Nov 15 11:43 AM
Hi Reyes,
As per my understanding do you want to fetch pspnr of a shirt descrpition,
If this is the case pass that value to field PSPID of the table PROJ and get pspnr.
Reward Points if it is helpful.
Regs,
Kiran I
‎2006 Nov 15 11:49 AM
Hello,
If u want get the value from proj u need to pass the project number to the PSPID field. If u want to pass the PSPNR then use the conversion exit fm before the SQL.
CONVERSION_EXIT_KONPD_INPUT
CONVERSION_EXIT_KONPD_OUTPUT
If useful reward.
Vasanth