Why do we use Feild Symbols

Hi All
Breifly explain me why do we use field symbols. and how to use them and where to use them.
Thanks! in advance

Hi,
The new style of definition of internal tables usually doesn't include a header area for the internal table. Furthermore, ABAP Objects will not allow internal tables with header lines. For added performance, instead of declaring a work area--use a field symbol. The work area concept and header line format both require data to be moved from the internal table to the work area or header area. A field symbol is just a pointer that will point to the proper line of the itab. With field symbols, no data needs to be moved. The field symbol just stores the proper memory address to point at the right line. The field symbol can have structure and be made up of fields similar to a work area or header line. Because no data needs to be copied, processing is much faster.
The keys to the usage are:
1) Defining the table records and the field symbol in a similar type.
just an ordinary standard table
TYPES: BEGIN OF it_vbak_line,
vbeln LIKE vbak-vbeln,
vkorg LIKE vbak-vkorg,
vtweg LIKE vbak-vtweg,
spart LIKE vbak-spart,
kunnr LIKE vbak-kunnr,
END OF it_vbak_line.
DATA: it_vbak TYPE TABLE OF it_vbak_line.
FIELD-SYMBOLS: <it_vbak_line> TYPE it_vbak_line.
or as a screaming fast hash table for keyed reads
TYPES: BEGIN OF it_vbpa_line,
vbeln LIKE vbak-vbeln,
kunnr LIKE vbak-kunnr,
END OF it_vbpa_line.
DATA: it_vbpa TYPE HASHED TABLE OF it_vbpa_line
WITH UNIQUE KEY vbeln.
FIELD-SYMBOLS: <it_vbpa_line> TYPE it_vbpa_line.
2) In ITAB processing, utilize the ASSIGNING command.
loop example
LOOP AT it_vbak ASSIGNING <it_vbak_line>.
look at records--populate it_zpartner
read example
READ TABLE it_vbpa ASSIGNING <it_vbpa_line>
WITH TABLE KEY vbeln = <it_vbak_line>-vbeln.
3) Refer to the field symbol's fields in the loop or after the read.
wa_zpartner-vkorg = <it_vbak_line>-vkorg.
wa_zpartner-vtweg = <it_vbak_line>-vtweg.
wa_zpartner-spart = <it_vbak_line>-spart.
wa_zpartner-kunag = <it_vbak_line>-kunnr.
wa_zpartner-kunwe = <it_vbpa_line>-kunnr.
See the code example below for further detail. The code was written in R/3 4.6C and should work for all 4.x versions.
Code
REPORT z_cnv_zshipto_from_hist          NO STANDARD PAGE HEADING
                                        LINE-SIZE 132
                                        LINE-COUNT 65
                                        MESSAGE-ID z1.
Program Name: ZSHIPTO from History             Creation: 07/23/2003  *
SAP Name    : Z_CNV_ZSHIPTO_FROM_HIST           Application: SD      *
Author      : James Vander Heyden               Type: 1              *
Description :  This program reads tables VBAK & VBPA and populates   *
ZPARTNER. ZPARTNER table is read in by ZINTSC06. ZINTSC06 updates    *
the ZSHIPTO relationships.                                           *
Inputs:  Selection Screen                                            *
Outputs:                                                             *
External Routines                                                    *
  Function Modules:                                                  *
  Transactions    :                                                  *
  Programs        :                                                  *
Return Codes:                                                        *
Ammendments:                                                         *
   Programmer        Date     Req. #            Action               *
================  ==========  ======  ===============================*
J Vander Heyden   07/23/2003  PCR     Initial Build                  *
DATA DICTIONARY TABLES                                               *
TABLES:
  zpartner.
SELECTION SCREEN LAYOUT                                              *
PARAMETERS: p_load   RADIOBUTTON GROUP a1 DEFAULT 'X',
            p_deltab  RADIOBUTTON GROUP a1.
