Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8501

Re: How to convert one data type to another data type ?

$
0
0

 

 

 

 

Hello Suneel ,

 

Whether You tried using  Field symbols as i have Suggested, in the below Post.

 

Delare the Variable

FIELD-SYMBOLs : <FL_DAT> type any.

 

DO.

     READ DATASET p_file INTO l_data.

     IF sy-subrc = 0.

       SPLIT l_data AT cl_abap_char_utilities=>horizontal_tab  INTO wa_zdsl-mandt

                               wa_zdsl-werks

                               wa_zdsl-pallet_id

                               wa_zdsl-matnr

                               wa_zdsl-erfmg

                               wa_zdsl-uom

                               wa_zdsl-lgort

                               wa_zdsl-lot

                               wa_zdsl-prod_date

                               wa_zdsl-ebeln

                               wa_zdsl-erdat

                               wa_zdsl-erzet

                               wa_zdsl-ernam

                               wa_zdsl-aedat

                               wa_zdsl-username

                               wa_zdsl-floc.

 

     move-corresponding was_zsdl to wa2.

ASSIGN wa_zsdl-erfmg to <Fl_DAT>.

 

wa2-ERFMG= <Fl_DAT>.

 

       APPEND wa_zdsl TO it_zdsl.

     appedn wa2 to me_zsdl.

  

       CLEAR  wa_zdsl.

     ELSE.

       EXIT.

     ENDIF.

   ENDDO.


Viewing all articles
Browse latest Browse all 8501

Trending Articles



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