Application Development 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: 

Issue with Sales Order creation using BAPI - BAPI_SALESDOCU_CREATEFROMDATA1

Former Member
0 Kudos

Hello,

Good Day!

We are trying to created multiple Sales orders by using custom program. We have use BAPI - BAPI_SALESDOCU_CREATEFROMDATA1 for this program.

For this SO pricing procedure has two condition types. One is PR00 and second one is MWST. PR00 will be passed through BAPI manually.

When program executed first SO created with both condition types and there is no issue. When it coming to the 2nd, some how the MWST condition type removed and the order created. When we go to Analysis, system giving the error message 'Condition record exists, but has not been set'

with the below description

This message tells you that the condition record exists, but has not been set in the document. If pricing was carried out again for the document item, then the condition would be set.

There are different reasons for this:

  1. The condition was deleted manually in the item condition screen.
  2. The condition record was created later. Please note that order processing and pricing have buffer mechanisms. This means that a newly added condition record might only be found after order processing has been left completely and then started again.

Any one can help me on this

BR,

Anu

2 REPLIES 2

Former Member
0 Kudos

Hi,

Please check if you Free all your internal tables after a SO processing, which might be causing this problem.

Hope this helps.

0 Kudos

Hi,

Clearing internal tables has been taken care after a SO processing

But still problem exists.