Skip to Content

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

ABAP code in transformation

Hello,

I have a transformation routine as follows:

DATA:l_lifnr1 TYPE /BI0/MBATCH-VENDOR,

l_greybatch TYPE /BI0/MBATCH-BATCH,

oref TYPE REF TO cx_root,

l_num type i,

l_len type i,

l_len1(2) type c.

l_len = strlen( SOURCE_FIELDS-/BIC/ZBAT_SUP ).

l_len1 = ( l_len - 1 ).

try.

concatenate SOURCE_FIELDS-/BIC/ZBAT_SUP+0(l_len1) 'G' into

l_greybatch.

catch CX_SY_CONVERSION_NO_NUMBER INTO oref.

ENDTRY.

=============

this transformation is between a infosource and infoobject. When i run the DTP, it gives an error at the line "concatenate SOURCE_FIELDS-/BIC/ZBAT_SUP+0(l_len1) 'G' into l_greybatch."

This -/BIC/ZBAT_SUP is calculated using a routine in the transformation between the datasource and the infosource. The same DTP is used for both load across both these transformations.

what is wrong? any suggestions?

Former Member

Helpful Answer

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