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: 

pass vbak-netwr to BAPISDITM-target_val correctly

former_member806481
Participant
0 Kudos

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.
1 ACCEPTED SOLUTION

olegbash599
Active Participant
0 Kudos

Which bapi are you using? BAPI_SALESORDER_CREATEFROMDAT2 ?

Usually prices are passing not via parameter ORDER_ITEMS,but via parameter ORDER_CONDITIONS_IN.

Here is a sample

Also note 93091 contains general information on the BAPIs in SD.

6 REPLIES 6

venkateswaran_k
Active Contributor
0 Kudos

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

former_member806481
Participant
0 Kudos

@Venkateswaran (venkat) krishnamurthy i got your point , but can you help me with conversion that is happeneing

venkateswaran_k
Active Contributor
0 Kudos

Hi atharva12k

You need to pass the Currency key also when you are passing value to this field. Otherwise it will multiply by 10.

venkateswaran_k
Active Contributor
0 Kudos

Hi atharva12k

Pass Currency key also along with value.

Regards,

Venkat

0 Kudos

Hi atharva12k

Had a chance to try this?

olegbash599
Active Participant
0 Kudos

Which bapi are you using? BAPI_SALESORDER_CREATEFROMDAT2 ?

Usually prices are passing not via parameter ORDER_ITEMS,but via parameter ORDER_CONDITIONS_IN.

Here is a sample

Also note 93091 contains general information on the BAPIs in SD.