SELECTION-SCREEN SKIP 2.
SELECT-OPTIONS: s_vkorg  FOR zpartner-vkorg MEMORY ID vko OBLIGATORY
                             NO INTERVALS NO-EXTENSION,
                s_vtweg  FOR zpartner-vtweg MEMORY ID vtw OBLIGATORY
                             NO INTERVALS NO-EXTENSION,
                s_spart  FOR zpartner-spart MEMORY ID spa OBLIGATORY
                             NO INTERVALS NO-EXTENSION.
INTERNAL TABLES                                                      *
TYPES: BEGIN OF it_vbak_line,
        vbeln LIKE vbak-vbeln,
        vkorg LIKE vbak-vkorg,
        vtweg LIKE vbak-vtweg,
        spart LIKE vbak-spart,
        kunnr LIKE vbak-kunnr,
      END OF it_vbak_line.
DATA: it_vbak TYPE TABLE OF it_vbak_line.
FIELD-SYMBOLS: <it_vbak_line>  TYPE it_vbak_line.
TYPES: BEGIN OF it_vbpa_line,
        vbeln LIKE vbak-vbeln,
        kunnr LIKE vbak-kunnr,
      END OF it_vbpa_line.
DATA: it_vbpa TYPE HASHED TABLE OF it_vbpa_line
                   WITH UNIQUE KEY vbeln.
FIELD-SYMBOLS: <it_vbpa_line>  TYPE it_vbpa_line.
DATA: it_zpartner TYPE TABLE OF zpartner.
DATA: wa_zpartner TYPE zpartner.
STRUCTURES                                                           *
VARIABLES                                                            *
DATA:  z_mode   VALUE 'N',
       z_commit TYPE i,
       z_good   TYPE i,
       z_bad    TYPE i.
CONSTANTS                                                            *
SELECTION-SCREEN HELP                                                *
INITIALIZATION                                                       *
INITIALIZATION.
AT LINE SELECTION                                                    *
AT LINE-SELECTION.
AT SELECTION SCREEN                                                  *
AT SELECTION-SCREEN.
START-OF-SELECTION                                                   *
START-OF-SELECTION.
  IF p_load = 'X'.
    PERFORM select_records.
    PERFORM process_itab.
  ELSE.
    PERFORM delete_table.
  ENDIF.
END-OF-SELECTION                                                     *
END-OF-SELECTION.
*&      Form  DELETE_TABLE
      text
FORM delete_table.
  DATA:  w_answer.
  CLEAR: w_answer.
  CALL FUNCTION 'POPUP_TO_CONFIRM'
       EXPORTING
            titlebar              = text-002
        DIAGNOSE_OBJECT       = ' '
            text_question         = text-003
            text_button_1         = text-004
            icon_button_1         = 'ICON_OKAY'
            text_button_2         = text-005
            icon_button_2         = 'ICON_CANCEL'
            default_button        = '2'
            display_cancel_button = ''
        USERDEFINED_F1_HELP   = ' '
        START_COLUMN          = 25
        START_ROW             = 6
        POPUP_TYPE            =
      IMPORTING
           answer                = w_answer.
   TABLES
        PARAMETER             =
   EXCEPTIONS
        TEXT_NOT_FOUND        = 1
        OTHERS                = 2
  IF w_answer = 1.
    DELETE FROM zpartner
   WHERE vkorg IN s_vkorg
     AND vtweg IN s_vtweg
     AND spart IN s_spart.
    MESSAGE i398(00) WITH 'Records deleted from table: '
                          sy-dbcnt
  ENDIF.
ENDFORM.                    " DELETE_TABLE
*&      Form  SELECT_RECORDS
      text
FORM select_records.
get vbaks
  CLEAR: it_vbak.
  SELECT vbeln vkorg vtweg spart kunnr
    FROM vbak
    INTO CORRESPONDING FIELDS OF TABLE it_vbak
   WHERE vkorg IN s_vkorg
     AND vtweg IN s_vtweg
     AND spart IN s_spart
     AND auart = 'TA'.
get vbpa we's
  CLEAR: it_vbpa.
  SELECT *
    FROM vbpa
    INTO CORRESPONDING FIELDS OF TABLE it_vbpa
    FOR ALL ENTRIES IN it_vbak
   WHERE vbeln = it_vbak-vbeln
     AND posnr = '000000'
     AND parvw = 'WE'.
