Pls help me in write a join for the following code.

can any one give me optimized code for the posted query..
DATA :BEGIN OF BAPITABLE OCCURS 1,
       EDITELEM LIKE TOJTB-EDITELEM,
       FUNCTION LIKE SBAPIS-FUNCTION,
       SHORTTEXT    LIKE TFTIT-STEXT,
       END OF BAPITABLE.
          SELECT     EDITELEM  INTO (BAPITABLE-EDITELEM)
                               FROM TOJTB
                               WHERE APPLIC = APPLICATIONCODE
                               AND MODELONLY = 'R'
                               and ACTIVE = 'X'.
          SELECT FUNCTION INTO (BAPITABLE-FUNCTION)
                          FROM  SBAPIS
                          WHERE OBJECT = JEDITELEM.
         SELECT STEXT INTO (BAPITABLE-SHORTTEXT)
                      FROM TFTIT
                      WHERE SPRAS = 'EN' AND FUNCNAME = BAPITABLE-FUNCTION.
                     APPEND BAPITABLE.
                         ENDSELECT.
               ENDSELECT.
       ENDSELECT.
waiting for ur replies....
RESHALI

Hi
i'm giving you a sample code please change according to your requiirement.
I've taken required fields from 3 different tables and put them in one internal table.
please see the following code.
types : begin of ty_kna1,
         kunnr type kna1-kunnr,
         name1 type kna1-name1,
         vbeln type vbap-vbeln,
         erdat type vbak-erdat,
       end of ty_kna1.
data : it_kna1 type table of ty_kna1,
       wa_kna1 type ty_kna1.
data : it_fieldcat type slis_t_fieldcat_alv,
       wa_fieldcat type slis_fieldcat_alv.
start-of-selection.
  select kkunnr kname1 v1erdat v2vbeln
  into corresponding fields of table it_kna1
  from ( ( kna1 as k
    inner join vbak as v1 on kkunnr = v1kunnr )
    inner join vbap as v2 on v1vbeln = v2vbeln )
    up to 100 rows.
Reward if helpful
Regards
Lakshman

