on 05-09-2014 6:45 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The order is created without problems in VA01 ... so annoying
If i create it with a refference to a Qutation, without items, it gives no error, the returned salesorder number is okay.
But then, SD document 1063335 is not in the database or has been archived.
In the WEB i do call COMMIT ... and no errors, but the document cannot be accessed.
Array
(
[1] => Array
(
[TYPE] => S
[ID] => V4
[NUMBER] => 233
[MESSAGE] => SALES_HEADER_IN a fost prelucrat cu succes
[LOG_NO] =>
[LOG_MSG_NO] => 0
[MESSAGE_V1] => VBAKKOM
[MESSAGE_V2] =>
[MESSAGE_V3] =>
[MESSAGE_V4] =>
[PARAMETER] => SALES_HEADER_IN
[ROW] => 0
[FIELD] =>
[SYSTEM] => xxxx
)
[2] => Array
(
[TYPE] => S
[ID] => V4
[NUMBER] => 233
[MESSAGE] => SALES_ITEM_IN a fost prelucrat cu succes
[LOG_NO] =>
[LOG_MSG_NO] => 0
[MESSAGE_V1] => VBAPKOM
[MESSAGE_V2] => 000010
[MESSAGE_V3] =>
[MESSAGE_V4] =>
[PARAMETER] => SALES_ITEM_IN
[ROW] => 1
[FIELD] =>
[SYSTEM] => xxxx
)
[3] => Array
(
[TYPE] => S
[ID] => V1
[NUMBER] => 311
[MESSAGE] => Vanzare 2667587 salvat
[LOG_NO] =>
[LOG_MSG_NO] => 0
[MESSAGE_V1] => Vanzare
[MESSAGE_V2] => 2667587
[MESSAGE_V3] =>
[MESSAGE_V4] =>
[PARAMETER] => SALES_HEADER_IN
[ROW] => 0
[FIELD] =>
[SYSTEM] => =xxxx
)
)
Hi,
Do you have variant configuration.
Regards,
Madhu.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also in standard QT preparation--system will ask for Validity period.(valid to for this QT)
(VBAPKOM--10 the incompletion procedure assigned for Standard QT )
ensure this should be in your Input parameter for your FM.
Phanikumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Carry out the code corrections as recommended in the following note:-
G. Lakshmipathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There are 2 thinsg to this:
1. Hope you are using Function Module(FM) - BAPI_TRANSACTION_COMMIT along with FM - BAPI_SALESORDER_CREATEFROMDAT2 in test sequence.
2. Generally, message V1 555 - The sales document is not yet complete: Edit data is associated with incompletion log. It would be better, if you check your Incompletion log config and compare with your parameters provided in FM. Thus, I would suggest, simply create desired sales doc manually with parameters you are providing as input in FM.
In addition to that, make sure you are passing all the mandatory parameters in FM. Just pointing this out based on screenshot provided by you, like
- mandatory Pricing condition type,
- mandatory Partners in item (AG. WE, RE, RG)
- Requested Delivery Data
Thanks, JP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.