Adding Amount in SAPSCRIPTS

Hi Frens
I have a requirement , where i am printing the amount in a script called from a standard SAP program.
My requirement is to sum these amounts and print it in the footer. I am using a subroutine in a Z program to do the needful.
The code in script is :
/: PERFORM CALC_TOTAL IN PROGRAM ZAHFR_F150_DUNN01
/: USING &MHND-DMSHB&
/: ENDPERFORM
In the Z program i have defined a variable gv_amount
DATA: gv_amount TYPE mhnd-dmshb.
FORM calc_total TABLES in_tab  STRUCTURE itcsy
                     out_tab STRUCTURE itcsy.               "#EC CALLED
  DATA: lv_amount TYPE mhnd-dmshb.
*-- Retrieve data for Current Item Amount
  READ TABLE in_tab WITH KEY name = 'MHND-DMSHB' .
  IF sy-subrc = 0 .
   lv_amount = in_tab-value.
    SHIFT in_tab-value LEFT DELETING LEADING space.
    MOVE in_tab-value TO lv_amount.
    gv_amount  = gv_amount + lv_amount .
  ENDIF.
ENDFORM.                    " CALC_TOT
The above code gives a dump as it is not able to interpret the value in in_tab-value
as a number.
Could you please suggest a way how to pass the amount field to the called subroutine and then sum it there.
Any pointers on the same would be of great help.
Thanks
Pankaj

Hi Pankaj,
Are you trying to display <i>gv_amount</i> in the SAPscript?
Then i fear it must be giving the short dump.
/: DEFINE GV_TOT
/: PERFORM CALC_TOTAL IN PROGRAM ZAHFR_F150_DUNN01
/: USING &MHND-DMSHB&
/: CHANGING &V_TOT&
/: ENDPERFORM
READ TABLE in_tab WITH KEY name = 'MHND-DMSHB' .
IF sy-subrc = 0 .
* lv_amount = in_tab-value.
SHIFT in_tab-value LEFT DELETING LEADING space.
MOVE in_tab-value TO lv_amount.
gv_amount = gv_amount + lv_amount .
ENDIF.
READ TABLE out_tab WITH KEY name = 'V_TOT' .
IF sy-subrc = 0 .
out_tab-value = gv_amount.
MODIFY out_tab.
ENDIF.
Then display the value of V_TOT in the total field. This should solve the problem.
Please reward some points.
Reagrds,
Suhas

