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_ABPSP_OUTPUT

Former Member
0 Likes
1,259

Hi,

In bapi we required wbs element for employees,we got the same from hrt1018-posnr.

data element used is PS_POSNR which has Convers. Routine .

bapi when called from other non sap application doesnot return proper value.

hence we used CONVERSION_EXIT_ABPSP_OUTPUT to resolve the problem.

required value : MLTD-000009

but now we are getting only 000009

initial data type was numc length 8 hence we created a new data element with char 24 length.

after activating ther o/p structure , we are getting error

BAPI-structure: invalid change: length of field WBS was changed

How to resolve the above issue?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
969

Hi,

If you are exporting the value of WBS element from the FM then keep the parameter of length 24 only.

Get the value of hrt1018-posnr into a variable of type PS_PSP_PNR. Then use the conversion exit 'CONVERSION_EXIT_ABPSP_OUTPUT' and pass the value into the exporting parameter.

Regards,

Ankur Parab

Hi,

If you are exporting the value of WBS element from the FM then keep the parameter of length 24 only.

Get the value of hrt1018-posnr into a variable of type PS_PSP_PNR. Then use the conversion exit 'CONVERSION_EXIT_ABPSP_OUTPUT' and pass the value into the exporting parameter.

Regards,

Ankur Parab

1 REPLY 1
Read only

Former Member
0 Likes
970

Hi,

If you are exporting the value of WBS element from the FM then keep the parameter of length 24 only.

Get the value of hrt1018-posnr into a variable of type PS_PSP_PNR. Then use the conversion exit 'CONVERSION_EXIT_ABPSP_OUTPUT' and pass the value into the exporting parameter.

Regards,

Ankur Parab