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.
Regards,
Hari

Hi Hari,
SET parameter ID only sets the value to an input field. It wont saves to the database. More over i don't find any parameter ID for billing block in VA02.(May be because it is a drop down).
Use BAPI BAPI_SALESORDER_CHANGE Pass the sales order number, ORDER_HEADER_IN-BILL_BLOCK = ur blocking code, ORDER_HEADER_INX-BILL_BLOCK = X.
After calling the BAPI call BAPI_TRANSACTION_COMMIT.
Above procedure is to programativally.
If u want to do it manually then directly open VA02 and change the billing block and save.
I dont think we can set parameter ID for billing block
Thanks,
Vinod.

Similar Messages

  • When sales order is created ,costing of a material cann't be created automa

    dear suppporter:
      when sales order is created ,costing of a material cann't be created automatically.if i cost the material in va02 ,the cost can be generated.please help me analyse it .
    best regards.

    There is Tick in Delivery block 01 Deliveries: Blocking Reasons/Criteria
    I have observed in testing Before you save a sales order, you look at the schedule line overview, you can see what the system would Proposed confirm date and confirmed qty, if the block were  not set. However, as soon as you save the sales order,(warring message Oldest open items over due will appear) the confirmed quantities are automatically reset to zero because sales order is Blocked. Here the goods remain available for other customers.
    Note : When you release the sales order the automatically in sales order confirmed qty and proposed date will come.
    Here the problem is  when they do MRP run after sales order saved with block Planned order is creating.

  • Want to get a popup when sales order is created or saved

    hi all ,
             I want to get a popup when sales order is created or saved .Is there any  user exit for the same?
    thanks in advance ,
    Naval bhatt

    Hi,
    try this.
    Go to the include MV45AFZZ of Sales Order Main program SAPMV45A
    and find the correct exit in that and write the User exit code after saving the document FORM USEREXIT_SAVE_DOCUMENT_PREPARE or
    FORM USEREXIT_SAVE_DOCUMENT by calling/writing the
    fun module POP_UP_TO_CONFIRM.
    Regards,
    Anji
    Message was edited by:
            Anji Reddy Vangala

  • Trigger custom idoc through ALV when sales order is created in VA01 & VA02

    Dear Experts,
    I am new to the concept of ALV_idoc. Please give me the procedure in detail.
    How to send custom fields to non SAP system when sales order is created or modified in VA01 &VA02?
    Can i use existing Logical Systems and Ports and partner profiles?
    Thanks & Regards
    Moderator message: please search for available information/documentation.
    Edited by: Thomas Zloch on Jan 17, 2012

    hi,
    the first option is the right one. the FM invoked makes a direct input, so all the functionalities in S.O. are the standard one in the same way as if you are making it manually.
    Also you can have some exits in the Idoc FM, so you can manipulate data there before loading the sales order.
    pls. reward if helpful
    regards
    Roberto

  • Blocked for payment from sales order

    Hi!
    Do you know to do to the FI document will come blocked from sales order?
    For example, I did a sale order with a client x. The payment terms of this client is setting to block the payment.
    So, when I did a sales order, and do all SD process, after billing it, on FBL5N the client document isn't blocked for payment.
    Do you know any way to block it from a sales order??
    Regards,
    Danielle.

    hai,
    A is also fine. If the payment terms is applicable for both customer as well as vendor, then the system will block for payment and in FBL5N also system will show with block indicator A.  Or
    Try to block in same FBL5N, select particular document, goto environment in menupath select change document and block it and then save. Again run FBL5N check the block indicator.
    There is no additional configuration is required apart from my first reply.
    govind.
    Message was edited by:
            govindaraj s

  • Report for Billing Document/sales order against project/WBS/Network

    Hi Experts,
    I want to see the Billing Document/Sales Order for Network/WBS in the projects.
    Also want to see the cost transaction against the WBS and Network.
    Suggest report which can show the details of the Sales Order/Billing Document against the WBS/Network.
    Thanks and Regards
    Ram Kalel

    Hi Ram,
    Please check standard TCODE like
    CN45N for Order list
    CN54N for sales n Distribution documents
    CN55N for sales document items
    Thanks
    Sunil

  • Create a new entry for zfield in the CDHDR table when sales order is create

    Hi,
    We have some custom field added to table VBAP and that field need is updated thorugh transaction VA01 or VA02.
    The Function poeple is asking to Update the CDHDR table for the ztable when ever the field is updated ,and they want
    the changes to appear in the sales order changes Log.
    Prabhudas

    Problem solved.
    By using the ..
    Used this FM "VERKBELEG_WRITE_DOCUMENT" in MV45AFZZ in exit...DOCUMENT_SAVE.
    by passign the only VBAK and VBAP table structure of XVBAP and YVABP and field name as ZZFIELD.
    Prabhudas.

  • Create delivery automatically when sales order is created but not invoice??

    Hi,
    I have a requirement where in, it should create delivery (also issue) automatically when i create sales order, but it should not create the invoice automatically. I am going to do the invoice manually from the delivery document. Can you suggest me how to do this??
    Thanks
    Ghanesh

    Hi,
      If the sales document type is not relavant for Cash sale and the document type is used globally in the business then if for some specific conditions like distribution channel or plant or for division if u want to carry out the immediate delivery creation and PGI, use the below user exits and Bapi's
    The below user exit is used to export the sales order details to capture the required checking cond such as sal org,dist ch,div,plant,etc
    Include MV45AFZZ
    FORM USEREXIT_SAVE_DOCUMENT.
    Include MV45AFZA
    FORM -USEREXIT_REFRESH_DOCUMENT.
    BAPI_ISAORDER_GETDETAILEDLIST
    BAPI_OUTB_DELIVERY_CREATE_SLS
    SD_DELIVERY_UPDATE_PICKING
    BAPI_OUB_DELIVERY_CONFIRM_DEC
    Regards,
    Gopal.

  • Over write ship to party address when sales order is created

    Hi
    I am creating sales order using BAPI_SALESORDER_CREATEFROMDAT2 but would like to change the shipto party address.
    I want to change the following address fields of shipto party
    Name1
    Name2
    Street
    STR_SUPPL1 (Street2)
    C_O_NAME (c/o name)
    POSTL_COD1 (City postal code)
    CITY
    COUNTRY
    REGION
    TRANSPZONE
    Following is the piece of code i wrote for partner structure and partner address structure of the BAPI.
    I_ORDER_PARTNERS-PARTN_ROLE    = 'WE'.
    I_ORDER_PARTNERS-PARTN_NUMB    = '0000241269'.
    I_ORDER_PARTNERS-country               = 'US'.
    I_ORDER_PARTNERS-TRANSPZONE    = 'US'.
    I_ORDER_PARTNERS-ADDR_LINK        = ''0000201328'.
    APPEND I_ORDER_PARTNERS.
      I_PARTNERADDRESSES-ADDR_NO      = ''0000201328'..
      I_PARTNERADDRESSES-NAME            = WA_CUSTOMER-NAME.
      I_PARTNERADDRESSES-NAME_2         = WA_CUSTOMER-NAME2.
      I_PARTNERADDRESSES-STREET         = WA_CUSTOMER-STREET.
    I_PARTNERADDRESSES-STR_SUPPL1   = WA_CUSTOMER-STREET2.
    I_PARTNERADDRESSES-C_O_NAME      = wa_customer-c_o_name.
      I_PARTNERADDRESSES-POSTL_COD1  = WA_CUSTOMER-ZIPCODE.
      I_PARTNERADDRESSES-CITY                = WA_CUSTOMER-CITY.
      I_PARTNERADDRESSES-COUNTRY     = WA_CUSTOMER-COUNTRY.
      I_PARTNERADDRESSES-REGION  = WA_CUSTOMER-REGION..
      I_PARTNERADDRESSES-TRANSPZONE  = WA_CUSTOMER-TRANSPZONE..
    In the above code address number 0000201328 is address number for customer 0000241269. Now the sales order is getting created but ship to party address is not overwritten with the values passed above. Ship to party address is just defaulted from customer master.
    What should i have to pass to the address number field.
    Any piece of code which is working would be more helpful.
    Thanks in advance
    Rajesh.

    I haven't tried for this, but from the documentation of FM I got this note:
    <i>Notes
    If the table is used to enter document addresses for a sales and distribution document, the address data is then not necessary in the document partner table BAPIPARNR / BAPIPARTNR ).</i>
    So, I am not sure wheather it is possible or not.
    Regards,
    Naimesh Patel

  • When sales order get cancelled

    Hi Gurus
    Please explain the  process when sales order is created for 10 QTY and production order released for 10 qty and all operations confirmed for 5 QTy & moved to FG remaining  5 no qty is in WIP, so then sales order get cancelled, and got another new sales order with different specifications with same qty.
    now i want convert the cancelled sales order qty to new sales order qty
    please explain me step by step
    with Regards
    Laxmipathi.G.V

    Hi
    Anyway you were doing the Activity confirmation for the 5 quantities at the operation stage.
    so the component only consumed for this production .when you check the material document for the particular confimation . you can see the component was consumbed. ( 261 movement)
    So you do the reverse the confirmation at the operation stage  CO13 . and you can reverse the components back to the production storage location back. (movement type 262)
    Edited by: raj on Jun 8, 2009 8:11 AM

  • Need IDOC and segment for mappping the sales order number

    Hi,
    we need the IDOC name and segment for mapping the sales order number created by oracle in sap for transaction VA01.
    Whether the sales order number created by Oracle can be used to create the sales order in sap using the idoc ACC_SALES_ORDER01?
    . If we can do,then what is the segment and field for the sales order number in the idoc ?
    Please reply asap it's very urgent
    Thanks
    Edited by: suresh kumar nandhagopal on May 16, 2008 12:07 PM

    Hi,
    IDOC for sales order is ORDERS05. Segment E1EDKA1, for field go to SE11 and enter E1EDKA1 to find field for sales order.
    Cheers.
    ...Reward if useful.

  • Sales Order Confirmation when sales order goes for Credit Block

    want Sales Order to be Confirmed , i e Schedule line Confirmation , when sales order goes for Credit Block
    How i can Achieve this?
    Even when set for Sales Document typpe credit check as 'D' and credit group as ;03; ie at Goods Issue still order is not getting confirmed.

    I am not sure, why you want schedule line to be confirmed for credit blocked sales orders. Re-confirm with the client.
    There are controls when defining delivery blocks.
    Goto IMG - Log.Execution-Shipping - Deliveries- Define delivery blocks( check menu path in system, may not be same as shown here).
    Select 01- credit block " untick" from "Confirmation" Column.
    Now test with & see how ti works.
    Regards,
    Reazuddin MD

  • Sales Order Block for Billing

    Hi All
    I have a bussiness where I am reciving the SP and SH address details from Idoc and and i want to block the sales order for billing  if the country code is different.
    My Proposed Solution :
    I would like to write a pice of code in MV45AFZZ that if the sales order country code is differnt then it should make a billing block.
    My question is do I need to validate the country code from VBPA table or there is any other way to do this. As I cant do that from KNA1 or any other customer master table beacuse that address details is coming from Idoc and that may not the same as address in customer master.
    Looking forward for your suggestion.
    Thanks
    AJ

    Hello Kumar,
    Could you be more specific in describing your business requirement ?
    I have a bussiness where I am reciving the SP and SH address details from Idoc and
    i want to block the sales order for billing if the country code is different.
    What i could sense is for creation of Sales Order, you are getting the details for Sold-To-party and Ship-To-Party from IDOC, the business requirement is if the Country code is not same as that of master then the Sales Order processing should be blocked for Billing.
    If this is the actual requirement for blocking the Sales order, then the right approach should be of fetching the Country code from ADRC table with reference to ADRNR number which you can pick up from KNVP table. And then you can go ahead with ABAper and write lines of code at MV45AFZZ.
    Please update this thread to make a clear line of thoughts.
    Regards,
    Sarthak

  • Idoc info in 'Services for Objects' when a sales order is created

    Hi Guys
    Could one of you remind me how to turn on the Idoc info in the 'Services for Objects' > workflow option.
    I know how to turn on the services for objects using the user profile and entering parameter id:SD_SWU_ACTIVE , parameter value: X.
    I am not able to see the Idoc number/info that was used to create the sales order. I can see all the information in WE05 but the sales order does not show me any history of having used the Idoc.
    When i go to sales order and select the services for objects option followed by workflow the system should show the IDOC number/info used to create this order.
    Your help will be appreciated.
    Thanks
    Manish
    Edited by: Comes Naturally on Feb 23, 2009 3:46 PM

    Hi,
    1. Configure the IDoc with message type ORDERS and basic IDoc type as ORDERS05 (You have to follow common step-by-step approach)
    2. Configure Message Control to automatically generate IDoc whenever a Sales Order is created. (I mean output type)
    So whenever a Sales Order is created, output type will generate an IDoc.
    Hope this information is useful.
    Regards,
    AK

  • Order Blocked for billing

    Hi,
    I need to block a sales order depending on the amount for Billing.
    Any idea where in configuration its done that its automatically blocked .
    If so then where to store this amount so that i can change it when needed.

    Hi
    check this tcodes
    When there is a temporarily stop of business with a customer, you can block new orders to be created for this customer. You can have the options of blocking all the work flow or let the delivery and billing to continue for any open orders.
    VD05 - Block/Unblock Customer
    OVAS - Sales Order Type Blocking reasons
    OVAL - Blocking reasons links with Sales Order Type
    OVZ7 - Delivery Blocking reasons
    OVV3 - Billing Blocking reasons
    Regards
    Anji

Maybe you are looking for