cancel
Showing results for 
Search instead for 
Did you mean: 

date format

Former Member
0 Kudos

Hi all

i m implementing one scenario in which i m importing BAPI but problem is in bapi there is one field date n format of date in XI n ABAP r different .

due this difference XI is nt able to recognize date format used in ABAP.

since date format r nt same so error is there .

can anybody suggest the solution for the above.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

In the mapping use the date function and choose datetrans and select the source date format which you are getting from BAPI and the target in the required format.

This will work.

Regards,

Kumar.

P.S: Reward Points if helpful!!!!

Former Member
0 Kudos

Hi Kumar,

i have done the same s u told bt in XI there is no such format as we use in ABAP

in abap the format use is like 02.02.2006

bt in XI apart from ABap format rest of the format r used so they r nt matching.

can u give any other solution

thanks

Former Member
0 Kudos

Hi Kumar

I have done the thngs u have askd to do in mapping still i m getting the error regarding the date format.

<b>JCO_ERROR_CONVERSION: Date '02.09.2004' has a wrong format at field RATEDATE: Unparseable date: "02.09.2004"</b>

plz try to reolve the above error

thanks

Former Member
0 Kudos

hi,

normally you should be able to use the standard date function for that.

If this doesn't help... do it in a user-function.

/people/robin.schroeder/blog/2006/11/21/dynamic-date-conversion-in-message-mapping

regards,

robin

Former Member
0 Kudos

Hi Robin,

the link which u have send is mainly for the string but the date format i have taken is of type "date" both target n source

that code is mainly for the string type which i cant use in my scenario.

what i want is source n target side there is one field of date type but format for both r different n due to difference in format error is coming.

to resolve the error plz give me some solution

Thanks

former_member192892
Active Contributor
0 Kudos

Anushree,

Pls try giving yyyyMMdd format, without spaces to BAPI...

Former Member
0 Kudos

hi

no it doesnt accept this format

former_member192892
Active Contributor
0 Kudos

Hi Anushree...

I'm just giving an example scenario i tried wit rfc..

I took the rfc BAPI_CHARACT_CREATE.... Here there is a fied called keydate.

Now when i try to execute this BAPI is SE37, this field is automatically filled in dd.mm.yyyy format.

But while doing the scenario using XI, I gave the format as "yyyyMMdd".

I was getting the same error while i used to give "dd.mm.yyyy" But when i changed it to "yyyyMMdd" it worked...Can you please complete the scenario and check

Answers (2)

Answers (2)

henrique_pinto
Active Contributor
0 Kudos

Where does this error occur?

It is in sender RFC Adapter?

If that's so, then the date is in wrong format in the ABAP itself.

From my experiences, date from R/3 should come as yyyy-MM-dd, and not dd.MM.yyyy (this is just visualization format).

Regards,

Henrique.

Former Member
0 Kudos

HI

ya error is in sender RFC Adapter only...

but how can date be in wrong format in ABAP ??

coz in abap it accept the date in dd.mm.yyyy format only other than this format Abap coding gives error.

i guess some other problem might be there

former_member192892
Active Contributor
0 Kudos

HI Anushree,

Can u elaborate your requirement a bit more???

I mean how do you want the output format to be???

Former Member
0 Kudos

hi

actually i have imported bapi from r/3 syst in that bapi there is one field of date bt Xi cannot recognize that date format coz both follow different date format .

In BAPI the date formt is like: 02.02.1999

In XI thae date format can be anythng xcept the format in ABAP.

n i want the ouput in abap format..

how can i get this??

thanks

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

Like pointed use the DateTransformation function provided in XI.

If the preexisting formats do not help, you can manually key in the format by using the Keywords provided for month , date and year ( you will see this in the date transformation function itself.)

Regards

Bhavesh

Former Member
0 Kudos

Hi Bhavesh,

i have done the same as utold bt still i m getting the error regarding date format

<b>JCO_ERROR_CONVERSION: Date '02.09.2004' has a wrong format at field RATEDATE: Unparseable date: "02.09.2004"</b>

Plz resolve this error

Thanks

Former Member
0 Kudos

Hi,

Can you give me your Source date format and the target date format.

Regards,

Kumar