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

While creating Sales order using SD_SALESDOCUMENT_CREATE is problem

Former Member
0 Likes
432

Hi All,

I am creating a sales order using SD_SALESDOCUMENT_CREATE or BAPI_SALESORDER_CREATEFROMDAT2, i have one manual condition to be add. I have condition type as YNET. Order is getting created with YNET condition type. But every line item has 2 times of YNET condition type. One line has balnk amount (Zero) and other condition type actual value which i am passing to cond type.

Conclusion: Every Oder / Line item is getting created with 2 cond records of same type.

thnks

Yerukala Setty

2 REPLIES 2
Read only

naimesh_patel
Active Contributor
0 Likes
318

Did you check if you have same exist in the KONV?

If you have problem in your requirement routines, you would see the conditions multiple times in the Document. If they don't exist in the table but you see that in the document while going in VA02 or VA03, that means there is something wrong with the requirements.

Regards,

Naimesh Patel

Read only

0 Likes
318

Hi,

Thanks for great reply.

You are right! But this is Manual condition. While creating order manually thru VA01, no duplication. I have checked with the Fun. Consultant also. Requirement routine is fine. As per the analysis, if any manual condition are there and passing this thru the BAPI then duplciate conditions may be appended.

Please clarify me if I am wrong.

Thanks,

Yerukala Setty