Similar Messages

  • Adding Amount field in BSEG table and display it single line item?

    hi experts,
           I am doing credit / debit form now my requirement is
                                               According to BELNR , GJAHR,BUKRS i want to find credit amount for this selection cretiria.
                         so i want to add all the lines of amount filed for a particular BELNR and display it as single line.
    so i am getting data from print program like this
    SELECTION-SCREEN BEGIN OF BLOCK b0 WITH FRAME TITLE text-001.
    SELECTION-SCREEN SKIP 2.
    PARAMETERS: p_belnr LIKE bkpf-belnr OBLIGATORY,
                p_bukrs LIKE bkpf-bukrs OBLIGATORY,
                p_gjahr LIKE bkpf-gjahr OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b0.
    SELECT SINGLE *
                   FROM bkpf
                   INTO  i_bkpf
                   WHERE belnr = p_belnr
                         AND ( blart = 'DG' OR blart = 'ZG' )
                         AND bukrs = p_bukrs
                         AND gjahr = p_gjahr.
    IF sy-subrc = 0.
        SELECT  *
              FROM bseg
              INTO  table it_bseg
              WHERE belnr = i_bkpf-belnr .
      ENDIF.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname                 = 'Z_CREDIT_DEBIT'    " p_name
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
        IMPORTING
          fm_name                  = v_form_name
    EXCEPTIONS
      NO_FORM                  = 1
      NO_FUNCTION_MODULE       = 2
      OTHERS                   = 3
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    CALL FUNCTION v_form_name
    EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
      CONTROL_PARAMETERS         =
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
      OUTPUT_OPTIONS             =
      USER_SETTINGS              = 'X'
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
      TABLES
        i_bkpf                     = i_bkpf
        i_bseg                     = i_bseg
    EXCEPTIONS
      FORMATTING_ERROR           = 1
      INTERNAL_ERROR             = 2
      SEND_ERROR                 = 3
      USER_CANCELED              = 4
      OTHERS                     = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    so my I_BSEG containing all line items of particular BELNR . with the field SHKZG  iam  getting only credit line items .
      now i want to do is add all credited amount and display like this in a table.
    against ref#  (BSEG-REBZG) ! details (BSEG-SGTXT)!  amount
    124569                                   10%discount                950.00(total amount ie sum of all lines amount for a BELNR)
                                                                                    10.00(total tax amt ie sum of   all lines of tax amount for a BELNR)                                                                               
                                                                                    960.00

    hi arun,
             i used collect in smartform my procedure is like this .
                   i am getting data into i_BSEG because i declared like this in TABLES parameter
                      i created a loop .
                             in that i mentioned like I_BSEG into WA_BSEG.
                                   then i created a program lines here i mentioned like this.
                                                  COLLECT WA_BSEG INTO IT_BSEG.
               but because of BUZEI "Number of Line Item Within Accounting Document .it is not same it is varying for every credited time that means for every line of BELNR. thats why it is not adding it is just appending .
    so pls tell me any other chance to find sum .
    because i want to sum up all credted amount and display it in single line
    ie first column REBZG "Number of the Invoice the Transaction Belongs to(against ref) i want to display once .
    And Second column  SGTXT "item text(details) for amount once and for tax amount once
    And Third column Amount first line consists total amount & second line consists total for tax amount
    regards,
    satheesh.
    [email protected]
    any doubts chat me regarding this post.

  • Adding amounts in an internal table

    I have created an internal table which has values BP number, Contract Account and amount paid. i would like to add the amounts paid per business partner and per contract account and only display the total amount paid per business partner and per contract account. may i have the code to make the addition of the amounts in an internal table.

    Hello,
    So what was meant is that for the same business partners and same Contract account numbers the amount should get added.....
    do the following...imagine that you have data in int_tab with 3 fields...Declare int_tab1 as the same internal table type
    Sort int_tab by BP Contract_AC.
    loop at int_tab into workarea.
    collect workarea to int_tab1.
    endloop.
    Collect statement compares the "BP" and "Contract A/C"
    and for the same BP and contractA/C number it adds and appends..if an entry exists in int_tab1 it adds the amount only
    eg:
    BP | CAno: | Amount
    A   |  23A      | 100
    A   |  23A      | 50
    A   |  24A      |  11
    B   |  23A      | 12
    after the collect statement..internal table contains
    A | 23A | 150
    A | 24A | 11
    B | 23A | 12
    but it will work only if int_tab contais 3 fields as mentioned..if more fields are there which are non-numeric it will compare that also...
    in addition to it also check if the contract Account number is getting added by putting a breakpoint in the code..if so... there are 2 options
    (1) Declare a new internal table and pass the field contract number as a character....and use collect on the new internal table..so the contract account number will not get added...
    or
    instead of collect statement use loops and other logic to suit your requirement
    Reward if helpful
    Regards
    Byju

  • Adding amount into customer balance without posting

    Hi Gurus,
    Is it possible to add in amount into customer/vendor/gl balance without any posting impacting the book?
    Example, interest calculation! To keep track the interest amount into customer balance. The interest amount is shown in customer balance but there is not FI document posting.

    Always park these documents, never post them and use the parked documents report for your analysis.
    this is a very crude solution for a crude problem

  • Adding logo with sapscript

    Hai, gurus,
    I am new to sapscript,
    and my problem is add a logo with uses RSTXLDMC executable program.
    how to add a logo in sapscript.
    Please Help Me.

    Hi,
    As you are new to SAP Script. The following links might be helpful to you.
    http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
    http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
    http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
    http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
    http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
    http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
    http://www.supinfo-projects.com/fr/2005/forms_sapscript_en/introduction/

  • Adding amounts in edge animate

    I'm looking to create a set of buttons that would add certain numbers together.
    For example: If I click a button it adds the number 7 to a box, then if you click another button it adds 4 to the same box making it 11. I then want to set a variable saying if box equals 11 play animation.
    Is this doable in edge animate?

    Hi there,
    The problem with getting html from the text element is it returns a string. In Javascript, adding a number to a string just appends the number to the existing string. To convert a string into an integer, use Javascript's parseInt method. So a slight modifcation to Elaine's code:
    // this gets the string from myTextBox and converts it to an integer
    var text = parseInt(sym.$("myTextBox").html());
    // next you are adding two integers...
    text = text + 4;
    sym.$("myTextBox").html(text);
    if (text == 11) {
        sym.play();
    hth,
    Joe

  • Urgent adding amount field

    hi all,
    i want to add two amount field.
    like field1 = 13,500
          field2 = 1,000
    when i run this program
    it leds to short dump.
    error shows
    Unable to interpret " 13,905.04 " as a number.
    how can add these fields having comma separator.

    Bala,
    you have to code like this:
    field3 = field1 + field2 .
    remember in you case resulting set (field3) is not being decleare as type p.
    you have to decleare all three fields as type p.
    Amit.

  • Ideas on adding licenses to a 8.X Communications Manager cluster before upgrade to v10.

    Hi, hope is all well. This is something I started working with my global Cisco reseller but it takes sometime I wanted to make sure I see different options if possible to present. My company has deployments of collaboration products mainly on v8.x (all three main 8.0.2, 8.5.1 and 8.6.2) going to v10 during this year. Some already run on UCS but some are on MCS and will be late in migration. For those late, there are some growth need in end user/phone deployment but since v8 is end of sale, my provider may not be able to sell licenses.
    If this is true, they might offer to buy v10 licenses with software subscription just like new deployment, which is not too bad at all since we will use this added amount on future v10 upgrade, but has anyone ever did that? I am afraid we use v10 PAK (if possible) to generate v8 license file, will render it not upgradable later. Reasoning is, let's say there is 1000 licenses on v8 with UCSS and we buy 15 v10 licenses downgraded to v8. Once we processo v8 to v10 upgrade on PUT, Cisco might see only 1000 original v8 liceses to provide upgrade instead of 1015.
    Does it make sense or am I missing something here? Thank you very much for any suggestions.

    UCSS and CUCM 8.X licenses have both been EoL. Even the existing UCSS+ ESW has been converted to SWSS.
    Ref: CUCM 8.X Device and Licenses EoL notification
    http://www.cisco.com/c/en/us/products/collateral/unified-communications/unified-communications-manager-callmanager/eos-eol-notice-c51-732309.html
    Customers may be able to continue to purchase Cisco Unified Communications Manager Version 8.x Phone Units and Device License Units the Cisco Certified Refurbished Equipment program. Refurbished units may be available in limited supply for sale in certain countries on a first-come, first-served basis until the Last Date of Support has been reached. For information about the Cisco Certified Refurbished Equipment program, go to: http://www.cisco.com/go/eos.
    Product Migration Options
    Customers are encouraged to migrate to the Cisco Unified Communications Manager v 9.2 or later.
    Ref: UCSS EoL
    http://www.cisco.com/c/en/us/products/collateral/unified-communications/unified-communications-software-subscription/eos-eol-notice-c51-732026.html
    -Terry
    Please rate all helpful posts

  • Cash Register Program (processing "sales" and "amounts" )

    I'm having trouble adding amounts to an array of capacity that the user sets at the beginning of the program. It seems very easy, but I just don't know what to do. It is for a school assignment, so I'm not asking for any freebies. I'd just like to be pointed in the right direction with hints or any useful info. A skeleton was included with the assignment which makes me feel less capable because it's all broken down. Some methods were included. The CashRegister class contains all the methods of the cash register (add amount, remove first occurrence of amount, remove all occurrences, etc.) I'm only lacking the add amount, and both remove occurrence methods.
    I think i wrote the add amount method somewhat correctly.. although I'm unsure of how to implement it in case 2 of the switch obviously not as simple as addAmount();
    // CashRegister.java
       import java.text.NumberFormat;
       import java.util.Scanner;
        public class CashRegister
          Scanner scan = new Scanner (System.in);
            //instance variables
          private double[] amounts;
          private int numOfValues;
            //constructor
           public CashRegister( int size )
             amounts = new double[ size ];
             numOfValues = 0;
            //increase size of array when needed
           private void increaseSize ()
             double[] temp = new double[amounts.length + 4];
             for (int count=0; count<amounts.length; count++)
                temp[count] = amounts[count];
             amounts = temp;                    
            //add amount to array
           private void addAmount(double newAmt)
             if (numOfValues == amounts.length)
                increaseSize();
             System.out.print ("Enter amount to be added: ");
             newAmt = scan.nextDouble();
             amounts[numOfValues] = newAmt;
             numOfValues++;     
            //toString method
            //returns String representation of CashRegister object
           public String toString()
               //to be used in formating currency values
             NumberFormat fmt = NumberFormat.getCurrencyInstance();
               //initialize resulting String
             String result = "\n";
               //Check if array is empty.
               //If so, print accordingly.
             if( numOfValues == 0 )
                result += "There are 0 register amounts at this time.\n";
             //otherwise, place amounts in result String
             else
             //build result String with amounts
                for( int i = 0; i < amounts.length; i++ )
                   result += ( i + 1 ) + ": " + fmt.format( amounts[ i ] ) + "\n";
               //return result String
             return result;
    // Project7ADriver.java
       import java.util.Scanner;
        public class Project7ADriver
           public static void main( String[] args )
               //Start Scanner to take input
             Scanner scan = new Scanner( System.in );
               //instantiate a CashRegister
             System.out.print( "How many amounts would you like your register to hold? " );
             int numElements = scan.nextInt();
             CashRegister cr = new CashRegister( numElements );
             int userChoice = 0;
             while( userChoice != 5 )
                menu();
                userChoice = scan.nextInt();
                menuSwitch( userChoice, cr );
           public static void menuSwitch( int choice, CashRegister cashReg )
               //Start Scanner to take input
             Scanner scan = new Scanner( System.in );
             switch( choice )
               //print out amounts
                case 1:
                   System.out.print( cashReg.toString() );
                   break;
                case 2:
                case 5:
                   System.out.println("\nGoodbye!");
                   break;
                default:
                   System.out.println("Sorry, invalid choice");
           public static void menu()
             System.out.println("\nCash Register");
             System.out.println("*************");
             System.out.println("1: Print the sale amounts");
             System.out.println("2: Add amount");
             System.out.println("3: Remove first occurrence of an amount");
             System.out.println("4: Remove all occurrences of an amount");           
             System.out.println("5: Quit");
             System.out.print("\nEnter your choice: ");
       }

    looks like your method signature is wrong
    private void addAmount(double newAmt)the method itself gets the amount
    newAmt = scan.nextDouble();so its a bit hard passing the amount, when you first call the method
    try it like this
          private void addAmount()
             if (numOfValues == amounts.length)
                increaseSize();
             System.out.print ("Enter amount to be added: ");
             double newAmt = scan.nextDouble();
             amounts[numOfValues] = newAmt;
             numOfValues++;     
          }and in your switch
    case 2:
      addAmount();
      break;

  • How to add balance column in the PO and AP Report

    I have added amount remaining column in this report from ap payment schedules all,but it is not returning any rows,can you please look into this issue.
    select
    distinct po_vendors.segment1
    || chr(9) || po_vendors.vendor_name
    || chr(9) || po_vendor_sites.vendor_site_code
    || chr(9) || po_vendors.vendor_type_lookup_code
    || chr(9) || po_vendor_sites. attribute2
    || chr(9) || po_vendor_sites.inactive_date
    || chr(9) || po_vendor_sites.creation_date
    || chr(9) || to_char(max(ap_checks.check_date), 'DD-MON-YYYY')
    || chr(9) || ap_payment_schedules.amount_remaining
    from
    po_vendors
    ,po_vendor_sites
    ,ap_checks
    ,ap_payment_schedules
    ,ap_invoices i2
    where
    po_vendors.end_date_active is null and
    po_vendors.vendor_id = po_vendor_sites.vendor_id
    -- and po_vendors.VENDOR_ID=i2.VENDOR_ID
    and i2.invoice_id=ap_payment_schedules.invoice_id
    and po_vendor_sites.inactive_date is null
    and po_vendor_sites.creation_date < sysdate--&v_cutoff_date
    and po_vendor_sites.pay_site_flag = 'Y'
    and not exists (select vendor_site_id from ap_checks c2 where
    c2.vendor_site_id = po_vendor_sites.vendor_site_id
    and c2.check_date < sysdate)--&v_cutoff_date)
    and not exists (select vendor_site_id from ap_invoices i2 where
    i2.vendor_site_id = po_vendor_sites.vendor_site_id
    and (i2.invoice_date < sysdate or payment_status_flag in ('N', 'P') ) )
    and po_vendor_sites.vendor_site_id = ap_checks.vendor_site_id (+)
    --and ((i2.invoice_amount) - (i2.amount_paid)) <>0
    --and (i2.invoice_amount - NVL(i2.amount_paid,0))>=0
    group by
    po_vendors.segment1
    ,po_vendors.VENDOR_ID
    ,po_vendors.vendor_name
    ,po_vendor_sites.vendor_site_code
    ,po_vendors.vendor_type_lookup_code
    ,po_vendor_sites.attribute2
    ,po_vendor_sites.inactive_date
    ,po_vendor_sites.creation_date
    --,i2.invoice_amount,i2.amount_paid
    --,i2.invoice_num
    ,po_vendor_sites.VENDOR_SITE_ID
    ,ap_payment_schedules.amount_remaining
    --,(i2.invoice_amount-nvl(i2.amount_paid,0))
    --order by
    --     po_vendors.vendor_name
    ---     ,po_vendors.segment1
    --     ,po_vendor_sites.vendor_site_code

    Hi,
    Thanks a lot, it's really help...don't know why I didn't see this customized point before in SPRO.
    But I have an other issue, my new fields is added in the CATS screen and now I'm trying to put default value by using the user exit of extension CATS0009.
    When I complete the value of my new fields in structure CATSD_IMP, there are not taking into account and the CATS screen doesn't display the value.
    Am I using the wrong table ? wrong user-exit ? or my code ..
    Thansk a lot again for your help.
    Fanny GROUX

  • Strange problem in a query

    Hello all,
    I'm facing a non-sense problem in a query, I hope you could help me.
    I have defined a structure in the rows of my query. Inside the structure, I have defined several selections and formulas. Selections are basically account intervals and formulas are additions of some selections.
    Some formulas are correct, adding amounts properly but others aren't. Instead of the addition, a * appears.
    Even if I copy and paste now one correct formula and show both in the execution, the first one appears correctly and the second one shows a *. How is it possible?
    I need some suggestions about what to do. Thank you in advance. I will assign points.

    Thank you for your answers!
    I have followed Mustafa advice in SPRO and now I don't see any *.
    But there is a thing I can't understand now. As said before, I created a formula based on selections and it shows correctly the amount and the unit.
    Then I have copied the formula and pasted after the first one. Both of them show the same value but only the first one is showing the amount.
    What do you think? How is it possible if both have been defined identically?

  • Session does not end even when i close browser

    when i close firefox/IE the session continues ,What i need is that i am adding amount in shopping cart ,but the amount adds to old amount even when i open a new browser window ,
    i hv checked that my browser will remove cookies when i will close mozilla
    i hv also printed total=0 in servlet's ini method but the init method is called only once and total does not reset to 0,does 'th the call to init method is made everytime we start a new session via browser ,it does not get called whn i close the current browser and open new one.how to destroy the older servlet?
    I m using s=request.getSession()
    and s.setAttribute("billamnt",total)
    the code of the servlet is
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class addtocart extends HttpServlet
         HttpSession s;
         PrintWriter pw;
         int total,cam,mob;
         public void init()
              total=0;
              cam=0;
              mob=0;
              System.out.println("inside  cart init");
    public void service(HttpServletRequest req,HttpServletResponse res) throws IOException
         s=req.getSession();
        res.setContentType("text/html");
         pw=res.getWriter();
         pw.println("<html><body><a href="+"mobs"+">Mobile</a><br><a href="+"cams"+">Camera</a><form method = "+"post "+"action ="+"bill"+"><br><input type= "+"submit"+"></form></body></html>");
        if(req.getParameter("csony")!=null)
        cam=cam+Integer.parseInt(req.getParameter("csony"));
        if(req.getParameter("clg")!=null)
        cam=cam+Integer.parseInt(req.getParameter("clg"));
        if(req.getParameter("cnokia")!=null)
        mob=mob+Integer.parseInt(req.getParameter("cnokia"));
        if(req.getParameter("cerricson")!=null)
        mob=mob+Integer.parseInt(req.getParameter("cerricson"));
        s.setAttribute("cambill",new Integer(cam));
        s.setAttribute("mobbill",new Integer(mob));
        s.setAttribute("billamnt",new Integer(cam+mob));
    public void doPost(HttpServletRequest req,HttpServletResponse res)
    public void doGet(HttpServletRequest req,HttpServletResponse res)
    }Wats the problem?
    Message was edited by:
    pooja_k_online

    The servlet is not created on a session basis. All users share the same servlet object. The servlet is created once when the servlet is first called in the context, then is maintaned until the server shuts down.
    You should not store any state in the servlet. You should use the HttpSession object you get from the request object to store the totals, and all other values. You should not use the servlet to hold on to a session object, as multiple users would see the SAME session that way. If you need to use the session in multiple methods, then you should pass that object as parameter, not by making it a class member.
    You also shouldn't put the work in the service method of the HttpServlet. You should put it in either the doGet or doPost method (and if you want to make it happen for both type requests, call doPost from the doGet method and put the work in the doPost method).
    For example:
    public class ShoppingCartServlet extends HttpServlet {
      public void doGet(HttpServletRequest request, HttpServletResponse response) {
        doPost(request, response);
      public void doPost(HttpServletRequest request, HttpServletResponse response) {
        HttpSession session = request.getSession();
        Integer cambill = (Integer)session.getAttribute("cambill");
        int cam = 0;
        if(cambill != null) cam = cambill.intValue();
        Integer mobbill = (Integer)session.getAttribute("mobbill");
        int mob = 0;
        if(mobbill != null) mob = mobbill.intValue();
        Integer billamnt = (Integer)session.getAttribute("billamnt");
        int total = 0;
        if(billamnt != null) total = billamnt.intValue();
        String csony = request.getParameter("csony");
        if (csony != null) cam += Integer.parseInt(csony);
        String clg = request.getParameter("clg");
        if (clg != null) cam+= Integer.parseInt(clg);
        String cnokia = request.getParameter("cnokia");
        if (cnokia != null) mob += Integer.parseInt(cnokia);
        String cerricson = request.getAttribute("cerricson");
        if (cerricson != null) mob += Integer.parseInt(cerricson);
        total = cam + mob;
        session.setAttribute("cambill",new Integer(cam));
        session.setAttribute("mobbill",new Integer(mob));
        session.setAttribute("billamnt",new Integer(total));
        PrintWriter pw=response.getWriter();
        pw.println("<html><body><a href="+"mobs"+">Mobile</a><br><a href="+"cams"+">Camera</a><form method = "+"post "+"action ="+"bill"+"><br><input type= "+"submit"+"></form></body></html>");
        pw.close();
    }Message was edited by:
    stevejluke

  • Regarding Line Items

    Hi
    I want to display customer wise open items in a report. In that I want to merge all the items by adding amounts and display it under document no. I used collect statement for this. Is there any other alternative to add the amounts and display them?
    plz give me the suggestion ASAP.
    Thanks in advance
    venkat

    Hi Venkata,
    If you use
    SORT <INTERNAL TABLE> BY <column name>
    AT NEW  'column name'.
    ENDAT.
    but make sure that the 'Column name' should be at the first position other wise all data will display.... . AT NEW will not work.

  • Currency & Unit creation in Cube

    Hi,
    Could anyone guide me the Steps for using of currency field from start to end in BI 7.0.
    Am trying with a small example where keyfields contains a currency or unit infobject.
    a) created infoobject with Quantity field as Unit and Price as Currency
    b) Created a Cube, with Unit & Currency dimensions
    c) Created a Infosource, able to see Unit & Currency fields
    d) Created transformations by using cube, able to map fields automatically
    e) Am unable to proceed from DTP onwards.
    I request you to please provide the steps of currency creation.
    -Naveen

    Its not a standard datasource.
    I created my own Characteristics & KeyFigures Infobjects for practice. In that i added Amount as Currency and Quantity as Unit key figures.
    I want to generate a simple report with creating Cube by Currency & Unit fields.
    Could you please provide Step by Step for these in BI 7.0.
    -Naveen

  • Add a trend line to a scatter graph

    for my physics work i had to plot a graph and i need to add a trendline to the graph. I have plotted the graph as a scatter chart but dont know how to add a line of best fit, please help

    Search "linear regression' in Numbers Help.
    The FORECAST() function can be used to calculate the end points for the trend line using the minimum and maximum X values in your data set for the x value argument.
    For example, with your data pairs listed in B3:B12 (x values) and C3:C12 (y values), add these values and formulas:
    D3: 0
    E3: =FORECAST(D3, C3:C$12, B3:B12)
    D4: =MAX(B3:B12)
    E4: =FORECAST(D4, C3:C$12, B3:B12)
    The data pair on row 3 mark the y axis intercept of the trend line.
    The pair on line 4 mark the position of the trend line where its x value is equal to the maximum x value of the data set. As plotting this pair may obscure the data point at this x value, you may want to move the trend line point to the right. To do this, add an arbitrary amount to the value in D4. The size of the added amount will depend on the scale of your graph.
    eg. D4: =MAX(B3:B12)+2
    If your data set includes negative x values, replace the formula in D3 with the mirror of the one in D4:
    D3: =MIN(B3:B12)-2
    Again, the "-2" is an arbitrary value used to extend the trend line beyond the collected x values.
    This will allow you to plot these two points onto your scatter graph as a second data set. I don't see a means of making Numbers connect the points, so you will have to add the line manually.
    Regards,
    Barry

