Application Development and Automation 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: 
Read only

BAPI_SALESORDER_CREATEFROMDAT2 header conditons amount issue

0 Likes
1,519

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
Read only

0 Likes
1,417

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'.

Read only

RaymondGiuseppi
Active Contributor
1,417

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

Read only

0 Likes
1,417

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.

Read only

SimoneMilesi
Active Contributor
0 Likes
1,417

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

Read only

0 Likes
1,417

Pricing conditions are already determined .

Read only

0 Likes
1,417

Help me if anyone face same issue.