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

date conversion from input file to user profile format

$
0
0

Hi All,

 

My Zreport is uploading the file having material no, Unit, Rate, Valid from and Valid To.

When opened the Tcode XK15, and clicked on save it is showing me the errors "Invalid Date" and "Decimal Places are not permitted".

I am getting these errors only for JPN currency. For all other currencies there is no issue.

 

Data in my file:

Valid From: 7/18/2013     User Profile format: 18.07.2013

Valid To:     8/30/2014     User Profile format: 30.08.2014

 

Rate : 11.56

 

Below is my code in my Zreport.

 

move: v_datab       to bkond2-datab,

          v_datbi        to bkond2-datbi.

 

I used FM

call function 'CONVERT_DATE_TO_EXTERNAL'

     exporting

          date_internal            = v_datab

     importing

          date_external            = v_datab_1         "length 10 type c

     exceptions

          date_internal_is_invalid = 1

          others                   = 2.

 

But I cannot pass v_datab_1 to bkond2-datab as both the lengths are different.

 

Why it is showing the error. Please help me.

 

 

Thanks,

Haritha


Viewing all articles
Browse latest Browse all 8556

Trending Articles



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