Quantcast
Channel: SCN : Unanswered Discussions - ABAP Development
Viewing all articles
Browse latest Browse all 8768

Data Type Mismatch | length and conversion problem

$
0
0

There is problem in enhancing standard extractor. The problem is of data type length mismatch. Here the field OBJECTID is of char90 and EBELN is of char 10 and it is required to do "for all entries" and compare these two fields.

Data declaration is as follows:

DATA: BEGIN OF I_CDPOS OCCURS 0,

       OBJECTID LIKE CDPOS-OBJECTID ,

       CHANGENR TYPE CDCHANGENR,

       TABNAME TYPE TABNAME,

       FNAME TYPE FIELDNAME,

       VALUE_NEW TYPE CDFLDVALN,

       END OF I_CDPOS.


DATA : L_S_MC02M_0ITM LIKE MC02M_0ITM,

        C_T_DATA_COP TYPE STANDARD TABLE OF MC02M_0ITM.


Select query is as follows:

SELECT  OBJECTID

               CHANGENR

               TABNAME

               FNAME

               VALUE_NEW

               FROM CDPOS

               INTO CORRESPONDING FIELDS OF TABLE I_CDPOS

               FOR ALL ENTRIES IN C_T_DATA_COP

               WHERE OBJECTID = C_T_DATA_COP-EBELN.

 

Please tell me how these field length can be converted.

 

Thanks and regars,

Irish


Viewing all articles
Browse latest Browse all 8768

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>