08-21-2022 6:04 PM
i have 10.000,00 in vbak-netwr and when i pass this to BAPISDITM-target_val it changes 100.000,00 (AS IAM CREATING A SALES ORDER TROUGH BAPI)
is there any way i can pass the correct value.
I am using this code to pass the data
MOVE VBAK-NETWR TO BAPISDITM-TARGET_VAL.
08-22-2022 3:55 PM
Which bapi are you using? BAPI_SALESORDER_CREATEFROMDAT2 ?
Usually prices are passing not via parameter ORDER_ITEMS,but via parameter ORDER_CONDITIONS_IN.
Also note 93091 contains general information on the BAPIs in SD.
08-22-2022 5:51 AM
Hi atharva12k
Generally in BAPI (sales order), the values are passed and calculated through the condition tables. Why are you passing value in items table.
Each item record is connected to condition table with condition type and condition value. Values are passed in this table only
08-22-2022 5:59 AM
@Venkateswaran (venkat) krishnamurthy i got your point , but can you help me with conversion that is happeneing
08-22-2022 6:08 AM
Hi atharva12k
You need to pass the Currency key also when you are passing value to this field. Otherwise it will multiply by 10.
08-22-2022 6:10 AM
Hi atharva12k
Pass Currency key also along with value.
Regards,
Venkat
08-22-2022 8:29 AM
08-22-2022 3:55 PM
Which bapi are you using? BAPI_SALESORDER_CREATEFROMDAT2 ?
Usually prices are passing not via parameter ORDER_ITEMS,but via parameter ORDER_CONDITIONS_IN.
Also note 93091 contains general information on the BAPIs in SD.