Skip to Content

Problem in passing a value to FM

Oct 30, 2017 at 04:05 PM


avatar image
Former Member

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)
10 |10000 characters needed characters left characters exceeded

We don't have this FM but does checking the respective definitions in the data dictionary not solve this issue? Are you not using the same data type as in the FM definition?

Not sure I understand what exactly is the predicament...

Former Member

Thanks for your reply. I am using the exact datatype as in table, but don't know why it is not accepting it.


Show your code snippet then, with just the relevant details


Is your question simply how to convert the characters 0000000000000000020 into 020 right aligned ?

* Please Login or Register to Answer, Follow or Comment.

0 Answers