Skip to Content
0
Former Member
Oct 18, 2006 at 07:09 AM

Using BAPI_SALESORDER_CREATEFROMDAT2

146 Views

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:

BAPI_SALESORDER_CHANGE update conditions

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