I can't use my field-symbols in my select statement...

Hello experts,
I am have been having problems with my report for the past days. My problem is,
I declared a dynamic field symbol so that I can use it in my select statement
instead of the standard internal table. But it is giving me a dump. Below is my code:
REPORT zfr_forex_rev_acctg
       NO STANDARD PAGE HEADING
       LINE-COUNT 0
       LINE-SIZE 100.
Data dictionary tables                       *
TABLES: bsis,
        bsas,
        tcurr,
        t001.
FIELD-SYMBOLS: <fs_dyntable> TYPE STANDARD TABLE,
               <fs_dynline>  TYPE ANY,
               <fs_fld>      TYPE ANY,
               <fs_data>     TYPE REF TO data,
               <fs_1>        TYPE ANY,
               <fs_2>        TYPE ANY TABLE.
CLASS lcl_main DEFINITION.
  PUBLIC SECTION.
    METHODS: build_table,
             get_data,
             combine_data,
             display_header,
             display_results.
  PRIVATE SECTION.
    TYPES: BEGIN OF t_bsis_bsas,
            zuonr  TYPE bsis-zuonr,
            gjahr  TYPE bsis-gjahr,
            belnr  TYPE bsis-belnr,
            bldat  TYPE bsis-bldat,
            waers  TYPE bsis-waers,
            blart  TYPE bsis-blart,
            dmbtr  TYPE bsis-dmbtr,
            wrbtr  TYPE bsis-wrbtr,
            hkont  TYPE bsis-hkont,
            amount TYPE bsis-wrbtr,
           END OF t_bsis_bsas.
    DATA: it_bsis_bsas TYPE STANDARD TABLE OF t_bsis_bsas,
          v_counter TYPE i.
  data declarations for internal table
    DATA: lt TYPE lvc_t_fcat,
          ls TYPE lvc_s_fcat,
          fldname(50) TYPE c,
          it_ddfields TYPE TABLE OF ddfield,
          wa_ddfields LIKE LINE OF it_ddfields.
