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

Xstring

Former Member
0 Likes
605

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?

3 REPLIES 3
Read only

Former Member
0 Likes
517

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

Read only

0 Likes
517

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.

Read only

athavanraja
Active Contributor
0 Likes
517

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.