ENDFORM.                    " SELECT_RECORDS
*&      Form  PROCESS_ITAB
attempt post goods issue for all entries.
FORM process_itab.
  LOOP AT it_vbak ASSIGNING <it_vbak_line>.
look at records--populate it_zpartner
    READ TABLE it_vbpa ASSIGNING <it_vbpa_line>
                WITH TABLE KEY  vbeln   = <it_vbak_line>-vbeln.
    IF sy-subrc = 0.
      CLEAR: wa_zpartner.
      wa_zpartner-mandt = sy-mandt.
      wa_zpartner-vkorg = <it_vbak_line>-vkorg.
      wa_zpartner-vtweg = <it_vbak_line>-vtweg.
      wa_zpartner-spart = <it_vbak_line>-spart.
      wa_zpartner-kunag = <it_vbak_line>-kunnr.
      wa_zpartner-kunwe = <it_vbpa_line>-kunnr.
      APPEND wa_zpartner TO it_zpartner.
    ENDIF.
  ENDLOOP.
  SORT it_zpartner BY mandt vkorg vtweg spart kunag kunwe..
  DELETE ADJACENT DUPLICATES FROM it_zpartner.
do a mass table update.
  INSERT zpartner FROM TABLE it_zpartner.
  IF sy-subrc = 0.
    MESSAGE s398(00) WITH 'Inserted records: ' sy-dbcnt.
  ENDIF.
ENDFORM.                    " PROCESS_ITAB
reward if helpful,
kushagra