ENDCLASS.
CLASS lcl_main IMPLEMENTATION.
METHOD build_table
  METHOD build_table.
    DATA: lv_from    TYPE bsis-gjahr,
          lv_asof    TYPE bsis-gjahr,
          lv_check   TYPE i,
          lt_data TYPE REF TO data,
          lt      TYPE lvc_t_fcat.
    FIELD-SYMBOLS: <fs_year> TYPE gjahr.
    ASSIGN lv_asof TO <fs_year>.
    lv_from = p_year.
    lv_asof = p_asof+0(4).
    v_counter = lv_asof - lv_from.
    wa_ddfields-fieldname = 'ZUONR'.
    wa_ddfields-position  = '0001'.
    wa_ddfields-datatype  = 'CHAR'.
    wa_ddfields-leng      =  '000018'.
    wa_ddfields-decimals  = '00000'.
    APPEND wa_ddfields TO it_ddfields.
    wa_ddfields-fieldname = 'GJAHR'.
    wa_ddfields-position  = '0002'.
    wa_ddfields-datatype  = 'NUMC'.
    wa_ddfields-leng      =  '000004'.
    wa_ddfields-decimals  = '000000'.
    APPEND wa_ddfields TO it_ddfields.
    wa_ddfields-fieldname = 'BELNR'.
    wa_ddfields-position  = '0003'.
    wa_ddfields-datatype  = 'CHAR'.
    wa_ddfields-leng      =  '000010'.
    wa_ddfields-decimals  = '000000'.
    APPEND wa_ddfields TO it_ddfields.
    wa_ddfields-fieldname = 'BLDAT'.
    wa_ddfields-position  = '0004'.
    wa_ddfields-datatype  = 'DATS'.
    wa_ddfields-leng      =  '000008'.
    wa_ddfields-decimals  = '000000'.
    APPEND wa_ddfields TO it_ddfields.
    wa_ddfields-fieldname = 'WAERS'.
    wa_ddfields-position  = '0005'.
    wa_ddfields-datatype  = 'CUKY'.
    wa_ddfields-leng      =  '000005'.
    wa_ddfields-decimals  = '000000'.
    APPEND wa_ddfields TO it_ddfields.
    wa_ddfields-fieldname = 'BLART'.
    wa_ddfields-position  = '0006'.
    wa_ddfields-datatype  = 'CHAR'.
    wa_ddfields-leng      =  '000002'.
    wa_ddfields-decimals  = '000000'.
    APPEND wa_ddfields TO it_ddfields.
    wa_ddfields-fieldname = 'DMBTR'.
    wa_ddfields-position  = '0007'.
    wa_ddfields-datatype  = 'CURR'.
    wa_ddfields-leng      =  '000013'.
    wa_ddfields-decimals  = '000002'.
    APPEND wa_ddfields TO it_ddfields.
    wa_ddfields-fieldname = 'WRBTR'.
    wa_ddfields-position  = '0008'.
    wa_ddfields-datatype  = 'CURR'.
    wa_ddfields-leng      =  '000013'.
    wa_ddfields-decimals  = '000002'.
    APPEND wa_ddfields TO it_ddfields.
    wa_ddfields-fieldname = 'HKONT'.
    wa_ddfields-position  = '0009'.
    wa_ddfields-datatype  = 'CHAR'.
    wa_ddfields-leng      =  '000010'.
    wa_ddfields-decimals  = '000000'.
    APPEND wa_ddfields TO it_ddfields.
    wa_ddfields-fieldname = 'AMOUNT'.
    wa_ddfields-position  = '0010'.
    wa_ddfields-datatype  = 'CURR'.
    wa_ddfields-leng      =  '000010'.
    wa_ddfields-decimals  = '000002'.
    APPEND wa_ddfields TO it_ddfields.
    DATA: lv_position TYPE i.
    lv_position = 0011.
    WHILE lv_check < v_counter.
     <fs_year> = lv_asof.
      wa_ddfields-fieldname = <fs_year>.
      wa_ddfields-position  = lv_position.
      wa_ddfields-datatype  = 'NUMC'.
      wa_ddfields-leng      =  '000004'.
      wa_ddfields-decimals  = '000000'.
      APPEND wa_ddfields TO it_ddfields.
      lv_asof = lv_asof - 1.
      ADD 1 TO: lv_check, lv_position.
    ENDWHILE.
    CLEAR lv_position.
    lv_position = 1.
    LOOP AT it_ddfields INTO wa_ddfields.
      ls-col_pos   = lv_position.
      ls-row_pos   = lv_position.
      ls-fieldname = wa_ddfields-fieldname.
      APPEND ls TO lt.
      ADD 1 TO lv_position.
    ENDLOOP.
    CLEAR lv_position.
    ASSIGN lt_data TO <fs_data>.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
     EXPORTING
      it_fieldcatalog = lt
     IMPORTING
      ep_table = <fs_data>
     EXCEPTIONS
      generate_subpool_dir_full = 1
     OTHERS = 2.
    IF sy-subrc <> 0.
    ENDIF.
    ASSIGN <fs_data>->* TO <fs_1>.
    ASSIGN <fs_1> TO <fs_2>.
    ASSIGN <fs_1> TO <fs_dyntable>.
  ENDMETHOD.
METHOD get_data
  METHOD get_data.
*get records from BSIS
    SELECT zuonr gjahr belnr bldat waers blart dmbtr wrbtr hkont
    FROM bsis
    INTO  CORRESPONDING FIELDS OF TABLE <fs_dyntable>
    WHERE bukrs = p_bukrs
      AND hkont IN s_hkont
      AND budat <= p_asof.
*get records from BSAS
    SELECT zuonr gjahr belnr bldat waers blart dmbtr wrbtr hkont
    FROM bsas
    APPENDING CORRESPONDING FIELDS OF TABLE <fs_dyntable>
    WHERE bukrs = p_bukrs
      AND hkont IN s_hkont
      AND budat <= p_asof
      AND augdt > p_asof.
  ENDMETHOD.
START-OF-SELECTION.
  DATA: main TYPE REF TO lcl_main.
  CREATE OBJECT main.
  CALL METHOD main->build_table.
  CALL METHOD main->get_data.
Need help on this problem. Thanks a lot guys and take care!

