How to raise an information message in Sales order change second screen(pbo

Hi Experts,
  I need to change data in Sales order header if user entered wrong value while creation of order. If he has not given the correct value then i need to raise one information message on second screen of VA02. How can it possible when enter PRESS button or any action(means in the second screen pbo only).
Cheers,
Bujji

Hi,
Which field do you want to validate??
Thanks,
Naren

Similar Messages

  • Throw Information message for sale order created with value less that 5$

    Hi all,
            I am basically an abaper, I have got a requirement in SD. The requirement is any sales order created with value less that 5$, should be prompted with an error message saying the minimum order value should be more than 5$. Could any one help me on this.
    Thanks in advance,
    shiv

    userexit_save_document_prepare,main program - sapmv45a, issue an error message if your document value is less than 5$ (VBAK-NETWR) but check if your order has any non-rejected item, I would not issue this message if all items are rejected:
    loop at xvbap where updkz ne 'D' and abgru = ' '.
      exit.
    endloop.
    if sy-subrc = 0.  "-you have at least one non-rejected, non-deleted item.
    NOTE: sapmv45a works NOT only for orders, so please check document types in your logic which are relevant to your messge only (VBAK-VBTYP and/or VBAK-AUART).

  • Printing sales order number in screen (PBO)

    Hi experts,
                   I have created sales order using function modules. The output of the FM is sales order number , i want to print this sales order number in my screen 9001 which i have createdCreation of sales order is in background.
    Similarly i have created delivery number also, i want tp print these number in my screen as
    For example,
    Sales order number      000145113
    Delivery                         4512223
    kindly help me in solving this.
    Thanks you and Regards,
    Madhu

    Hi,
    Create a Class with attributes sales order and Delivery number and store after creation.
    when ever the screen 9001 is called call the attrivutes in the class and pass to screen variable.
    Or use the Set / Get parameter id for sales order and Delivery Number.
    1) use export or import memory
    2) use class to as above mentioned.
    3) or use SET/GET paramater ID
    Prabhudas

  • Customer error message in sales order on save

    Hi Friends,
    as per requirement i have to raise the error message and system should enable the field to change values. This should happen when condition is not met on Saving of Sales order.
    For this, i have used the user exit USEREXIT_SAVE_DOCUMENT_PREPARE. But the problem is system throwing error message and all r in display mode only. as per my requirement system should allow to change the error value field.
    i have verified many posting in this SDN, but nothing is working out.
    Please guide me, how to raise the error message and system should enable that filed.
    My doubt is where should i raise the error message in sales order (MV45AFZZ)??? if any badi to raise the error message also fine for me. I tried many ways like... message with display like..... and set / get parameters and badis....  but not able to find the correct solution.
    Thanks in Advance.
    Bala

    Hi
    You need to use check for enahcement spot, which will be help to you.
    Bcz you are throwing custom error message in the standard transaction, once the error is display, you could not able to change the values. your prob can be solved by using the enhancement sport.
    This is include name (Include:MV45AF0B_BELEG_SICHERN).
    In the above include, you need to create a enhancement spot after this spot (ENHANCEMENT 16  OI0_COMMON_SAPMV45A.)  
    write your custom code and while displaying an error message. set flag = 'x', then use below code. It will display error message once you press ENTER, you will get the sale order in change mode, you change the values.
      IF flag = 'X'.
              fcode = fcode_gleiche_seite.
              perform fcode_bearbeiten.
              ch_subrc = 4.
              exit.
            ENDIF.

  • How to Configure a Pop Up Message in Sales Orders

    Hi,
    How can I display a message when creating or changing sales orders? I need the configuration steps for 4.6.
    Thanks,
    Sai.

    Hi,
    First you need to make an entry of your pop up message in the sales text view of the material master and when the user enters that material, he will be able to see that message. The Config part is in spro/sd/basic func/text control. You need to define the text types, access sequences and the text determ procedures.
    You have to maintain the desired text in the material master sales text editor and turn on the indicator 'Display texts during transfer' under Text control in configuration for the sales order-item for the material sales text. This will display a Pop-up message when booking orders
    Reward points if found helpfull...
    Cheers,
    Siva.

  • Attach sapscript for email message in sales order

    Hello to all.
    I need some help..
    I'm trying to include a sapscript form in a message on sales order in VA01. I can already send email to outside SAP, but can't include de sapscript form into the mail.
    I make a copy of the standard message MAIL, and include de sapscript form that i want to attach.
    Anybody have an idea how to solve this issue?
    best regards,
    Susana Marques

    Hi
    I think u need to create a message type MAIL just as u done, but u should check if this kind of message is managed by your driven program.
    Check the call of FM OPEN_FORM, here the parameter DEVICE has to have the value MAIL, perhaps here it's always transfered PRINT.
    The second control is on master data of the partner of the message: he has to have the mail address.
    The last control is on the master data of the user: he has to have the mail address.
    Max

  • How to set "Configuration Variant" for a sales order item using function

    Hello All,
    I use function module 'SD_SALES_DOCU_MAINTAIN'  to create Customer Indep. Requirements but how to set "Configuration Variant" for a sales order item.
    Is their any idea or sample code?

    Hi Zhijun zhang,
    <u>http://help.sap.com/saphelp_nw2004s/helpdata/en/c0/98038ce58611d194cc00a0c94260a5/content.htm</u>
    <u>http://help.sap.com/saphelp_nw04/helpdata/en/c0/980374e58611d194cc00a0c94260a5/content.htm</u>
    A variant is simply an SAP report where the parameters for running the report have been set by the user and then saved with unique name. This allows future retrieval and execution of the report faster without reentering the parameters. As a convention the variant name should start with with the digits 50 so searchs for LHU variants is easier and quicker.
    The first link will guide you by screen shot wise.
    Award points if it adds information.
    Thanks
    Mohan

  • How to create a daily report for sales order

    hi
    how to create a daily report for sales order. what fields it must consists of. what are the tables it need?

    Hi
    You have to use the sales order tables VBAK,VBAP and VBEP
    So keep date field on selection screen
    and treat this date as Order creation data audat field in VBAK.
    based on this fetch the data from VBAK and VBAP  with the following fields like
    VBELN, KUNNR,NETWR,POSNR, MATNR,ARKTX,KWMENG,WAERS  etc and display in the report
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • How to block the creation of a Sales Orders without a linked Purchase Order

    Hi. I'm trying to block the creation of a Sales Order that doesn't have a linked Purchase Order. The first thing I did is using the SBO Transaction Notification as follows:
    IF  @transaction_type = 'A' AND @object_type='17'
    BEGIN
         IF (SELECT PoPrss FROM ORDR WHERE DocEntry = @list_of_cols_val_tab_del) = 'N'
         BEGIN
              SET @error = 1
              SET @error_message = 'Purchase Order Missing...'
         END
    END
    This works good. I create the Sales Order, I tick the purchase order field on the logistics tab, I click Add, and then the purchase order window appears...
    Then, the problem begins... If I click the Cancel button, the purchase order is obviously not created, but the Sales Order is created.
    Can someone tell me how to block the creation of the sales order If the user press the cancel button on the purchase order window (and the purchase order is not created)
    As far as I can see, after clicking the add button in the sales order document, the Sales Order is created on the DB. If there's no way of blocking the creation of the Sales Order, can I avoid closing the purchase order window by the SBO_TransactionNotification? (if the purchase order has not been created)
    Thanks...

    Hi Yail,
    I think you can't close the purchase order with the stored procedure.
    Try to catch the Event when the user click on Cancel button.
    So you can list the vents with event logger : https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ede3be37-0e01-0010-1883-cd1b5293473e
    You can block the cancel button and force the user to create the purchase order.
    Hope i help you
    Best regards
    Michael

  • How to syatem determine delivery date in sales order

    hi sap gurus
    how to syatem determine delivery date in sales order
    Thanks and regards
    ram

    Hi Friend,
    There are many things which determines the delivery dates.
    01. PICK TIME+ PACK TIME +LOADING TIME
    02. LEAD TIME in days (VOV8)
    03. Shipping point
    04. Scheduling line
    05. Kind of availblity check
    06. If the above things are maintained as blank then the current date will be the delivery date
    However whether it must be proposed by the system or not is determined by one check box there find in VOV8 in requesteed delivery date determination tab.

  • How to make all fields mandatory in sales order T- code VA01 initial screen

    Dear all,
    how to make all fields mandatory in sales order T- code VA01 initial screen itself
    The fields are
    Sales Organization
    Distribution Channel
    Division
    Sales Office
    Sales Group
    Regards,
    Amar Reddy

    Hi,
    You can use Transaction Variant to achieve this functionality.Please go through the following link which helps you in creating the same.
    [Link|http://wiki.sdn.sap.com/wiki/display/Snippets/TransactionVariant-AStepbyStepGuidefor+Creation]
    Regards,
    Phani Prasad

  • How to Stop Forward scheluding process in Sales order(VA01)

    Hi ,
    How to Deactivate forward scheduling proposal in sales order.....
    In current systen, we have both forward and Backword scheduling process based on the material availability.
    What is the customization required to do in SPRO or Master dsata changes to stop forward scheduling proposal in sales order....
    Thanks & Regards
    Sudheer Madisetty

    HI Gopal,
    Thanks for your reply
    Apart form OVLY, Any other customization required to be done...?
    Regards
    Sudheer

  • How to clear the delivery group in sales order?

    Dear All: 
          My sales order is auto created from CRM by BAPI, but in vbap table, the GRKOR field is 001, only one order ,  how to clear the delivery group in the sales order ?
    Regards
    Peter.

    Thread Locked - Reason Duplicate Post
    How to clear the delivery group in sales order?
    Please dont post the same query twice.  Continue all your queries in one thread
    G. Lakshmipathi

  • How to activate FM Account assignment in Sales Order

    Dear All,
    How to activate FM Account assignment in Sales Order at item level in account assignment category.
    Plz provide some solution for the same.
    Thanks & Regards,
    Pankaj

    Hi,
    Thanks for your reply.
    I am not asking of account assignment group for material.
    My problem is when i am creating Sales Order at item level in Account assignment category there is one field for Fund Mangement account assignment grp.
    I want to activate this field and i have to enter FM area in that field.
    Plz send some solution for the same.
    Thanks & regards,
    Pankaj

  • How to pack the More than one sales order delivery qty in one packing

    Hi Folks,
    How to pack the more than one sales order quantity combinely during packing?
    Thansk in advance and points wil be rewarded for the reply.
    Best Regards
    Srinivas

    Packing is done during Delivery.
    In Sales order also Packing function is available but as a Packing proposal.
    So actual packing is done in Delivery.
    When you process several sales orders together, the sales order items having same Ship-to-party, Shipping point, Route, Delivery due date & Incoterm are combined into one Delivery in the standard system.
    In the delivery overview screen,do the picking by subsequent function rom the menu bar, you will get a button "PACK", click on this system will take you to the packing screen.
    In the packing screen, give the packaging mterial number, select the materials to be packed, select the packaging material also and the click on the "PACK" button.

Maybe you are looking for