BAPI_PO_CHANGE is not updating Quantity and Delivary Date

HI All,
I am trying to update quantity and delivery date of PO by using BAPI_PO_CHANGE,
by Passing below parameters.
As per the documentation:
Parameter: PURCHASEORDER 4500003477
Parameter: POHEADER
PMNTTRMS = 0002
PUR_GROUP = 002
Parameter: POHEADERX
PMNTTRMS = X
PUR_GROUP = X
Parameter: POITEM
PO_ITEM = 00001
CONF_CTRL = 0001
Parameter: POITEMX
PO_ITEM = 00001
PO_ITEMX = X
CONF_CTRL =  X
Parameter: POSCHEDULE
PO_ITEM = 00001
SCHED_LINE = 0001
QUANTITY = 10.000
Parameter: POSCHEDULEX
PO_ITEM =  00001
SCHED_LINE =  0001
PO_ITEMX =  X
SCHED_LINEX =  X
QUANTITY =  X
Parameter: POACCOUNT
PO_ITEM = 00001
SERIAL_NO = 01
GL_ACCOUNT = 0000400020
Parameter: POACCOUNTX
PO_ITEM = 00001
SERIAL_NO = 01
PO_ITEMX = X
SERIAL_NOX = X
GL_ACCOUNT = X
and executed bapi_transaction_commit FM immediate, i am getting below message
Purchase Orders 4500003477 changed
Error transferring ExtensionIn data for enhancement CI_COBL
No message generated for output of purchasing document
but quantity and delivery date was not  changed..
why this quantity and delivery date is not changing?
<removed by moderator>
REgards,
Suresh.D
Edited by: Thomas Zloch on Feb 27, 2012

