Skip to Content
0
Former Member
May 29, 2013 at 02:07 AM

ABAP Routine in transfer structure

100 Views

i created the following transfer routine for infoObject Zcomments. when i load the data is is give me an error.

Error:

ZCOMMENT : Data record 4 ('000060000228 '): Version 't Inspected By ' is not valid

Routine:

If TRAN_STRUCTURE-QMART = 'TP'.
if TRAN_STRUCTURE-ZZQMTXT co 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.
RESULT = TRAN_STRUCTURE-ZZQMTXT.
elseif TRAN_STRUCTURE-ZZQMTXT co '123456789'.
RESULT = ' '.
else.
RESULT = TRAN_STRUCTURE-ZZQMTXT+3.
ENDIF.
Else.
RESULT = ' '.

Please help me to fix this error.

Thanks