on 11-17-2005 4:38 PM
For an online synchrone interface between a Delphi application and SAP R/3 I need to determine the correct prices for a order / item.
I try to use BAPI_SALESORDER_SIMULATE to do this (which should work for this purpose), but the BAPI doesn't return the NET_VALUE for the orderitem (it does return other data however).
A possible reason is that de simulation generates a salesorder that's incomplete, because the weight is missing for the items. I can't find which fields to use for this in the BAPI (in BAPI_SALESORDER_CREATEFROMDAT2 thsi fields are in the ORDER_ITEMS_IN structure - GROSS_WGHT en NET_WEIGHT).
Does anybody know how the weight can be passed on to the BAPI or is there another way of determing the prices for a salesorder (without creating a salesorder in SAP)?
Help would be very much appriciated!
Léon.
Pricing is a big part of Sales and Distribution.
Every company has their own pricing routines and they determine it based on the conditions.
For ex:
1. Military Orders have separate discounts
2. If an order is more than $1 Million probably company wants to give a discount.
These are just examples.
For your onlin sync interface, what you can do is write a proxy which creates the sales order and read the SD tables it send back the informatoin (I do not have on hand system to check which BAPI to use)
I think you should work with your R/3 Developer and Functional analyst. If you are the ABAP developer too, provided some time I might be able to find it when I get the system access.
regards
Shravan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello!
Problem solved
Enter to program MV45AFZB
go to FORM USEREXIT_NEW_PRICING_VBAP and make a enhament point
Then enter this code:
VBAP-BRGEW = "Other field that you have on BAPI_SALESORDER_SIMULATE
VBAP-NTGEW = "Other field that you have on BAPI_SALESORDER_SIMULATE
VBAP-GEWEI = 'KG'. "For Example
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Leon,
Call the BAPI_SALESORDER_CREATEFROMDAT2 itself, but set the the import parameter - TESTRUN as 'X', so that the salesorder is not created. Then you will get all the values that would have been there if you had created a sales order.
Thanks & Regards,
Renjith
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.