Itcsy structure problem

Hello Friends,
when i pass outtab value from subroutine to sapscript  say for eg 4500 this value is getting passed as char ie 4500 only but i want to print it as 4,500.
As per my knowledge itcsy can only pass character value so
pls let me knw how to put separators in the value ?
Regards,
Sunny

Hi,
In the script declare one more field of type i (w_no), and
w_no =  outtab value .
Regards.

Similar Messages

  • Script itcsy structure problem

    HI Friends,
    Using ITCSy structure , when i try to add fields its not picking up the data .
    please can any body help in this ..
    if any body have any sample program please send it to me.
    Here my requirement is to add two new fields (bkpf-bktxt,bseg-sgtxt) in main window of script.
    im declaring my perform like this:
    perform <formname> in program <prog name>
    using &bsik-blnr&
    changing &v_y&.
    my report form look like this:
    *& Report ZFI_VENDOR
    REPORT ZFI_VENDOR.
    TABLES : bsik,bkpf.
    data:v_y type bkpf-bktxt,
    v_z type bseg-sgtxt,
    x(20) type c .
    Form Z_HEADER tables INPUT STRUCTURE ITCSY
    tables OUTPUT STRUCTURE ITCSY .
    break-point.
    CLEAR : v_y,
    x.
    loop at input WHERE NAME = 'BELNR'.
    x = INPUT-VALUE .
    select single bktxt from bkpf into v_y where belnr = x.
    select single sgtxt from bseg into v_z where belnr = x.
    endloop .
    output-name = 'bktxt'.
    output-value = v_y.
    append output.
    *output-name = 'sgtxt'.
    *output-value = v_z.
    *append output.
    please cany body can guide me in abvoe what is problem...
    its very urgent.
    Good solutions will get good reward points.
    Regards,
    Vamsi

    Hi Vamsi,
    Please try like this....
    Loop at input where NAME = 'BSIK-BELNR'. " since you have used 'bsik-belnr' in the using clause in the script.
    Endloop.
    Also in the changing clause since you have used 'v_y' you should use the same in NAME of output...
    OUTPUT-NAME = 'v_y'
    try like this you should be able to get.
    Reward if helpful
    Thanks & Regards,
    Anil

  • How to add new fields in sap copied standard form using itcsy structure

    hi guys,
      i want add some fields in sap script copied standard form using itcsy structure.
    let me know the procedure with any example.
    thanks,
    anitha.

    Hii anitha
    plz c code below
    Syntax goes like this
    /: PERFORM <form> IN PROGRAM <prog>
    /: USING &INVAR1&
    /: USING &INVAR2&
    /: CHANGING &OUTVAR1&
    /: CHANGING &OUTVAR2&
    /: ENDPERFORM
    INVAR1 and INVAR2 are variable symbols and may be of any of the four SAPscript symbol types.
    OUTVAR1 and OUTVAR2 are local text symbols and must therefore be character strings.
    Example:
    In script form
    /: PERFORM READ_TEXTS IN PROGRAM 'Z08M1_FORM_EKFORM1'
    /: USING &EKKO-EKORG&
    /: USING &EKPO-WERKS&
    /: USING &EKKO-EKGRP&
    /: USING &EKKO-BSTYP&
    /: CHANGING &COMPNAME&
    /: CHANGING &SENDADR&
    /: CHANGING &INVCADR&
    /: CHANGING &COMPADR&
    /: CHANGING &COVERLTR&
    /: CHANGING &SHIPADR&
    /: CHANGING &REMINDER&
    /: CHANGING &REJECTION&
    /: CHANGING &POSTADR&
    /: CHANGING &LOGO&
    /: ENDPERFORM
    In program
    FORM Read_texts - To extract the standard texts from the table *
    FORM READ_TEXTS TABLES IN_PAR STRUCTURE ITCSY
    OUT_PAR STRUCTURE ITCSY.
    DATA : L_EKORG TYPE EKORG,
    L_WERKS TYPE WERKS_D,
    L_BSTYP TYPE BSTYP,
    L_EKGRP TYPE BKGRP.
    READ TABLE IN_PAR WITH KEY 'EKKO-EKORG' .
    CHECK SY-SUBRC = 0.
    L_EKORG = IN_PAR-VALUE.
    READ TABLE IN_PAR WITH KEY 'EKPO-WERKS' .
    CHECK SY-SUBRC = 0.
    L_WERKS = IN_PAR-VALUE.
    READ TABLE IN_PAR WITH KEY 'EKKO-EKGRP' .
    CHECK SY-SUBRC = 0.
    L_EKGRP = IN_PAR-VALUE.
    READ TABLE IN_PAR WITH KEY 'EKKO-BSTYP' .
    CHECK SY-SUBRC = 0.
    L_BSTYP = IN_PAR-VALUE.
    CLEAR Z08M1_ORG_TEXTS.
    SELECT SINGLE * FROM Z08M1_ORG_TEXTS WHERE EKORG = L_EKORG
    AND WERKS = L_WERKS
    AND EKGRP = L_EKGRP
    AND BSTYP = L_BSTYP.
    IF SY-SUBRC NE 0.
    SELECT SINGLE * FROM Z08M1_ORG_TEXTS WHERE EKORG = L_EKORG
    AND WERKS = L_WERKS
    AND EKGRP = L_EKGRP
    AND BSTYP = SPACE.
    ENDIF.
    READ TABLE OUT_PAR WITH KEY 'COMPNAME'.
    OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_COMP.
    MODIFY OUT_PAR INDEX SY-TABIX.
    READ TABLE OUT_PAR WITH KEY 'SENDADR'.
    OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_ADRS.
    MODIFY OUT_PAR INDEX SY-TABIX.
    READ TABLE OUT_PAR WITH KEY 'INVCADR'.
    OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_INVC.
    MODIFY OUT_PAR INDEX SY-TABIX.
    READ TABLE OUT_PAR WITH KEY 'COMPADR'.
    OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_CPAD.
    MODIFY OUT_PAR INDEX SY-TABIX.
    READ TABLE OUT_PAR WITH KEY 'COVERLTR'.
    OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_COVR.
    MODIFY OUT_PAR INDEX SY-TABIX.
    READ TABLE OUT_PAR WITH KEY 'SHIPADR'.
    OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_SHIP.
    MODIFY OUT_PAR INDEX SY-TABIX.
    READ TABLE OUT_PAR WITH KEY 'REMINDER'.
    OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_RMDR.
    MODIFY OUT_PAR INDEX SY-TABIX.
    READ TABLE OUT_PAR WITH KEY 'REJECTION'.
    OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_RJCT.
    MODIFY OUT_PAR INDEX SY-TABIX.
    READ TABLE OUT_PAR WITH KEY 'POSTADR'.
    OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_POST.
    MODIFY OUT_PAR INDEX SY-TABIX.
    READ TABLE OUT_PAR WITH KEY 'LOGO'.
    OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_LOGO.
    MODIFY OUT_PAR INDEX SY-TABIX.
    ENDFORM.
    reward points if useful
    regards
    Jaipal

  • IMac (March 2009) - Invalid Node Structure problem

    Hi All
    I was using my iMac as normal yesterday, when suddenly the system ground to a halt (something I never seen since using OS X). As I had work to do, after about an hour, I restarted, expecting it to be an app misbehaving or something straight forward, but on restart the same thing happened almost straight away.
    So, I restarted again, only for the iMac to get stuck on the blue screen which follows the grey 'cog' screen. After looking through these discussions, and some other Mac forums, I booted from the installer disk, tried to run Disk Utility, which found issues and couldn't repair the disk.
    I then tried Safe-User mode and fsck, which reported the aforementioned Invalid Node Structure problem. After checking a few more forums, I thought I would try to Erase the disk and reinstall Mac OS. I restored from my Time Machine backup, and finally got it to start, but the system moved at a snail's pace, and wouldn't open any apps or files.
    I've tried again with fsck, and also fsck_hfs -r /dev/disk0s2 but all I get is the same error message:
    disk0s2: I/O error.
    Invalid Node Structure
    (4, 38403)
    ** Volume check failed.
    /dev/rdisk0s2 (hfs) EXITED WITH SIGNAL 8
    So, does anyone know if there is anything I can do to save the iMac? Or does it need a new HD? It is my primary work computer, so I really need to get it back, and after buying it in the UK, am now in France for 6 weeks, so it's difficult for me to take it to an Apple specialist.
    Any help would be greatly appreciated, thanks in advance,
    Daniel

    As the last user stated, Disk Warrior maybe able to correct it, however if you search the net, you will see there are more than one user with this problem. I had the same problem, however, my machine is out of warranty, It started like you are saying, I RAN disk warrior which corrected the problem long enough to boot the system. In a matter of 10 minutes or so, the system started pausing (apps hung, but in a matter of seconds recovered). I was checking the disk with fsck_hfs and fsck while booted from a USB drive with a maintenance install of 10.5.6. After running fsck the 5th time with different options suggested from the internet, I rebooted with my disk warrior DVD only to find the drive NOT mounted, Drive utility see's it (even can attempt to run disk repair, but it locks up the system when trying this). Disk Warrior doesn't even see the disk to run a directory repair, although in the "check s.m.a.r.t status it sees it as a sata device, and SAYS ITS NORMAL).
    Since my iMac was out of warranty, I followed the online instructions to replace the hard drive (not too difficult) and everything is fine now.
    The old drive still wont mount, but another utility I bought (data rescue II) has been able to quick scan it and access all the data, even though it wont clear a fsck fsck_hfs or disk warrior, anyways, get it back while you can, IT IS THE hard drive itself, and lots of other iMac users online with the same issue (can you say WHY is my iMac SOOO HOT on the apple in the back (right where the drive is and not sufficient cooling in my opinion, but hey, some people might want to lay their computers face down and fry eggs on the it or something... ))
    -SD

  • What is ITCSY structure

    Hi
    what is ITCSY structure
    Regards
    Suresh

    hi,
    itcsy is a structure.
    when u want to fetch additional data to pritn in u r layout with out changing the standard driver program
    then we have to use this structure through suroutine pool program.
    syntax is
    FORM<FORM>TABLES IN_TAB STRUCTURE ITCSY
    OUT-TAB STRUCTURE ITCSY.
    ENDFORM.
    HERE IN_TAB IS INTERNAL TABLE
    and one more example is
    The structure ITCSY contains field name and field value.
    The system does not execute the PERFORM command within
    SAPscript replace modules, such as TEXT_SYMBOL_REPLACE or TEXT_INCLUDE_REPLACE.
    The replace modules can only replace symbol values or
    resolve include texts, but not interpret SAPscript control commands.
    Syntax in a form window:
    /: PERFORM <form> IN PROGRAM <prog>
    /: USING &INVAR1&
    /: USING &INVAR2&
    /: CHANGING &OUTVAR1&
    /: CHANGING &OUTVAR2&
    /: ENDPERFORM
    plz reward me if helpful...

  • Use of ITCSY STRUCTURE

    Hi Experts,
    can any one can explain why ITCSY STRUCTURE IS USED PLS explain step by step.which i mean say which i should understand easily with ur answer,becaz i dont know any more?
    Thanks.

    Hello!
    I supose you are using SAPSCRIPT and wanting to use a perform statement on in. Am I right?
    ITCSY is a structure that you must use to receive/send parameters from SAPCRIPT to a REPORT where the form statement will be implemented.
    As an example,
    In sapscript, you have PERFORM get_address ... program ZGETADDRESS.
    So, you must have a report called ZGETADDRESS with a code similar to this.
    REPORT ZGETADDRESS .
    FORM get_address TABLES in_par STRUCTURE itcsy
                                              out_par STRUCTURE itcsy.
      READ TABLE in_par WITH KEY name = 'COUNTRY'.
      CHECK sy-subrc = 0.
      READ TABLE out_par WITH KEY name = 'TEXT'.
      CHECK sy-subrc = 0.
      out_par-value = 'England'.
      MODIFY out_par INDEX sy-tabix.
    ENDFORM.
    Best regards.
    Valter Oliveira.

  • BAPIUSNAME Structure Problem on R/3 4.7, WAS 6.20

    Hello guys,
    As a part of my bachelor thesis I am consuming WS-enabled BAPIs and have encountered a problem on WAS 6.20 that has not appeared on any of the following versions of WAS:
    When I try to retrieve the WSDL for BAPI_USER_GETLIST, I receive a time out error, which has not happened when invoking any other WS-enabled BAPI on the same system. And what I found, was that USERLIST table parameter of type BAPIUSNAME prevented the export of the BAPI as WS. The structure BAPIUSNAME is activated in the Dictionary.
    That is why I created a structure ZBAPIUSNAME with exactly the same attributes, activated it and used it instead of BAPIUSNAME. Alas, the result was the same.
    I would be very thankful, if somebody could give me a hint what is going wrong there.
    Thanks.
    Best wishes,
    Petromil Petkov

    Hi Achim,
    Thanks for your reply. When I said ITS available with EP, I actually meant WAS 6.40 only. I think my words miss guided you. I do not have stand alone ITS installed in my landscape. Let me rephrase my question.
    I have,
    1) R/3 4.7 with WAS 6.20
    2) EP 6 SP 15 with WAS 6.40(which has abap integrated ITS)
    in my landscape.
    I need to provide a R/3 transaction on EP using transaction iView. In order for transaction iView to work, is it possible to use the ITS integrated with WAS 6.40 to connect with R/3?
    OR
    I need to have a separate ITS installation and connection will be R/3 4.7 (WAS 6.20) -> ITS (stand alone) - WAS 6.40(integrated ITS) EP.
    Hope I made my question clear.
    Let me your response.

  • How to add new fields in sap scripts using itcsy structure

    hi guys,
               could u provide the screen-shots for adding field in scripts. copied standard forms .
    thanks& regards
    eswar.

    Hi,
    you cannot add new fields using ITCSY. It is the interface structure between a SAPscript an a value-changing form-routine.
    Need example anyway?
    Good luck!
    Jo

  • Query structure problem

    Hi,
    I need to create a query with a column structure described bellow:
    Key figure .................|.. 0Quantity .....|.. 0Amount
    Posting period ...........|.. # .................|.. Var1 (5,6, 7, ... 12)
    The problem is that the column 0quantity should show only a figure for the entire year and the 0amount should show figures only for periods while the number of periods shown for 0amount is a variable range. 0amount should not show a figure for entire year (for #).
    Creating two different queries does not seem like a solution as an expandable account hierarchy should be shown on the rows. The hierarchy should show the same view for both 0quantity and 0amount when a node is opened by user.
    Any suggestions how to solve this?
    Aino
    Edited by: Aino Tuominen on Apr 2, 2008 11:36 AM
    Edited by: Aino Tuominen on Apr 2, 2008 11:37 AM
    Edited by: Aino Tuominen on Apr 2, 2008 11:46 AM
    Edited by: Aino Tuominen on Apr 2, 2008 11:47 AM
    Edited by: Aino Tuominen on Apr 2, 2008 11:48 AM
    Edited by: Aino Tuominen on Apr 2, 2008 11:49 AM
    Edited by: Aino Tuominen on Apr 2, 2008 11:52 AM

    To see the periods for 0amount also 0quantity will have the periods shown as they are both in columns. This is not what I want. I only want to have period "#" shown for for 0quantity and periods "1-12" for 0amount. Even if I have restricted these they will be shown as both 0amount and 0quantity are in the same structure for columns.

  • Query structure problem (i think)

    hi am trying to get selected strings out of a jlist
    and concanate them into a query i dont have any
    problems getting the strings out of the list and
    into the query ,i think that my problem lies within
    the structure of my query.i am trying to create a new
    user for a database and set their privleges when i run
    the program and create a new user every things fine as
    long as the only value that i select from the
    privilegs list is "ALL PRIVILEGES" or "CREATE" any ther values
    and i get a connection failure to the MySQL server. could any one tell
    me where i am going wrong or knows the structure of another query
    that can do the same job???
    cheers gerry
    final String privilegetype[] = {"SELECT","INSERT","UPDATE","DELETE","CREATE"
    ,"DROP","ALL PRIVILEGES"};
    String databasename[] = {"garage","music store",};
    //the query where mk=the selected string from privilegetype,
    mkk=the selected string from databasename,
    name=new username,new String(pass)=the new user password
    s.executeUpdate ("GRANT "+mk+" ON "+mkk+" TO "+name+" @"+host+"
    IDENTIFIED BY '"+new String(pass)+"' WITH GRANT OPTION");

    Output the actual query string and see if you can run it outside Java. If you cannot, then it's a database/SQL problem, not a Java problem. If you can, come back and post more details.

  • SAP ABAP Proxy - recursive data structure problem

    Hi,
    For our customer we try to bind SAP with GW Calendar using GW Web Services. We tried to generate ABAP Proxy from groupwise.wsdl file but there are problems: GW uses recursive data structures what ABAP Proxy can not use. Is there any simple solution to this problem?
    Best regards
    Pawel

    At least I don't have a clue about ABAP Proxy.
    You are pretty much on your own unless someone
    else has tried it.
    Preston
    >>> On Tuesday, August 03, 2010 at 8:26 AM,
    pawelnowicki<[email protected]> wrote:
    > Hi,
    >
    > For our customer we try to bind SAP with GW Calendar using GW Web
    > Services. We tried to generate ABAP Proxy from groupwise.wsdl file but
    > there are problems: GW uses recursive data structures what ABAP Proxy
    > can not use. Is there any simple solution to this problem?
    >
    > Best regards
    > Pawel

  • IMac btree or volume structure problem?

    When I turn on my 8 year old iMac I get a gray screen with the Apple logo and a narrow horizontal bar just above the logo. I tried doing a Safe Boot, but after a few minutes it restarts itself. I started it up from various CDs that came with it, and these are the results:
    Apple Hardware Test CD shows no hardware problems.
    OS 9.1 CD got me to the System 9 desktop. I ran Disk First Aid from the CD. The last item it checked was catalog BTree. Right after that it said unable to read from disk. I was able to copy items from the System 9 desktop to my laptop. But when I opened the Users folder on the HD to copy items from the OS X side, all I found were .localized documents. I was hoping to get to my pictures.
    OS 10.0.3 CD Disk Utility - First Aid said "Reserved fields in the catalog record have incorrect data. Keys out of order." When I click Repair, it does not fix the problem.
    I then downloaded Tech Tool Deluxe for Power PC and started up from that CD. It says Volume Structure failed. If I choose to rebuild, it will make some drastic changes to the original directory data, such as total files going from 193,111 to 8,595 and volume content size going from 18.6 GB to 12.1 GB. I was afraid I might lose something important, so I did not do the rebuild.
    I feel like I might be in over my head. Should I take it to the Apple Store and let them deal with it? Any ideas about how to get to my pictures so I can copy them onto my laptop?
    Thanks!
    April

    +Keys out of order+, in my experience and others here, can only be repaired with the following utility and only if it's not too far gone. It repaired that issue for me.
    If Disk Utility can't fix it, you'll need a more robust utility for the repair. I would recommend DiskWarrior. It is the best at directory repairs. It rebuilds then actually replaces your old directory. I feel every Mac owner should have a copy. Make sure you get the disk so you can boot up on it to run repairs. You can also install it on another drive and run it from there to repair this one. DW works faster that way.
    TechTool is just not a robust enough repair utility to fix your very serious directory corruption.
    I use DW once a month to try and catch errors in my system from getting too far out of hand.
    If you have a good backup, hopefully a clone of your system before you had issues, an Erase and Install will also rid you of this issue. But, beware! You will lose everything on the drive with this procedure. Let us know if you need help with that!
    Cheers! DALE
    p.s. Here's a rewiew of DiskWarrior 4.

  • Correction Invoice and "invalid document structure" problem

    Hello!
    Can anybody explain what properties are obligatory for correction invoices? I'm trying to add() one and it always say -5002: invalid document structure.
    In the CSI1 table I see linenum has to be unique, every baseline is twice. Do I make any stupid mistake? If so - where? What's wrong? Something is ommitted?...
                                                                                    Thanks in advance!
                                                                                    This is a snippet (two loops are unnecessary, I was looking for other ways). I'm trying just to zero the invoice. Should quantity in was lines be negative? It does not matter - everytime -5002...
         @Test
         public void testSAPCorrectionInvoice() throws SBOCOMException {
              ICompany company = sapConnector.getCompany();
              // Integer srcDocEntry = 6457;
              Integer srcDocEntry = 7084;// this one has no batches
              logger.debug("Creating correction to: " + srcDocEntry);
              // source doc
              IDocuments srcDoc = SBOCOMUtil.getDocuments(company,
                        SBOCOMConstants.BoObjectTypes_Document_oInvoices, srcDocEntry);
              logger.debug("srcDoc: " + srcDoc.getDocObjectCode() + ", "
                        + srcDoc.getDocNum());
              IDocuments sapDoc = SBOCOMUtil.newDocuments(company,
                        SBOCOMConstants.BoObjectTypes_Document_oCorrectionInvoice);
              // header:
              sapDoc.setHandWritten(SBOCOMConstants.BoYesNoEnum_tNO);
              sapDoc.setSeries(317);
              sapDoc.setDocType(SBOCOMConstants.BoDocumentTypes_dDocument_Items);
              sapDoc.setCardCode(srcDoc.getCardCode());
              sapDoc.setCardName(srcDoc.getCardName());
              sapDoc.setAddress(srcDoc.getAddress());
              String federalTaxID = srcDoc.getFederalTaxID();
              if (federalTaxID.length() > 0)
                   sapDoc.setFederalTaxID(federalTaxID);
              sapDoc.setDocDate(new Date());
              sapDoc.setDocDueDate(new Date());
              sapDoc.setSalesPersonCode(srcDoc.getSalesPersonCode());
              sapDoc.setDocCurrency(srcDoc.getDocCurrency());
              sapDoc.setPaymentGroupCode(srcDoc.getPaymentGroupCode());
              sapDoc.setTransportationCode(srcDoc.getTransportationCode());
              sapDoc.setContactPersonCode(srcDoc.getContactPersonCode());
              // sapDoc.setDiscountPercent(0.0);
              sapDoc.setComments("zwrot towaru");
              // sapDoc.setDocTotal(0.0);
              sapDoc.setVatDate(srcDoc.getVatDate());
              // items
              IDocument_Lines lines = sapDoc.getLines();
              int lineno = 0;
              IDocument_Lines srcLines = srcDoc.getLines();
              for (int i = 0; i < srcLines.getCount(); i++) {
                   srcLines.setCurrentLine(i);
                   logger.debug("line " + i + ", item: " + srcLines.getItemCode());
                   if (lineno > 0)
                        lines.add();
                   lines.setCurrentLine(lineno++);
                   lines.setItemCode(srcLines.getItemCode());
                   lines.setItemDescription(srcLines.getItemDescription());
                   lines.setWarehouseCode(srcLines.getWarehouseCode());
                   lines.setPrice(srcLines.getPrice());
                   lines.setDiscountPercent(srcLines.getDiscountPercent());
                   lines.setTaxCode(srcLines.getTaxCode());
                   lines.setBaseEntry(srcDocEntry);
                   lines.setBaseType(srcDoc.getDocObjectCode());
                   lines.setBaseLine(i);
                   lines.setVatGroup(srcLines.getVatGroup());
                   lines
                             .setCorrectionInvoiceItem(SBOCOMConstants.BoCorInvItemStatus_ciis_Was);
                   double quantity_was = srcLines.getQuantity();
                   lines.setQuantity(quantity_was);
              for (int i = 0; i < srcLines.getCount(); i++) {
                   srcLines.setCurrentLine(i);
                   logger.debug("line " + i + ", item: " + srcLines.getItemCode());
                   if (lineno > 0)
                        lines.add();
                   lines.setCurrentLine(lineno++);
                   double quantity_diff = 0;
                   lines.setItemCode(srcLines.getItemCode());
                   lines.setWarehouseCode(srcLines.getWarehouseCode());
                   lines.setPrice(srcLines.getPrice());
                   lines.setDiscountPercent(srcLines.getDiscountPercent());
                   lines.setTaxCode(srcLines.getTaxCode());
                   lines.setBaseEntry(srcDocEntry);
                   lines.setBaseType(srcDoc.getDocObjectCode());
                   lines.setBaseLine(i);
                   lines.setVatGroup(srcLines.getVatGroup());
                   lines
                             .setCorrectionInvoiceItem(SBOCOMConstants.BoCorInvItemStatus_ciis_ShouldBe);
                   double quantity_was = srcLines.getQuantity();
                   double quantity_is = 0; //quantity_was - quantity_diff;
                   lines.setQuantity(quantity_is);
              int result = sapDoc.add();
              String info = company.getLastErrorDescription();
              logger.debug("res = " + result + ", info: " + info);
              if (result != 0)
                   throw new EBladKorektyNrPartii(
                             "Cannot create document: " + info);
    Edited by: WodzGalopujacySkleroz on Jul 4, 2011 5:03 PM

    Hello,
      Maybe it's an old thread, and you might have the solution or workaround for this. Nonetheless i try to answer, it might be useful for those trying to find a solution for the same problem.
      The two loops are necessary indeed. DI API expects only this structure: Start with all the "ShouldBe" lines, and follow them with all the "Was" lines. So your code is almost good, but you should have swap the two loops with each other.

  • Build JSP-structure problem in JspC

    Hi,
    I am trying to deploy my project and I need to compile JSPs and create WEB-INF directory and web.xml file.
    My build environment:
    Win 2000
    Java 1.4.1
    Tomcat 4.0.3
    My problem is as follows:
    I use an ANT script :
    <java classname="org.apache.jasper.JspC" classpath="${jsp.classpath}" fork="yes" failonerror="yes">
    <jvmarg value="-Dcatalina.home=${catalina.home}"/>
    <arg line="-d ${jsp.path.precompile.src} -uriroot ${jsp.path.webapp} -webxml ${jsp.path.precompile}\web.xml -webapp ${jsp.path.webapp}"/>
    </java>
    I have an an compile this JSP structure:
    -main_folder
    - folder_1
    - folder_2
    - folder_2_1
    - folder_3
    - folder_3_1
    - folder_3_1_1
    but every time I start the script, the JSPs are compiled to JAVA in one default package. But I have in some subfolders the same JSPa like in the other folders ("index.jsp, error_page.jsp") and after compiling to JAVA this JSP are lost, because are overwritten from the other ...
    In the old Tomcat 3.2 was OK!
    I don't know how to tell to the JspC to use the folder structure as a package definition for the JAVA files.
    Please help me !!!

    Tis a defect in the way jasper/ant handles subdirectories in the packages that needs to be resolved. If you have your jsp files in a flat directory, you're fine. If you don't, you'll need this bug resolved: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4750
    Please feel free to vote for it. :)
    A workaround is to create a separate ant <jspc> task for each directory and subdirectory.

  • Event structure problem

    HI!
    I am a Labview Newbie and i have some problems with my event structure in the program "Biegelinie"! I get always failure from the event-structure in the failure-list!
    Could somebody help me???
    best regards,
    Peter
    Labview 7.1 on Windows 2000
    Attachments:
    program.zip ‏134 KB

    For a less complicated system, you can achieve nearly the same
    functionality without using an event structure.  Simply poll the
    state of the booleans you require and feed them into case
    structures.  By placing these case structures and the polling into
    a loop with a "wait until ms multiple" set to around 50 or 100ms, the
    responsiveness of the code should be high enough without bogging the
    processor down with the polling.
    If you want have a look at the example VI I've attached.
    Hope this helps
    Shane.
    PS Are you sure the document linked below is relevant for you?  It
    states that the event handler isn't in the base 6.1 version of LabVIEW,
    but your sig says you're using 7.1........
    Message Edited by shoneill on 07-25-2005 11:30 AM
    Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
    Attachments:
    Polling boolean.vi ‏23 KB

Maybe you are looking for