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: 

Remove Billing Block at header level with no pricing.

Former Member
0 Kudos
187

Hi,

I am trying to Remove Billing Block at header level in sales order using BAPI 'BAPI_SALESORDER_CHANGE' but it is refreshing the pricing at item level.I am able to successfully remove billing block.

My Requierment is to skip this refresh of pricing on Remove Billing Block.

Please provide feasible solution.

3 REPLIES 3

jayanthi_jayaraman
Active Contributor
0 Kudos
152

Hi,

Just pass the below in header structure

MOVE: 'U' TO wa_order_header_inx-updateflag,

'X' TO wa_order_header_inx-bill_block,

space TO wa_order_header_in-bill_block.

And then further in BAPI_SALESORDER_CHANGE,

pass the values

order_header_in = wa_order_header_in

order_header_inx = wa_order_header_inx

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos
152

Moderator Message: This question is not web dynpro ABAP related. General ABAP questions, such as calling a BAPI, do not belong in the Web Dynpro ABAP forum. I'm moving this thread to the ABAP General Forum. Please, in the future be more careful about your choice of forms.

brad_bohn
Active Contributor
0 Kudos
152

I don't understand why it's an issue, but that doesn't typically happen if you simply remove the billing block on an order. You must have one of the new pricing exits forcing it to happen. Have you debugged or traced the code? What is the condition triggering PRICING_COMPLETE to be called?