2011 Nov 22 1:29 PM
Hi All,
I am using BAPI "SD_SALESDOCUMENT_CREATE" to create scheduling agreement.
I have populated "SALES_HEADER_IN", "SALES_ITEMS_IN", "SALES_PARTNERS" and "SALES_SCHEDULES_IN" using the update flag as " I " and setting the LOGIC_SWITCH-SCHEDULING = 'X'.
I am getting the below return messages in the return table.
S V4 233 SALES_HEADER_IN has been processed successfully
S V4 233 SALES_ITEM_IN has been processed successfully
A VD 346 Period indicator D is not defined
W V1 555 The sales document is not yet complete: Edit data
Also it is not returning any order number in export parameter "SALESDOCUMENT_EX". please provide your valuable inputs on the same.
Regards,
Anurag
Hi All,
I am using BAPI "SD_SALESDOCUMENT_CREATE" to create scheduling agreement.
I have populated "SALES_HEADER_IN", "SALES_ITEMS_IN", "SALES_PARTNERS" and "SALES_SCHEDULES_IN" using the update flag as " I " and setting the LOGIC_SWITCH-SCHEDULING = 'X'.
I am getting the below return messages in the return table.
S V4 233 SALES_HEADER_IN has been processed successfully
S V4 233 SALES_ITEM_IN has been processed successfully
A VD 346 Period indicator D is not defined
W V1 555 The sales document is not yet complete: Edit data
Also it is not returning any order number in export parameter "SALESDOCUMENT_EX". please provide your valuable inputs on the same.
Regards,
Anurag
2011 Nov 22 4:24 PM
It will not return any order number because no order was created. The type 'A' message means that the process ended abnormally.
Looks like you may have some incorrect value in your passed data that causes some period indicator to be D which is the reason for the issue. Is there by any chance some field where you have to indicate what type of date you are specifying? Like regular date, week, posting period etc? If yes, then check the allowed domain values for the period field. Instead of D, you may need a T (for Tag which is a date of a day). But this is just a guess of course...
2011 Nov 23 5:18 AM
Anurag,
Check the value you are passing in field DATE_TYPE in BAPI parameter SALES_SCHEDULES_IN. The allowed values are 1,2,3,4,5. and not 'D'. As rightly identified by Tamas, it is because of this field you are getting this error & your document is not getting generated.
Regards,
Gokul
2011 Nov 23 5:29 AM
Hi Gokul,
Thanks for your response. I changed the value in "DATE_TYPE" from "D" to "1". Now it is giving me the following messages:
S V4 233 SALES_HEADER_IN has been processed successfully
S V4 233 SALES_ITEM_IN has been processed successfully
E V1 434 No schedule line category could be determined during quantity adjustment
W V1 555 The sales document is not yet complete: Edit data
E V4 219 Sales document was not changed
please suggest.
Regards,
Anurag
2011 Nov 23 5:34 AM
That appears to be an SD configuration issue. Ask for help from a colleague who is familiar with SD configuration.