‎2007 May 21 3:13 PM
Hi all ,
I declared function module import and export parameters type of XSTRING .
Here is my code
SELECT SINGLE * FROM marc INTO t_marc WHERE matnr = material.
materila declared as XSTRING . material existed in marc table but always after this statement sy-subrc = '4'
is this due to xsting ? what i have to do when i declare a variable as x string?
‎2007 May 21 3:18 PM
Is the material number appended with leading zeroes??
or conver XSTRING to STRING using FM HR_KR_XSTRING_TO_STRING
and then use CONVERSION_EXIT_ALPHA_INPUT to get the leading zeroes and then pass that to select statement
‎2007 May 21 3:36 PM
Material number not appended with leading zeors . This is the marterial number 122657-00A but its taking 122657. I don't know why its not taking -00A.
‎2007 May 21 7:53 PM
why do you want to have the parameter as type xstring?
change the type of material from xstring to mara-matnr.
xstring is for holdng binary string.