cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI Error 462

Former Member
0 Kudos

We are working with MII 12.1 and attempting to backflush an order with bapi_repmanconf1_create_mto using a JCo interface in a BLS. The error seems focused on the posting date which is populated using the "datenow" xpath statement. I am getting an error 462 "Posting date and/or document date was/were not transferred".

I have tried to do a datefromxmlformat to another date time format but the JCo will not execute at all citing a date format string conversion error "Cannot convert a value of '03-01-2010' from type java.lang.String to DATE at field POSTDATE"

What could be the problem with the date format? Or is this a case where SAP has generated a totally anti-intuitive message and really wants something else entirely?

Thanks for your help.

Accepted Solutions (1)

Accepted Solutions (1)

jamie_cawley
Advisor
Advisor
0 Kudos

Most bapi's expect the dates to be transfered as YYYYMMDD

Jamie

Former Member
0 Kudos

That is good to know but it didn't work in this case. I get the same error.

Former Member
0 Kudos

Oops. Sorry.

I missed one of the date format. It worked when I actually fixed both dates

Thanks!

agentry_src
Active Contributor
0 Kudos

Sparks,

I have found with other confirmation bapi's that if you put in a posting date, you also need to provide the document date. If you leave the posting date and document date empty, they will self populate with the current date and time.

Regards,

Mike

Answers (2)

Answers (2)

Former Member
0 Kudos

What format are you trying to use? I know typically SAP wants the dates formatted without separators e.g. 20100301

Edited by: Christian Libich on Mar 1, 2010 4:06 PM

Former Member
0 Kudos

Is this a custom bapi?