cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI Problem -> BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Likes
10,526

Greetings,

Just doing some development and I am aware of how to create quotations and orders as well but this time, it seems that I keep running into a strange error, error from which I cannot go forward.

I do call the right parameters and the order is saved but it is rolled back after the creation of the SD order.

The error that I'm still getting is this:

[3] => Array

  (

       [TYPE] => W

       [ID] => V1

       [NUMBER] => 555

       [MESSAGE] => The sales document is not yet complete: Edit data

       [LOG_NO] =>

       [LOG_MSG_NO] => 0

       [MESSAGE_V1] => VBAPKOM

       [MESSAGE_V2] => 000010

       [MESSAGE_V3] =>

       [MESSAGE_V4] =>

       [PARAMETER] => VBUVKOM

       [ROW] => 0

       [FIELD] =>

       [SYSTEM] => DEVCLNT200

  )

You can see my request and my response in the attached screenshots.

View Entire Topic
Former Member
0 Likes

Got it solved, I did call in the Header INX two lines.

$ORDER_HEADER_INX['UPDATEFLAG'] = 'I';

$ORDER_HEADER_INX['PURCH_NO_C'] = (string) $oferta;


Took out these two lines and everything started to work without problems.