Hi ,
Are you trying to pass the non char fields in CI_COBL. Please look at the link below .
[http://forums.sdn.sap.com/thread.jspa?threadID=1137795] .
Also serach for the similar threads when and notes while transferring currency and quantity field in different custom includes of the EKPO ...
Thanks,
Anjaneya .

Similar Messages

  • Updating Quantity and delivery date from bapi_po_change.

    Hi Guru's.
    i had a question which is regarding PO updation through bapi-po_change.
    my requirment is to update PO from PR.
    i can able to update a po from PR for multiple line items.
    i am facing the problem with single line items.
    problem :
    when i create single line item and change existing line item, which is performing two actions at a time
    i can able to create a new line time from PR to Po , even i can able to change the existing line time partially that is it is updating only quantity but not delivery date, it is updating the delivery date which is created for new line item.
    please help me out how to resolve this,
    plz guide me what are the parameters which i supposed to pass.
    every thing is working fine for multiple line items but not single line item.
    Regards,
    Raj.

    Hi,
    No response , please any one can provide the resolution for this.
    Regards,
    Nagaraju.

  • BAPI function module 'BAPI_PO_CHANGE' is not updating aacural condition

    Dear All,
    BAPI function module 'BAPI_PO_CHANGE' is not updating aacural condition in PO pricing. Please give me a right solution on this query.
    Below I have given my code.
    Thanks and Regards
    Makarabd
    poitem-po_item = '00010'.
    poitem-net_price = '1060.00'.
    poitem-period_ind_expiration_date = 'D'.
    APPEND poitem.
    poitemx-po_item = '00010'.
    poitemx-po_itemx = 'X'.
    poitemx-net_price = 'X'.
    APPEND poitemx.
    select single * from ekko where ebeln = po_no.
    pocond-itm_number = '00010'.
    pocond-cond_type = 'ZVCU'.
    pocond-cond_value = 10.
    pocond-currency = '%'.
    pocond-STAT_CON = 'X'.
    pocond-accruals = 'X'.
    pocond-change_id = 'I'.   " I - Add , U - Update , D - Delete
    APPEND pocond.
    pocondx-itm_number = '00010'.
    pocondx-itm_numberx = 'X'.
    pocondx-cond_type = 'X'.
    pocondx-cond_value = 'X'.
    pocondx-currency = 'X'.
    pocondx-change_id = 'X'.
    pocondx-STAT_CON = 'X'.
    pocondx-accruals = 'X'.
    APPEND pocondx.
       CALL FUNCTION 'BAPI_PO_CHANGE'
            EXPORTING
              purchaseorder          = po_no
            TABLES
              return                 = return
              poitem                 = poitem
              poitemx                = poitemx
              pocond                 = pocond
              pocondx                = pocondx.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT = 'X'.

    Hi ,
    Are you trying to pass the non char fields in CI_COBL. Please look at the link below .
    [http://forums.sdn.sap.com/thread.jspa?threadID=1137795] .
    Also serach for the similar threads when and notes while transferring currency and quantity field in different custom includes of the EKPO ...
    Thanks,
    Anjaneya .

  • How to update link and import data of relocated incx file into inca file?

    Subject : <br />how to update link and import data of relocated incx file into inca file.?<br />The incx file was originally part of the inca file and it has been relocated.<br />-------------------<br /><br />Hello All,<br /><br />I am working on InDesignCS2 and InCopyCS2.<br />From indesign I am creating an assignment file as well as incopy files.(.inca and .incx file created through exporing).<br />Now indesign hardcodes the path of the incx files in inca file.So if I put the incx files in different folder then after opening the inca file in InCopy , I am getting the alert stating that " The document doesn't consists of any incopy story" and all the linked story will flag a red question mark icon.<br />So I tried to recreate and update the links.<br />Below is my code for that<br /><br />//code start*****************************<br />//creating kDataLinkHelperBoss<br />InterfacePtr<IDataLinkHelper> dataLinkHelper(static_cast<IDataLinkHelper*><br />(CreateObject2<IDataLinkHelper>(kDataLinkHelperBoss)));<br /><br />/**<br />The newFileToBeLinkedPath is the path of the incx file which is relocated.<br />And it was previously part of the inca file.<br />eg. earlier it was c:\\test.incx now it is d:\\test.incx<br />*/<br />IDFile newIDFileToBeLinked(newFileToBeLinkedPath);<br /><br />//create the datelink<br />IDataLink * dlk = dataLinkHelper->CreateDataLink(newIDFileToBeLinked);<br /><br />NameInfo name;<br />PMString type;<br />uint32 fileType;<br /><br />dlk->GetNameInfo(&name,&type,&fileType);<br /><br />//relink the story     <br />InterfacePtr<ICommand> relinkCmd(CmdUtils::CreateCommand(kRestoreLinkCmdBoss)); <br /><br />InterfacePtr<IRestoreLinkCmdData> relinkCmdData(relinkCmd, IID_IRESTORELINKCMDDATA);<br /><br />relinkCmdData->Set(database, dataLinkUID, &name, &type, fileType, IDataLink::kLinkNormal); <br /><br />ErrorCode err = CmdUtils::ProcessCommand(relinkCmd); <br /><br />//Update the link now                         <br />InterfacePtr<IUpdateLink> updateLink(dataLinkHelper, UseDefaultIID()); <br />UID newLinkUID; <br />err = updateLink->DoUpdateLink(dl, &newLinkUID, kFullUI); <br />//code end*********************<br /><br />I am able to create the proper link.But the data which is there in the incx file is not getting imported in the linked story.But if I modify the newlinked story from the inca file,the incx file will be getting update.(all its previous content will be deleted.)<br />I tried using <br />Utils<IInCopyWorkflow>()->ImportStory()<br /> ,But its import the incx file in xml format.<br /><br />What is the solution of this then?<br />Kindly help me as I am terribly stuck since last few days.<br /><br />Thanks and Regards,<br />Yopangjo

    >
    I can say that anybody with
    no experience could easily do an export/import in
    MSSQLServer 2000.
    Anybody with no experience should not mess up my Oracle Databases !

  • Inbound Delivery Idoc not update PIC and PGI with split batch.

    Dear Experts,
    Delivery outbound with split batch send to third party Warehouse to PIC and PGI from SAP, then receive the delivery inbound IDOC to update the PIC and PGI in SAP from third party. Basic Idoc DELIVERY03 it's works fine with out split batch, with split batch it's not updating PIC and PGI at the same time no error. Please advice on this
    E1EDL24-HIPOS = "HIGHER LEVEL ITEM NUMEBR"
    E1EDL24-HIEVW = "VALUE 1"
    E1EDL19-QALF = "BAS"
    Thanks and Regards,
    Thiru.

    Hi,
    You also have to create a segment with following data as well (for batches).
    E1EDL19-QUALF = "QUA".
    Cheers,

  • RFQ quantity and delivery date

    Hi,
    I created a smartform for RFQ.I am getting material details from EKPO.But i need RFQ quantity and delivery date to be displayed for each quantity.I found the field in structure RM06E.I tried by putting structure name in form.Its not working.
    Any table to find these data(reg RFQ details)?How to solve this issue?

    Hi,
    u can get the RFQ date and Quantity from EKKO & EKPO tables.
    Quantity: EKPO-KTMNG;
    RFQ No and Date: EKKO-EBELN, EKKO-AEDAT
    Thanks,
    Pavani.

  • RCV transaction processor not updating quantity delivered for requisitions

    We are converting PO receiving transactions using PO details for each transaction. Each PO is having requisition(s) attached to it. Open interface program is not updating quantity delivered for requisitions attached to it but transactions get created successfully.
    However, from iprocurement if we receive the items for requisitions it is updating the quantity delivered column.
    Are we missing something??

    Hi,
    If you enter the receipt manually in Forms (not in iProcurement) referencing the Purchase Order, is it than behaving the same as the converted receipts?
    Regards,
    Marcel

  • My itunes will not update.  and i can not uninstall becuse of some supid file it cant find

    My I tunes will not update.  and i can not uninstall becuse of some supid file it cant find. hence i cant connect to my iphone now that i hav the latest software on my phone.

    and i can not uninstall becuse of some supid file it cant find.
    What's the name of the file? (Precise text, please.)

  • My iPad is not updating calendar and address book.  My iMac and iPhone are fine. What is wrong?

    My iPad is not updating calendar and address book.  My iMac and iPhone are fine. What is wrong?

    Reset the device. If it doesn't work try removing your account and adding it again. If that doesn't work then try restoring the device to factory settings by pluggin into iTunes and clicking "Restore".

  • Tried updating my itunes about a month ago, it would not update properly and left me with a notification saying "i tunes was not installed properly, please reinstall itunes" i've uninstalled and reinstalled a few times and still nothing.

    Tried updating my itunes about a month ago, it would not update properly and left me with a notification saying "i tunes was not installed properly, please reinstall itunes" i've uninstalled and reinstalled a few times and still nothing.
    i might need walked through on a few things if they are too complicated.

    Have you:
    - Restore from backup. See:                                                
    iOS: Back up and restore your iOS device with iCloud or iTunes
      - Restore to factory settings/new iOS device.            
    If a PC
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    or              
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8

  • BAPI_PO_CHANGE is not updating Confirmation Category and Date cate Category

    Hi to all,
                 Am using BAPI_PO_CHANGE in my program. My program is to upload excel file and transfer the data to corresponding tables.
    All the thing is working perfectly but the two fields in BAPI are not updating. They are CONF_TYPE and DEL_DATCAT_EXT in POCONFIRMATIONS( which is tables in bapi).Am giving my code below. And this POCONFIRMATIONS is available from  6.0 version.
    Thanks in advance.
    Shah.
    LOOP AT it_ebelp INTO is_ebelp .
        CLEAR:  is_header, is_poitem,  is_poitemx,is_confirm, is_return.
        is_header-po_number       = is_ebelp-ebeln.
        is_poitem-po_item         = is_ebelp-ebelp.
        is_poitem-conf_ctrl        = 'SMIC'.
        APPEND is_poitem TO it_poitem.
        is_poitemx-po_item        = is_ebelp-ebelp.
        is_poitemx-po_itemx       = 'X'.
        is_poitemx-conf_ctrl      = 'X'.
        APPEND is_poitemx TO it_poitemx.
        is_confirm-po_item        = is_ebelp-ebelp.
        is_confirm-conf_type      = 'LA'.
        is_confirm-del_datcat_ext = 'D'.
        APPEND is_confirm TO it_confirm.
        AT END OF ebeln.
          CALL FUNCTION 'BAPI_PO_CHANGE'
            EXPORTING
              purchaseorder  = is_header-po_number
              POHEADER       = is_header
            TABLES
              return         = it_return
              poitem         = it_poitem
              poitemx        = it_poitemx
              poconfirmation = it_confirm.
          IF NOT it_return IS INITIAL.
            LOOP AT it_return INTO is_return.
              WRITE : is_return-message.
            ENDLOOP.
            READ TABLE it_return TRANSPORTING NO FIELDS WITH KEY type = 'E'.
            IF sy-subrc <> 0.
              CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
           EXPORTING
           wait   = c_x
                IMPORTING
                  return = is_return1.
            ENDIF.
          ENDIF.
          REFRESH: it_poitem,  it_poitemx,it_confirm, it_return.
        ENDAT.
      ENDLOOP.

    Hi Shah,
    I also facing the same problem which u had passed already..
    could teach me how u over come this.
    one more thing my sap version is 4.7 in bapi_po_change
    i don't have poconfirmation
    *CALL FUNCTION 'BAPI_PO_CHANGE'
    EXPORTING
       purchaseorder                =
      POHEADER                     =
      POHEADERX                    =
      POADDRVENDOR                 =
      TESTRUN                      =
      MEMORY_UNCOMPLETE            =
      MEMORY_COMPLETE              =
      POEXPIMPHEADER               =
      POEXPIMPHEADERX              =
      VERSIONS                     =
      NO_MESSAGING                 =
      NO_MESSAGE_REQ               =
      NO_AUTHORITY                 =
      NO_PRICE_FROM_PO             =
    IMPORTING
      EXPHEADER                    =
      EXPPOEXPIMPHEADER            =
    TABLES
      RETURN                       =
      POITEM                       =
      POITEMX                      =
      POADDRDELIVERY               =
      POSCHEDULE                   =
      POSCHEDULEX                  =
      POACCOUNT                    =
      POACCOUNTPROFITSEGMENT       =
      POACCOUNTX                   =
      POCONDHEADER                 =
      POCONDHEADERX                =
      POCOND                       =
      POCONDX                      =
      POLIMITS                     =
      POCONTRACTLIMITS             =
      POSERVICES                   =
      POSRVACCESSVALUES            =
      POSERVICESTEXT               =
      EXTENSIONIN                  =
      EXTENSIONOUT                 =
      POEXPIMPITEM                 =
      POEXPIMPITEMX                =
      POTEXTHEADER                 =
      POTEXTITEM                   =
      ALLVERSIONS                  =
      POPARTNER                    =
    i  am waiting for u reply
    Edited by: JJ on Sep 10, 2008 1:54 PM

  • BAPI_PO_CHANGE does not update as desired

    Hi there,
         I used BAPI_PO_CHANGE FM to change the delivery date and stat.delivery date in Purchase Order,
        but its not updating...
    Here is my code..pls help...thanks in advance,
    REPORT  ZSUDHIR_BAPI_PO_SCHDLE.
    PARAMETERS: P_PO  TYPE EKKO-EBELN,
                P_ITM TYPE EKKO-EBELN,
                P_DD  TYPE EKKO-EQ_EINDT.
    DATA: IT_RETURN TYPE STANDARD TABLE OF BAPIRET2,
          WA_RETURN TYPE BAPIRET2,
          lv_flag TYPE flag,
          IT_SCH TYPE STANDARD TABLE OF BAPIMEPOSCHEDULE WITH HEADER LINE,
          IT_SCHX TYPE STANDARD TABLE OF BAPIMEPOSCHEDULX WITH HEADER LINE.
          IT_SCH-PO_ITEM = P_ITM.
          IT_SCH-DELIVERY_DATE = P_DD.
          IT_SCH-STAT_DATE = P_DD.
          IT_SCH-QUANTITY = '10'.
          IT_SCH-SCHED_LINE = '0001'.
          APPEND IT_SCH.
          CLEAR IT_SCH.
          IT_SCHX-PO_ITEM = P_ITM.
          IT_SCHX-PO_ITEMX = 'X'.
          IT_SCHX-DELIVERY_DATE = 'X'.
          IT_SCHX-STAT_DATE = 'X'.
          IT_SCHX-QUANTITY = 'X'.
          IT_SCHX-SCHED_LINE = 'X'.
          APPEND IT_SCHX.
          CLEAR IT_SCHX.
    CALL FUNCTION 'BAPI_PO_CHANGE'
      EXPORTING
        PURCHASEORDER                = P_PO
    *   POHEADER                     =
    *   POHEADERX                    =
    *   POADDRVENDOR                 =
    *   TESTRUN                      =
    *   MEMORY_UNCOMPLETE            =
    *   MEMORY_COMPLETE              =
    *   POEXPIMPHEADER               =
    *   POEXPIMPHEADERX              =
    *   VERSIONS                     =
    *   NO_MESSAGING                 =
    *   NO_MESSAGE_REQ               =
    *   NO_AUTHORITY                 =
    *   NO_PRICE_FROM_PO             =
    * IMPORTING
    *   EXPHEADER                    =
    *   EXPPOEXPIMPHEADER            =
    TABLES
       RETURN                       = IT_RETURN
       POITEM                       = IT_SCH
       POITEMX                      = IT_SCHX
    *   POADDRDELIVERY               =
    * POSCHEDULE                   =
    *  POSCHEDULEX                  =
    *   POACCOUNT                    =
    *   POACCOUNTPROFITSEGMENT       =
    *   POACCOUNTX                   =
    *   POCONDHEADER                 =
    *   POCONDHEADERX                =
    *   POCOND                       =
    *   POCONDX                      =
    *   POLIMITS                     =
    *   POCONTRACTLIMITS             =
    *   POSERVICES                   =
    *   POSRVACCESSVALUES            =
    *   POSERVICESTEXT               =
    *   EXTENSIONIN                  =
    *   EXTENSIONOUT                 =
    *   POEXPIMPITEM                 =
    *   POEXPIMPITEMX                =
    *   POTEXTHEADER                 =
    *   POTEXTITEM                   =
    *   ALLVERSIONS                  =
    *   POPARTNER                    =
    *   POCOMPONENTS                 =
    *   POCOMPONENTSX                =
    *   POSHIPPING                   =
    *   POSHIPPINGX                  =
    *   POSHIPPINGEXP                =
    *   POHISTORY                    =
    *   POHISTORY_TOTALS             =
    *   POCONFIRMATION               =
    LOOP AT IT_RETURN INTO WA_RETURN WHERE TYPE = 'E'.
      WRITE / WA_RETURN-MESSAGE.
      lv_flag = 'x'.
      ENDLOOP.
      IF lv_flag IS INITIAL.
        READ TABLE IT_RETURN INTO WA_RETURN WITH KEY TYPE = 'S'.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    * EXPORTING
    *   WAIT          =
    * IMPORTING
    *   RETURN        =
        WRITE / WA_RETURN-MESSAGE.
        ENDIF.
    Edited by: Thomas Zloch on May 19, 2011 5:11 PM - please use code tags

    Are you really sure that your IT_SCH has the same fields like POITEM?
    the delivery date and statistical delivery date are located in the schedule tab in ME23N and stored in the schedule table EKET, not in EKPO where the PO item data is stored.
    I think you should assign your IT_SCH to POSCHEDULE

  • Data not updating from psa into Data Targets

    Hiii,
    We have started data upload in info cubes from psa . The number of records was 4 in psa . But after waiting for at least 3 hours ,still the data is not updated  in info cube . The data which we want to upload in info cube (of stock) is of past date which due to some reason failed to update in BI from ECC . To upload the same that is data of past date we have deleted the setup table in ECC and then after filling the data again in set up tables, created a new info package from which uploaded data in PSA . But while trying to upload data in info cubes,it is not getting updated and the request status is showing still green yellow in psa.
    Please suggest how to resolve this issue.
    Thanks and regards

    Are you loading material movements from 2LIS_03_BF in to cube? If so, please look at the below link for inventory data loads.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/906b837a-0d54-2c10-08b8-bde70337547e?QuickLink=index&overridelayout=true
    Regards,
    JB

  • WebServer does not update parameter and looses objects

    - Please struggle through my loooong explanation - THANKS
    Hi all,
    I've got a problem with my servlets/JSPs.
    I try to build a homepage where the content is displayed dynamically and the start-page is for each link the same.
    The content of the pages are stored in HTMLs and XMLs --> the HTMLs contain the static content and also contains identifier for the XMLs which contain the dynamic content. Problem is, that there can be more than one XML. So I've cretaed a properties-file which maps 1-HTML to n-XMLs. So I've generated code which parses (with SAX) through the XMLs and takes the information and stores these information to an object. This object itself is stored with an ID in a hashmap.
    Then I go through the HTML (read in a String) and replace the keys (HTML) with the matching value from the Hashmap.
    When a page is displayed and the client clicks on a link the same page should be called with parameter http://..../start?lang=de&page=link then I should get the information and the HTML for the "link".
    - When I call the "start"-page the first time it is displayed correct. But when I refresh the page it seems as if an object is lost - the information of the Hashmap (which is stored in another object) is lost. I cannot get the information although I got the information before.
    Also the parameters are not updated if I change them, there is always the same exception shown, that the key is not available.
    I've also changed the parameters (for lang) and just displayed them. But they did not change...
    - I'm absolutely helpless
    here the servlet:
    import java.io.*;
    import java.util.HashMap;
    import javax.servlet.http.*;
    import javax.servlet.*;
    public class Start extends HttpServlet {
         private String mPathOfPropertiesFile=IConstants.PROPERTIES_ROOT;
         private String mLanguage;
         private String mIdentifier;
         private String mHtmlAsString;
    //class created on my own reads the XML-file and stores all files in a Collection
         private PropertiesXmlReader vXmlPropertiesForIdentifier;
         private HashMap vMapOfFilenames;
         private HashMap vTransUnitId;
         //cretaed on my own. Parses the Collection of XMLfiles and puts necessary information on the FileDisc as Hashmap
    private XmlPageParser vParseXmls;
         private FileDesc vFileDesc;
    * Implements the HTTP GET method.
    * @param request the request object, containing
    * data from the browser
    * @param repsonse the response object to send
    * data to the browser
    public void Service (HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException
    public void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException{
              mLanguage = request.getParameter("lang");
              if (mLanguage == null){
                   mLanguage = "";
              mIdentifier = request.getParameter("page");
              if (mIdentifier == null){
                   mIdentifier = "";
                   try {
                        // get the relevant Filenames from the Parser
                        vXmlPropertiesForIdentifier = new PropertiesXmlReader(
                                  mPathOfPropertiesFile, mLanguage, mIdentifier);
                        // get Filenames
                        vMapOfFilenames = vXmlPropertiesForIdentifier
                                  .getFielnames();
                        // parse all XML-Files found in the Properties
                        vParseXmls = new XmlPageParser(vMapOfFilenames);
                        vFileDesc = vParseXmls.getDesv();
                        vTransUnitId = vFileDesc.getMTransUnit();
                        FileReader reader = null;
                        int c;
                        File file = new File(IConstants.HTML_ROOT + mIdentifier);
                        try {
                             // cretae new StringBuffer and read content of the File to the
                             // StringBuffer
                             StringBuffer vHtmlFileBuffer = new StringBuffer();
                             reader = new FileReader(file);
                             while ((c = reader.read()) != -1) {
                                  vHtmlFileBuffer.append((char) c);
                             // cretae String to modify
                             String vHtmlAsString = vHtmlFileBuffer.toString();
                             // if not available (-1) = returnvalue
                             boolean vNoMoreReplacements = false;
                             while (!vNoMoreReplacements) {
                                  int indexOfStart = vHtmlAsString.indexOf(IConstants.HTML_COMMENT_START);
                                  int indexOfEnd = vHtmlAsString.indexOf(IConstants.HTML_COMMENT_END);
                                  if (indexOfEnd != -1 && indexOfStart != -1) {
                                       String key = vHtmlAsString.substring(indexOfStart + 3,
                                                 indexOfEnd);
                                       TransUnit testUnit = vFileDesc.getTransUnitById(key);
                                       vHtmlAsString = vHtmlAsString.replaceAll(IConstants.HTML_COMMENT_START + key
                                                 + IConstants.HTML_COMMENT_END, testUnit.getMSource());
                                  } else {
                                       vNoMoreReplacements = true;
                             mHtmlAsString = vHtmlAsString;
                        } catch (FileNotFoundException fileNotFound) {
                             mHtmlAsString = "The HTML-file could not be found, please control root:" + IConstants.HTML_ROOT;
                        } catch (IOException ioErr) {
                             mHtmlAsString = "Exception during output: " + ioErr.getMessage();
                        } finally {
                             if (reader != null) {
                                  try {
                                       reader.close();
                                  } catch (IOException e) {
                                       e.printStackTrace();
                   } catch (Exception e) {
                        mHtmlAsString = "Unexpected exception with text: " + e.getMessage();
              // Returns a writer to write to the browser
         PrintWriter out = response.getWriter();
         // Writes the string to the browser.
         out.print(mHtmlAsString);
         out.close();
    Hopefully someone can help me out.
    by the way - I'm using a Resin WebbApp Vers 3.0.17
    Thanks for help, in advance,
    brgds, Steffen

    Since you didn't post the XML parser class, I'm not sure exactly what your problem is but I see lots of things that should be changed.
    First of all, get rid of the empty Service() method. Fortunately, you named it wrong so it isn't overriding the service() method in the HttpServlet class. If it were overriding the service() method, your servlet wouldn't even work the first time since there would be nothing to invoke doGet().
    You shouldn't be using instance variables for processing requests (i.e. mLanguage, mIdentifier) because your servlet needs to be thread-safe. Essentially, there is usually one instance of your servlet around (this is up to the application server) and that one instance must be capable of handling multiple requests simalteously. This isn't causing your problem right now because you are just testing but once the application goes live, this will be a big problem.
    Now for what might be causing your problem. Since you didn't post the XML parsers, I suspect that they might be leaving the files open so the second time through, it can't do the parsing. Anyway, your design isn't right because you seem to be reparsing the XML files for each request. All servlets can have an init() method which is invoked when the application server first loads the servlet. You should do all your XML parsing in the init() method. This is much more efficient since it will only be done once (usually when the application server first starts up) not each time the user requests a page. The only potential drawback to this is if you frequently add new XML files, you will have to recycle the server to get the servlet to pick up the new files.

  • How to update Quantity and Value in Licences for Deemed Export

    Dear All,
    Could you please let me know where I have to update the Quantity and Value of Licence in case of Deemed export.
    I am not aware much about Deemed export. I hope CT3 is the licence, against which we have to maintain the Value or Quantity.
    While creating ARE3 documet, Quantity or Value will be reduced from the Licence.
    Kindly update me regarding this.
    Regards,
    Mullairaja

    Hi,
    First of all you need to mainataiin Number ranges for T.code:SNRO
    1.Licence :J_1ILIC
    2.Are3 :J_1IARE3 
    3.Create License In T.code : J1ILIC01
    4.Create ARE 3  T.code: J!IA301.
    4. Enter the license details in the item tab of ARE Create document.
    on Posting  the ARE 3 document Quantity and Value will reduces from the Licence. you can check again in
    Regards
    Shekar

Maybe you are looking for