Similar Messages

  • Why use the symbol "|" here?

    Why use the symbol "|" here?
    SQL> @D:/temp/emp_package.sql|

    Hi,
    To me it seems that some parameter is passed (but i doubt why somebody would be passsing "|") to the sql file during the run time.
    One reason could be to tell the file what is the deliminator. Is this the case for you?
    Regards
    Anurag Tibrewal.

  • What is use of % symbol in JSP

    What is use of % symbol in JSP? Please reply

    What is use of % symbol in JSP? Please replySome people on this thread have provided you good
    answers.
    You may also want to know that the new way ofwriting
    JSPs is with JSTL and scriptlets <% anything that
    goes here is a scriptlet %> are discouraged.
    But it's good to get basic foundation inscriptlets
    too incase there's legacy JSP code.why would you need a foundation in scriptlets,
    though? if it's legacy code, it's already there, and
    it's just java. if you can't work out that the stuff
    that looks like java code in a legacy JSP actually
    is java code, you're in trouble. and wouldn't
    part of the maintenance be to refactor the scriptlets
    out?It's not really just Java IMO because JSP has additional concepts like
    implicit objects such as page, request, session, out etc ---- a newbie who knows Java won't have a clue when the come across the implicit objects and can't find where they were declared.
    Also the concept of directives is not in Java Classes but on in JSPs.
    JSP has some features that would be new or confusing to someone who has only worked with Java, therefore a newbie to JSP would be better off learning JSP concepts.
    -regards
    appy

  • Problem in using Field Symbols in HIDE statement

    Hi All,
    I am working in an Upgrade project ( from 4.6B to ECC 5.0 ). In a program I found few warnings on HIDE statement because they have used Field Symbols in HIDE statement.
    The warning is " HIDE on a field symbol is dangerous, but the formal parameter "" is not ".
    and the piece of code is
    SET EXTENDED CHECK OFF.
    HIDE: flg_pick_up, <s1>, <s2>, <s3>, <s4>, <s5>, z_feld_ind.
    CLEAR flg_pick_up.
    SET EXTENDED CHECK ON.
    all the field symbols are of type ANY. SO can any one help in removing those warnings.
    Please reply me as soon as possible.
    With Regards,
    Amarnath Singanamala

    Hi amarnath,
    1. Why do u want to remove
       the warning ?
    2. This warning (and not an error)
       is a GENUINE warning,
      which the system wants the user to make aware of.
    3. By doing some xyz,
      even if u may be able to hide the warning,
      the warning may be hidden (for display purpose only),
      but,
      the warning will still be there inside the system.
    4. I think u should ignore the warning,
      (if there are no other repurcussions).
    regards,
    amit m.

  • Using Field-Symbols in a user exit to change the importing parameter

    Please don't ask why but I need to use a user exit, changing the importing parameter.  I decided that I could do this using field-symbols.
    Please excuse my ignorance but I have never used field symbols for something such as this.
    Here is my goal:  Loop through an internal table (im_document-item).  When I find what I need I want to make a change to this line (not so hard if I am looping into a field symbol) and also append a line to the end of the table im_document-item.
    I have the following so far:
      DATA: wa_item TYPE accit,
            wa_item_out type ACCIT_SUB.
    FIELD-SYMBOLS: <document> type acc_document,
                   <accit> TYPE ACCIT.
    LOOP AT im_document-item ASSIGNING <accit> where saknr = '0000211000'.
    * Modify the curent line
    wa_item = <accit>
    * Append a new line into table im_document-item.
    ENDLOOP.
    How can I use field-symbols to append a line to this table?  Please note that the table in question (im_document-item) is an importing only parameter.
    Regards,
    Davis

    that will allow me to append an initial line with <accit> pointing to the line. Therefore I just have to modify <accit> and the new line will then have my changes?
    Yep, that is exactly it.    So after the APPEND statement, simply fill the fields of the <accit>.
    append initial line to im_document-item ASSIGNING <accit>.
    <accit>-field1 = 'Blah'.
    <accit>-field2 = 'Blah'.
    Regards,
    Rich Heilman

  • Why do we need a symbolic link of pfile

    Hi all,
    Why do we require a symbolic link in $ORACLE_BASE/admin/SID/PFILE location for the actual pfile in $ORACLE_HOME/dbs location

    Oracle will only look in $ORACLE_HOME/dbs
    However, especially if you have multiple databases, you don't want everything in one directory, and OFA shows you how to set this up neatly.
    But you also don't want multiple copies of the pfile as they will drift apart.
    Solution: a symbolic link.
    BTW : pfiles are obsolete and replaced by spfiles.
    Also: please don't use 'We', if there is no need to. 'You' ,'One' or 'I' will do.
    Sybrand Bakker
    Senior Oracle DBA

  • Even though am using Field-Symbol correctly, showing error!!!

    Hello
    Below is my code,
    LOOP AT itab_data INTO <fs_data>.
       CHECK <fs_data>-error_flag = 'X'.
       READ TABLE itab_docnum INTO <fs_docnum>
        WITH KEY docnum = <fs_data>+4(16)
        BINARY SEARCH.
    LOOP AT itab_data INTO <fs_data>.
       CHECK <fs_data>+1(10) <> 'END_REC'(025) AND
             <fs_data>+1(10) <> 'BEGIN_REC'(026).
         ASSIGN <fs_data>+1(*) TO <fs_edid2> CASTING.
         <fs_data> = <fs_edid2>.
       MOVE-CORRESPONDING <fs_data> TO w_edi_dd.
       <fs_data>+1    = w_edi_dd.
    But, am getting the below error message in SLIN/Extended Prog Check.
    Fieldsymbol <FS_DATA> is not assigned to a field
    (The message can be hidden with "#EC *)
    1) I do not understand why am getting this (if itab contains any data then ONLY the loop will be executed right?)
    2) How to correct this?
    Thank you

    Hello,
    Correct method of using a field-symbol is to assign it first with the structure.
    You use INTO if working with work area. Example:
    LOOP AT itab_data INTO w_data.
    Use assigning keyword when using field-symbol in case of LOOP...ENDLOOP.
    LOOP AT itab_data ASSIGNING <fs_data>.
    Check below link on 'Assigning Data Objects to Field Symbols':
    http://help.sap.com/SAPhelp_nw04/helpdata/en/fc/eb3860358411d1829f0000e829fbfe/frameset.htm
    Hope it helps!
    Regards,
    Saba
    Edited by: Saba Sayed on Feb 27, 2011 11:35 PM

  • I am using Quickbooks Pro with my macbook pro. It does not allow me to use the @ symbol when I am inputting an email address into the client information section. What do I do?

    I am using Quickbooks Pro with my macbook pro. It does not allow me to use the @ symbol when I am inputting an email address into the client information section. What do I do?

    stefani88 wrote: It seems from other discussions my current OS on my laptop is the reason why it won't sync but people running older versions of windows aren't having a problem. So I don't get it.
    Oh. Gosh.  What's Windows got to do with anything? You're on Leopard, on a Mac.
    It seems from other discussions my current OS on my laptop is the reason why it won't sync

  • Copyright of logos using illustrator symbols

    Hi, I am racking my brain over copyright of a logo I am designing. If I use an Illustrator symbol in the logo, do I retain full copyright of the logo? Presumably not, because that restrictions other people's ability to use that symbol in their own logos. Does anyone know the rules? Thanks for your help!

    > I can use Helvetica for stuff without stepping on American Airline's toes.
    But by doing so, you have not copyrighted the Helvetica glyph forms. In fact, type glyph shapes have been ruled not-copyrightable--and your example is probably one reason why. (A perhaps unfortunate, but unavoidable consquence is the proliferation of poorly-constructed knock-off fonts.)
    But graphic
    are copyrightable, and therefore another matter. If Leah uses a graphic supplied with Illustrator as part of a "logo", Leah cannot claim copyright of that graphic, because that graphic is
    licensed to Leah as part of the software, not
    owned by Leah, and certainly not
    created by Leah.
    Especially if the Illustrator-supplied graphic is the primary (or even a major) element of the overall "logo", I doubt that Leah could claim a copyright of the whole design.
    Even if the graphic is not a major element, there is the whole matter of "derivitive works." If you take a graphic copyrighted by someone else, and use it as the basis for another work, your work can easily be deemed a "derivitve work" and you are subject to penalty. Not that Adobe would pursue someone for doing that with a piece of clipart they supply with software, of course--but that still doesn't change the question of whether Leah can rightly claim copyright of the derivitive work.
    A derivitive work may be "your work", but that doesn't mean that the owner of the work from which it is derived can't lay claim to at least part of an monetary value gained from it. (There is a famous case of just that sort of thing involving a derivitive work that actually appeared on the cover of a particular version of Corel Draw's software box!)
    Moreover, though, Leah, I'd advise you to consider the simple professionalism of the matter above the legal questions. A proper logo design should be
    original because it should be
    unique--especially if by "logo" you mean one that is done for hire.
    'Course I'm no more a lawyer than I assume Scott is; the above is just as I understand it--but it also seems to me commensurate with good sense. There is no way I would charge a client for a work which included clip art that I didn't draw--as a proper logo design.
    Also, Leah has not described the specific Symbol graphic at all. A Symbol can be anything. It could be nothing more than a square rotated 45 degrees (a graphic no one could claim copyright to), or it could be as elaborate as a city map of San Francisco.
    JET

  • Modify DB by single field using Field Symbol

    Hi,
      please help me ,actually i have not use the field symbol in any object. i have one requirement ,i have to modify the DB by field STATUS using Field symbol ,
    I am sending u my code so please help me how can i modify DB using field symbol..
              gw_msg3_status1   = k_status1 .
              LOOP AT gi_msg3 INTO gs_msg3.
                gs_msg3-status  = gw_msg3_status1 .
                gs_msg3-issue   = lw_issuno.
           MODIFY gi_msg3 FROM gs_msg3 TRANSPORTING status.
                MODIFY gi_msg3 INDEX sy-tabix FROM gs_msg3 TRANSPORTING issue status.
              ENDLOOP.
    Thanks & Regards,
    Meenakshi

    perform dboperation_table using 'SET' 'BIRTHDT' '=' <fs>.
        perform dboperation_table using 'WHERE' 'PARTNER' '='  <fs>
        perform dboperation_update using 'BUT000'.
    form dboperation_table
    using p_type
          p_var1
          p_var2
          p_var3.
      data: t_l type cmst_str_data.
      data: d_cx_root            type ref to cx_root,
            d_text               type string.
      try.
          clear t_l.
          if p_var3 is not initial.
            t_l = p_var3.
            condense t_l.
            concatenate '''' t_l '''' into t_l.
          endif.
          concatenate p_var1 p_var2 t_l into t_l
          separated by space.
          case p_type.
            when 'SET'.   append t_l to g_s_t.
            when 'WHERE'. append t_l to g_w_t.
          endcase.
        catch cx_root into d_cx_root.
          d_text = d_cx_root->get_text( ).
          message a398(00) with  d_text.
      endtry.
    endform.                    "DBOPERATION_table
    form dboperation_update
    using  p_tabname type zdboperation-tabname.
      data: tabname type bus_table.
      data: d_cx_root            type ref to cx_root,
            d_text               type string.
      try.
          tabname-tabname = p_tabname.
          call function 'ZDBOPERATION_UPDATE'
            in update task
            exporting
              tabname     = tabname
            tables
              where_table = g_w_t
              set_table   = g_s_t.
        catch cx_root into d_cx_root.
          d_text = d_cx_root->get_text( ).
          message a398(00) with  d_text.
      endtry.
    endform.                    "DBOPERATION_update
    Hope it will help you.
    Regards,
    Madan.

  • Why do I use my ipod as a camera when I lose precious photos even when I try to back up before an update! Selling my ipod at the first chance I get

    Why do I use my Ipod tiuch as a camera when lose precious photos of my granddaughter every time there is an operating system update? Even when I try to back up the ipod, I can't find the pics etc on my pc. It is very annoying and I am seriously considering selling my ipod because of this. No warning is given that photos will be lost. So very disappointed in aple, lost all my music last time, as well as my pics.

    Yes, using the windows photo capture application is how you get photos taken with the iPod onto your pc. You should store them there, and organize them in folders.
    Create one main photo folder. Inside that folder create additional folders to hold photos. Each folder will become an album on an iPod, iPad, or iPhone. Do not next any other folders inside the first album folder.
    Then start iTunes on your pc and connect your iPod. Select your iPod in itunes and select the Photos tab that will be ps enter. You will most likely have first find your main photos folder. Ten select to sync all photos from your pc or select only those albums you want to have on your iPod. The click on Apply or Sync. That will copy the photos to your iPod.
    If you should do something later to cause these albums to disappear from your iPod you can quickly copy them back by doing another sync.

  • How do you remove back up data from the memory storage? my storage data states that i have over 80gb of data used for back ups and i dont know why as i use a external hard drive as a time machine .now my 250gb flash storage is nearly full

    how do you remove back up data from the memory storage? my storage data states that i have over 80gb of data used for back ups and i dont know why as i use a external hard drive as a time machine .now my 250gb flash storage is nearly full.. HELP!

    When Time Machine backs up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of recently deleted files. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown as  Backups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself. If you followed bad advice to disable local snapshots by running a shell command, you may have ended up with a lot of data in the Other category. Ask for instructions in that case.
    See this support article for some simple ways to free up storage space.

  • How can I use Greek symbols in a text in Pages? Greek symbols are not in the special character list.

    How can I use Greek symbols in a Pages text? Greek symbols are not included in the special character collection.
    I need to import for example a sigma from Word or Adobe illustrator and then Pages can recognise it. I can not find it from within Pages.

    Special character palette from the edit menu does have sigmas under European ... > Greek ...
    You can do a search at the bottom of the Special Character palette. Double click on the greek capital letter sigma. You will get a lot of sigmas.

  • Why do we use open URL in default browser function? What are the uses of it?

    Why do we use "open URL in default browser" function?  What are the uses of it?

    kdm7 wrote:
    Okay.
    So can we keep a web button to access the www.ni.com ? So that web site opens only when button pressed?
    P.S  I,m a newbie.
    Yes, you can also, e.g. include a help file or manual as html and open that in the browser.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • How to populate one internal table from another using field symbols

    Hi Gurus,
      I have a problem. I have to populate one internal table (sructure t_otput) from another internal table (sructure t_from) using field symbol.
    Structure for from table.
    types: begin of t_from,
             year(4) type c,
             ww(2) type c,
             site type marc-werks,
             demand type i,
           end of t_from.
    Structure for output table.
    types: begin of t_display,
             title(30),
             WW1(10),
             WW2(10),
             WW3(10),
           end of t_display.
    The from table looks like this:
    Year | WW | Site | Demand
    2005 | 1  | OR1  | 12.00
    2005 | 2  | OR1  | 13.00
    2005 | 3  | OR1  | 14.00
    The display table which has to be populated should look like this:
    Title  | WW1   | WW2   | WW3
    OR1    |       |       |
    Demand | 12.00 | 13.00 | 14.00
    How to populate display table using field symbol?
    Please give code snippets
    Thanks,
    Gopal

    Gopal,
    Here is the code, however I am not vary clear about the ORG1 and Demand display that you have shown in the display. I am sure with this code it should not be a big deal to tweak in whatever manner you want.
    TABLES : marc.
    TYPES: BEGIN OF type_display,
    title(30),
    ww1(10),
    ww2(10),
    ww3(10),
    END OF type_display.
    TYPES: BEGIN OF type_from,
    year(4) TYPE c,
    ww(2) TYPE c,
    site TYPE marc-werks,
    demand TYPE i,
    END OF type_from.
    data : t_from type table of type_from,
           t_display type table of type_display.
    field-symbols : <fs_from> type type_from,
                    <fs_display> type type_display.
    data : wa_from type type_From,
           wa_display type type_display.
    wa_from-year = '2005'.
    wa_from-ww   = '1'.
    wa_from-site = 'OR1'.
    wa_from-demand = '12.00'.
    insert wa_from  into table t_from.
    wa_from-year = '2005'.
    wa_from-ww   = '2'.
    wa_from-site = 'OR1'.
    wa_from-demand = '13.00'.
    insert wa_from  into table t_from.
    wa_from-year = '2005'.
    wa_from-ww   = '3'.
    wa_from-site = 'OR1'.
    wa_from-demand = '14.00'.
    insert wa_from  into table t_from.
    data : variable(3) type c.
    field-symbols : <fs_any> type any.
    break-point.
    Loop at t_from assigning <fs_from>.
    variable = 'WW'.
    wa_display-title = <fs_from>-site.
    concatenate variable <fs_from>-ww into variable.
    assign component variable of structure wa_display to <fs_any>.
    <fs_any> = <fs_from>-demand.
    endloop.
    append wa_display to t_display.
    clear wa_display.
    loop at t_display assigning <Fs_display>.
      write :/ <fs_display>.
    endloop.
    Note : Please award points if this helps you.
    Regards,
    Ravi

Maybe you are looking for

  • How to configure Wake On LAN to work through the Internet?

    I'm using an iOS app to wake my desktop computer. It works perfectly fine when I'm within my WiFi range. However, when I'm out of my Linksys E3000 access point, it no longer works over the Internet. So, if anyone can point me to documentation that ha

  • IPhone 4 sync problems - adds 60,000 blank contacts and calendar hangs

    Since the beginning of this week my iPhone 4 has stopped syncing properly. It adds 60,000 blank contacts to my computer (which take hours to delete) and then completely hangs when it gets to the calendar sync. I left it syncing overnight and it was s

  • How to reimport a changed Interface / Message Type to NW BPM

    Hi, I m developing a NW BPM process (NWDS SP 09) to be used with SAP PO 7.31. The process is using 15 different imported Interfaces, all of them depending on an External Definition, which unfortunately need to be changed. In PI so far no pretty easy,

  • Partial delievery - Purchase Order

    Hi gurus, Anybody please provide document to make Purchase order with partial delivery. I want to order 40000m quantity of pipe, agreed with vendor for accepting partial deliveries i.e(4 slots). So while issuing PO need to mention partial delivery to

  • How much does reinstalling Mac 10.4.11 cost at the Apple Store?

    My iBook freezes at startup. No matter how many online tutorials I have used, it just will not work. How much does reinstalling Mac 10.4.11 cost at the Apple Store in the Danbury Fair Mall?