Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SD_SALESDOCUMENT_CREATE - scheduling agreement

Former Member
0 Likes
1,918

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

4 REPLIES 4
Read only

Tamas_Hoznek
Product and Topic Expert
Product and Topic Expert
0 Likes
1,386

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...

Read only

gokul_radhakrishnan3
Active Participant
0 Likes
1,386

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

Read only

0 Likes
1,386

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

Read only

0 Likes
1,386

That appears to be an SD configuration issue. Ask for help from a colleague who is familiar with SD configuration.