BAPI_SALES_ORDER_CHANGE: How to handle route when shipingcondition changed

Hi Experts,
This is a question regarding BAPI_SALES_ORDER_CHANGE.
Normally, through VA02 if we change the shipping condition VBAK-VSBED of a sales order, then a popup will raise from which we can determine the route (VBAP-ROUTE).
If we pass the same change in shipping condition to BAPI_SALES_ORDER_CHANGE, can BAPI automatically handles the change in route?
As human intervention is needed to determine the route while trying with VA02 , how this can be handled using the BAPI.?
Please guide me.
Regards
Sunil

Hi,
Generally SAP does not recommand any popup windows in the BAPI.So it is not possible to get popup in the bapi.But you can check bapi user-exits any way to get popup windows.But it is not recommanded.
Thanks,
radha.

Similar Messages

  • How to get value when OAMessageLovInputBean Change

    How to get value when OAMessageLovInputBean Change
    I want to get lov value atfer user select value return page

    As you wanna get the value in process form request, get the value from the VO column attached to the bean, if not you can attach a tranient Vo attribute!
    --Mukul                                                                                                                                                                                                                                                                                                                                                                               

  • How to handle event when the user closing the browser (Urgent Please)

    Hi,
    How to handle the event when user closes the browser....
    i want to display some alter message when user trying to close the browser...
    Please can any one help me how i have to do this...........
    Thanks.

    Finally got this working. You cannot use the stop() or destroy methods. By the time they are called all database connections are gone and you will get a null pointer exception.
    You will have to use the onBeforeUnload method in the html file that calls the applet and use JavaScript to call the save method in java which saves the document:
    <SCRIPT LANGUAGE="JScript" TYPE="text/javascript">
    function Save()
    //i call the applets doSave() method from here in which i save all
    //changes to the database
    top.Tree.document.TestApplet.doSave();
    //this will invoke the default IE message for closing the window
    //when user clicks on the x in the browser
    message = "Your document has been saved."
    return message;
    window.onbeforeunload=Save;
    </SCRIPT>
    //the applets doSave()
    public void doSave()
    //this frame provides user with the message that document is being
    //saved
    final JFrame frame = new JFrame("Saving");
    JPanel contentPane = new JPanel();
    JLabel label = new JLabel(" Please wait, saving document...");
    frame.getContentPane().add(label,BorderLayout.CENTER);
    frame.setSize(250, 100);
    frame.setLocation(300, 400);
    frame.setResizable(false);
    frame.setVisible(true);
    frame.addWindowListener(new WindowAdapter()
    //the frame is just for user's information, so prevent user from
    //closing it or iconifying it.
    public void windowClosing(WindowEvent e)
    frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
    public void windowIconified(WindowEvent e)
    frame.setState(frame.NORMAL);
    //call my saveDocument() method that saves everything to the database.
    editorModule.saveDocument();
    //System.out.println("finished calling saving document");
    //once the saving is done the frame with the message disappears
    frame.setVisible(false);
    //System.out.println("setting frame to false");
    //I also had an exit button in my applet, that would perform the same task, however now with the above onBeforeUnload method, the exit message would appear twice, so had to modify my exit button action performed, so that if the exitbutton was clicked the onbeforeunload method would get passed a null value and not do anything.
    private void exitButton_actionPerformed()
    if (DEBUG) System.out.println("Calling exit");
    doSave();
    window.eval("this.onbeforeunload=null;");
    window.eval("top.close();");
    //continue from here if user cancels the closing of the window
    window.eval("this.onbeforeunload=doSave;");
    window.eval("top.focus()");
    window.eval("document.TestApplet.requestFocus()");
    homePanel.requestFocus();
    }

  • How to write rfc when value change in the screen (browser) in webdynpro.

    Hi,
    I want to know how can i write an RFC when screen value change in webdynpro. I already designed a rfc where all the value can be seen in the webdypro screen. Now when user change the value how can i pick the changed value in R/3 so that i can save it into the respective database.  Please send some code for understanding it easily as i am new to this field.
    Regards
    Deep

    Hi Deepak,
    Though I dint understand your requirment properly but as it is raised in Web Dynpro forum I considering that you want to send the data filled by the user to your backend using RFC calls. For this purpose you can refer to this two documents available on SDN.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/creating%20a%20web%20dynpro%20application%20accessing%20abap%20functions.pdf">Tutorial 4</a>
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d352a790-0201-0010-5082-b1a608d22b6c">Tutorial 5</a>
    Regards
    Sid

  • How to handle Forecasting when modeling in BW?

    Hello Experts,
    can you give me hints on how to handle forecasting during modeling?
    Do you create a whole new Cube to load actual fugures and another for the forecasted figures? Or, there is another way. This pertains to HR environment. Any samples any where to read on?
    Thanks.

    Hi,
    I am new to BPS. Trying to implement forecasting. Can u let me know how i should implement the forecast planning function when using a single cube scenario.
    can u give me a small example to make it clearer or point me to an example link where they actually tell you how to implement the function.
    I am having a lot of difficulty expressing the exact issue, but i'll still try explaining. How can i in the forecasting function use several data columns in the layout as reference data columns and copy the result of the forecast to new data columns in the same layout. I have defined each data column as a key figure in the cube.
    I am really having a lot of problem. If u have some contact number please let me know so that i can call you from my office now.
    Regards,
    Really Desparate for Help.
    Regards,
    Salman

  • How to handle events when artboard list change in Illustrator?

    It is very strange for me, but AIEvent has no event type for handle artboard list change events.
    http://cssdk.host.adobe.com/sdk/1.5/docs/WebHelp/references/cshalib/com/adobe/cshostadapte r/AIEvent.html
    May be there are any ideas how to get artboard events: "add", "delete", "reorder" 

    Well, the right event type is AIEvent.DOCUMENT_CROP_AREA_MODIFIED. It is very usefull to play with EventWatcher example from Remote Creative Suite SDK Examples.

  • How to determine Quant when posting change?

    Dear Expert,
    I am trying to Post Change using FM L_TO_CREATE_POSTING_CHANGE (LT05), but I have no idea about the table parameter: T_LUBQU,  the most confused thing is the field LQNUM, I know that it is Quant, but can any1 tell me how I can get the properly quant to run this FM?
    Thanks a lot.
    Vincent
    Edited by: Vincent on Dec 8, 2008 11:13 AM

    Hello,
    Quant
    Definition
    This is the stock of any material with the same features in one storage bin. The system
    manages different batches of a material as different quants. The quantity of a quant can be
    increased by an addition to existing stock. Quants can be created or deleted solely through
    goods movements.
    Use
    The quants serve to manage stocks at storage bin level.
    When you store goods in an empty storage bin in WM, the system automatically creates a quant
    in this bin. The system automatically assigns a quant number. The quant is automatically deleted
    by the system when the material quantity is picked.
    In the quant record, the system manages the data of the materials grouped in the quant. This
    data includes.
      Quant identification
      Plant
      Material number
      Batch number
      Stock category
      Special stock indicator and number
    Regards,
    Shailesh

  • How to handle error when in middle of processing of data, target DB goes down

    I have large amounts of data ( for e.g.- 1000 records). It is writing to a DB target table. At the middle of processing of 500 th record, target DB goes down.
    What will happen to the data after 500??
    In which table will the data after 500 th record be stored?
    After target DB comes up how will the data( from 501 th record) be fetched so that no data loss takes place..
    Thanks,
    Anindya

    Anindya,
    ODI's performance is pretty good, because in fact there is no "ODI Performance". The performance will be as good as your enviroment performance + a good load strategy. I've been working in several ODI projects with gigantic volumes, with no performance issues.
    There is no such thing as "remaining un-inserted data". All data being inserted remains in the I$ table until the end of the process. ODI does not automatically control inserted/uniserted data, so, be carefull if you will implement a commit in your process. You will have to implement your process in order to flag the data that has been comitted, and where clauses to ignore them when the load is aborted/restarted.
    Also you will have to use a row-by-row processing which will dramatically decrease your performance.
    Please let me know if that helps!
    []'s

  • How to update collection when checkbox changed in report

    I have a report based on a collection:
    select seq_id
           ,c001
           ,c002
           ,apex_item.checkbox(1,seq_id,decode(c003,'J','CHECKED','UNCHECKED')) selected
    from apex_collections
    where collection_name='CONCOLLECTION'When the checkbox changes I want to store the new checked/unchecked status in the collection.
    Steps towards a solution I've come up with:
    1 Create a dynamic action: Change, jquery selector : input[name="f01"]
    2 Create javascript to store value (=seq_id) of changed item into a hidden page item.
    3 plsql code to update collection member with seq_id that is now in hidden item.
    Is this the way to do it?
    If so, it's the javascript of step 2 that I can't figure out.
    thanks, René

    thanks this works.
    Using javascript I store the seq_id and the checked value in 2 page items
    $s('P70_SEQ_ID', $(this.triggeringElement).val() );
    $s('P70_CHECKED', $(this.triggeringElement.checked).val() );The checked value I get is <empty> when checked and 'undefined' when unchecked. Based on this I can now update the collection.
    declare
      l_selectie varchar2(1);
    begin
      if v('P70_CHECKED')='undefined'
      then
        l_selectie := 'N';
      else
        l_selectie := 'J';
      end if;
      apex_collection.update_member_attribute(p_collection_name => 'CONCOLLECTION'
                                                 ,p_seq             => v('P70_SEQ_ID')
                                                 ,p_attr_number     => 3
                                                 ,p_attr_value      => l_selectie);
    end;

  • Using LSMW how to handle Value contracts create/change (VA41) /(VA42)

    Hi Experts,
    Please suggest me how to create and change of value contracts using LSMW.
    Actually i got one  standard batch input program RVINVB10 in LSMW  for create/change for value contracts. but the problem is one field ZWERT - Target Value in Document Currency is not present in the Target structure at item level.
    ZWERT - Target Value in Document Currency field is required for my scenario.
    Points will be awarded for the Correct answers.
    Regards,
    Tirumala Reddy

    Hi Ramky,
    Thanks for your response.
    In LSMW first we have to map all source structure fields to Target structure fields right, ZWERT field is there in my source structure and there is no field matching with ZWERT in the Target structure.
    Field name :ZWERT
    Field Description: Target Value in document currency.
    If you know solution please reply me soon.
    Regards,
    Tirumala Reddy

  • Regarding bdc , how to handle records when power is off

    hi experts
    whenever i update the records by session method suppose after 100
    records power is off, then how i can handle the records now.
    this is frequently asked me .
    please replay.
    thanks
    subhasis.

    put the power on again, and go to transaction SM35 and search for your session.
    regards,
    Hans
    Please reward all helpful answers !!!!!

  • How to handle Event when more that 2 rows are selected in a WD Table

    Hello WD developers,
    I need your assistance.
    My case is as following:
    I have a WD table populated with data.
    I also have several buttons in the toolbar table.
    One of those buttons should be enabled only in case that one row (and only one)
    is selected in the table otherwise it should be disable.
    The problem is that an even is triggered only when the first row is selected
    and when the second (third....) are selected no event occur.
    Do you have any idea How can I solve this issue.
    Thnaks in advance for your help.
    Regards
    Harry

    Hi,
    In the Onlead selection of table make it visible and invisble of your buttons as per your selection.
    The table have single selection and multi seletion options are availble when you defing the table you can find this options in the properties of the table.
    In onlead selection your button to be mapped with attribute WDVisble.
    And based on your selection you can visible and invisible.
    wdContext.currentContextElement.set<attribute>(WDVisble.Visble);
    and
    wdContext.currentContextElement.set<attribute>(WDVisble.NONE);
    This might helps you.
    Do you need more post your issues.
    Thanks,
    Lohi

  • How to handle transactions when two different databases are involved.

    consider two tables namely Table-A and Table-B part of two different databases namely ORACLE and MYSQL.
    Now the project requirement is updating the Table-A(ORACLE) and Table-B (MYSQL) as one transaction. i.e. either update both the tables or rollback both the tables.
    Now my question is how could i handle this situation using JDBC(Type-4) driver.Because i think at a time only one JDBC driver can be loaded into the JVM.

    NareshAnkuskani wrote:
    Now my question is how could i handle this situation using JDBC(Type-4) driver.Because i think at a time only one JDBC driver can be loaded into the JVM.No, that is not true.
    But anyway, you need to use distributed (XA) transactions. i believe that the latest version (5.0) of mysql actually has support for XA transactions. you need to use a to setup a distributed transaction and attach the connections for the two databases to that transaction. then it should function as you desire.

  • How to choose routing when productiong order is cofimmed

    Hi All:
        I met an Issue . A semifinished product has two routings (A and B ) .A is used for general situation .B is used for ugent situation. I chose A when I created production order. but in fact I used B. I know I can solve this issue through modifying the routing of production order . But I don't think it's  a good solution . can I solve this Issue throug Paralle Routing or alternative routing ? would you like to give me some suggestions? thank you very much .

    Hello X Y
    Production version is a combination of BOM & Routing in Discrete scenario & in REM scenario its a
    combination of BOM & Rate routing/Routing.
    Steps to Create Production Version :
    1 Gp to MRP View 4
    2 select Production Version
    3 enter Production Version name and its Text
    4 Then Click "New Details"
    5. Enter Routing and BOM detail
    Repeat step 2 to 5 for Second prod version
    As per Kumar Suggestion Configure Production version selection manually
    So as per your requirement you select the production version when convert planned order to prod order.
    Go to OPL8 for Production version manually selection configuration
    I hope this information helpful to you,
    Regards
    Umesh Mali

  • How do i see when i changed calendar!

    so i can prove that i did wrote in the calendar

    Unfortunately you can't.  Only when they edit the file you can, by checking the modification date of the file.
    However if you are suspicious of anyone else opening and looking at your files, you can create a folder and call it "Confidential" or something. And then add a Folder Action to that folder to send you an email if anyone opens the folder.
    Here is an example of a Folder Action Script you can use if you want to do that:
    property theName : "Your Name"
    property theAddress : "[email protected]"
    on opening folder this_folder
              set {TID, text item delimiters} to {text item delimiters, ", "}
              set this_folder to this_folder as text
              set text item delimiters to TID
              set dateString to (current date) as string
              set theBody to "Someone accessed this folder " & name of (info for this_folder) & "and probably looked at a file…."
              tell application "Mail"
                        set newMessage to make new outgoing message with properties {visible:true, subject:"Someone looked at an item in a your confidential folder on your desktop" & dateString, content:theBody}
                        tell newMessage
      make new to recipient at end of to recipients with properties {name:theName, address:theAddress}
                        end tell
      activate
      send newMessage
              end tell
    end opening folder

Maybe you are looking for

  • Mac Mini with OSX server still OK?

    HI All, I was going to purchase the mac mini that was geared up to work best with OSX server however that option is now no longer available and the mac mini's have downgraded slightly in terms of quadcore processors and 2tb harddrives. We run a small

  • IPhoto Book Sign In Problems

    I've been trying to buy a photo book and I get to the sign in page for the check out but after I put in my ID and password it just goes back to the sign in page. I have everything on my computer up to date, and have changed my password and shipping d

  • How do I delete tabs that remain at the tool bar on my iPad air

    How can I delete tabs remaining at the tool bar ?????

  • Dynamic context attributes and ALV

    Hi all, I already posted my question in this [thread|WD4A Dynamic ALV Table with dynamic tables;, but in the ABAP UI programming forum, but I think it fits better in the WD4A forum. It's dazzling that there are two forums for WD4A. Maybe a moderator

  • Aero is disabled

    Hi, I am running Windows 7 RC build 7100 64 bit and Aero keeps turning itself off. I am using a Shuttle SN78SH7 http://eu.shuttle.com/en/DesktopDefault.aspx/tabid-72/170_read-14760/ with a Sapphire Radeon HD4550 graphics card The Windows Experience i