ABAP code in transformation
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 ).
concatenate SOURCE_FIELDS-/BIC/ZBAT_SUP+0(l_len1) 'G' into
catch CX_SY_CONVERSION_NO_NUMBER INTO oref.
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?