Maybe you are looking for

  • 30'' & the GeForce 6800 GT

    Hello, Today i purchased the 30 in. apple HD Cinema Display. I did try to research it a bit before i purchased it. I use a GeForce 6800 GT but the display wont allow me to go higher than 1280x800 res. Any ideas if this is a PC vs. Apple issue or my g

  • Report on Central Excise Part1 & Part2

    Dear Friends, I've been writing a report for identification of  GRNs/Excise Invoice whose only Part1 has been done and not Part2. I have been using the Excise Header (J_1Iexchdr), Part1 (J_1IPart1) and Part2(J_1IPart2) tables. What could be the logic

  • Possible fix for embed tag problems in Safari 5.1 - Quicktime 7.6.6

    I would be grateful if anyone can confirm the following problem and fix: A user of my website reported that embedded audio (mp3) files ceased playing after installing Safari 5.1 on OS X 10.6.8. I updated my test machine's Safari from 5.0 to 5.1 and c

  • Names of other networks

    how do i get rid of the names of other networks in my area in the drop down menu of airport?

  • Can I edit HD on Mac Book Pro with FCP X without CRASHING often?

      Model Name:                   MacBook Pro   Model Identifier:              MacBookPro8,3   Processor Name:               Intel Core i7   Processor Speed:                 2.5 GHz   Number of Processors:          1   Total Number of Cores:          4