Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Internal Representation of RSSELDONE~LNR

The field RSSELDONELNR references the system data element RSNRCHAR which is CHAR10. When I try to use this field in a WHERE clause, the only success I have had so far is to code WHERE rsseldonelnr = "%1" which of course will return any row where this field ends with a "1". What I really want is only the rows where it's <b>exactly</b> equal to "1", but I need the proper syntax for this. I have tried "1", "_________1", "0000000001", and " 1" but they all return zero rows, sy-subrc=4.

Tags:
Former Member
Former Member replied

Hi,

u have to convert the number into char by appending zero before it .

that is

lv_char10 type char 10.

Steps required are

1) lv_char10 = 1.

2) use FM CONVERSION_EXIT_ALPHA_INPUT

INPUT = lv_char10

OUTPUT = lv_char10.

it will convert

1-------> 0000000001

if it is

12-----> 0000000012

1212---> 0000001212

it is possible for any number.

Number of zero appended is equal to empty space in the variable.

in our case 9 zero where appended.

if it is char20 then 19 zeros will be appended.

Mark Helpfull answers

Regards

Message was edited by: Manoj Gupta

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question