‎2008 Dec 05 9:31 AM
Hello,
In my selection-screen I'm asking for a project definition like this:
parameter pa_proj like proj-pspid obligatoryThe problem is that I want to check the values of an excel file against this parameter, but they have different formats.
eg. in Excel file: DBR-05/029
in SE11 for proj-pspid: DBR0502900
How to make the conversion between these 2 formats so I can compare the values?
thanks
‎2008 Dec 05 9:57 AM
Hi,
Please use the following two conversion exits before comparing the data
CONVERSION_EXIT_ABPSN_INPUT - to convert to Internal format ( eg 00012435 )
CONVERSION_EXIT_ABPSN_OUTPUT - to convert to output format ( eg 1CNA/EFR )
Hope this helps,
Raj
‎2008 Dec 05 9:33 AM
‎2008 Dec 05 9:45 AM
Hello,
Thanks for your answer.
I tried both CONVERSION_EXIT_ABPSP_INPUT and CONVERSION_EXIT_ABPSP_OUTPUT, but none of them did what I want to have...
Anyone other ideas?
Regards
‎2008 Dec 05 9:51 AM
The conversion-exts mentioned by you are the right ones. They should ideally do the trick.
In SE11 if you give the input as DBR-05/029 you would get record who's PSPID is DBR0502900.
Please check in debugging if the pspid is being properly converted to the required format and you are displaying the right output.
pk
‎2008 Dec 05 9:56 AM
I tried this:
data: lv_projectdef like proj-pspid.
CALL FUNCTION 'CONVERSION_EXIT_ABPSP_OUTPUT'
EXPORTING
INPUT = wa_record-projectdef
IMPORTING
OUTPUT = lv_projectdef.But it gives a runtime error:
Unable to interpret "DBR-05/029" as a number.
‎2008 Dec 05 9:58 AM
how did you define lv_projectdef ?
Is it a char field? My guess is that you defined it as I.
pk
‎2008 Dec 05 9:44 AM
‎2008 Dec 05 9:48 AM
Hello,
I tried this FM, but it gives a runtime error:
The function module (conversion_exit_pspid_output) is not active or contains no code.
Regards
‎2008 Dec 05 9:57 AM
Hello
I tried this FM, but it gives a runtime error:
The function module (conversion_exit_pspid_output) is not active or contains no code.
It mean that does not occur conversion when writing in table.
So, you need manually convert data.
‎2008 Dec 05 9:57 AM
Hi,
Please use the following two conversion exits before comparing the data
CONVERSION_EXIT_ABPSN_INPUT - to convert to Internal format ( eg 00012435 )
CONVERSION_EXIT_ABPSN_OUTPUT - to convert to output format ( eg 1CNA/EFR )
Hope this helps,
Raj
‎2008 Dec 05 10:04 AM
Thanks a lot!
This one worked: CONVERSION_EXIT_ABPSN_INPUT
Regards
‎2008 Dec 05 10:14 AM
Visually theres very little difference between CONVERSION_EXIT_ABPSP_OUTPUT and CONVERSION_EXIT_ABPSN_INPUT, which made me overlook this in your first reply
Anyways you could get this Conversion Exit by double-clicking on the Data Element and under Defnition Tab in Domain you can find the Conversion Routine Value "ABPSN". Double clicking this, would take you to the FM.
pk
‎2008 Dec 05 10:25 AM
Thanks for the very helpful tip!
I didn't know about that one...
Regards