cancel
Showing results for 
Search instead for 
Did you mean: 

REG : Date insertion in RFC

Former Member
0 Kudos

HI All,

I am facing problem in inserting the date into RFC from webdynpro java.

Actually BAPI can accept teh date only in sql format and i have taken it as sql only and i am sending it direct as 2009-08-31 ,but its not going into backend.

When i tried to excute rfc then ,i came to know that it can accept only 31082009 format.

i tried to fromat and tehn send it but it would be string format so bapi is not acceptiong in webdynpro itself.

Kindly,Advise me how to pass date .

Regards,

Anu

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

The date format should not affect the sending.

If the backend variable is date (and in java - sql date) you should send it as is.

If you need to create a date of your own or you are using the date data type in java (which is java.util.Date) you should convert from java util to java sql.

post your code here.

Answers (2)

Answers (2)

Former Member
0 Kudos

bapi itsef is taking care of the format.Resolved.Thanks

Former Member
0 Kudos

hi

please check the code you are using to insert the data to the bapi , as there should not be

any problem when the date format is of sql.date type , but in the webdynpro when you use the date it should

also be of same data type , else there will be data type compatability problem ,

check the code you are using to insert the data to the rfc ,