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

Displaying wrong value from numeric field

Former Member
0 Likes
1,198

Hi,

I am using a FM MMPUR_EKKN_READ_EBELN to retireve some data related service entry sheet. While executing this FM from SE37 it is showing correct WBS(I.0002.0003-175). when I am calling the same FM from a program it is giving 00000298. There is no WBS element with that value.

Please give some suggetions to avoid this problem.

Thanks and Regards,

Chandra Madapati

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,040

Hi,

Use the Conversion exit related to the WBS element..

CONVERSION_EXIT_ABPSP_INPUT
 CONVERSION_EXIT_ABPSP_OUTPUT

Function module              CONVERSION_EXIT_ABPSP_OUTPUT                                                                                
Import parameters               Value                                
  INPUT                           0000298                                                                                
Export parameters               Value                                
  OUTPUT                          1-4210/3

6 REPLIES 6
Read only

Former Member
0 Likes
1,040

i think u need to pass vbeln or other variables thru CONVERSION_EXIT_ALPHA_INPUT to get exact field length..just check input fields in debugging mode..padding 0 might be missing..check data type of ur variables and of FM...

cheers

Edited by: Madan Gopal Sharma on Jul 29, 2009 10:20 AM

Read only

Former Member
0 Likes
1,040

Hi,

This seems to be due to mismatch between the variable declaration for WBS Element by you and as used in FM.

Regds,

Anil

Read only

0 Likes
1,040

Hi,

Thank you for your fast response, There is no WBS element with 0000298.

Iam passing correct EBELN value into the FM, same value in both cases.

The same thing happening for the table EKNO also while displaying from SE16 it is showing correct and in program from select statement it is giving wrong as mentioned earlier.

Thanks and Regards,

Read only

Former Member
0 Likes
1,040

Hi Chandra,

For WBS there is a conversion routine, could you check before passing to the FM have you used the conversion routine.

Read only

Former Member
0 Likes
1,041

Hi,

Use the Conversion exit related to the WBS element..

CONVERSION_EXIT_ABPSP_INPUT
 CONVERSION_EXIT_ABPSP_OUTPUT

Function module              CONVERSION_EXIT_ABPSP_OUTPUT                                                                                
Import parameters               Value                                
  INPUT                           0000298                                                                                
Export parameters               Value                                
  OUTPUT                          1-4210/3

Read only

0 Likes
1,040

Thanks a lot.