Hi guys,
I found out the problem  and Andreas is right. Now, I am having problems when including DMBTR, WRBTR in my select statement. All the others are ok. Here is my modified code. Please suggest what I need to add/modify. Thanks a lot!
CLASS lcl_main IMPLEMENTATION.
METHOD build_table
  METHOD build_table.
    DATA: lv_from    TYPE bsis-gjahr,
          lv_asof    TYPE bsis-gjahr,
          lv_check   TYPE i,
          lt_data TYPE REF TO data,
          lt      TYPE lvc_t_fcat.
    FIELD-SYMBOLS: <fs_year> TYPE gjahr.
    ASSIGN lv_asof TO <fs_year>.
    lv_from = p_year.
    lv_asof = p_asof+0(4).
    v_counter = lv_asof - lv_from.
  ZUONR
    wa_ddfields-fieldname = 'ZUONR'.
    wa_ddfields-position  = '0001'.
    wa_ddfields-datatype  = 'CHAR'.
    wa_ddfields-leng      =  '000018'.
    wa_ddfields-decimals  = '00000'.
    APPEND wa_ddfields TO it_ddfields.
  GJAHR
    wa_ddfields-fieldname = 'GJAHR'.
    wa_ddfields-position  = '0002'.
    wa_ddfields-datatype  = 'NUMC'.
    wa_ddfields-leng      =  '000004'.
    wa_ddfields-decimals  = '000000'.
    APPEND wa_ddfields TO it_ddfields.
  BELNR
    wa_ddfields-fieldname = 'BELNR'.
    wa_ddfields-position  = '0003'.
    wa_ddfields-datatype  = 'CHAR'.
    wa_ddfields-leng      =  '000010'.
    wa_ddfields-decimals  = '000000'.
    APPEND wa_ddfields TO it_ddfields.
  BLDAT
    wa_ddfields-fieldname = 'BLDAT'.
    wa_ddfields-position  = '0004'.
    wa_ddfields-datatype  = 'DATS'.
    wa_ddfields-leng      =  '00008'.
    wa_ddfields-decimals  = '000000'.
    APPEND wa_ddfields TO it_ddfields.
  WAERS
    wa_ddfields-fieldname = 'WAERS'.
    wa_ddfields-position  = '0005'.
    wa_ddfields-datatype  = 'CUKY'.
    wa_ddfields-leng      =  '000005'.
    wa_ddfields-decimals  = '000000'.
    APPEND wa_ddfields TO it_ddfields.
  BLART
    wa_ddfields-fieldname = 'BLART'.
    wa_ddfields-position  = '0006'.
    wa_ddfields-datatype  = 'CHAR'.
    wa_ddfields-leng      =  '000002'.
    wa_ddfields-decimals  = '000000'.
    APPEND wa_ddfields TO it_ddfields.
  DMBTR
    wa_ddfields-fieldname = 'DMBTR'.
    wa_ddfields-position  = '0007'.
    wa_ddfields-datatype  = 'CURR'.
    wa_ddfields-leng      =  '000013'.
    wa_ddfields-decimals  = '000002'.
    APPEND wa_ddfields TO it_ddfields.
  WRBTR
    wa_ddfields-fieldname = 'WRBTR'.
    wa_ddfields-position  = '0008'.
    wa_ddfields-datatype  = 'CURR'.
    wa_ddfields-leng      =  '000013'.
    wa_ddfields-decimals  = '000002'.
    APPEND wa_ddfields TO it_ddfields.
  HKONT
    wa_ddfields-fieldname = 'HKONT'.
    wa_ddfields-position  = '0009'.
    wa_ddfields-datatype  = 'CHAR'.
    wa_ddfields-leng      =  '000010'.
    wa_ddfields-decimals  = '000000'.
    APPEND wa_ddfields TO it_ddfields.
  AMOUNT
    wa_ddfields-fieldname = 'AMOUNT'.
    wa_ddfields-position  = '0010'.
    wa_ddfields-datatype  = 'CURR'.
    wa_ddfields-leng      =  '000010'.
    wa_ddfields-decimals  = '000002'.
    APPEND wa_ddfields TO it_ddfields.
    DATA: lv_position TYPE i.
    lv_position = 0011.
  Additional fields for the years
    WHILE lv_check < v_counter.
      wa_ddfields-fieldname = <fs_year>.
      wa_ddfields-position  = lv_position.
      wa_ddfields-datatype  = 'NUMC'.
      wa_ddfields-leng      =  '000004'.
      wa_ddfields-decimals  = '000000'.
      APPEND wa_ddfields TO it_ddfields.
      lv_asof = lv_asof - 1.
      ADD 1 TO: lv_check, lv_position.
    ENDWHILE.
    CLEAR lv_position.
    lv_position = 1.
    LOOP AT it_ddfields INTO wa_ddfields.
      CASE wa_ddfields-fieldname.
        WHEN 'BLDAT'.
          ls-col_pos   = lv_position.
          ls-row_pos   = lv_position.
          ls-fieldname = wa_ddfields-fieldname.
          ls-inttype   = 'D'.
          ls-ref_table = 'BSIS'.
          ls-ref_field = 'BLDAT'.
        WHEN 'WAERS'.
          ls-col_pos   = lv_position.
          ls-row_pos   = lv_position.
          ls-fieldname = wa_ddfields-fieldname.
          ls-ref_table = 'BSIS'.
          ls-ref_field = 'WAERS'.
        when 'DMBTR'.
          ls-col_pos   = lv_position.
          ls-row_pos   = lv_position.
          ls-fieldname = wa_ddfields-fieldname.
          ls-ref_table = 'BSIS'.
          ls-ref_field = 'DMBTR'.
        when 'WRBTR'.
          ls-col_pos   = lv_position.
          ls-row_pos   = lv_position.
          ls-fieldname = wa_ddfields-fieldname.
          ls-ref_table = 'BSIS'.
          ls-ref_field = 'WRBTR'.
        WHEN OTHERS.
          ls-col_pos   = lv_position.
          ls-row_pos   = lv_position.
          ls-fieldname = wa_ddfields-fieldname.
      ENDCASE.
      APPEND ls TO lt.
      ADD 1 TO lv_position.
    ENDLOOP.
    CLEAR lv_position.
    ASSIGN lt_data TO <fs_data>.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
     EXPORTING
      it_fieldcatalog = lt
     IMPORTING
      ep_table = <fs_data>
     EXCEPTIONS
      generate_subpool_dir_full = 1
     OTHERS = 2.
    IF sy-subrc <> 0.
    ENDIF.
    ASSIGN <fs_data>->* TO <fs_1>.
    ASSIGN <fs_1> TO <fs_2>.
    ASSIGN <fs_1> TO <fs_dyntable>.
  ENDMETHOD.

