cancel
Showing results for 
Search instead for 
Did you mean: 

Routines in Transformation

Former Member
0 Kudos

Hello,

I am writing a routine in BI 7 as below

if SOURCE_FIELDS -/BIC/ZF_GCLAS = 'D'.

RESULT = 'DOM'.

else.

RESULT = SOURCE_FIELDS -/BIC/ZF_GCLAS.

endif .

I am expecting value DOM in place of D for the field ZF_GCLAS .

But i am getting only D when i execute my DTP.

Please advise me in this

Thanks in advance.

Regards

Jyosh

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

How is the field defined? It sounds like a one-byte field, and you're getting truncation.

Former Member
0 Kudos

The info object ZF_GCLAS is having lenght 4 of type CHAR

Former Member
0 Kudos

It is hard to tell by looking at it. Are you familiar with the debugger? One easy way is to hard-code a break-point. into the routine, and debug the transformation in the DTP.