Similar Messages

  • Pls help me in sending sequential responses for the different commands.

    Hi all
    pls help me in  sending sequential responses for the different commands. For example,i have to send the response1 for command1 then again host wll send the some other command ,say command 2  after receiving response 1,then again i have to respond to the corresponding command.i m using the pci-6221 card not tradition DAQcard.
    regards,
    nitin

    Hi,
    you need to be more specific. What is your setup?
    Obviously, what you need is a command parser. Look this article for the basics. I know it is meant for RT but the concept is there.
    Not sure it will help with so few infos: http://zone.ni.com/devzone/conceptd.nsf/webmain/CD63FD0F746B17A686256F090065F572
    Dai
    Dai
    LV 7.1 - WIN XP - RT - FP

  • How to write selection Query for the following requirment.

    Hi All,
    I am new to ABAP, I need a help ,
    I need to select all plants(WERKS) from MARC at Plant/Material level,
    then I need to take all sales organozation(VKORG) from T001w,
    then I need the company code(BUKRS) from TVKO based on VKORG,
    then I need the currency key(WAERS) from T001 based on BUKRS,
    Can any one help me in writing selection Query for the same?
    Thanks All,
    Debrup.

    Hi,
    Its easy for you if you learn SELECT with JOIN to complete your task. So SEARCH the forum with SELECT statement and you will get a lot of examples using which you can write your own.
    If you struck up anywhere revert back.
    Regards
    Karthik D

  • How to  creat an xsl for the following code ?

    Hi all !
    Could any one help me to creat an xsl (in the form of table) for the following xml data ?
    <?xml version="1.0" encoding="UTF-8"?>
    <scenarioReport>
    <node name="V2_DR">
    <netObjId >1 </netObjId>
    <result>undefined</result>
    <report>xyz</report>
    <action>no action</action>
    <netObjId > 2 </netObjId>
    <result>defined</result>
    <report> sdfherh</report>
    <action>action</action>
    </node>
    <node name="V3_DR">
    <netObjId >1 </netObjId>
    <result>undefined</result>
    <report>xyz</report>
    <action>no action</action>
    <netObjId > 2 </netObjId>
    <result>defined</result>
    <report>dfhdfj</report>
    <action>action</action>
    </node>
    </scenarioReport>
    could you please send me as soon as possible !!!!

    To do that you would have to know what output the XSL should produce, based on the input. You haven't said anything about that. All you have posted is a single XML file which could be either the input or the output of this mythical XSL. Do what Steve said and read the tutorial.

  • How to write a query for the following issue

    Hello,
    I would like to write a query to display the result in the following format 
    Item
    Categort1
    Categort2
    Categort3
    Categort4
    Categort5
    Categort6
    Min
    Max
    Avg
    Min
    Max
    Avg
    Min
    Max
    Avg
    Min
    Max
    Avg
    Min
    Max
    Avg
    Min
    Max
    Avg
    01
    02
    03
    04
    For every item for the category i need to find Min,Max and Avg from the Value column
    Table structure is as follows
    ID
    Item Id
    Item
    Category
    value
    1
    01
    A
    Categort1
    1
    2
    01
    A
    Categort1
    2
    3
    01
    A
    Categort1
    3
    4
    02
    B
    Categort2
    7
    5
    02
    B
    Categort2
    8
    6
    03
    C
    Categort3
    6
    7
    04
    D
    Categort4
    12
    8
    04
    D
    Categort4
    14

    SELECT ItemID,
    MIN(CASE WHEN Category = 'Categort1' THEN value END) AS Min_category1,
    MAX(CASE WHEN Category = 'Categort1' THEN value END) AS Max_category1,
    AVG(CASE WHEN Category = 'Categort1' THEN value END) AS Avg_category1,
    MIN(CASE WHEN Category = 'Categort2' THEN value END) AS Min_category2,
    MAX(CASE WHEN Category = 'Categort2' THEN value END) AS Max_category2,
    AVG(CASE WHEN Category = 'Categort2' THEN value END) AS Avg_category2,
    MIN(CASE WHEN Category = 'Categort6' THEN value END) AS Min_category6,
    MAX(CASE WHEN Category = 'Categort6' THEN value END) AS Max_category6,
    AVG(CASE WHEN Category = 'Categort6' THEN value END) AS Avg_category6
    FROM Table
    GROUP BY ItemID
    The format can be achieved using tools like SSRS
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Data is not uploding for the following code in bdc

    DATA:   bdcdata LIKE bdcdata    OCCURS 0 WITH HEADER LINE.
    *       messages of call transaction
    DATA:   messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.
    *       error session opened (' ' or 'X')
    DATA:   e_group_opened.
    *       message texts
    TABLES: t100,
            cosp.
    *** Generated data section with specific formatting - DO NOT CHANGE  ***
    DATA: BEGIN OF record OCCURS 0,
    * data element: KPP_VALUE
            bdc00(032),                              "Cost Center
    * data element:
            bdc01(032),                              "Cost Element
    * data element:
            bdc02(032),                              "January
    * data element:
            bdc03(032),                              "february
    * data element:
            bdc04(032),                              "March
    * data element:
            bdc05(032),                              "April
    * data element:
            bdc06(032),                              "may
    * data element:
            bdc07(032),                              "june
    * data element:
            bdc08(032),                              "july
    * data element:
            bdc09(032),                              "august
    * data element:
            bdc10(032),                              "september
    * data element:
            bdc11(032),                              "october
    * data element:
            bdc12(032),                              "november
    * data element:
            bdc13(032),                              "december
          END OF record.
    *** End generated data section ***
    DATA: g_file TYPE string,                        "Input file var for FM
          g_count(4) TYPE n VALUE 0000,              "Counter
          g_flag(1),                                 "Flag
          g_bdc01(11),
          g_bdc02(11),
          g_bdc03(11),
          g_bdc04(11),
          g_bdc05(11),
          g_bdc06(11),
          g_bdc07(11),
          g_bdc08(11),
          g_bdc09(11),
          g_bdc10(11),
          g_bdc11(11),
          g_bdc12(11),
          g_bdc13(11).
    DATA: g_objnr LIKE cosp-objnr. "Object Number
    DATA: g_record TYPE string,    "work area to read from app server
          g_tab TYPE string.       "tab variable to separate the columns
    *   Selection Screen Variables
    PARAMETERS ctumode LIKE ctu_params-dismode DEFAULT 'A' OBLIGATORY.
    PARAMETERS: user(12) DEFAULT sy-uname OBLIGATORY.     "user for session in batch
    PARAMETERS cupdate LIKE ctu_params-updmode DEFAULT 'L' OBLIGATORY.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
    PARAMETERS: p_file(256) LOWER CASE OBLIGATORY,   "Input file
                p_ver(3) OBLIGATORY,                 "version
                p_gjahr(4) OBLIGATORY,               "Fiscal Year
                p_prof(8) OBLIGATORY,                "Planner Profile
                p_lines(4) OBLIGATORY,               "No. of Lines
                p_kokrs(4) OBLIGATORY.               "Controlling area
    SELECTION-SCREEN END OF BLOCK b1.
    *   Initialization
    INITIALIZATION.
    *Shiva-Change -01/03/2007 Costom Authorization check.
    INITIALIZATION.
      INCLUDE zauthocheck.
    *End.
      CLASS cl_abap_char_utilities DEFINITION LOAD.
      g_tab = cl_abap_char_utilities=>horizontal_tab.
    *  Start of Selection
    START-OF-SELECTION.
    *Set the Controlling area
      PERFORM bdc_dynpro USING 'SAPLSPO4'     '0300'.
      PERFORM bdc_field  USING 'SVALD-VALUE(001)' p_kokrs. "Contr.area
      PERFORM bdc_transaction USING 'OKKS'.
    *Set the planner profile
      PERFORM bdc_dynpro USING 'SAPLKPP6'     '1007'.
      PERFORM bdc_field  USING 'RKPP6-PLPROF' p_prof. "Planner profile
      PERFORM bdc_transaction USING 'KP04'.
    *Number of lines
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = p_lines
        IMPORTING
          output = p_lines.
    *For use in FM g_file should be of type string
       g_file = p_file.
    *Open the app server file
      PERFORM sub_get_data.
    *read all data one by one
    *  DO.
    *    READ DATASET p_file INTO g_record.
    *    IF sy-subrc <> 0.
    *      EXIT.
    *    ENDIF.
    **Split the record at tab
    *    SPLIT g_record AT g_tab INTO
    *     record-bdc00 record-bdc01 record-bdc02
    *     record-bdc03 record-bdc04 record-bdc05
    *     record-bdc06 record-bdc07 record-bdc08
    *     record-bdc09 record-bdc10 record-bdc11
    *     record-bdc12 record-bdc13.
    *    IF sy-subrc = 0.
    *      APPEND record.
    *      CLEAR record.
    *    ENDIF.
    *  ENDDO.
    *For every new cost center, check whether there is already some plan data
    *that is existing. If yes, delete them and replace with new plan data. Else,
    *upload the new data.
      LOOP AT record.
    *Start of every new transaction
        AT NEW bdc00.
          READ TABLE record INDEX sy-tabix.
          CLEAR cosp.
          CONCATENATE 'KS' p_kokrs record-bdc00 INTO g_objnr.
          SELECT SINGLE * FROM cosp WHERE objnr = g_objnr AND
                                          gjahr = p_gjahr AND
                                          wrttp = '01' AND
                                          vrgng = 'RKP1'.
          IF sy-subrc = 0.
            PERFORM bdc_dynpro      USING 'SAPLKPP0' '1000'.
            PERFORM bdc_field       USING 'BDC_CURSOR'
                                          'KPP0B-VALUE(03)'.
            PERFORM bdc_field       USING 'BDC_OKCODE'
                                          '=CSUB'.
            PERFORM bdc_field       USING 'KPP0B-VALUE(01)'
                                          p_ver.
            PERFORM bdc_field       USING 'KPP0B-VALUE(02)'
                                          p_gjahr.
            PERFORM bdc_field       USING 'KPP0B-VALUE(03)'
                                          record-bdc00.
            PERFORM bdc_dynpro      USING 'SAPLKPP2' '0106'.
            PERFORM bdc_field       USING 'BDC_CURSOR'
                                          'Z-BDC02(01)'.
            PERFORM bdc_field       USING 'BDC_OKCODE'
                                          '=CMAL'.
            PERFORM bdc_dynpro      USING 'SAPLKPP2' '0106'.
            PERFORM bdc_field       USING 'BDC_CURSOR'
                                          'Z-BDC02(01)'.
            PERFORM bdc_field       USING 'BDC_OKCODE'
                                          '=CDEL'.
            PERFORM bdc_dynpro      USING 'SAPLSPO1' '0200'.
            PERFORM bdc_field       USING 'BDC_OKCODE'
                                          '=YES'.
            PERFORM bdc_dynpro      USING 'SAPLKPP2' '0106'.
            PERFORM bdc_field       USING 'BDC_CURSOR'
                                          'Z-BDC02(01)'.
            PERFORM bdc_field       USING 'BDC_OKCODE'
                                          '=CBUC'.
            PERFORM bdc_transaction USING 'KP06'.
          ENDIF.
    *The line count should be set to 0001 first
          g_count = 0001.
          PERFORM bdc_dynpro      USING 'SAPLKPP0' '1000'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                        'KPP0B-VALUE(03)'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=CSUB'.
          PERFORM bdc_field       USING 'KPP1B-ONLY'
                                        'X'.
          PERFORM bdc_field       USING 'KPP0B-VALUE(01)'
                                        p_ver.
          PERFORM bdc_field       USING 'KPP0B-VALUE(02)'
                                        p_gjahr.
          PERFORM bdc_field       USING 'KPP0B-VALUE(03)'
                                        record-bdc00.
        ENDAT.
    *End of every new transaction
    *If the line count increases what was specified in sel screen, reset it to 1
        IF g_count > p_lines.
          g_count = 0001.
          g_flag = 'X'.
        ENDIF.
        CONCATENATE 'Z-BDC01(' g_count+2(2) ')' INTO g_bdc01.
        CONCATENATE 'Z-BDC02(' g_count+2(2) ')' INTO g_bdc02.
        CONCATENATE 'Z-BDC03(' g_count+2(2) ')' INTO g_bdc03.
        CONCATENATE 'Z-BDC04(' g_count+2(2) ')' INTO g_bdc04.
        CONCATENATE 'Z-BDC05(' g_count+2(2) ')' INTO g_bdc05.
        CONCATENATE 'Z-BDC06(' g_count+2(2) ')' INTO g_bdc06.
        CONCATENATE 'Z-BDC07(' g_count+2(2) ')' INTO g_bdc07.
        CONCATENATE 'Z-BDC08(' g_count+2(2) ')' INTO g_bdc08.
        CONCATENATE 'Z-BDC09(' g_count+2(2) ')' INTO g_bdc09.
        CONCATENATE 'Z-BDC10(' g_count+2(2) ')' INTO g_bdc10.
        CONCATENATE 'Z-BDC11(' g_count+2(2) ')' INTO g_bdc11.
        CONCATENATE 'Z-BDC12(' g_count+2(2) ')' INTO g_bdc12.
        CONCATENATE 'Z-BDC13(' g_count+2(2) ')' INTO g_bdc13.
    *Trigger a new page when the limit reaches.
        IF g_flag = 'X'.
          PERFORM bdc_dynpro      USING 'SAPLKPP2' '0106'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                        g_bdc01.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=CP+'.
          g_flag = space.
        ENDIF.
        PERFORM bdc_dynpro      USING 'SAPLKPP2' '0106'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                        g_bdc01.
        PERFORM bdc_field       USING g_bdc01
                                      record-bdc01.
        PERFORM bdc_field       USING g_bdc02
                                      record-bdc02.
        PERFORM bdc_field       USING g_bdc03
                                      record-bdc03.
        PERFORM bdc_field       USING g_bdc04
                                      record-bdc04.
        PERFORM bdc_field       USING g_bdc05
                                      record-bdc05.
        PERFORM bdc_field       USING g_bdc06
                                      record-bdc06.
        PERFORM bdc_field       USING g_bdc07
                                      record-bdc07.
        PERFORM bdc_field       USING g_bdc08
                                      record-bdc08.
        PERFORM bdc_field       USING g_bdc09
                                      record-bdc09.
        PERFORM bdc_field       USING g_bdc10
                                      record-bdc10.
        PERFORM bdc_field       USING g_bdc11
                                      record-bdc11.
        PERFORM bdc_field       USING g_bdc12
                                      record-bdc12.
        PERFORM bdc_field       USING g_bdc13
                                      record-bdc13.
        g_count = g_count + 1.
    *at end of all records of a transaction
        AT END OF bdc00.
          PERFORM bdc_dynpro      USING 'SAPLKPP2' '0106'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                        g_bdc13.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=CBUC'.
          SKIP.
          WRITE:/ 'Cost Center:', 15 record-bdc00.
          PERFORM bdc_transaction USING 'KP06'.
        ENDAT.
      ENDLOOP.
    *&      Form  sub_get_data
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM sub_get_data .
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                = g_file
          filetype                = 'ASC'
          has_field_separator     = 'X'
        TABLES
          data_tab                = record
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          OTHERS                  = 17.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " sub_get_data
    *   open dataset                                                       *
    *FORM open_dataset USING p_dataset.
    *  OPEN DATASET p_dataset
    *               FOR INPUT IN TEXT MODE
    *               ENCODING DEFAULT.
    *  IF sy-subrc <> 0.
    *    WRITE: / text-e00, sy-subrc.
    *    STOP.
    *  ENDIF.
    *ENDFORM.                    "OPEN_DATASET
    **   close dataset                                                      *
    *FORM close_dataset USING p_dataset.
    *  CLOSE DATASET p_dataset.
    *ENDFORM.                    "CLOSE_DATASET
    *        Start new transaction according to parameters                 *
    FORM bdc_transaction USING tcode.
      DATA: l_mstring(480).
      DATA: l_subrc LIKE sy-subrc.
    * batch input session
    * call transaction using
      REFRESH messtab.
      CALL TRANSACTION tcode USING bdcdata
                       MODE   ctumode
                       UPDATE cupdate
                       MESSAGES INTO messtab.
      l_subrc = sy-subrc.
      WRITE: / 'CALL_TRANSACTION',
               tcode,
               'returncode:'(i05),
               l_subrc,
               'RECORD:',
               sy-index.
      LOOP AT messtab.
        SELECT SINGLE * FROM t100 WHERE sprsl = messtab-msgspra
                                  AND   arbgb = messtab-msgid
                                  AND   msgnr = messtab-msgnr.
        IF sy-subrc = 0.
          l_mstring = t100-text.
          IF l_mstring CS '&1'.
            REPLACE '&1' WITH messtab-msgv1 INTO l_mstring.
            REPLACE '&2' WITH messtab-msgv2 INTO l_mstring.
            REPLACE '&3' WITH messtab-msgv3 INTO l_mstring.
            REPLACE '&4' WITH messtab-msgv4 INTO l_mstring.
          ELSE.
            REPLACE '&' WITH messtab-msgv1 INTO l_mstring.
            REPLACE '&' WITH messtab-msgv2 INTO l_mstring.
            REPLACE '&' WITH messtab-msgv3 INTO l_mstring.
            REPLACE '&' WITH messtab-msgv4 INTO l_mstring.
          ENDIF.
          CONDENSE l_mstring.
          WRITE: / messtab-msgtyp, l_mstring(250).
        ELSE.
          WRITE: / messtab.
        ENDIF.
      ENDLOOP.
      SKIP.
      REFRESH bdcdata.
    ENDFORM.                    "BDC_TRANSACTION
    *        Start new screen                                              *
    FORM bdc_dynpro USING program dynpro.
      CLEAR bdcdata.
      bdcdata-program  = program.
      bdcdata-dynpro   = dynpro.
      bdcdata-dynbegin = 'X'.
      APPEND bdcdata.
    ENDFORM.                    "BDC_DYNPRO
    *        Insert field                                                  *
    FORM bdc_field USING fnam fval.
    *  IF fval <> nodata.
      CLEAR bdcdata.
      bdcdata-fnam = fnam.
      bdcdata-fval = fval.
      APPEND bdcdata.
    *  ENDIF.
    from the flat file its reading first record in to the tab strip but not the second record for  the same costcenter

    So your sparse upper level members are dynamically calculated?
    I wonder if that is interacting with the calc order of the attribute dimension and not valuing the way you want.
    The DBAG has lots of good stuff on attributes: http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_dbag/dattrib.htm
    You might want to think about making the upper level members in Function stored/never share and see if you get the result you're looking for. If Function is sparse, I would think long and hard about whether I really want those members to be dynamically calculated because of retrieval performance impact.
    Regards,
    Cameron Lackpour

  • How can i write an apostraphy in the following code? ?if:LanguagePreference_ID335='F'? ?'Numéro d'inscription TVQ'? ?end if?

    Hello
    I keep getting an error message when I write the following
    <?if:LanguagePreference_ID335='F'?><?'Numéro d’inscription TVQ'?><?end if?>
    Is there anyway to write this code and keep the apostraphy?

    try as below:
    <?if:LanguagePreference_ID335='F'?><?'Numéro d?’inscription TVQ'?><?end if?>
    Cheers
    AJ

  • How to make the jtoolbar vertical for the following code

    public class JToolBarExample extends JFrame
    implements ItemListener {
    private BrowserToolBar toolbar;
    private JCheckBox labelBox;
    public static void main(String[] args) {
    new JToolBarExample();
    public JToolBarExample() {
    super("JToolBar Example");
    WindowUtilities.setNativeLookAndFeel();
    addWindowListener(new ExitListener());
    Container content = getContentPane();
    content.setBackground(Color.white);
    //orientation = BrowserToolBar.VERTICAL;
    toolbar = new BrowserToolBar();
    content.add(toolbar,BorderLayout.NORTH);
    labelBox = new JCheckBox("Show Text Labels?");
    labelBox.setHorizontalAlignment(SwingConstants.CENTER);
    labelBox.addItemListener(this);
    content.add(new JTextArea(10,30), BorderLayout.CENTER);
    content.add(labelBox, BorderLayout.SOUTH);
    pack();
    setVisible(true);
    public void itemStateChanged(ItemEvent event) {
    toolbar.setTextLabels(labelBox.isSelected());
    pack();
    if we run the above code with all other supported classes,we get a toolbar with all the labels and images in horzontal direction,but i want to get my jtoolbar vertical,and it should be floatable,
    so what changes i have to make to the code.
    Normally it s enough if we declare it as JToolBar.VERTICAL
    but it is not working over here,i mean where we have to declare this sentence.
    please help me
    thankyou

    When you post code use the "code" formatting tags so the code is readable.
    Read the API there is a constructor and a method to control the orientation of a toolbar.

  • How to write test procedures of the following code, need someones help

    ITS VERY URGENT.....PLEASE SEND ME THE REPLY ON MY EMAIL ID [email protected]
    // Account.java - Data class for account files
    // MODULE INDEX
    // NAME CONTENTS
    // Account Constructor
    // Account Constructor
    // getAccountNo Get account identifier
    // getAccountType Get account type
    // getCustNo Get customer identifier
    // getBalance Get balance
    // getCurCode Get currency code
    // setAccountNo Set account identifier
    // setAccountType Set account type
    // setCustNo Set customer identifier
    // setBalance Set balance
    // setCurCode Set currency code
    // MAINTENANCE HISTORY
    // DATE PROGRAMMER AND DETAILS
    // 6-5-08 TLT Original
    // IMPORTATIONS
    import java.util.*;
    import java.lang.*;
    // CLASS DECLARATIONS
    public class Account
    // INSTANCE DATA
    private String accountNo; //Account identifier
    private String accountType; //Account type
    private String custNo; //Customer identifier
    private double balance; //Balance
    private String curCode; //Currency code
    // CLASS CONSTRUCTOR
    Account (
    String accountNo) //Account idenfier
         this.accountNo = accountNo;
    Account (
         String accountNo, //Account identifier
         String accountType, //Account type
         String custNo, //Customer identifier
         double balance, //Balance
         String curCode) //Currency code
    this.accountNo = accountNo;
    this.accountType = accountType;
    this.custNo = custNo;
    this.balance = balance;
    this.curCode = curCode;
    // Get account identifier
    String getAccountNo () {
    return accountNo;
    // Get account type
    String getAccountType () {
    return accountType;
    // Get customer identifier
    String getCustNo () {
    return custNo;
    // Get balance
    double getBalance () {
    return balance;
    // Get currency code
    String getCurCode () {
    return curCode;
    // Set account identifier
    void setAccountNo (
    String accountNo)
    this.accountNo = accountNo;
    // Set account type
    void setAccountType (
    String accountType)
    this.accountType = accountType;
    // Set customer identifier
    void setCustNo (String custNo) {
    this.custNo = custNo;
    // Set balance
    void setBalance (double balance) {
    this.balance = balance;
    // Set currency code
    void setCurCode (String curCode) {
    this.curCode = curCode;
    }

    123shweta wrote:
    ITS VERY URGENT.....W00t? Well if its soo urgent then perhaps you should learn from this and do some planning ahead in the future so you dont find ur self in these urgent needs.
    PLEASE SEND ME THE REPLY ON MY EMAIL ID [email protected]
    Wat tha.., do you expect someone to just magically solve your problem for ya just like that? with an half asked question even.
    Last but not least.. Why would you even need an test for an getters and setter class?

  • Can someone help me in creating an Array for the following?

    Hi this is a flash banner done using AS3 but it is giving me bugs when published, can someone please look at the the following link http://webtemp2.idm.net.lb/alamflash/home.html 
    and below is the script, can i create an array?
    stop();
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    mc_animation.mc_scaffold.buttonMode = true;
    mc_animation.mc_prop.buttonMode = true;
    mc_animation.mc_ladder.buttonMode = true;
    mc_animation.mc_tower.buttonMode = true;
    mc_animation.mc_trade.buttonMode = true;
    ///////////////////// start ///////////////////////////////
    new Tween (mc_animation.mc_scaffold,"y", Elastic.easeInOut,-300,3,1.5,true);
    new Tween (mc_animation.mc_prop,"y", Elastic.easeInOut,-300,3,2,true);
    new Tween (mc_animation.mc_ladder,"y", Elastic.easeInOut,-300,3,2.5,true);
    new Tween (mc_animation.mc_tower,"y", Elastic.easeInOut,-300,3,3,true);
    new Tween (mc_animation.mc_trade,"y", Elastic.easeInOut,-300,3,3.5,true);
    new Tween (mc_animation.mc_separators,"y", Elastic.easeInOut,-300,15,1,true);
    /////////////////////// scaffolding ////////////////////////////
    function scafoldinfo(e:Event):void {
    new Tween (mc_animation.mc_scaffold,"x", Elastic.easeInOut,mc_animation.mc_scaffold.x,1000,4,true);
    new Tween (mc_animation.mc_prop,"x", Elastic.easeInOut,mc_animation.mc_prop.x,1100,3.5,true);
    new Tween (mc_animation.mc_ladder,"x", Elastic.easeInOut,mc_animation.mc_ladder.x,1200,3,true);
    new Tween (mc_animation.mc_tower,"x", Elastic.easeInOut,mc_animation.mc_tower.x,1300,2.5,true);
    new Tween (mc_animation.mc_trade,"x", Elastic.easeInOut,mc_animation.mc_trade.x,1400,2,true);
    new Tween (mc_animation.mc_separators,"y", Elastic.easeInOut,mc_animation.mc_separators.y,-300,1.5,true);
    new Tween (im_scaffolding,"x", Elastic.easeInOut,-1100,0,5,true);
    new Tween (info_scaffold,"y", Elastic.easeInOut,-300,30,6,true);
    function closescafoldinfo(e:Event):void {
    new Tween (info_scaffold,"y", Elastic.easeOut,30,300,5,true);
    new Tween (im_scaffolding,"x", Elastic.easeInOut,0,-1100,2,true);
    new Tween (mc_animation.mc_scaffold,"x", Elastic.easeInOut,mc_animation.mc_scaffold.x,2.4,4,true);
    new Tween (mc_animation.mc_prop,"x", Elastic.easeInOut,mc_animation.mc_prop.x,197.3,3.5,true);
    new Tween (mc_animation.mc_ladder,"x", Elastic.easeInOut,mc_animation.mc_ladder.x,392.3,3,true);
    new Tween (mc_animation.mc_tower,"x", Elastic.easeInOut,mc_animation.mc_tower.x,587.5,2.5,true);
    new Tween (mc_animation.mc_trade,"x", Elastic.easeInOut,mc_animation.mc_trade.x,782.2,2,true);
    new Tween (mc_animation.mc_separators,"y", Elastic.easeInOut,mc_animation.mc_separators.y,30,2,true);
    mc_animation.mc_scaffold.addEventListener(MouseEvent.CLICK,scafoldinfo);
    info_scaffold.btn_close.addEventListener(MouseEvent.CLICK,closescafoldinfo);
    ///////////////////////////////////////////////// propping///////////////////////////////////////////////////////////
    function proppinginfo(e:Event):void {
    new Tween (mc_animation.mc_scaffold,"x", Elastic.easeInOut,mc_animation.mc_scaffold.x,1000,4,true);
    new Tween (mc_animation.mc_prop,"x", Elastic.easeInOut,mc_animation.mc_prop.x,1100,3.5,true);
    new Tween (mc_animation.mc_ladder,"x", Elastic.easeInOut,mc_animation.mc_ladder.x,1200,3,true);
    new Tween (mc_animation.mc_tower,"x", Elastic.easeInOut,mc_animation.mc_tower.x,1300,2.5,true);
    new Tween (mc_animation.mc_trade,"x", Elastic.easeInOut,mc_animation.mc_trade.x,1400,2,true);
    new Tween (mc_animation.mc_separators,"y", Elastic.easeInOut,mc_animation.mc_separators.y,-300,1.5,true);
    new Tween (im_propping,"x", Elastic.easeInOut,-1100,0,5,true);
    new Tween (info_proping,"y", Elastic.easeInOut,-300,30,6,true);
    function closeproppinginfo(e:Event):void {
    new Tween (info_proping,"y", Elastic.easeOut,30,300,5,true);
    new Tween (im_propping,"x", Elastic.easeInOut,0,-1100,2,true);
    new Tween (mc_animation.mc_scaffold,"x", Elastic.easeInOut,mc_animation.mc_scaffold.x,2.4,4,true);
    new Tween (mc_animation.mc_prop,"x", Elastic.easeInOut,mc_animation.mc_prop.x,197.3,3.5,true);
    new Tween (mc_animation.mc_ladder,"x", Elastic.easeInOut,mc_animation.mc_ladder.x,392.3,3,true);
    new Tween (mc_animation.mc_tower,"x", Elastic.easeInOut,mc_animation.mc_tower.x,587.5,2.5,true);
    new Tween (mc_animation.mc_trade,"x", Elastic.easeInOut,mc_animation.mc_trade.x,782.2,2,true);
    new Tween (mc_animation.mc_separators,"y", Elastic.easeInOut,mc_animation.mc_separators.y,30,2,true);
    mc_animation.mc_prop.addEventListener(MouseEvent.CLICK,proppinginfo);
    info_proping.btn_close.addEventListener(MouseEvent.CLICK,closeproppinginfo);
    //////////////////////////////////// Ladders //////////////////////////////////////////////////////
    function laddersinfo(e:Event):void {
    new Tween (mc_animation.mc_scaffold,"x", Elastic.easeInOut,mc_animation.mc_scaffold.x,1000,4,true);
    new Tween (mc_animation.mc_prop,"x", Elastic.easeInOut,mc_animation.mc_prop.x,1100,3.5,true);
    new Tween (mc_animation.mc_ladder,"x", Elastic.easeInOut,mc_animation.mc_ladder.x,1200,3,true);
    new Tween (mc_animation.mc_tower,"x", Elastic.easeInOut,mc_animation.mc_tower.x,1300,2.5,true);
    new Tween (mc_animation.mc_trade,"x", Elastic.easeInOut,mc_animation.mc_trade.x,1400,2,true);
    new Tween (mc_animation.mc_separators,"y", Elastic.easeInOut,mc_animation.mc_separators.y,-300,1.5,true);
    new Tween (im_ladders,"x", Elastic.easeInOut,-1100,0,5,true);
    new Tween (info_ladders,"y", Elastic.easeInOut,-300,30,6,true);
    function closeladdersinfo(e:Event):void {
    new Tween (info_ladders,"y", Elastic.easeOut,30,300,5,true);
    new Tween (im_ladders,"x", Elastic.easeInOut,0,-1100,2,true);
    new Tween (mc_animation.mc_scaffold,"x", Elastic.easeInOut,mc_animation.mc_scaffold.x,2.4,4,true);
    new Tween (mc_animation.mc_prop,"x", Elastic.easeInOut,mc_animation.mc_prop.x,197.3,3.5,true);
    new Tween (mc_animation.mc_ladder,"x", Elastic.easeInOut,mc_animation.mc_ladder.x,392.3,3,true);
    new Tween (mc_animation.mc_tower,"x", Elastic.easeInOut,mc_animation.mc_tower.x,587.5,2.5,true);
    new Tween (mc_animation.mc_trade,"x", Elastic.easeInOut,mc_animation.mc_trade.x,782.2,2,true);
    new Tween (mc_animation.mc_separators,"y", Elastic.easeInOut,mc_animation.mc_separators.y,30,2,true);
    mc_animation.mc_ladder.addEventListener(MouseEvent.CLICK,laddersinfo);
    info_ladders.btn_close.addEventListener(MouseEvent.CLICK,closeladdersinfo);
    //////////////////////////////////// towers //////////////////////////////////////////////////////
    function towersinfo(e:Event):void {
    new Tween (mc_animation.mc_scaffold,"x", Elastic.easeInOut,mc_animation.mc_scaffold.x,1000,4,true);
    new Tween (mc_animation.mc_prop,"x", Elastic.easeInOut,mc_animation.mc_prop.x,1100,3.5,true);
    new Tween (mc_animation.mc_ladder,"x", Elastic.easeInOut,mc_animation.mc_ladder.x,1200,3,true);
    new Tween (mc_animation.mc_tower,"x", Elastic.easeInOut,mc_animation.mc_tower.x,1300,2.5,true);
    new Tween (mc_animation.mc_trade,"x", Elastic.easeInOut,mc_animation.mc_trade.x,1400,2,true);
    new Tween (mc_animation.mc_separators,"y", Elastic.easeInOut,mc_animation.mc_separators.y,-300,1.5,true);
    new Tween (im_towers,"x", Elastic.easeInOut,-1100,0,5,true);
    new Tween (info_tower,"y", Elastic.easeInOut,-300,30,6,true);
    function closetowersinfo(e:Event):void {
    new Tween (info_tower,"y", Elastic.easeOut,30,300,5,true);
    new Tween (im_towers,"x", Elastic.easeInOut,0,-1100,2,true);
    new Tween (mc_animation.mc_scaffold,"x", Elastic.easeInOut,mc_animation.mc_scaffold.x,2.4,4,true);
    new Tween (mc_animation.mc_prop,"x", Elastic.easeInOut,mc_animation.mc_prop.x,197.3,3.5,true);
    new Tween (mc_animation.mc_ladder,"x", Elastic.easeInOut,mc_animation.mc_ladder.x,392.3,3,true);
    new Tween (mc_animation.mc_tower,"x", Elastic.easeInOut,mc_animation.mc_tower.x,587.5,2.5,true);
    new Tween (mc_animation.mc_trade,"x", Elastic.easeInOut,mc_animation.mc_trade.x,782.2,2,true);
    new Tween (mc_animation.mc_separators,"y", Elastic.easeInOut,mc_animation.mc_separators.y,30,2,true);
    mc_animation.mc_tower.addEventListener(MouseEvent.CLICK,towersinfo);
    info_tower.btn_close.addEventListener(MouseEvent.CLICK,closetowersinfo);
    //////////////////////////////////// trading //////////////////////////////////////////////////////
    function tradinginfo(e:Event):void {
    new Tween (mc_animation.mc_scaffold,"x", Elastic.easeInOut,mc_animation.mc_scaffold.x,1000,4,true);
    new Tween (mc_animation.mc_prop,"x", Elastic.easeInOut,mc_animation.mc_prop.x,1100,3.5,true);
    new Tween (mc_animation.mc_ladder,"x", Elastic.easeInOut,mc_animation.mc_ladder.x,1200,3,true);
    new Tween (mc_animation.mc_tower,"x", Elastic.easeInOut,mc_animation.mc_tower.x,1300,2.5,true);
    new Tween (mc_animation.mc_trade,"x", Elastic.easeInOut,mc_animation.mc_trade.x,1400,2,true);
    new Tween (mc_animation.mc_separators,"y", Elastic.easeInOut,mc_animation.mc_separators.y,-300,1.5,true);
    new Tween (im_trading,"x", Elastic.easeInOut,-1100,0,5,true);
    new Tween (info_trading,"y", Elastic.easeInOut,-300,30,6,true);
    function closetradinginfo(e:Event):void {
    new Tween (info_trading,"y", Elastic.easeOut,30,300,5,true);
    new Tween (im_trading,"x", Elastic.easeInOut,0,-1100,2,true);
    new Tween (mc_animation.mc_scaffold,"x", Elastic.easeInOut,mc_animation.mc_scaffold.x,2.4,4,true);
    new Tween (mc_animation.mc_prop,"x", Elastic.easeInOut,mc_animation.mc_prop.x,197.3,3.5,true);
    new Tween (mc_animation.mc_ladder,"x", Elastic.easeInOut,mc_animation.mc_ladder.x,392.3,3,true);
    new Tween (mc_animation.mc_tower,"x", Elastic.easeInOut,mc_animation.mc_tower.x,587.5,2.5,true);
    new Tween (mc_animation.mc_trade,"x", Elastic.easeInOut,mc_animation.mc_trade.x,782.2,2,true);
    new Tween (mc_animation.mc_separators,"y", Elastic.easeInOut,mc_animation.mc_separators.y,30,2,true);
    mc_animation.mc_trade.addEventListener(MouseEvent.CLICK,tradinginfo);
    info_trading.btn_close.addEventListener(MouseEvent.CLICK,closetradinginfo);

    I am afraid this is undocumented usage of Tween class. According to the class documentation one needs to create instances of Tween. Since there are no explicit instances - I suspect that one Teen is overriding another or, perhaps, is not getting instantiated all together.
    So, the documented usage is:
    var tween:Tween = new Tween()
    Not just new Tween()
    Re: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/transitions/Tween.html
    I also would suggest you look into TweenLite or TweenMax classes - they are much more compact, easier to use and accommodate several properties tweening in one swoop.

  • Pls help in sending multiple resposes after analysing the sequential commands from the device

    Hi all
    pls help me in  sending sequential responses for the different commands. For example,i have to send the response1 for command1 then again host wll send the some other command ,say command 2  after receiving response 1,then again i have to respond to the corresponding command.i m using the pci-6221 card not tradition DAQcard.
    regards,
    nitin

    Hello nitin,
    It sounds like you are looking for some examples on how to program your
    6221 DAQ board.  I highly reccomend taking a look at the LabVIEW
    shipping examples that install with the DAQ driver.  To access
    them, open the NI Example Finder by going to the menu bar of a VI and
    selecting Help >> Find Examples...
    If you have any specific questions, please feel free to ask!
    Eric
    DE For Life!

  • Is there a blu-ray writer that works for the mac

    Is there a blu-ray writer that works for the iMac?

    The biggest problem is software, Toast Titanium 11 will work...
    http://eshop.macsales.com/shop/blu-ray

  • I need help in activating apple id to for the find my iphone app

    i need help in activating apple id to for the find my iphone app

    What sort of help are you requesting from us, your fellow users? What exactly is the problem/issue?

  • How to write a rule for the scnario...

    Hi ,
    Any body please tell me how to write a HFM rule for the following scnario.
    Pull<Parent Currency> value for base members from ACTUAL_EURO scenario and replaces <Parent Currency> value of for base members in ACTUAL scenario. At the end of this process, the actual scenario holds functional currency in <Entity Currency>, EURO in <Parent Currency>.
    It's Urgent.
    Thanks in Advance,
    Mohan

    sub calculate()
    if hs.scenario.member="ACTUAL" then
    Elist=hs.entity.list("","[Base]")
    if hs.value.istranscur=TRUE then
    if hs.entity.isbase("","")=TRUE then
    hs.exp "A#ALL=A#ALL.S#ACTUAL_EURO"
    end if
    end if
    end if
    end sub
    While running the Rule file getting the below error
    An error occurred.
    Error: 800456C8
    Log:
    Load started at: 12:06:02
    Number of Errors: 1
    Number of Warnings: 0
    <?xml version="1.0"?>
    <EStr><Ref>{151D9809-D203-45E2-BA63-EDDF93FF758C}</Ref><User/><DBUpdate>1</DBUpdate><ESec><Num>-2147214193</Num><Type>0</Type><DTime>6/3/2010 12:06:02 PM</DTime><Svr>ALVHYPW05</Svr><File>CHsvCalculate.cpp</File><Line>1773</Line><Ver>9.3.1.0.2042</Ver></ESec></EStr>
    Load ended at: 12:06:02
    Elapsed time: 00:00:00
    Thanks,
    RON

  • URGENT HELP ME OUT !!! NO FILED DEFINED FOR THE FUNCTION CODE

    hello friends,
                       I am working with module programming t-se80,
    i have made a simple screen with some filed on it.Along with this i have made gui staus with 2 icons create and display and i have assiged text to them also , also they appear in screen when i run the t-code.
    problem is that when i click on any of icon i am unable to debug my code and system prompts an information message
    "NO FILED DEFINED FOR THE FUNCTION CODE ".
    In the screen elements with elemnt ok if have assigned ok_code in the screen and also a data statement in the code.
    Still i m unable to monitor the debuger.
    when ever i run the t-code and on the debuger and when i click on the create icon nothing happens?/
    kindly help me urgently
    with thanks
    sam

    Hi,
    It seems you have not assigned Function codes to your buttons in GUI. Assign them d relevant fct codes in Screen Painter (if u've created 2 push buttons) or menu painter.
    Hope this wil soleve your problem.
    Reward points if helpful.
    Thnx
    Pradipta K Mishra

Maybe you are looking for

  • Studio 11 still freezing

    This posting is a follow-up to the Mar 1 posting entitled: Studio 11 freezes when using external editor. Gordon kindly responded to that posting with a request for instructions on how to recreate the problem. Those instructions follow. 1. Create a di

  • Convert an Employee record to a Contingent worker record

    Hi friends, I have a requirement in HRMS where a list of Employees needs to be converted to a Contingent Worker. Since the employee details, address, etc... are already loaded, is it possible to convert/change the employee's person type from Employee

  • Re: Java Database

    Hello, I'll like some advice on the topic mentioned above. I'm a beginner of java programming and have elementry knowledge about java. I'll like to know how is it possible to input the list of data in Excel format into Java Database Connectivity and

  • Mac mini (mid 2010) RAM upgrade 4GB or 8GB

    I have a mid 2010 Mac mini with 2GB of RAM. My question is - Should I upgrade the RAM to 4GB or 8GB? Thank you, DZetko

  • Help with 'connect by prior' statement

    I've got a quoting report that is sporadically ordering incorrectly and I've traced the source down to a 'connect by prior' statement. Can I get an explanation of what the statement is doing so I can figure out how to change it to get the desired res