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: 

Using BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Kudos

Hi! I would like to ask if anyone has sample code of a working call to the bapi BAPI_SALESORDER_CREATEFROMDAT2?

I've tried it and I've been able to create a sales order, however I have troubles with repeating items in Conditions.

Tried changing LOGIC_SWITCH-PRICING to all the values and somehow, still can't get the right price.

I'm running SAP ECC 6.0 (if it helps

Thanks!

Nevermind.

Found the answer at this thread:

He's right, it DOES work!

As posted by Ruong Tran:

Hi guys,

To update an existing pricing condition, you need to set the logic_switch field COND_HANDL = 'X'. This will not create a new entry but update the existing one, trust me, I've tried this and it works.

Ruong

Message was edited by: Alexandra Co

1 REPLY 1

Former Member
0 Kudos

HI Alexandra

You are right. Please check the below thread on the same topic.

Kind Regards

Eswar