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

PROJ-PSPID format

Former Member
0 Likes
3,479

Hello,

In my selection-screen I'm asking for a project definition like this:

parameter pa_proj like proj-pspid obligatory

The 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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,410

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

12 REPLIES 12
Read only

Former Member
0 Likes
2,410

do a search on conversion exits for PSPID in this forum.

pk

Read only

0 Likes
2,410

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

Read only

0 Likes
2,410

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

Read only

0 Likes
2,410

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.

Read only

0 Likes
2,410

how did you define lv_projectdef ?

Is it a char field? My guess is that you defined it as I.

pk

Read only

Former Member
0 Likes
2,410

Hello

Try FM CONVERSION_EXIT_PSPID_OUTPUT

Read only

0 Likes
2,410

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

Read only

0 Likes
2,410

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.

Read only

Former Member
0 Likes
2,411

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

Read only

0 Likes
2,410

Thanks a lot!

This one worked: CONVERSION_EXIT_ABPSN_INPUT

Regards

Read only

0 Likes
2,410

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

Read only

0 Likes
2,410

Thanks for the very helpful tip!

I didn't know about that one...

Regards