Skip to Content
avatar image
Former Member

Problem in passing a value to FM

Dear Gurus,

I am using a SAP EWM FM ( /SCWM/LAGP_READ_RANGE ) and need to pass STACK value in it. In database table, the datatype of field 'STACK' is 18 Characters long. The problem is that FM is not accepting it's value as a normal string. For Example, if user enters a stack value of 20 in selection parameter, in the database table it is '000000000000000020'. If i use Fm 'CONVERSION_EXIT_ALPHA_INPUT' to convert this 20 in to desired format, the FM still does not accept it. I have checked it in debug mode and Fm is accepting this value only in this format , means first 15 characters as SPACES, 16th character as 0, and then the actual value 20 and position of value is on right side. Can anyone tell how can I convert this value in desired format?

Thanks very much.

unbenannt.jpg (8.9 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers