Setting Header in response doesn't work !!

Hi everyone,
I want to set header in response to a request but it doesn't work :
response.addHeader("WSC_RESPONSE", "STRUTS_ERROR");
System.out.println(response.containsHeader("WSC_RESPONSE"));
response.setHeader("WSC_RESPONSE", "STRUTS_ERROR");
System.out.println(response.containsHeader("WSC_RESPONSE"));
this print me :
false
false
thanks in advance for help

I can't do this because I'm putting those lines in an action who was caled by another action wich fill the response in.
private ActionForward doDispatchMethod(ActionMapping mapping,
                                           ActionForm form,
                                           HttpServletRequest request,
                                           HttpServletResponse response,
                                           String methodName)
                                    throws IOException
            Method method = getMethod(methodName);
            Object[] args = { mapping, form, request, response };
            fwd = (ActionForward) method.invoke(this, args);
        if (request.getAttribute(ERROR_KEY)!=null)
             response.reset();
             response.addHeader("WSC_RESPONSE", "STRUTS_ERROR");
             System.out.println(response.containsHeader("WSC_RESPONSE"));
             response.setHeader("WSC_RESPONSE", "STRUTS_ERROR");
             System.out.println(response.containsHeader("WSC_RESPONSE"));
        else
             response.reset();
             response.addHeader("WSC_RESPONSE", "OK");
             System.out.println(response.containsHeader("WSC_RESPONSE"));
             response.setHeader("WSC_RESPONSE", "OK");
             System.out.println(response.containsHeader("WSC_RESPONSE"));
        return fwd;
    }

Similar Messages

  • CatalogDeployer issue - "Cannot set header. Response already committed"

    Whenever we are trying to deploy any package we immediately get a 'deployment successful' message though the package is not deployed and remnains in the received for deployment queue. This is only found in the log 00000048 SRTServletRes W WARNING: Cannot set header. Response already committed.
    Very much appreciated if you could provide the resolution.
    We have a production service release tomorrow so we need assistance on this one asap. Thanks a lot

    You can not write to the response after you have forwarded the request to another servlet/JSP.

  • Had problem with my hotmail account and had to change my password. Ever since then, my default e-mail account set up to hotmail doesn't work...it sends from gmail. How can I correct that?

    Had problem with my hotmail account and had to change my password. Ever since then, my default e-mail account set up to hotmail doesn't work...it sends from gmail. How can I correct that?

    On your iPhone you need to change your password in 2 places:
    - Incoming Mail Server and
    - Outgoing Mail Server
    To get to the password entry for the Outgoing Mail Server you have to tap on cell smtp.live.com and again on the second view.

  • JTextField - Setting the column size doesn't work. Help, please.

    Hi,
    I want to set the column size of a text field from another text field by the input from the user. However, it just doesn't work. The following is my code. Just check out the last anonymous inner class action listener. Somehow i can get the user text, but it just doesn't work.
    Thanks for any helpful inputs.
    * Introduction to Java Programming: Comprehensive, 6th Ed.
    * Excercise 15.11 - Demonstrating JTextField properties, dynamically.
    * @Kaka Kaka
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.Border;
    import javax.swing.border.LineBorder;
    import javax.swing.border.TitledBorder;
    public class Ex15_11 extends JFrame{
        // Create two text fields and three radio buttons
        private JTextField jtfUserText = new JTextField(10);
        private JTextField jtfColumnSize = new JTextField(new Integer(10));
        private JRadioButton jrbLeft = new JRadioButton("Left");
        private JRadioButton jrbCenter = new JRadioButton("Center");
        private JRadioButton jrbRight = new JRadioButton("Right");
        public static void main(String[] args){
            Ex15_11 frame = new Ex15_11();
            frame.pack();
            frame.setTitle("Excercise 15.11 - Text Field Property");
            frame.setLocationRelativeTo(null);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);
        // Start of Constructor
        public Ex15_11(){
            // Set the the frame layout
            setLayout(new BorderLayout(5, 5));
            // Create three panels and two labels
            JPanel jpText = new JPanel();
            JPanel jpHorizontalAlignment = new JPanel();
            JPanel jpColumn = new JPanel();
            JLabel jlblTextField = new JLabel("Text Field");
            JLabel jlblColumn = new JLabel("Column Size");
            // Create a button group for the radio buttons to be grouped
            ButtonGroup group = new ButtonGroup();
            // Group the radio buttons
            group.add(jrbLeft);
            group.add(jrbCenter);
            group.add(jrbRight);
            // set a titled border for a panel
            jpHorizontalAlignment.setBorder(new TitledBorder("Horizontal Alignment"));
            // Create a line border
            Border lineBorder = new LineBorder(Color.BLACK, 1);
            // the all the components to their corresponding panels
            jpText.add(jlblTextField);
            jpText.add(jtfUserText);
            jpHorizontalAlignment.add(jrbLeft);
            jpHorizontalAlignment.add(jrbCenter);
            jpHorizontalAlignment.add(jrbRight);
            jpColumn.setBorder(lineBorder);
            jpColumn.add(jlblColumn);
            jpColumn.add(jtfColumnSize);
            // add the panels to the frame
            add(jpText, BorderLayout.NORTH);
            add(jpHorizontalAlignment, BorderLayout.WEST);
            add(jpColumn, BorderLayout.EAST);
            jrbLeft.addActionListener(new ActionListener(){
                // Handle event
                public void actionPerformed(ActionEvent e) {
                    jtfUserText.setHorizontalAlignment(SwingConstants.LEFT);
            jrbCenter.addActionListener(new ActionListener(){
                // Handle event
                public void actionPerformed(ActionEvent e) {
                    jtfUserText.setHorizontalAlignment(SwingConstants.CENTER);
            jrbRight.addActionListener(new ActionListener(){
                // Handle event
                public void actionPerformed(ActionEvent e) {
                    jtfUserText.setHorizontalAlignment(SwingConstants.RIGHT);
            // Register the listener for the coloum size
            jtfColumnSize.addActionListener(new ActionListener(){
                // Handle event
                public void actionPerformed(ActionEvent e) {
                    System.out.println(Integer.parseInt(jtfColumnSize.getText()));
                    jtfUserText.setColumns(Integer.parseInt(jtfColumnSize.getText()));
    }Edited by: ChangBroot on Dec 16, 2008 6:13 PM

    don't forget to revalidate the JPanel after changing the components it holds:
        jtfColumnSize.addActionListener(new ActionListener()
          // Handle event
          public void actionPerformed(ActionEvent e)
            System.out.println(Integer.parseInt(jtfColumnSize.getText()));
            jtfUserText.setColumns(Integer.parseInt(jtfColumnSize.getText()));
            jpText.revalidate();
        });This will tell the jpText JPanel's layout manager to relayout the components that this JPanel holds. It should resize your JTextField. Note that in order to call this from within the anonymous inner ActionListener jpText will need to be declared "final". Either that or declared as a class field.

  • Reportviewer 2010 - 2012 Page Header PrintOnFirstPage=false Doesn't work

    Hi, I converted my project from 2010 to 2012 and added the new reportviewer reference(v10 to v11). something that worked in 2010 no longer works in 2012.
    I have a report with a simple page header that i do no want shown on the first page but now a blank area the size of the page header appears on the first page, where in 2010, the body moves up to the top. is there a property im missing? i am using printonfirstpage=false
    on the page header but it isnt working as expected.
    thanks

    Hi dell.ca,
    According to your description, you have a report with a simple page header, and  you set PrintOnFirstPage property to false. It works fine in Visual Studio 2010, when you run the report using VS 2012, a blank area of the page header appears on the first
    page.
    I tried to reproduce this issue on my local machine. However, the report works fine for me when converted from SQL Server Data Tools(SSDT) 2010 In SQL Server 2012 to SSDT 2012. For this case, i recommend that you consider applying the latest patches according
    to your version. If the problem remain unresolved, you can submit a feedback to Microsoft Connect at this link
    https://connect.microsoft.com/SQLServer/Feedback. This connect site will serve as a connecting point between you and Microsoft, and ultimately the large community for you and Microsoft to interact
    with. Your feedback enables Microsoft to offer the best software and deliver superior services, meanwhile you can learn more about and contribute to the exciting projects on Microsoft Connect.
    If you have any questions, please feel free to let me know.
    Thanks,
    Wendy Fu

  • How can I remove print margins when manually setting them to zero doesn't work?

    I'm trying to print a web page that I've created with a custom paper size of 4.5x10.25 inches. I want the page to be printed right to the edge of the paper, with no margins at all.
    I've been reading for a few days and the best thing I can find is to use Mac's Page Setup dialog to create a custom paper size and custom margins, which I've done and set to the default for all of my printers. (Hopefully I'm able to post links to images --> http://i.imgur.com/kVbOZLk.png). No matter what I do though I can't get the margins to go away. There's always always always a .75 inch margin when I print and when I print preview (Again, hoping I can post links to images --> http://i.imgur.com/cxlVS8o.png). Just to note: The same thing happens printing other websites and documents (i.e it is not a problem with my website).
    Things I've tried:
    I've read that the margins are only visible in print preview and printing the page will remove them. This didn't work.
    I've tried tricking the system by setting my margins to 0.01 inches
    I've tried adjusting the website to not be exactly the size of the page (I made it smaller) and the margins were still there.
    I've set "print.print_extra_margin" to 0 in Firefox's about:config page.
    I've tried a different printer.
    I've tried a co-worker's machine running a newer version of OSX.
    I've made absolutely sure that my page size it set correctly.
    I'm using OSX 10.6.8 with Firefox v21.0.
    The closest I can come to this is using Google Chrome, where there is a specific option for "none" in margins and the Chrome preview looks okay, but I'm not able to specify paper size unless I click "Print using system dialog" which gives me the same problems as above.
    How do I remove the margins and just fit to the exact size of the page?

    Welcome to Apple Support Communities. We're all users here.
    Does your Print dialog offer photo 'borderless printing' settings for various paper sizes?
    Every photo printer I've ever encountered leaves some unprintable margin, unless 'borderless' and/or 'photo' media are specifically selected.
    On many of the Canon inkjet color printers I've used, borderless printing is only available when one of the photo papers is selected, even when a custom size specified that is smaller than the actual paper, trying to make it 'borderless'
    I stitch together and print panoramas of theatre sets for my local community theater, so I end up with an image about 4.5 inches by 11.5 inches to be printed.
    Selecting a photo and opening in Preview and selecting 'Fill Entire Paper' illustrates the standard unprintable borders for my specific printer.
    When I open the panoramic image in Preview, I get this print preview. (The set image is of course rotated left)
    By selecting Letter and Borderless in the Paper Size dialog for my Canon MG5320 printer, I get this result.
    This particular Canon printer of course does NOT actually 'know' what paper is inserted, but the ink is applied assuming that a photo paper is being used, so it will saturate a standard paper.
    Hope this helps!
    Message was edited by: kostby

  • Setting environment variables remotely doesn't work for Windows 7

    Hi,
    $RemoteMachineList = 'machA', 'machB'
    $session = New-PSSession $RemoteMachineList
    Invoke-Command -Session $session {[Environment]::SetEnvironmentVariable("Role",0,"Machine")}
    The above is the code snippet which I've tried for setting a machine level environment variable. After executing this code in a collection of XP and Windows 7 machines, when I go and check the advanced settings->system environment variables, I can see
    the new entry "Role" in all the machines. But unfortunately, this env variables actually gets set only in XP machines(I did a set command from a cmd prompt/or an echo command) whereas in Windows 7 machines, this doesn't exists even though it
    shows up in the advanced settings->system environment variables.
    Tried in several machines, only Windows XP is yielding the required result.
    Please help. 
    Thanks in advance ! 
    -Aravind

    Thanks Chen, but still the same result. 
    I'll narrow down the scenario(actually two scenarios) as per the way it's behaving on Windows 7 machines.
    Case - 1
    1. I do a SetEnvironmentVariable remotely.
    2. I go to that remote machine and search in advanced settings -> system env variables window. Dont click on the OK Button.  Close these windows.
    Result: Yes it is there as an entry.
    3. I open up a command prompt and type 'set'
    Result: No it is not set.
    4. Again open up advanced settings -> system env variables window. Click on the OK Button.  Close these windows.
    5. Now open up a command prompt window and type 'set'
    Result: It is set now
    Case 2:
    1. I do a SetEnvironmentVariable remotely.
    2. I go to that remote machine and search in advanced settings -> system env variables window. Dont click on the OK Button.  Close these windows.
    Result: Yes it is there as an entry.
    3. I open up a command prompt and type 'set'
    Result: No it is not set.
    4. I do a system restart.
    5. Open up a command prompt and type 'set'
    Result: It is set now
    Any idea why this is behaving like this(more or less like setting a user level env variable), please  ? I've to some way get through this obstacle to advance further. Thanks a lot for the support

  • "Set Locators by Regions" doesn't work

    Hi all --
    When I select "Set Locators by Regions" from the menu, or via a keyboard shortcut, nothing happens. It worked fine until last week.
    Any idea how to fix this?
    -- Matt

    It may be obscured by another KC

  • Creating a gradient then setting transparency to lighten doesn't work

    Hi folks, i'm trying to create a gradient overlay that is set to 'lighten' in the transparency palette but for some reason it creates a total white result?
    To, visually at any rate, get the desired effect the only setting that seems to work is overlay but that's not what i want really.
    It seems to work fine with 'multiply' the gradient's dark area multiply the background object.
    Any ideas??
    Thanks

    Really? I got 16 hits. Here's the 2nd:
    To create opacity masks
    To create a mask from an existing object, select at least two objects or groups, and choose Make Opacity Mask from the Transparency palette menu. The topmost selected object or group is used as the mask.
    To create an empty mask, select a single object or group, or target a layer in the Layers palette. Then double-click directly to the right of the thumbnail in the Transparency palette. If the thumbnail isnt visible, choose Show Thumbnails from the palette menu. An empty mask is created and Illustrator automatically enters mask-editing mode. Use the drawing tools to draw a mask shape. Click the artwork thumbnail (left thumbnail) in the Transparency palette to exit mask-editing mode.
    Note: The Clip option sets the mask background to black. Therefore, black objects, such as black type, used to create an opacity mask with the Clip option selected will not be visible. To see the objects, use a different color or deselect the Clip option.

  • Delete response doesn't work in my automation

    Hello all,
    Has anybody else come across problems with the 'delete' response, or have any suggestions for me?
    I've setup a watcher automation that's very simple. 1. Copy and move the file to the library (no transcode), and 2. Delete. When I drag a file into the watch folder, it copies it to the library just fine, but the file remains in the original drop folder! It should have been deleted, right?
    I'm working with all of the media on the SAN, including the watch folder. I've tried it with subfolders and the root watch folder. I've tried it with 'delete all', and that does not work. Am I forgetting about some really simple here?
    I would appreciate any thoughts/tips/suggestions.
    XSAN, FCS 1.1, any other crucial info?
    thanks,
    cbill

    Andiron,
    I installed FCSvr under a local admin account. As a result it is having permissions issues with the archive/delete process.
    Is there an easy way to get FCSvr running under a network account? I tried just re-installing, but it is still running as the local admin, which has no r/w permissions.
    Or do I have to delete FSCvr and re-install from scratch under network account?
    Thanks!

  • Set Time Zone automatically doesn't work?

    Just returned from a trip to Greece (back home now in Phoenix). Noticed that even connected to wifi in different locations, when "set time zone automatically" was clicked on in general settings, time displayed on iPad seemed stuck in EST. (I made a stop in Philly on way to trip, not sure if that has to do with anything.)
    If i click "set time zone automatically" to off, for some reason my iPad defaults to Washington DC, even though in all my calendar/email settings i have Phoenix set as local time zone. I can change Washington DC to Phoenix and correct time displays on iPad. Just wondering why i can't set it automatically to display correct local time?
    Thanks for any suggestions....

    Ok thanks. Yeah, I ended up using the World Clocks.
    Where it gets interested is, iCal. If you're in a foreign country that's, say, 4 hours ahead, and you add iCal entries to your Calendar while you're out there, should those entries reflect the local time or the home time?
    Also, if you're set the Alarm to wake you up at 8:00am, and you're away on holiday, surely it will go off at home time, not local time, thus going off at the WRONG time.

  • HT4259 I have been trying for hours to extend my Extreme Gen 5 network with an Express Gen 2.  But no matter what I do or try, it doesn't work.  What does happen is my internet gets block somehow when the Express looks like it's set up and 'green' - no in

    I have been trying for hours to extend my Extreme Gen 5 network with an Express Gen 2.  But no matter what I do or try, it doesn't work.  What does happen is my internet gets blocked somehow when the Express is online and looks like it's set up perfect and 'green' - but no internet connection for anything even though the Extreme is green and the modem is good.  Once I disconnect the Express, everything is good again.
    I've tried LAN, WAN, though a switch, direct connect, Extreme set to Extend the network, the Express set to be an extension.  Most of the time I get an error trying to update the Express.  But when it seems to be set up perfect, the entire house can't get to the internet.  Just when it looks right, it is so wrong.
    If anyone can give me exact steps (e.g., "...from the Base Station menu, select the Restore Default Setting option" vice "...just restore the defaults..."), I would greatly appreciate it.  I'm left to the conclusion that the Express is faulty.  I've been using Airport Utility 6.2 from Mountain Lion on one computer and Airport Utility 5.6.1 from Snow Leopard on another computer (the latter give more control while the former just want you to 'forget' the Express).

    I finally got it working.  I was trying to set it up ethernet.  My biggest mistake was when the new Express came on, I did not select 'Continue' - I went straight to manual thinking that I would get the most setup options in manual mode.  So everything I initially tried always resulted in 'wireless'.  Even when I would update or restore default settings, the Express would not completely restart. Or sometimes I would get an error. So most of the time I had to unplug it.  So when it came back up, none of my changes were retained. But there were a lot of times when everything was green and appeared to be fine. But anytime the ethernet cable was plugged in, no more internet.
    So here's the weird part.  When I finally tried 'continue' (vice manual), I would get 4 options.  One would be 'ethernet' extended.  So I would select it, it gave me green lights, all looked good, and still the same problem.  This is when I got frustrated.  I thought I had exhausted all possible combinations.
    But somehow when trying continue again after another restore, I only got 3 options.  One was the same ethernet extended option (can't remember what the missing 4th one was).  And this time it worked - it gave me the big green circle with the checkmark saying it was successful.  I don't know what I did different, but I know now that it won't work if 4 options come up to choose from.  It will work if only 3 options come up.  And success if only verified by the big checkmark.  Had anyone anywhere said the checkmark declaring success is validation, then maybe I wouldn't have gone down so many rabbit holes thinking it should have been successful.
    As for which Airport Utility I prefer, 6.2 looks nice, but it would just ignore the Express and would want me to 'forget' it and would not let me edit it.  Airport Utility 5.6.1 was the one that I ended up using the most and finally had success with.  It still strikes me as odd that there is no manually way to pick ethernet, it can only be choosen following a 'restore defaults', and only from the 3-option list (the 4-option list had the same ethernet choice, but it no worky).
    Thanks for the response.  I really do appreciate it.
    Aiport Extreme Gen5 - internet access and router
    Airport Express Gen2 - connected via ethernet, extending my wireless
    - configured while connect directly to the Extreme, but now on a switch (16-port hub)
    Using Airport 5.6.1
    1) Restore Defaults from Base Station menu
    2) Following restart, Select Continue
    3) Of the 3 option presented, select 'ethernet.... extend network...'
      - if 4 options are present, may not work
    4) Wait for the green circle with the big white checkmark.
    5) Connected Express to the switch where a cable went to other end of house - works.
    Dead-zone went from 2mbps to 24mbps.
    I probably spent 4 hours chasing my tail in anger.  The correct way took about 5 minutes total.
    Thanks again.

  • BAPI_SALESORDER_CREATEFROMDAT2 doesn't work for header Condition

    Hi, All
    I'm trying to create a sales order using BAPI_SALESORDER_CREATEFROMDAT2.
    It doesn't work to create a heder condition.(HB00)
    After BAPI, I check KONV data, HB00 data is broken.
    KONV-STUNR and KONV-ZAEHK is blank.
    but item condtion data is OK. no problem.
    I don't know why.
    my code is below.
    If you have any idea, please let me know.
    IW_LOGIC_SWITCH-PRICING = 'G'
    CLEAR IW_CONDITIONS.
    IW_CONDITIONS-ITM_NUMBER = '000000'.
    IW_CONDITIONS-COND_COUNT = '01'.
    IW_CONDITIONS-COND_TYPE  = 'HB00'.
    IW_CONDITIONS-COND_VALUE = W_VALUE.
    IW_CONDITIONS-CURRENCY   = W_WAERK.
    IW_CONDITIONS-CONDCOINHD = '01'.
    APPEND IW_CONDITIONS TO IT_CONDITIONS.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
      EXPORTING
        ORDER_HEADER_IN               = IW_HEADER
        LOGIC_SWITCH                  = IW_LOGIC_SWITCH
      IMPORTING
        SALESDOCUMENT                 = W_SALEDOC
      TABLES
        RETURN                        = IT_RETURN
        ORDER_ITEMS_IN                = IT_ITEMS
        ORDER_PARTNERS                = IT_PARTNERS
        ORDER_SCHEDULES_IN            = IT_SCHEDULES
        ORDER_CONDITIONS_IN           = IT_CONDITIONS
        ORDER_TEXT                    = IT_TEXT
        EXTENSIONIN                   = IT_EXTENSIONIN
        PARTNERADDRESSES              = IT_PARTNERADDRESSES.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    Regards,
    Rie.

    check the following link
    Re: BAPI_SALESORDER_CREATEFROMDAT2 how to set condition type value as zero (0).
    L_ORDER_PARTNERS-PARTN_ROLE = 'AG'.
    L_ORDER_PARTNERS-PARTN_NUMB =
    RECORD-KUNNR_1.
    APPEND L_ORDER_PARTNERS TO
    LI_ORDER_PARTNERS.
    L_ORDER_PARTNERS-PARTN_ROLE = 'WE'.
    L_ORDER_PARTNERS-PARTN_NUMB =
    RECORD-KUNNR_2.
    APPEND L_ORDER_PARTNERS TO
    LI_ORDER_PARTNERS.
    * Build order header
    CLEAR: L_ORDER_HEADER_INX,
    L_ORDER_HEADER_IN.
    * Update flag
    L_ORDER_HEADER_INX-UPDATEFLAG = 'I'.
    * Sales document type
    L_ORDER_HEADER_IN-DOC_TYPE =
    RECORD-AUART.
    L_ORDER_HEADER_INX-DOC_TYPE = 'X'.
    * Sales organization
    L_ORDER_HEADER_IN-SALES_ORG = RECORD-VKORG.
    L_ORDER_HEADER_INX-SALES_ORG = 'X'.
    * Distribution channel
    L_ORDER_HEADER_IN-DISTR_CHAN = RECORD-VTWEG.
    L_ORDER_HEADER_INX-DISTR_CHAN = 'X'.
    * Division
    L_ORDER_HEADER_IN-DIVISION = RECORD-SPART.
    L_ORDER_HEADER_INX-DIVISION = 'X'.
    * Sales Office
    L_ORDER_HEADER_IN-SALES_OFF = RECORD-VKBUR.
    L_ORDER_HEADER_INX-SALES_OFF = 'X'.
    * Sales Group
    L_ORDER_HEADER_IN-SALES_GRP = RECORD-VKGRP.
    L_ORDER_HEADER_INX-SALES_GRP = 'X'.
    * Purchase order
    L_ORDER_HEADER_IN-PURCH_NO_C = RECORD-BSTNK.
    L_ORDER_HEADER_INX-PURCH_NO_C = 'X'.
    * Purchase order Date
    L_ORDER_HEADER_IN-PURCH_DATE =
    RECORD-BSTDK.
    L_ORDER_HEADER_INX-PURCH_DATE = 'X'.
    * Payment Terms
    L_ORDER_HEADER_IN-PMNTTRMS = RECORD-ZTERM.
    L_ORDER_HEADER_INX-PMNTTRMS = 'X'.
    * Incoterm1
    L_ORDER_HEADER_IN-INCOTERMS1 = RECORD-INCO1.
    L_ORDER_HEADER_INX-INCOTERMS1 = 'X'.
    * Incoterm2
    L_ORDER_HEADER_IN-INCOTERMS2 = RECORD-INCO2.
    L_ORDER_HEADER_INX-INCOTERMS2 = 'X'.
    * Customer Group
    L_ORDER_HEADER_IN-CUSGROUP = RECORD-KDGRP.
    L_ORDER_HEADER_INX-CUSGROUP = 'X'.
    ENDIF.
    * Build order item(s)
    CLEAR: L_ORDER_ITEMS_INX, L_ORDER_ITEMS_IN.
    L_ORDER_ITEMS_IN-ITM_NUMBER = INO.
    L_ORDER_ITEMS_INX-ITM_NUMBER = INO.
    L_ORDER_ITEMS_IN-MATERIAL = RECORD-MABNR.
    L_ORDER_ITEMS_INX-MATERIAL = 'X'.
    L_ORDER_ITEMS_IN-PLANT = RECORD-WERKS.
    L_ORDER_ITEMS_INX-PLANT = 'X'.
    L_ORDER_ITEMS_IN-SALES_UNIT = RECORD-VRKME.
    L_ORDER_ITEMS_INX-SALES_UNIT = 'X'.
    L_ORDER_ITEMS_IN-WBS_ELEM = RECORD-PS_POSID.
    L_ORDER_ITEMS_INX-WBS_ELEM = 'X'.
    APPEND L_ORDER_ITEMS_IN TO LI_ORDER_ITEMS_IN.
    L_ORDER_ITEMS_INX-UPDATEFLAG = 'I'.
    APPEND L_ORDER_ITEMS_INX TO
    LI_ORDER_ITEMS_INX.
    * Build Schedule lines... Order Quantity
    CLEAR: L_ORDER_SCHEDULES_IN,
    L_ORDER_SCHEDULES_INX.
    L_ORDER_SCHEDULES_IN-ITM_NUMBER = INO.
    L_ORDER_SCHEDULES_INX-ITM_NUMBER = INO.
    L_ORDER_SCHEDULES_IN-REQ_QTY = RECORD-KWMENG.
    L_ORDER_SCHEDULES_INX-REQ_QTY = 'X'.
    L_ORDER_SCHEDULES_INX-UPDATEFLAG = 'X'.
    APPEND L_ORDER_SCHEDULES_IN TO
    LI_ORDER_SCHEDULES_IN.
    APPEND L_ORDER_SCHEDULES_INX TO
    LI_ORDER_SCHEDULES_INX.
    * Build Conditions
    CLEAR: L_ORDER_CONDITIONS_IN,
    L_ORDER_CONDITIONS_INX.
    L_ORDER_CONDITIONS_IN-ITM_NUMBER = INO.
    L_ORDER_CONDITIONS_IN-COND_COUNT = '01'.
    L_ORDER_CONDITIONS_IN-COND_TYPE =
    RECORD-KSCHL_1.
    L_ORDER_CONDITIONS_IN-COND_VALUE =
    RECORD-KBETR_1.
    IF RECORD-KSCHL_1 = 'PR00'.
    L_ORDER_CONDITIONS_IN-COND_VALUE =
    L_ORDER_CONDITIONS_IN-COND_VALUE
    / 10.
    ENDIF.
    L_ORDER_CONDITIONS_INX-ITM_NUMBER = INO.
    L_ORDER_CONDITIONS_INX-COND_COUNT = '01'.
    L_ORDER_CONDITIONS_INX-COND_TYPE =
    RECORD-KSCHL_1.
    L_ORDER_CONDITIONS_INX-UPDATEFLAG = 'X'.
    L_ORDER_CONDITIONS_INX-COND_VALUE = 'X'.
    APPEND L_ORDER_CONDITIONS_IN TO
    LI_ORDER_CONDITIONS_IN.
    APPEND L_ORDER_CONDITIONS_INX TO
    LI_ORDER_CONDITIONS_INX.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
    EXPORTING
    ORDER_HEADER_IN =L_ORDER_HEADER_IN
    ORDER_HEADER_INX = L_ORDER_HEADER_INX
    IMPORTING
    SALESDOCUMENT = L_VBELN
    TABLES
    RETURN = LI_RETURN
    ORDER_ITEMS_IN =
    LI_ORDER_ITEMS_IN
    ORDER_ITEMS_INX =
    LI_ORDER_ITEMS_INX
    ORDER_PARTNERS =
    LI_ORDER_PARTNERS
    ORDER_SCHEDULES_IN =
    LI_ORDER_SCHEDULES_IN
    ORDER_SCHEDULES_INX =
    LI_ORDER_SCHEDULES_INX
    ORDER_CONDITIONS_IN =
    LI_ORDER_CONDITIONS_IN
    ORDER_CONDITIONS_INX =
    LI_ORDER_CONDITIONS_INX
    END-OF-SELECTION

  • A pop-up message is frozen on my settings page. I was trying to set up an apple id for iTunes when I got a message "required fields have been left blank. The missing information is highlighted in red." the ok button doesn't work. 1st gen iPad.

    A pop-up message is frozen on my settings page. I was trying to set up an apple id for iTunes when I got a message "required fields have been left blank. The missing information is highlighted in red." the ok button doesn't work. The message is now fixed & I cannot get rid of it. Ironically, when I found this forum I was able to set up an apple Id. Please advise how to get rid of the pop-up box. Thanks!

    I'm having this same problem as well and cannot advance--very irritating. All of the information is filled out correctly and I've editted my AppleID information online separately as well to get around this issue, but no luck...

  • I am locked out of my account because my password includes "[" and my computer is set to spanish. In spanish that key doesn't work. How do I gejt back into my computer?

    i am locked out of my account because my password includes "[" and my computer is set to spanish. In spanish that key doesn't work. How do I gejt back into my computer?

    If the user account is associated with an Apple ID, and you know the Apple ID password, then maybe the Apple ID can be used to reset your user account password.
    Otherwise*, boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window opens.
    Select your boot volume if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Follow the prompts to reset the password. It's safest to choose a password that includes only the characters a-z, A-Z, and 0-9.
    Select
     ▹ Restart
    from the menu bar.
    You should now be able to log in with the new password, but your Keychain will be reset (empty.) If you've forgotten the Keychain password (which is ordinarily the same as your login password), there's no way to recover it.
    *Note: If you've activated FileVault, this procedure doesn't apply. Follow instead the instructions on this page:
    If you forget the password and FileVault is on

Maybe you are looking for

  • How to embed an attachment in rtf(excel output) from oracle reports

    Hi, I have a requirement to embed an attachment from oracle reports(fnd_lobs) into rtf template which will generate excel output. Can you please provide me suggestions on this. Thanks, Kavya

  • BufferedReader.readLine doesn't return null

    Hi there, I'm trying to put together a simple Chat client/server application. The issue I'm having is with the Server app. I have a class that extends Thread which contains this call: temp = input.readLine() in the run() method. Everytime I connect w

  • Does time capsule works with Lion?

    I am new to Mac after I had an HP damaged, and decided to move on to Mac.  As I do not want to repeat the experience of losing all the information for not backing it up, I was told that I could make backups with time Machine and Time Capsule.  I woul

  • Email from BTconnect

    I Get two email accounts to my BB, my personal O2.co.uk email and my Business email Btconnect.co.uk. I recently changed the BTconnect password and received a message to update password with my BB email. I have tried to sign in and keep getting: "your

  • Activity Code ASSYPT_AUTO_FILL

    Hello, When I release a new shop order, I see that an activity ASSYPT_AUTO_FILL  is logged for the SFC's. This activity auto assembles components from the BOM, but the SFC is still in a 'New' state. Can anybody tell me how to stop this behaviour? The