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

Conversion Exit For IMZO-POSNR

Former Member
0 Likes
2,417

Hi All,

Please help me in finding the CONVERSION EXIT for IMZO-POSNR.

I have tried:

CONVERSION_EXIT_POSNR_INPUT

CONVERSION_EXIT_POSNR_OUTPUT

CONVERSION_EXIT_POSID_INPUT

CONVERSION_EXIT_POSID_OUTPUT

CONVERSION_EXIT_PROJN_INPUT

CONVERSION_EXIT_PROJN_OUTPUT

CONVERSION_EXIT_PSPID_OUTPUT

but, none of them worked.

IMZO-POSNR is of NUMC(8).

Table contents are displayed as:


MANDT          POSNR                         OBJNR                    

 240         WLN INR COR                IQ100000000013    

With conversion exit, it is displaying as:


MANDT          POSNR                         OBJNR                    

 240             00000013               IQ100000000013    

Thanks In Advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,591

Hi Ajoy,

The domain has conversion routine POSNR and it is recommended to use CONVERSION_EXIT_POSNR_INPUT and CONVERSION_EXIT_POSNR_OUTPUT.

When I checked the code for the input function module, there was only output = input.

What you could do is,

Hope it helps.

Sujay

5 REPLIES 5
Read only

Former Member
0 Likes
1,591

Hi,

CONVERSION_EXIT_POSNR_INPUT

CONVERSION_EXIT_POSNR_OUTPUT

are correct. One of them should work when calles correctly!

Regards

Klaus

Read only

0 Likes
1,591

I have already tried to use it (please find the code).

Entered ACTIVITY_TYPE = WLS EXP CAP COR.

lv_act_type is blank!



DATA lv_act_type(8) TYPE n.

CALL FUNCTION 'CONVERSION_EXIT_POSNR_INPUT'
  EXPORTING
    input         = activity_type
 IMPORTING
   OUTPUT    = lv_act_type.

Read only

0 Likes
1,591

Thanks a lot Sujay. It has solved the problem.

Can you please share the approach (how did you reach at IMPR table.

Read only

0 Likes
1,591

Hi,

The code to get the output value was in CONVERSION_EXIT_POSNR_OUTPUT. In that

l_posnr = input.

select posid into (l_posid) from impr

where posnr eq l_posnr.

endselect.

It's the reverse for the input.

Sujay

Read only

Former Member
0 Likes
1,592

Hi Ajoy,

The domain has conversion routine POSNR and it is recommended to use CONVERSION_EXIT_POSNR_INPUT and CONVERSION_EXIT_POSNR_OUTPUT.

When I checked the code for the input function module, there was only output = input.

What you could do is,

Hope it helps.

Sujay