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: 

BAPI_SALESORDER_CREATEFROMDAT2 header conditons amount issue

0 Kudos
274

capture.jpgDear Team,

Kindly need your help

while creating SO through bapi i am able to create a SO but issue is in header conditions the discount amount is not appearing. could anyone please help on this urgent.

6 REPLIES 6

0 Kudos
172

my code for Header

conditon-cond_type = 'ZPER'.
conditonx-cond_type = 'X'.
conditon-cond_value = gs_header-kbetr3.
conditon-cond_value = conditon-cond_value / 10.
conditonx-cond_value = 'X'.
conditon-condcoinhd = '01'.
conditon-cond_updat = 'X'.
conditonx-updateflag = 'U'.

For Item

conditon-itm_number = v_index.
conditonx-itm_number = v_index ."'X'.
conditon-cond_type = 'ZW01'.
conditonx-cond_type = 'X'.
conditon-cond_count = '01'.
conditon-cond_updat = 'X'.
conditonx-cond_count = '01'."'X'.
conditonx-updateflag = 'U'.
conditon-cond_value = gs_item-kbetr1.
conditon-cond_value = conditon-cond_value / 10.
conditonx-cond_value = 'X'.

raymond_giuseppi
Active Contributor
172

Do you get same result with VA01, in this case check your condition Customizing, may not be Abap relevant.

0 Kudos
172

Yes, but while creating through va01 after entering header condition there will be a user action like enter or save then it will update in va01.

SimoneMilesi
Active Contributor
0 Kudos
172

Or even check the price determination what it says...

0 Kudos
172

Pricing conditions are already determined .

0 Kudos
172

Help me if anyone face same issue.