Similar Messages

  • HOW CAN I  USE MULTIPLE INNERJOINS IN A SINGLE SELECT STATEMENT?

    HI,
    I AM SHABEER AHMED,
    I AM GETTING AN ERROR WHILE I ATTEMPT TO EXECUTE A SELECT STATEMENT WITH MULTIPLE INNER JOINS . BECOZ I WANT TO FETCH ITEM DATA, PARTNER DATA  BASED ON HEADER DATA .
    THEN OF COURSE I HAVE FETCH DATA FROM VBAK VBAP VBKD SO LZ SEND ME THE SOLUTION.
    BYE

    Hi,
    1.Just see this:
    SELECT * INTO CORRESPONDING FIELD OF TABLE itab
    FROM t1 INNER JOIN t2 ON t1f4 EQ t2f4
    INNER JOIN t3 ON t2f5 EQ t3f5 AND
    t2f6 EQ t3f6 AND
    t2f7 EQ t3f7.
    2.But better to use for all entries.It increases the performance.
    FOR ALL ENTRIES
    Tabular Conditions
    The WHERE clause of the SELECT statement has a special variant that allows you to derive conditions from the lines and columns of an internal table:
    SELECT ... FOR ALL ENTRIES IN <itab> WHERE <cond> ...
    <cond> may be formulated as described above. If you specify a field of the internal table <itab> as an operand in a condition, you address all lines of the internal table. The comparison is then performed for each line of the internal table. For each line, the system selects the lines from the database table that satisfy the condition. The result set of the SELECT statement is the union of the individual selections for each line of the internal table. Duplicate lines are automatically eliminated from the result set. If <itab> is empty, the addition FOR ALL ENTRIES is disregarded, and all entries are read.
    The internal table <itab> must have a structured line type, and each field that occurs in the condition <cond> must be compatible with the column of the database with which it is compared. Do not use the operators LIKE, BETWEEN, and IN in comparisons using internal table fields. You may not use the ORDER BY clause in the same SELECT statement.
    You can use the option FOR ALL ENTRIES to replace nested select loops by operations on internal tables. This can significantly improve the performance for large sets of selected data.
    Example for ALL ENTRIES
    DATA: TAB_SPFLI TYPE TABLE OF SPFLI,
    TAB_SFLIGHT TYPE SORTED TABLE OF SFLIGHT
    WITH UNIQUE KEY TABLE LINE,
    WA LIKE LINE OF TAB_SFLIGHT.
    SELECT CARRID CONNID
    INTO CORRESPONDING FIELDS OF TABLE TAB_SPFLI
    FROM SPFLI
    WHERE CITYFROM = 'NEW YORK'.
    SELECT CARRID CONNID FLDATE
    INTO CORRESPONDING FIELDS OF TABLE TAB_SFLIGHT
    FROM SFLIGHT
    FOR ALL ENTRIES IN TAB_SPFLI
    WHERE CARRID = TAB_SPFLI-CARRID AND
    CONNID = TAB_SPFLI-CONNID.
    LOOP AT TAB_SFLIGHT INTO WA.
    AT NEW CONNID.
    WRITE: / WA-CARRID, WA-CONNID.
    ENDAT.
    WRITE: / WA-FLDATE.
    ENDLOOP.
    INNER JOINS
    In a relational database, you normally need to read data simultaneously from more than one database table into an application program. You can read from more than one table in a single SELECT statement, such that the data in the tables all has to meet the same conditions, using the following join expression:
    SELECT...
    FROM <tab> INNER JOIN <dbtab> AS <alias> ON <cond> <options>
    where <dbtab> is a single database table and <tab> is either a table or another join expression. The database tables can be specified statically or dynamically as described above. You may also use aliases. You can enclose each join expression in parentheses. The INNER addition is optional.
    A join expression links each line of <tab> with the lines in <dbtab> that meet the condition <cond>. This means that there is always one or more lines from the right-hand table that is linked to each line from the left-hand table by the join. If <dbtab> does not contain any lines that meet the condition <cond>, the line from <tab> is not included in the selection.
    The syntax of the <cond> condition is like that of the WHERE clause, although individual comparisons can only be linked using AND. Furthermore, each comparison must contain a column from the right-hand table <dbtab>. It does not matter on which side of the comparison it occurs. For the column names in the comparison, you can use the same names that occur in the SELECT clause, to differentiate columns from different database tables that have the same names.
    The comparisons in the condition <cond> can appear in the WHERE clause instead of the ON clause, since both clauses are applied equally to the temporary table containing all of the lines resulting from the join. However, each join must contain at least one comparison in the condition <cond>.
    Example for INNER JOINS
    REPORT demo_select_inner_join.
    DATA: BEGIN OF wa,
    carrid TYPE spfli-carrid,
    connid TYPE spfli-connid,
    fldate TYPE sflight-fldate,
    bookid TYPE sbook-bookid,
    END OF wa,
    itab LIKE SORTED TABLE OF wa
    WITH UNIQUE KEY carrid connid fldate bookid.
    SELECT pcarrid pconnid ffldate bbookid
    INTO CORRESPONDING FIELDS OF TABLE itab
    FROM ( ( spfli AS p
    INNER JOIN sflight AS f ON pcarrid = fcarrid AND
    pconnid = fconnid )
    INNER JOIN sbook AS b ON bcarrid = fcarrid AND
    bconnid = fconnid AND
    bfldate = ffldate )
    WHERE p~cityfrom = 'FRANKFURT' AND
    p~cityto = 'NEW YORK' AND
    fseatsmax > fseatsocc.
    LOOP AT itab INTO wa.
    AT NEW fldate.
    WRITE: / wa-carrid, wa-connid, wa-fldate.
    ENDAT.
    WRITE / wa-bookid.
    ENDLOOP.
    Regards,
    Shiva Kumar(Reward if helpful).

  • Using temporary tablespace for sort in select statement without spacifying

    how can i use some particular temporary tablespace in select statement for sording without allocating any temporary tablespace to that user

    Try to set for the current session the in memory sorting space to 0 before running your query:
    SQL> alter session set sort_area_size = 0;The query should use the temporary tablespace.
    Message was edited by:
    Pierre Forstmann

  • How to use Field-symbol with dynamic select query

    Can anybody tell me, how to use field-symbols in the dynamic select query.

    FIELD-SYMBOLS <fs> { typing | STRUCTURE struc DEFAULT dobj }.
    1. ... typing
    2. ... STRUCTURE struc DEFAULT dobj
    The FIELD-SYMBOLS statement declares a field symbol <fs>. The name conventions apply to the name fs. The angle brackets of the field symbols indicate the difference to data objects and are obligatory. You can declare field symbols in any procedure and in the global declaration section of an ABAP program, but not in the declaration section of a class or an interface. You can use a field symbol in any operand position in which it is visible and which match the typing defined using typing.
    After its declaration, a field symbol is initial - that is, it does not reference a memory area. You have to assign a memory area to it (normally using the ASSIGN statement) before you can use it as an operand. Otherwise an exception will be triggered.
    eg.
    FIELD-SYMBOLS <fs> TYPE ANY.
    DATA: BEGIN OF line,
            string1(10) VALUE '0123456789',
            string2(10) VALUE 'abcdefghij',
          END OF line.
    WRITE / line-string1+5.
    ASSIGN line-string1+5(*) TO <fs>.
    WRITE / <fs>.
    output:
    56789
    56789
    reward if helpful
    anju

  • Can I use a field name in text module

    Hi,
    I get a object name of the standard text in a field.  Can I use that field in Text module.
    Thanks,
    Srinivas.

    Go to t-code SMARTFORMS->Text Module->Create or Edit-> choose add icon and type your field name (used in your smartform) like this &fieldname&, then use this Text module in your smartform.

  • How can I use the LabVIEW Symbol Editor as a Sub-VI?

    How can I use the LabVIEW Symbol Editor as a Sub-VI?

    mc-hase wrote:
    > Thank you for your ansver.
    > That means that you see no possibiltiy to use the built in window? (I
    > think the built in window is programmed with LabVIEW as well...)
    The icon editor at least up to version 7.0 of LabVIEW is not written as
    VI but directly implemented inside LabVIEW, which is written in C/C++.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Proper use of Field symbol .. please help

    what is the proper use of field symbol in sap abap ?
    Moderator Message: Please do a proper search for such basic questions.
    Edited by: kishan P on Sep 13, 2010 4:01 PM

    hi Gopal,
    The parameter is used to color a cell in ALV grid.
    See this example how it is used
    http://www.sap-img.com/abap/line-color-in-alv-example.htm
    take a closer look at the code where the info is passed
    MOVE 'MATNR' TO wa_color-fname.
            MOVE '6'         TO wa_color-color-col.
            MOVE '1'         TO wa_color-color-int.
            MOVE '1'         TO wa_color-color-inv.
            APPEND wa_color TO it_color.
    Cheers
    VJ
    If it helps dont forget to mark points

  • Can I use Adobe Illustrator symbol to create a logo identity?

    Is it allowed to use an Adobe Illustrator default symbol (which is normally supplied with the program in the symbols library) to create a logo for a non-for-profit organisation? Is there a contact in Adobe for such enquiries to be officially addressed?
    Many thanks,

    Thanks, Mylenium. Actually it is for a non-for-profit ogranisation and I am not charging anything for it, it is totally on a probono basis. Also the symbol has been modified from its original form in terms of colour.
    Date: Wed, 15 Jul 2009 12:02:57 -0600
    From: [email protected]
    To:
    Subject: Illustrator Can I use Adobe Illustrator symbol to create a logo identity?
    Read the Adobe EULA, section 2.7. Basically it says (in human language) that you can use any of the files that come with Adobe programs in your own work as long as you don't sell them 1:1, i.e. it's okay to use a symbol as part of a logo, but not use a unmodified symbol alone and sell it to clients.
    Mylenium
    >

  • How can I use the field "Sales Order" on derivation?

    Dear All.
    This is about PA characteristic derivation.
    I want to change the characteristic value "Sales Order (KAUFN)" by derivation.
    But I cannot select the characteristic field on target field.
    The field "Sales order(KAUFN)" doesn't exist there.
    Why? How can I use the field "Sales Order" on derivation?
    Y.C.Bae

    Hi Bae,
    in order to be able to choose fields KAUFN (for sales order) and KDPOS
    (for sales order item) as target fields of derivation step 'enhancement'
    you have to modify the coding of subroutine EXIT  GET_ALLOWED_TARGETS
    in program RKEDRCOPA like this:
        NAME-IDENTIFIER = 'CO-PA'.
        NAME-TABNAME = FIELDTAB_ENTRY-TABNAME.
        NAME-FIELDNAME = FIELDTAB_ENTRY-FIELDNAME.
        IF FIELDTAB_ENTRY-USGFL CA 'DUV'
    BEGIN OF INSERTION *****
             OR FIELDTAB_ENTRY-FIELDNAME = 'KAUFN'
             OR FIELDTAB_ENTRY-FIELDNAME = 'KDPOS'
    END   OF INSERTION *****
             OR FIELDTAB_ENTRY-FIELDNAME = 'KNDNR'
             OR FIELDTAB_ENTRY-FIELDNAME = 'ARTNR'
    Actually sales order number and sales order item shouldn't be changed
    by derivation (therefore they are no valid target fields in standard)
    but if you need to fill them within an enhancement this modification
    will help you to define them as valid target fields. But this is just
    the technical frame so far; the logic from which table you'd like to
    derive the sales order number correctly depends on your implementation
    of the enhancement! I just want to ask you to be rather careful with
    the implementation of the exit so that the sales order number isn't
    changed in cases that shouldn't be concerned.
    Regards,
    Abhisek

  • HT201068 Can I use this to have someone in another state do my QuickBooks input?

    Can I use this to have someone in another state do my QuickBooks input?

    Hi examinernews,
    After reading your post it seems you would like the ability to allow a remote user to control your Mac. That can be done by using Screen Sharing, a feature of your Mac. I have linked to an article which explains how to use it:
    OS X Mavericks: Share your screen
    You can let others view your computer screen on their own Mac. While your screen is being shared, the user of the other Mac sees what’s on your screen and can open, move, and close files and windows, open apps, and even restart your Mac.
    Open Sharing preferences if it isn’t already open (choose Apple menu > System Preferences, then click Sharing).
    Select the Screen Sharing checkbox.If Remote Management is selected, you must deselect it before you can select Screen Sharing.
    To specify who can share your screen, select one of the following:            
    Option
    Description
    All users:
    Anyone with a user account on your Mac can share your screen.
    Only these users:
    Screen sharing is restricted to specific users.
    If you selected “Only these users,” click Add (+) at the bottom of the Users list, then do one of the following:
    Select a user from Users & Groups, which includes all the users of your Mac.
    Select a user from Network Users or Network Groups, which includes everyone on your network.
    To let others share your screen without having a user account on your Mac, click Computer Settings, then select one or both of the following:
    Option
    Description
    Anyone may request permission to control screen:
    When other computer users begin screen sharing your Mac, they can ask for permission instead of entering a user name and password.
    VNC viewers may control screen with password:
    Other users can share your screen using a VNC viewer app—on iPad or a Windows PC, for example—by entering the password you specify here.
    If this computer’s screen is shared only by other OS X users, turn off these options and add accounts for the other users.
    Thank you for contributing to Apple Support Communities.
    Take care,
    Bobby_D

  • What is proper syntax for using PassBack in a Report page select statement

    In my select statement I reference the passBack function using:
    onClick="javascript:passBack()"
    In my Page Header I (Typically) define the passBack function as:
    <script language="JavaScript" type="text/javascript">
    function passBack(passVal1,passVal2) {
    opener.document.getElementById("P2000_CABLE_ID").value = passVal1;
    opener.document.getElementById("P2000_CABLE_LABEL").value = passVal2;
    window.opener.location.reload(true);
    </script>
    But I have never used the passBack function from the Select statement before and cannot happen onto the proper syntax.
    The Page Items I want to pass are:
    1. :P2004_CABLE_ID
    2. :P2004_LABEL
    I want to pass them to:
    1. :P2000_CABLE_ID
    2. :P2000_CABLE_LABEL
    Can someone please help me out... Again?
    Thanks- Gary

    Let's assume column XYZ has both numbers (1), and letters (any alphabet).
    I have a case statement on SQL to turn any value that's not 1 into 0, then I am getting a sum of that column.
    I am also grouping by Row A, B etc to get aggregated sum of column XYZ for those group.
    Now on Crystal Reports function, I need to sum up values under column XYZ for all the groups.
    If I try using sum function like below, I get an error stating:
    "A number field or currency amount field is required here"
    (sum({Command.XYZ}))
    So I thought if I can use a case statement to change the non-numbers to 0 prior to sum that will probably resolve it. But I could not get the below case statement to work either (Error: A string is required). 
    SELECT {Command.XYZ}
       Case 1:
          1 
       Default:
          0;

  • Use two secondary indexes in a select statement

    hi, i want to use two secondary indexes in a select statement.
    how can i do it?

    Hello,
    To do it use the WHERE stm in the same order as the secondary stm is on SE11....To check if the index is used go to tcode ST05.
    example
    select * from ztable
    WHERE BUKRS EQ 'BUK1' AND
                 ZFIELD EQ 'BOY'.
    on se11 on the ZTABLE indexes setion must have a secondary index with
    BUKRS and
    ZFIELD.
    BYE!!
    Hope this helps!!
    Gabriel

  • How to use Oracle Table Type values in Select Statement.

    Hi,
    I am fetching initial set of values into Oracle Table of Records Type and want to use list of values in the Select statement.
    For example, try something like the following:
    TYPE t_record IS RECORD (
    ID TABLEA.ID%type,
    NO TABLEA.NO%type,
    v_record t_record;
    TYPE t_table IS TABLE OF v_record%TYPE;
    v_table t_table;
    -- Code to populate the values in v_table here.
    SELEC ID,NO, BULK COLLECT INTO <some other table variabes here> FROM TABLEA
    WHERE ID IN v_table(i).ID;
    I want to know how to use the values from Oracle Table Type in the Select Statement.

    Something like this:
    create or replace type t_record as  object (
    id number,
    no number
    CREATE or replace type t_table AS TABLE OF t_record;
    set serveroutput on
    declare
      v_table t_table := t_table();
      v_t1 t_table := t_table();
    begin
      v_table.extend(1);
      v_table(1).ID := 1;
      v_table(1).No := 10;
      v_table.extend(1);
      v_table(2).ID := 2;
      v_table(2).ID := 20;
      SELEC t_record (ID,NO) BULK COLLECT INTO v_t1
      from TableA
      FROM TABLEA
      WHERE ID IN (select t.ID from table(v_Table) t);
      for i in 1..v_t1.count loop
        dbms_output.put_line(v_t1(i).ID);
        dbms_output.put_line(v_t1(i).No);
      end loop;
    end;
    /Untested!
    P;
    Edited by: bluefrog on Mar 5, 2010 5:08 PM

  • Can I verify a field-symbol using its component name?

    Hello experts,
    I am looping at my field-symbol and I need to know what are its component name.
    I need to create an IF or CASE statement checking whether the field-symbol's
    component name is equal to that of the value that I declared. I want to do
    something like this:
    LOOP AT <fs_dyntable> ASSIGNING <wa_dyntable>.
    ASSIGN COMPONENT sy-index OF STRUCTURE <wa_dyntable>
            TO <component>.
            IF sy-subrc <> 0.
              EXIT.
            ENDIF.
    if component name = '2000'.
        condition...
      elseif component name = '1999'.
        condition...
      elseif component name = '1998'.
        condition...
      endif.
    endloop.
    Again, thank you guys and take care!

    Hi,
    I am not clear on your doubt , but you can use field-symbol fields like below:
    * if <component>-fld1 = '2000'.
    condition...
    elseif <component>-fld1 = '1999'.
    condition...
    elseif <component>-fld1 = '1998'.
    condition...
    endif.
    endloop.
    LOOP AT x_table ASSIGNING <wa_table>.
    IF <wa_table>-fld1 EQ 100.
    -----your code
    ENDIF.
    ENDLOOP.
    Regards
    Appana

  • Use of FIELD-SYMBOLS

    let me know how to use and why to use FIELD-SYMBOLS in the program

    Hi,
    A field symbol can point to any data object. The data object to which a field symbol points is assigned to it after it has been declared in the program.
    Example
    DATA: v_char(10).
    FIELD-SYMBOLS: <fs>.
    ASSIGN v_char to <fs>.
    v_char = 10.  " The value for v_char is changed.
    write: / <fs>.
    Thanks,
    Naren

Maybe you are looking for

  • How to print one line item per page?

    Hi, I have to develop a smartform for printing tags (labels) and i am stuck. My problem is: If more than one materials are available in one document, one material will be printed per one page. So if three line items are there, three pages of print ar

  • EliteBook 8470p Dual External Display Max Resolution

    I am currently using a docked HP Elitebook with two external monitors at (1920x1200) with no issues.  I wanted upgrade to two 4k external monitors (3840x2160). Does anyone know if the Elitebook can handle this?

  • SM30 issue in Quality after transport

    I have 18 fields in my custom table and there is a TMG for this table. In the dev system, I see all the fields in SM30, but after moving to QA, I see only 12 fields. Please help me in what could be the issue.

  • Looking for external driver hp555s updatewon't work with windows 8

    hi, my dvd/cd rewritable external drive will not work with windows 8, is there an upgrade for this writer, had it for a few years, was working fine with win.7 but can use with win.8, need help!!!! Thanks Gloves54 This question was solved. View Soluti

  • Problem in transferring a PDS

    Hi All: I am trying to transfer a PDS to APO - I have a BOM, Routing and created a Production Version.  When I run the PDS_MAINT, I see the PDS but I do not see any data in <Component Data> tab and in <Operat. Data> tab.  When I activate the CIF mode