Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Block For billing when sales order is created

Hi experts,

I have a requirement in which i want to block the sales documrnt for billing when the sales order is created with particular discount value.

for this i have checked the condition of discount first it works fine no i want to block it for billing.

My SD consultant told open the sales doc in change mode(VA02) and then go to Billing Block field (FAKSK) and then give 02 Compl confirm missing and save the doc

So for this i have writen a method.

SET Parameter ID 'VBELN' Field OBJECT-KEY.

Call Transaction 'VA02' and SKIP FIRST SCREEN.

SET Parameter ID 'FAKSK' Field '02'.

in this it is calling the VA02 screen but i am not able to pass the billing block value and save.

Please give me a solution how to do this.

for blocking i have also used the standard method in BUS2032 SetDefaultBillingBlock

it is not blocking the billing.

Or should i use some bapi for this.



Former Member
Former Member replied

Hi Hari,

For contract u can use BAPI

BAPI_CUSTOMERCONTRACT_CHANGE. U can pass the parameters in the same way as u did for sales order.

U can try BAPI_AGREEMENT_MAINTAIN as well. Check the documentation of this FM. Not sure to what extent this BAPI helps for ur requirement.



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question