How to change schedule line fields when save sales documents in va01/va02

Hi, every Experts,
I want to change schedule line when save the sales documents in va01 or va02, such as change delivery block or schedule line category.
of course, can use user exit USEREXIT_SAVE_DOCUMENT_PREPARE, but I do not know to use this user exit, I am newer about ABAP.
Please help me , thanks.
best regards
Passion Wu

Hi,
For changeing schedule line: select line item, GOTO --> item --> schedule lines --> enter the confirmed qty.
USEREXIT_SAVE_DOCUMENT_PREPARE program is MV45AFZZ
For your reference
USEREXIT_SAVE_DOCUMENT_PREPARE - Can I use in button, but skip
regards,
Mohanprabu C

Similar Messages

  • How to Change Schedule line Quantity in BADI 'ORDER_SAVE'

    Hi,
    I need to change the Schedule line quantity While Order saving. I am writing the code in ORDER_SAVE BADI. Using the Header guid i am reading the details and changing the quantity in Schedule line structure. How can i pass those values in to Memory so that order quantity will change. I try to Use CRM_ORDER_MAINTAIN but not able to change the quantity. Can an

    Hi,
    You need the One Order Function Module - CRM_ORDER_MAINTAIN to update the Schedule line value. So, you need to have a look at all the fields that are necessary to fill using the Tables and Structures. If you have the header guid, then you can probably pass the guid to CRM_ORDER_READ to read the values and then fill in the entries necessary to make the changes.
    You can also debug the order code to get a feel of the necessary changes.
    Hope this helps.
    Thanks,
    Samantak.

  • Adding Custom Fields to the Sales Order Screens - VA01, VA02 & VA03

    Hi,
    I have a requirement to add custom fields in the Sales Order Standard Screen. Could anyone please tell me is there any screen exit available to add a tab screen or is there any possibility without modifying the standard code.
    Please let me know with the details.
    Thanks & Regards,
    Goutham.

    Hi Narendran,
    Thanks for prompt reply, it was very useful.
    Could you please let me know the procedure you have followed in coming to this conclusion of what screens to be used.
    I understand that the program is SAPMV45A.
    Thanks & Regards,
    Goutham.

  • Change mail "from" field when share a document get stuck into account selection

    Hi All,
    When I use an application and I try to share a document by mail e popup window appears. Now if I try to change the "from" (I have two mail accounts configured on iOS) the current window is replaced with the list of all available "sender" mail addresses, but, from here, it's impossible to get back to the "share by mail" window!
    See the images in sequence:
    Step 1. Share a doc
    Step 2. Tap on "From" field:
    Step 3. Change "sender" and get stuck
    At this point I can only kill the application!
    This doesn't happens when the share by mail window is as big as the iPad screen!

    Back up all data.
    Triple-click the line below to select it:
    ~/Library/Application Support/AddressBook/MailRecents-v4.abcdmr
    Right-click or control-click the highlighted line and select
    Services ▹ Reveal
    from the contextual menu.* A folder should open with an item selected. Quit the application if it's running. Move the selected item to the Desktop, leaving the window open. Relaunch the application and test. If there's no change, quit again and put the item you moved back where it was, overwriting the one that may have been created in its place. Otherwise, delete the item you moved.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard (command-C). In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar, paste into the box that opens (command-V). You won't see what you pasted because a line break is included. Press return.

  • How to fill properly PA fields when creating FI document through BDC sessio

    Hello Guys,
    I got a problem filling PA fields properly when creating an FI document via FB01 with BDC session. There is no problem filling PA fields properly with bapi 'BAPI_ACC_DOCUMENT_POST' as background and document is being created succesfully but when I try to create FI document via Batch input session and when Profitibality segment screen comes , PA field values don't fill the appropriate PA fields in this screen and cannot be created document. There is no problem sending appropriate values to related fields in the program code because I debugged and seen it. Do you have any idea for solving this issue?

    mehmet gullu wrote:
    Hello Guys,
    > I got a problem filling PA fields properly when creating an FI document via FB01 with BDC session. There is no problem filling PA fields properly with bapi 'BAPI_ACC_DOCUMENT_POST' as background and document is being created succesfully but when I try to create FI document via Batch input session and when Profitibality segment screen comes , PA field values don't fill the appropriate PA fields in this screen and cannot be created document. There is no problem sending appropriate values to related fields in the program code because I debugged and seen it. Do you have any idea for solving this issue?
    In some scenarios when the program is run in the background then some screen numbers are different. Maybe you can try to simulate the program in background mode.

  • Change schedule line category

    HI,
    I wonder if somebody can give an idea of how to change schedule line category of non-stock products by order type.
    Thanks,

    Hi,
    Did you check the userexit FORM userexit_move_field_to_vbep in the include MV45AFZZ
    Thanks,
    Naren.

  • Change Schedule Line category through user exit - Issue with transfer of requirements

    Dear All,
    There is a user exit in Sales Order program MV45AZZ - PREPARE_TO_SAVE . It is currently being used to implement code to change schedule line category based on the status of the sales order.
    When Blocked , category is set to ZP, and when Released then it is set to CP.
    Now, when we change ZP to CP manually through VA02, I am able to see the requirements transferred in tcode MD50.
    The problem is, when user changes status of sales order from blocked to released, the userexit changes categories from ZP to CP, but the requirements are not transferred ( cannot see it in MD50 ).
    I tried searching the SCN, tried googling it, its been a week now and I havent found any clear solution.
    So, far what I understood is Availability Check needs to be carried out again. But I am not clear how to trigger it again.
    Are there any indicators that need to be set or any internal tables to be updated or any FM to call or any other user exit to place the code in.

    ?? Any suggestion friends ?

  • How to change email "From" field???

    Hi Everyone, 
    New to blackberry.   I would like to know how I can change the "From" field when you send an email from the phone to a name or email address I want it to say.    
    Here is my email situation:
    My email address is ''[email protected]" (which i purchased) and anbody who sends an email to me gets forwarded to my yahoo email account.  In yahoo I created an "alias" "[email protected]" so when I send an email, nobody sees my actual yahoo account which I want to keep private.  How do I do this?  
    I searched in the forum but coudn't find any solutions.  Thanks so much for any help. 

    You couldn't find any solution because there is none given your current configuration.
    You're receiving your email from your Yahoo account - not your peronal domain account.  It's kind of a security issue for you not to be able to forge an email address on your BlackBerry.  In fact, you can't change the FROM address when replying at all on a BlackBerry.  You can forward using another email address that's set up on the device, but you can't manually enter a FROM address even when forwarding.
    First thing to do is to set up your personal email account through your BIS setup.
    Once you've done that, you can either stop forwarding your personal email to your Yahoo account, OR filter your personal email to NOT be forwarded to your device through your Yahoo BIS setup, OR have your personal email filtered on your Yahoo account and delivered to a folder other than the Inbox and it shouldn't be seen by your BIS setup.
    Jerry

  • How to change the default JRE when there are several version of JRE in Sys

    How to change the default JRE when there are several version of JRE in System?
    i have installed j2sdk1.5.0 then installed j2ee1.4,then installed Weblogic6.1 which use jdk1.3
    Now the JRE is jdk1.3\bin
    When run class that was compiled with jdk1.5,throw:
    java.lang.UnsupportedClassVersionError
    How can i change the jre to 1.5?

    There is a workaround to move from 1.5 version to the older 1.4 version. But this could be specific to the browser setting the JRE version.
    Excerpts from sun docs:
    However, a user can still run older versions. To do so, launch the Java Plug-in Control Panel for the older version, then (re)select the browser in the Browser tab.
    Example:
    Assume you are running on Microsoft Windows with Microsoft Internet Explorer, have first installed version 1.4.2, then version 5.0, and you want to run 1.4.2.
    Go to the j2re1.4.2\bin directory where JRE 1.4.2 was installed. On a Windows default installation, this would be here: C:\Program Files\Java\j2re1.4.2\bin
    Double-click the jpicpl32.exe file located there. It will launch the control panel for 1.4.2.
    Select the Browser tab. Microsoft Internet Explorer might still appear to be set (checked). However, when 5.0 was installed, the registration of the 1.4.2 JRE with Internet Explorer was overwritten by the 5.0 JRE.
    If Microsoft Internet Explorer is shown as checked, uncheck it and click Apply. You will see a confirmation dialog stating that browser settings have changed.
    Check Microsoft Internet Explorer and click Apply. You should see a confirmation dialog.
    Restart the browser. It should now use the 1.4.2 JRE for conventional APPLET tags.
    Details are here
    http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/jcp.html
    My system (Windows XP) has the version 1.5_09 set as the default. However i just installed JRE 1.5_06 and would like to revert back to _06 as the default JRE..
    Will update if i find more information

  • BAPI to read and change schedule lines in APO

    Hello experts,
    We want to firm schedule lines inside the firm zone of the APO procurement scheduling agreements with a daily job. For this we are trying to use BAPI BAPI_POSRVAPS_GETLIST3 and BAPI_POSRVAPS_SAVEMULTI3. The getlist one does not return schedule lines, it returns purchase orders and purchase requisitions. Are these the right bapis to read and change schedule lines in APO? or is there anyother one we can use?
    Thanks and regards,
    Ergul

    Hi,
             You can use the below code to read the schedule lines.
    Checking a session exists
        CALL FUNCTION '/SAPAPO/RRP_SIMSESSION_GET'
          IMPORTING
            ev_simsession = gv_sims
            es_gen_params = gv_params.
    If not create a new session and read it
        IF gv_sims IS INITIAL.
          CALL FUNCTION '/SAPAPO/RRP_SIMSESSION_CREATE'
            IMPORTING
              ev_simsession = gv_sims.
          CALL FUNCTION '/SAPAPO/RRP_SIMSESSION_GET'
            IMPORTING
              ev_simsession = gv_sims
              es_gen_params = gv_params.
          g_cre_chk = 'X'.
        ENDIF.
    CALL FUNCTION '/SAPAPO/CMDS_TPSRC_GET'
        EXPORTING
          iv_ebeln                       = p_l_t_acknh_ebeln
          iv_ebelp                       = p_l_t_acknh_ebelp
        TABLES
          et_tpsrc_all                   = lt_tpsrc
        EXCEPTIONS
          matid_not_found                = 1
          locfrom_not_found              = 2
          locto_not_found                = 3
          scheduling_agreement_not_found = 4
          error_selecting_schedagreement = 5
          OTHERS                         = 6.
      IF sy-subrc = 0.
    reading the scheduling agreement records
        READ TABLE lt_tpsrc INTO ls_tpsrc INDEX 1.
        CALL FUNCTION '/SAPAPO/PWB_BZQID_GET_ORDER'
          EXPORTING
            iv_simid               = '000'
            iv_bzqid               = ls_tpsrc-bzqid
          IMPORTING
            ev_ordid               = lv_iordid
          EXCEPTIONS
            lc_connect_failed      = 1
            no_elements            = 2
            unit_conversion_failed = 3
            OTHERS                 = 4.
        IF sy-subrc = 0.
          CALL FUNCTION '/SAPAPO/PWB_GET_RELATED_ORDERS'
            EXPORTING
              iv_ordid             = lv_iordid
              iv_order_type     = '16'
              iv_simid            = '000'
            IMPORTING
              ev_ordid          = lv_eordid
            EXCEPTIONS
              order_not_found   = 1
              lc_connect_failed = 2
              no_elements       = 3
              OTHERS            = 4.
          IF sy-subrc = 0.
            APPEND lv_eordid TO lt_ordid.
            CALL FUNCTION '/SAPAPO/DM_PO_READ'
              EXPORTING
                iv_simsession     = gv_sims
                is_gen_params     = gv_params
                it_ordid          = lt_ordid
              IMPORTING
                et_schedule       = p_lt_sched
              EXCEPTIONS
                lc_connect_failed = 1
                lc_com_error      = 2
                lc_appl_error     = 3
                OTHERS            = 4.
          ENDIF.
        ENDIF.
      ENDIF.
    Use '/SAPAPO/CMDS_SNP_MM_ORD_MODIFY' function module to change the schedule lines (Pass '16' to iv_order_type parameter).
    Let me know if u have any issues.
    Regards,
    Siva.

  • Change Schedule line in Scheduling agreement by function.

    I want to know that is enalbe to change schedule line in Scheduling agreement by function( 'BAPI' or Standard function).
    I known that is possible by BDC.
    But I have to change many records. So I want to know faster method.
    Please let me know what function enbale that.
    Thank you for your interest.

    Hi..
    The Scheduling agreement is one which is created runing MRP not VA31.
    I know that is two transaction data in SAP.
    One is Sales Data other one is Purchasing Data.
    This is second one.
    Thank you your response.

  • How to change the line item storage location during the sales order creatio

    How to change the line item storage location during the sales order creatio

    Hi Kumar,
    I think you can just delete it in the sales order directly, if you are using make-to-order scenario, then there will be special stock left for the sales order as the production has been goods receipt, you need to use MM transaction move the stock to unrestricted use stock. If you are using make-to-stock scenario, there should be no further problem. If you are using assembly order, please try to reject the sales order item to see if it could fullfill your requirement.
    Regards,
    Rachel

  • How to change report region fields in read only mode?

    How to change report region fields in read only mode?
    skud.

    add the following javascript fuction to page header(or Javascript function and variables section)
    function disableItems(pRegionStaticId,pDisableFlag) {
      $('#'+pRegionStaticId).find('[name^=f]').each( function(){ /* matches fxx */
        if( $(this).attr('name').match(/f[0-9][0-9]/) ){
          return $(this);
      }).attr('disabled',pDisableFlag);
    pRegionStaticId is the region's static Id+
    Note that this code specifically disables only application arrays. Disabled items are not available after submission (and hence are different from readonly) . But any page javascript can modify disabled or readonly items(client side), so you must check at the server side to validate the data.
    You can disable items using
    disableItems('MY_REGION_ID' ,true);and enable them by passing false
    disableItems('MY_REGION_ID' ,false);

  • I want to know how to change schedule on Transport Requests

    Hi.
    I want to know how to change schedule Transport Requests.
    And the Transport requests has already approved by Transport Proposals.
    Now I tried to change schedule after re-creat Transport Request,it is same
    Transport Request Number.
    But I can't change schedule.
    Please help me!
    Thanks.
    Toshi

    In full editor, Image>Resize>image size. Be sure to check "Resample Image & Constrain proportions".
    You can also do it with the crop tool. On the tool's option bar, enter the resolution in the appropriate box.

  • How to change country to canada when paying

    how to change country to canada when paying only usa comes

    Hi rehmanb28852745,
    You can change the default country for the Adobe website by clicking Change Region in the lower-left corner.
    Please let us know if you have additional questions.
    Best,
    Sara

Maybe you are looking for

  • Who needs apple to make the bezels for the macbook pro? Lets get together and tell apple they must! It is a design flaw.

    I love my pro. I paid 2700. for it 4 years ago. I did that because I know they are meant to last. I could have purchased a regular laptop but they don't last. Until recently I was ecstatic with it. Then one day I opened it up and my screen seemed rea

  • Pop of Admin login page

    I have created a page where I have buttons like delete and create report buttons. I am able to delete or add row in report(on same page), but whenever I click on delete or Add button, application ask for Admin username and password. Afte giving usern

  • To re-send a fax

    Hello there, I am trying to re-send a fax but when going into MR90 the document number is not there. Can you please help on this? Thanks a lot

  • Job Termination in source system-Dataload failure

    Hello Forum, We are on BW 3.1 and our source is SAP R/3 Enterprise. We have been facing a recurring problem for a dataload, that is JOB TERMINATION IN SOURCE SYSTEM. Details of the load: Target:Master Data Full load Processing:      PSA and InfoObjec

  • Unwanted shadow effect?

    Hello Acrobat Forum: I've had an annoying problem with PDF created from InDesign CC for months now, and I can't figure out what's wrong because it seems intermittent, and I can't narrow the variables to figure out when it's happening or why. Sometime