cancel
Showing results for 
Search instead for 
Did you mean: 

Transfer routine doubt?

Former Member
0 Kudos

In the below mentioned code where the XYZ is there whether there should by infobject name or any other please explain me

RESULT = TRAN_STRUCTURE-/BIC/XYZ

len = strlen( RESULT ).

result1 = RESULT.

translate RESULT to UPPER CASE.

translate RESULT1 to UPPER CASE.

select single ALLOWCHAR from RSALLOWedchar into check.

clear : special, N.

if RESULT1 is not initial.

do len times.

if check NA result1+n(1).

special = result1+n(1).

if special ne space.

REPLACE ALL OCCURRENCES OF special IN RESULT WITH space.

condense RESULT.

endif.

endif.

n = n + 1.

enddo.

endif.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

well simply the code eliminates not allowed characters in a field of type character. XYZ can be replaces by any other variable, transferstructure field of type char.

regards

Siggi

Answers (1)

Answers (1)

Former Member
0 Kudos

Since you are using String function, XYZ has to be an infoobject which must be present in the tRansfer Structure, of tyoe Char.

Thanks...

Shambhu