Contol events

hi all,
this is my interbal table ....
     DATA: begin of t_ekpo1 occurs 0,
      banfn like eban-banfn,
      ebeln like ekpo-ebeln,
      ebelp like ekpo-ebelp,
      werks like ekpo-werks,
      matnr like ekpo-matnr,
      menge like ekpo-menge,
      txz01 like ekpo-txz01,
      meins like ekpo-meins,
      zzissue_date like ekpo-zzissue_date,
      s_menge(13) type c,
      quan(13) type c,
      end of t_ekpo1.
i am using control break event at the field...
at new banfn.
write:/ t_ekpo1-banfn.
endat.
write: t_ekpo1-ebeln.
if i am doing so then it writes only one item if there are 4 0r 5 0r 6.
but if i write
at new banfn.
write:/ t_ekpo1-banfn.
endat.
write:/ t_ekpo1-ebeln.
the diffrence betwee the two statement is of '/' . if i removw this it is not writting the value...but if it is there it writes...
so plz help on this...
regards
parul

Program ID   : ZHIPMENT                                              *
Author       :                                                       *
Date         :                                                       *
Run Mode     : Online \ Background                                   *
Frequency    : ANY TIME                                              *
Special run  ]                                                       *
instructions ]                                                       *
Issue #      : ?                                                     *
Copied From  :                                                       *
Called From  :                                                       *
Transaction  :                                                       *
Input        :                                                       *
Output       :                                                       *
Description  :                                                       *
                 M O D I F I C A T I O N    L O G                    *
User ID|Date    |Issue #   |Transport |Description of change         *
USER ID|DD/MM/YY|????-???? |CCDK9A1???|Initial Development           *
REPORT ZHIPMENT NO STANDARD PAGE HEADING LINE-SIZE 175
tables: eban,
        ekko,
        ekpo,
        eket,
        ekbe.
                     Data Declaration                               *
*Internal table for purchase requistion
Data: begin of itab occurs 0,
         ekgrp like eban-ekgrp,  "purchasing group
         werks like eban-werks,  "plant
         flief like eban-flief,  "vendor#
         reswk like eban-reswk,  "supplying plant
         meins like eban-meins,  "Sku#
         TXZ01 like eban-TXZ01,  "product name
         banfn like eban-banfn,  "purchase requistion
         bnfpo like eban-bnfpo,  "item#
         quan(13) type c,        "open quantity
         frgdt like eban-frgdt,  "release date
         lfdat like eban-lfdat,   "Delivery date
         ebeln like eban-ebeln,
         matnr like eban-matnr,
     end of itab.
*Internal table for purchase order
Data: begin of itab1 occurs 0,
         ekgrp like ekko-ekgrp,  "purchasing group
         lifnr like ekko-lifnr,  "vendor#
         reswk like ekko-reswk,  "supplying plant
         bsart like ekko-bsart,
         ebeln like ekko-ebeln,  "purchase order
         werks like ekpo-werks,  "plant
         matnr like ekpo-matnr,
         menge like ekpo-menge,
         TXZ01 like ekpo-TXZ01,  "product name
         ebelp like ekpo-ebelp,  "item#
         meins like ekpo-meins,  "Sku#
         eindt like eket-eindt,
         s_menge like ekbe-menge,
         quan(10) type c,        "open quantity
         ship_quan(10) type c,   "ship quantity
         unship_quan(10) type c, "unship quantity
         ZzISSUE_DATE like ekpo-ZZISSUE_DATE,
      end of itab1.
Data: begin of itab_req occurs 0,
         ekgrp like eban-ekgrp,  "purchasing group
         werks like eban-werks,  "plant
         flief like eban-flief,  "vendor#
         reswk like eban-reswk,  "supplying plant
         meins like eban-meins,  "Sku#
         TXZ01 like eban-TXZ01,  "product name
         banfn like eban-banfn,  "purchase requistion
         bnfpo like eban-bnfpo,  "item#
         quan(13) type c,         "open quantity
         frgdt like eban-frgdt, "release date
         lfdat like eban-lfdat,   "Delivery date
         matnr like eban-matnr,
     end of itab_req.
DATA: Begin of t_ekko occurs 0,
          ekgrp like ekko-ekgrp,
          ebeln like ekko-ebeln,
          lifnr like ekko-lifnr,
          reswk like ekko-reswk,
          bsart like ekko-bsart,
        end of t_ekko.
DATA: begin of t_ekpo occurs 0,
      ebeln like ekpo-ebeln,
      ebelp like ekpo-ebelp,
      werks like ekpo-werks,
      matnr like ekpo-matnr,
      menge like ekpo-menge,
      txz01 like ekpo-txz01,
      meins like ekpo-meins,
      zzissue_date like ekpo-zzissue_date,
      end of t_ekpo.
DATA: begin of t_ekpo1 occurs 0,
      banfn like eban-banfn,
      ebeln like ekpo-ebeln,
      ebelp like ekpo-ebelp,
      werks like ekpo-werks,
      matnr like ekpo-matnr,
      menge like ekpo-menge,
      txz01 like ekpo-txz01,
      meins like ekpo-meins,
      zzissue_date like ekpo-zzissue_date,
      s_menge(13) type c,
      quan(13) type c,
      ship_quan(13) type c,
      unship_quan(13) type c,
      end of t_ekpo1.
DATA: begin of t_ekbe occurs 0,
         menge like ekbe-menge,
      end of t_ekbe.
DATA: w_menge like eban-menge,
      w_bsmng like eban-bsmng.
data: x_menge like ekbe-menge,
      x1_menge type p decimals 2.
DATA : BEGIN OF zheadtab OCCURS 5.     "text header
        INCLUDE STRUCTURE tline.
DATA : END OF zheadtab.
DATA : pagno  LIKE sy-pagno.
DATA : name   LIKE sy-repid.
data: xmenge like ekbe-menge.
                       Selection screen                             *
SELECTION-SCREEN BEGIN OF BLOCK A WITH FRAME TITLE TEXT-S01.
SELECT-OPTIONS : S_ekgrp FOR eban-ekgrp,
                 s_matnr for eban-matnr,
                 s_werks for eban-werks,
                 s_bsart for eban-bsart,
                 s_lfdat for eban-lfdat,
                 s_frgdt for eban-frgdt,
                 s_flief for eban-flief,
                 s_reswk for eban-reswk.
SELECTION-SCREEN END OF BLOCK A.
SELECTION-SCREEN BEGIN OF BLOCK B WITH FRAME TITLE TEXT-S02.
PARAMETERS : P_both  RADIOBUTTON GROUP A.   "For both Po and Pur req.
PARAMETERS : P_req   RADIOBUTTON GROUP A Default 'X' . "For Pur equsit'n
PARAMETERS : P_order RADIOBUTTON GROUP A. "For Purchase order
SELECTION-SCREEN END OF BLOCK B.
TOP-OF-PAGE.
PERFORM 100_top_of_page.
                       Start-of-selection                           *
START-OF-SELECTION.
  if P_req eq 'X'.
    perform get_purchase_data .
    loop at itab_req.
      if itab_req-quan gt 0.
        write:/1   itab_req-ekgrp,
               5   itab_req-werks,
               12  itab_req-flief,
               23  itab_req-reswk,
               29  itab_req-meins,
               33  itab_req-TXZ01,
               72  itab_req-banfn,
               97  itab_req-bnfpo,
               109 itab_req-quan,
               154 itab_req-frgdt,
               166 itab_req-lfdat.
      endif.
    endloop.
  endif.
  if P_order eq 'X'.
    perform get_requistion_data .
    check sy-subrc eq 0.
    loop at itab_req.
*value collected for recieved quantity
select sum( menge ) into (xmenge) from ekbe   where ebeln = itab1-ebeln
                    and   ebelp = itab1-ebelp
                    and   werks in s_werks
                    and   vgabe eq '1'.
      check sy-subrc eq 0.
*S_menge is the value for goods recieved quantity
      move xmenge to itab1-S_menge.
*value calculated for po open quantity
      itab1-quan = itab1-menge - itab1-S_menge.
      if itab1-quan gt 0.
*value collected for shipped quantity goods issued(x_menge)
select sum( menge ) into (x_menge) from ekbe   where ebeln = itab1-ebeln
                    and   ebelp = itab1-ebelp
                    and   werks in s_werks
                    and   vgabe eq '6'.
        check sy-subrc eq 0.
*value calculated for shipped quantity
        itab1-ship_quan = x_menge - itab1-S_menge.
*value calculated for unshipped quantity
*which is equl to the ordered quantity(ekpo-menge)
*and the goods issued (x_menge)
        itab1-unship_quan = itab1-menge - x_menge.
        write:/1 itab1-ekgrp,
               5 itab1-werks,
               12 itab1-lifnr,
               23 itab1-reswk,
               29 itab1-meins,
               33 itab1-txz01,
               86 itab1-ebeln,
               97 itab1-ebelp,
               109 itab1-quan,
               126 itab1-ship_quan,
               140 itab1-unship_quan,
               154 itab1-zzissue_date,
               165 itab1-eindt.
      endif.
    endloop.
  endif.
  if P_both eq 'X'.
    select * from eban into corresponding fields of table itab
                                         where ekgrp in s_ekgrp
                                         And   matnr in s_matnr
                                         and   werks in s_werks
                                         and   bsart in s_bsart
                                         and   lfdat in s_lfdat
                                         and   frgdt in s_frgdt
                                         and   flief in s_flief
                                         and   reswk in s_reswk
                                         and   ebakz NE 'X'
                                         and   loekz NE 'X'.
    loop at itab.
      select * from ekpo into corresponding fields of table t_ekpo
                     where ebeln = itab-ebeln.
      loop at t_ekpo.
        move t_ekpo-ebeln to t_ekpo1-ebeln.
        move t_ekpo-ebelp to t_ekpo1-ebelp.
        move t_ekpo-werks to t_ekpo1-werks.
        move t_ekpo-matnr to t_ekpo1-matnr.
        move t_ekpo-menge to t_ekpo1-menge.
        move t_ekpo-txz01 to t_ekpo1-txz01.
        move t_ekpo-meins to t_ekpo1-meins.
        move t_ekpo-zzissue_date to t_ekpo1-zzissue_date.
        move itab-banfn to t_ekpo1-banfn.
*value collected for recieved quantity
select sum( menge ) into (xmenge) from ekbe where ebeln = t_ekpo1-ebeln
                    and   ebelp = t_ekpo1-ebelp
                    and   werks in s_werks
                    and   vgabe eq '1'.
      check sy-subrc eq 0.
*S_menge is the value for goods recieved quantity
      move xmenge to t_ekpo1-S_menge.
*value calculated for po open quantity
      t_ekpo1-quan = t_ekpo-menge - t_ekpo1-S_menge.
     if itab1-quan gt 0.
*value collected for shipped quantity goods issued(x_menge)
select sum( menge ) into (x_menge) from ekbe where ebeln = t_ekpo1-ebeln
                    and   ebelp = t_ekpo1-ebelp
                    and   werks in s_werks
                    and   vgabe eq '6'.
        check sy-subrc eq 0.
*value calculated for shipped quantity
        t_ekpo1-ship_quan = x_menge - t_ekpo1-S_menge.
*value calculated for unshipped quantity
*which is equl to the ordered quantity(ekpo-menge)
*and the goods issued (x_menge)
        t_ekpo1-unship_quan = t_ekpo1-menge - x_menge.
        append t_ekpo1.
      endloop.
    endloop.
    sort t_ekpo1 by banfn ebeln ebelp.
    loop at t_ekpo1.
      at new banfn.
        write:/72 t_ekpo1-banfn.
      endat.
      write:/86 t_ekpo1-ebeln .
    endloop.
  endif.
*&      Form  100_top_of_page
      text
-->  p1        text
<--  p2        text
FORM 100_top_of_page .
  DATA : xdat1(10) TYPE c,
         xdat2(10) TYPE c.
  DATA prog_nm LIKE sy-repid.
  prog_nm = sy-repid.
  WRITE : s_lfdat-low  TO xdat1 DD/MM/YYYY,
          s_lfdat-high TO xdat2 DD/MM/YYYY.
  MOVE 'H1' TO zheadtab-tdformat.
  CONCATENATE   'Shipment Report Between'
                xdat1
                'and'
                xdat2
                INTO zheadtab-tdline SEPARATED BY space.
  APPEND zheadtab.
  CALL FUNCTION 'Z_HEADER'
    EXPORTING
      datum      = sy-datum
      pagno      = sy-pagno
      prog_title = sy-title
      repid      = prog_nm
      uname      = sy-uname
      uzeit      = sy-uzeit
    TABLES
      zheadtab   = zheadtab.
  format  intensified on.
  WRITE :/1 'Pur',
          5 'Plant',
          12 'Vendor',
          23 'Sup',
          29 'Sku#',
          33 'Product Name',
          72 'Purchase',
          86 'Purchase',
          97 'item',
          109 'Open',
          126 'shipped ',
          140 'unshipped ',
          154 'Release',
          165 'Delivery'.
  write:/1  'Grp',
         23 'Plant',
         72 'Requistion',
         86 'order',
         109 'Quan',
         126 'quan',
         140 'quan',
         154 'Date',
         165 'Date'.
  Uline.
ENDFORM.                    " 100_top_of_page
*&      Form  get_purchase_data
      text
-->  p1        text
<--  p2        text
FORM get_purchase_data .
  select * from eban into corresponding fields of table itab
                                       where ekgrp in s_ekgrp
                                       And   matnr in s_matnr
                                       and   werks in s_werks
                                       and   bsart in s_bsart
                                       and   lfdat in s_lfdat
                                       and   frgdt in s_frgdt
                                       and   flief in s_flief
                                       and   reswk in s_reswk
                                       and   ebakz NE 'X'
                                       and   loekz NE 'X'.
  sort itab by werks matnr.
  loop at itab.
    move itab to itab_req.
    w_menge = eban-menge.
    w_bsmng = eban-bsmng.
    itab-quan = ( w_menge - w_bsmng ).
    itab_req-quan = itab-quan.
    append itab_req.
  endloop.
ENDFORM.                    " get_purchase_data
*&      Form  get_requistion_data
      text
-->  p1        text
<--  p2        text
FORM get_requistion_data .
  select ekkoekgrp ekkolifnr ekkoreswk ekkobsart ekko~ebeln
           ekpowerks ekpomatnr ekpomenge ekpoTXZ01 ekpo~ebelp
           ekpomeins eketeindt eketebeln ekpoZZISSUE_DATE
           into corresponding fields of table itab1
           from ekko inner join ekpo
           on ekkoebeln = ekpoebeln
           inner join eket
           on  eketebeln = ekkoebeln
           and eketebelp = ekpoebelp
           where  ekko~bsart in s_bsart
           and eket~eindt in s_lfdat
           and ekko~ekgrp in s_ekgrp
           and ekpo~matnr in s_matnr
           and ekpo~werks in s_werks
           and ekpo~loekz NE 'X'
           and ekpo~elikz ne 'X'.
ENDFORM.                    " get_requistion_data
plz if someone can help on this
regards
parul

Similar Messages

  • Contol break event problem

    Hi,
    Good day guys
    ive dev the smart form for sales. i need to cal the total sales per month as well as Region wise and branch wise.
    i dont the total sales per month. now i need to cal the region wise.
    so i used the code as below as
    sort itab by region.
    loop at itab into wa.
    at new region.
    sum.
    append wa to itab2.
    clear:wa.
    endat
    endloop.
    iam bit confuse with at new and on chage of.. plz let me know how to cal the region wise.
    regards
    chandu

    Hi..
    Consider an internal table of following type
    Month  Region Person Department
    If you use AT NEW  Field3, then it is triggered when ever Field3 changes as well as whenever value in its preceding column change.
    It considers the columns till Field3 as key, and any change in one of these values triggers AT NEW.
    Now using AT NEW Month, will trigger at new whenever Month changes.
    However if you use AT NEW person, then it will be triggered even if Month or Region changes, not just Person.
    One more thing I would like to mention.
    Once you use at new month which works fine and then you try to use at new region, then you should use another internal table having the following structure.
    Region Month Person Department
    ON CHANGE of gets triggered when ever the mentioned field changes.However this is obsolete now.
    Regards,
    Karthik

  • Hi gurus what is ALV grid contol explain me plz

    hi gurus what is ALV grid contol explain me plz

    Hi
    Check the below link:
    http://wiki.ittoolbox.com/index.php/FAQ:What_is_module_pool_program_in_abap%3F
    http://help.sap.com/saphelp_46c/helpdata/en/35/26b1aaafab52b9e10000009b38f974/content.htm
    http://sap.mis.cmich.edu/sap-abap/abap09/sld011.htm
    http://sap.mis.cmich.edu/sap-abap/abap09/index.htm
    http://www.geocities.com/ZSAPcHAT
    http://www.allsaplinks.com/files/using_table_in_screen.pdf
    http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm
    http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
    http://www.sap-img.com/
    http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
    http://www.sapgenie.com/links/abap.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm
    You can also check the transaction ABAPDOCU which gives you lot of sample programs.
    Also you can see the below examples...
    Go to se38 and give demodynpro and press F4.
    YOu will get a list of demo module pool programs.
    One more T-Code is ABAPDOCU.
    YOu can find more examples there.
    See the prgrams:
    DEMO_DYNPRO_TABLE_CONTROL_1 Table Control with LOOP Statement
    DEMO_DYNPRO_TABLE_CONTROL_2 Table Control with LOOP AT ITAB
    http://www.geocities.com/ZSAPcHAT
    http://www.allsaplinks.com/files/using_table_in_screen.pdf
    ALV
    ABAP List Viewer
    The common features of report are column alignment, sorting, filtering, subtotals, totals etc. To implement these, a lot of coding and logic is to be put. To avoid that we can use a concept called ABAP List Viewer (ALV).
    This helps us to implement all the features mentioned very effectively.
    Using ALV, We can have three types of reports:
    1. Simple Report
    2. Block Report
    3. Hierarchical Sequential Report
    There are some function modules which will enable to produce the above reports without much effort.
    All the definitions of internal tables, structures and constants are declared in a type-pool called SLIS.
    1. SIMPLE REPORT.
    The important function modules are
    a. Reuse_alv_list_display
    b. Reuse_alv_fieldcatalog_merge
    c. Reuse_alv_events_get
    d. Reuse_alv_commentary_write
    e. Reuse_alv_grid_display
    A. REUSE_ALV_LIST_DISPLAY : This is the function module which prints the data.
    The important parameters are :
    I. Export :
    i. I_callback_program : report id
    ii. I_callback_pf_status_set : routine where a user can set his own pf status or change the functionality of the existing pf status
    iii. I_callback_user_command : routine where the function codes are handled
    iv. I_structure name : name of the dictionary table
    v. Is_layout : structure to set the layout of the report
    vi. It_fieldcat : internal table with the list of all fields and their attributes which are to be printed (this table can be populated automatically by the function module REUSE_ALV_FIELDCATALOG_MERGE
    vii. It_events : internal table with a list of all possible events of ALV and their corresponding form names.
    II. Tables :
    i. t_outtab : internal table with the data to be output
    B. REUSE_ALV_FIELDCATALOG_MERGE : This function module is used to populate a fieldcatalog which is essential to display the data in ALV. If the output data is from a single dictionary table and all the columns are selected, then we need not exclusively create the field catalog. Its enough to mention the table name as a parameter(I_structure name) in the REUSE_ALV_LIST_DISPLAY. But in other cases we need to create it.
    The Important Parameters are :
    I. Export :
    i. I_program_name : report id
    ii. I_internal_tabname : the internal output table
    iii. I_inclname : include or the report name where all the dynamic forms are handled.
    II Changing
    ct_fieldcat : an internal table with the type SLIS_T_FIELDCAT_ALV which is
    declared in the type pool SLIS.
    C. REUSE_ALV_EVENTS_GET : Returns table of possible events for a list type
    Parameters :
    I. Import :
    Et_Events : The event table is returned with all possible CALLBACK events
    for the specified list type (column 'NAME'). For events to be processed by Callback, their 'FORM' field must be filled. If the field is initialized, the event is ignored. The entry can be read from the event table, the field 'FORM' filled and the entry modified using constants from the type pool SALV.
    II. Export :
    I_List_type :
    0 = simple list REUSE_ALV_LIST_DISPLAY
    1 = hierarchcal-sequential list REUSE_ALV_HIERSEQ_LIST_DISPLAY
    2 = simple block list REUSE_ALV_BLOCK_LIST_APPEND
    3 = hierarchical-sequential block list
    REUSE_ALV_BLOCK_LIST_HS_APPEND
    D. REUSE_ALV_COMMENTARY_WRITE : This is used in the Top-of-page event to print the headings and other comments for the list.
    Parameters :
    I. it_list_commentary : internal table with the headings of the type slis_t_listheader.
    This internal table has three fields :
    Typ : ‘H’ – header, ‘S’ – selection , ‘A’ - action
    Key : only when typ is ‘S’.
    Info : the text to be printed
    E. REUSE_ALV_GRID_DISPLAY : A new function in 4.6 version, to display the results in grid rather than as a preview.
    Parameters : same as reuse_alv_list_display
    This is an example for simple list.
    2. BLOCK REPORT
    This is used to have multiple lists continuously.
    The important functions used in this report are:
    A. REUSE_ALV_BLOCK_LIST_INIT
    B. REUSE_ALV_BLOCK_LIST_APPEND
    C. REUSE_ALV_BLOCK_LIST_HS_APPEND
    D. REUSE_ALV_BLOCK_LIST_DISPLAY
    A. REUSE_ALV_BLOCK_LIST_INIT
    Parameters:
    I. I_CALLBACK_PROGRAM
    II. I_CALLBACK_PF_STATUS_SET
    III. I_CALLBACK_USER_COMMAND
    This function module is used to set the default gui status etc.
    B. REUSE_ALV_BLOCK_LIST_APPEND
    Parameters :
    Export :
    I. is_layout : layout settings for block
    II. it_fieldcat : field catalog
    III. i_tabname : internal table name with output data
    IV. it_events : internal table with all possible events
    Tables :
    i. t_outtab : internal table with output data.
    This function module adds the data to the block.
    Repeat this function for all the different blocks to be displayed one after the other.
    C. REUSE_ALV_BLOCK_LIST_HS_APPEND
    This function module is used for hierarchical sequential blocks.
    D. REUSE_ALV_BLOCK_LIST_DISPLAY
    Parameters : All the parameters are optional.
    This function module display the list with data appended by the above function.
    Here the functions REUSE_ALV_FIELDCATALOG_MERGE, REUSE_ALV_EVENTS_GET, REUSE_ALV_COMMENTARY_WRITE can be used.
    3. Hierarchical reports :
    Hierarchical sequential list output.
    The function module is
    A. REUSE_ALV_HIERSEQ_LIST_DISPLAY
    Parameters:
    I. Export:
    i. I_CALLBACK_PROGRAM
    ii. I_CALLBACK_PF_STATUS_SET
    iii. I_CALLBACK_USER_COMMAND
    iv. IS_LAYOUT
    v. IT_FIELDCAT
    vi. IT_EVENTS
    vii. i_tabname_header : Name of the internal table in the program containing the
    output data of the highest hierarchy level.
    viii. i_tabname_item : Name of the internal table in the program containing the
    output data of the lowest hierarchy level.
    ix. is_keyinfo : This structure contains the header and item table field
    names which link the two tables (shared key).
    II. Tables
    i. t_outtab_header : Header table with data to be output
    ii. t_outtab_item : Name of the internal table in the program containing the
    output data of the lowest hierarchy level.
    slis_t_fieldcat_alv : This internal table contains the field attributes. This internal table can be populated automatically by using ‘REUSE_ALV_FIELDCATALOG_MERGE’.
    Important Attributes :
    A. col_pos : position of the column
    B. fieldname : internal fieldname
    C. tabname : internal table name
    D. ref_fieldname : fieldname (dictionary)
    E. ref_tabname : table (dictionary)
    F. key(1) : column with key-color
    G. icon(1) : icon
    H. symbol(1) : symbol
    I. checkbox(1) : checkbox
    J. just(1) : (R)ight (L)eft (C)ent.
    K. do_sum(1) : sum up
    L. no_out(1) : (O)blig.(X)no out
    M. outputlen : output length
    N. seltext_l : long key word
    O. seltext_m : middle key word
    P. seltext_s : short key word
    Q. reptext_ddic : heading (ddic)
    R. ddictxt(1) : (S)hort (M)iddle (L)ong
    S. datatype : datatype
    T. hotspot(1) : hotspot
    Simple ALV report
    http://www.sapgenie.com/abap/controls/alvgrid.htm
    http://wiki.ittoolbox.com/index.php/Code:Ultimate_ALV_table_toolbox
    ALV
    1. Please give me general info on ALV.
    http://www.sapfans.com/forums/viewtopic.php?t=58286
    http://www.sapfans.com/forums/viewtopic.php?t=76490
    http://www.sapfans.com/forums/viewtopic.php?t=20591
    http://www.sapfans.com/forums/viewtopic.php?t=66305 - this one discusses which way should you use - ABAP Objects calls or simple function modules.
    2. How do I program double click in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=11601
    http://www.sapfans.com/forums/viewtopic.php?t=23010
    3. How do I add subtotals (I have problem to add them)...
    http://www.sapfans.com/forums/viewtopic.php?t=20386
    http://www.sapfans.com/forums/viewtopic.php?t=85191
    http://www.sapfans.com/forums/viewtopic.php?t=88401
    http://www.sapfans.com/forums/viewtopic.php?t=17335
    4. How to add list heading like top-of-page in ABAP lists?
    http://www.sapfans.com/forums/viewtopic.php?t=58775
    http://www.sapfans.com/forums/viewtopic.php?t=60550
    http://www.sapfans.com/forums/viewtopic.php?t=16629
    5. How to print page number / total number of pages X/XX in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=29597 (no direct solution)
    6. ALV printing problems. The favourite is: The first page shows the number of records selected but I don't need this.
    http://www.sapfans.com/forums/viewtopic.php?t=64320
    http://www.sapfans.com/forums/viewtopic.php?t=44477
    7. How can I set the cell color in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=52107
    8. How do I print a logo/graphics in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=81149
    http://www.sapfans.com/forums/viewtopic.php?t=35498
    http://www.sapfans.com/forums/viewtopic.php?t=5013
    9. How do I create and use input-enabled fields in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=84933
    http://www.sapfans.com/forums/viewtopic.php?t=69878
    10. How can I use ALV for reports that are going to be run in background?
    http://www.sapfans.com/forums/viewtopic.php?t=83243
    http://www.sapfans.com/forums/viewtopic.php?t=19224
    11. How can I display an icon in ALV? (Common requirement is traffic light icon).
    http://www.sapfans.com/forums/viewtopic.php?t=79424
    http://www.sapfans.com/forums/viewtopic.php?t=24512
    12. How can I display a checkbox in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=88376
    http://www.sapfans.com/forums/viewtopic.php?t=40968
    http://www.sapfans.com/forums/viewtopic.php?t=6919
    Go thru these programs they may help u to try on some hands on
    ALV Demo program
    BCALV_DEMO_HTML
    BCALV_FULLSCREEN_DEMO ALV Demo: Fullscreen Mode
    BCALV_FULLSCREEN_DEMO_CLASSIC ALV demo: Fullscreen mode
    BCALV_GRID_DEMO Simple ALV Control Call Demo Program
    BCALV_TREE_DEMO Demo for ALV tree control
    BCALV_TREE_SIMPLE_DEMO
    BC_ALV_DEMO_HTML_D0100
    Go thru these programs they may help u to try on some hands on
    ALV Demo program
    BCALV_DEMO_HTML
    BCALV_FULLSCREEN_DEMO ALV Demo: Fullscreen Mode
    BCALV_FULLSCREEN_DEMO_CLASSIC ALV demo: Fullscreen mode
    BCALV_GRID_DEMO Simple ALV Control Call Demo Program
    BCALV_TREE_DEMO Demo for ALV tree control
    BCALV_TREE_SIMPLE_DEMO
    BC_ALV_DEMO_HTML_D0100
    1->go to Screen Painter, choose the column which you need to make as drop down.
    2->Click F2 to go tothe properties screen.
    3->Select Listbox or Listbox with Key for the DROPDOWN field (3rd field in properties tab)
    4->give value for the FCODE field also, to track the actions in SY_UCOMM when the user selects the value.
    5->in the ABAP code, you need to include the logic to populate values for this drop down. You can use the function module VRM_SET_VALUES to populate the listbox in each line of the table control. The fucntion module has to be called in the PBO module, which is defined inside the loop...endloop statement in the flow logic.
    6->for changing the values based on user selection, you can include the code in the PAI module, checking SY_UCOMM or OK_CODE.
    check this link:
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCDWBTUT/BCDWBTUT.pdf
    http://help.sap.com/saphelp_40b/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/applet.htm
    Have a look at these good links-
    http://www.allsaplinks.com/dialog_programming.html
    http://sap.mis.cmich.edu/sap-abap/abap09/
    http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
    http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm
    http://sap.mis.cmich.edu/abap-00/
    http://www.allsaplinks.com/files/using_table_in_screen.pdf
    http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
    http://www.sapgenie.com/links/abap.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm
    http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
    http://help.sap.com
    http://www.sapgenie.com/abap/example_code.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/52/670ba2439b11d1896f0000e8322d00/frameset.htm
    http://www.allsaplinks.com/dialog_programming.html
    http://www.sapbrain.com/TUTORIALS/default.html
    http://www.sappoint.com/abap/spmp.pdf
    http://sappoint.com/abap.html
    http://www.sap-img.com/abap.htm
    http://sap.ittoolbox.com/code/archives.asp?i=10&t=450&a=t
    http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
    http://www.sap-img.com/abap/
    http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
    http://www.sap-img.com/
    http://www.sappoint.com/faq/faqdiapr.pdf
    http://www.allsaplinks.com/dialog_programming.html
    http://www1.sapdesignguild.org/resources/MiniSG/3_Managing/3_Overview_Tree_Variants.htm
    http://www1.sapdesignguild.org/resources/MiniSG/3_Managing/3_Design_Layout.htm
    Check this demo program:
    SAPCOLUMN_TREE_CONTROL_DEMO
    Sample code:
    http://www.geocities.com/victorav15/sapr3/utilities/zvvooa3.txt
    How do I program double click in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=11601
    http://www.sapfans.com/forums/viewtopic.php?t=23010
    How do I create and use input-enabled fields in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=84933
    http://www.sapfans.com/forums/viewtopic.php?t=69878
    How can I display a checkbox in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=88376
    http://www.sapfans.com/forums/viewtopic.php?t=40968
    http://www.sapfans.com/forums/viewtopic.php?t=6919
    chk these 2 useful links
    http://www.sap-img.com/abap-function.htm
    http://www.geocities.com/mpioud/Abap_programs.html
    check this...
    http://sapbrain.com/TUTORIALS/TECHNICAL/ALV_tutorial.html
    ALV WITH TWO CONTAINER ON ONE PAGE
    Look at the below threads ...
    Logo in OO ALV Grid
    Display Two Report IN ONE
    TOP_OF_PAGE in ALV Grid Using OO Approach!!
    ALV in webdynpro
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40794172-b95a-2910-fb98-b86d8a0918b4
    Reward if useful.
    Regards,
    Chandru

  • Training and Event Management - report on list of cancelled courses

    Hi All,
    Is there any standard report available to get the list of cancelled courses (be it business event grp , type or business event) Would appreciate your inputs on this.
    Kind regards
    Sathya

    S_AHR_61016216 - Cancellations per Attendee , i think there is no standard report for cencelation of business events, type and group.
    for cancellations per attendee reports is available in the system.
    good luck
    Devi

  • How can I see Calendar event END times at a glance?

    How can I display my Calendar event titles exactly as I type them? I do not want Calendar to remove duration from the titles of my events. Otherwise I can't see event END times at a glance in month view; only start times. How can I "trick" Calendar to just show my titles as I type them - as I always could before I upgraded. I used to be able to enter "Seminar 9am-5:45" and it would appear that way regardless of how or what I chose to enter (or not enter) for duration.
    I am running OSX 10.9.3.

    It's a bit weird, but if you type in the time info TWICE into the event title then Calendar uses/deletes one of them to populate the event details and leaves the other.
    Apple - Mac OS X - Feedback

  • Event List view in iCal?

    I would love to have an Event List view in iCal like I do on the calendar on my iPhone. Is there such a thing? The particular reason for wanting it (this time) is that one of the calendars in the ON MY MAC list has a number in a oval to the right.
    I believe this is trying to tell me that there is a new event that I need to do something about. Problem is, I don't know where to find it.

    ecernek,
    There is no event list option on iCal like the one on the iPhone.
    That number means that you have an event invitation. Use iCal>View>Show Notifications to choose what to do with the notification.

  • Can I show a color bar instead of a color bullet in iCal Monthly view for all my events in all calendars?

    In the Monthly view of iCal the only events that show a color bar in the event is the Birthday Calendar. All other events in all my other calendars only show a color bullet next to the event (unless I click on that event which then shows as a color bar). I would like to know if it is possible for all the calendar events to have a color bar in the monthly view instead of just that tiny color bullet.

    Greetings Judith,
    Before making any attempts at deleting calendar data, backup what you have just in case:
    Click on each calendar on the left hand side of iCal one at a time highlighting it's name and then going to File Export > Export and saving the resulting calendar file to a logical location for safekeeping.
    iCal has an automated function located in iCal > Preferences > Advanced > Delete events "X" days after they have passed.  By typing in a value for days you can tell iCal to delete all events before that time frame.
    Example:
    Today is 4-16-2012.
    If I wanted to delete all events prior to 1 year ago (4-16-2011) I would type in "365" for the number of days.
    Once you type in the number of days you want kept in iCal, close the preferences and then quit iCal.
    Re-open iCal and check to see if the events are gone.  If not you may want to leave it open for several minutes and then quit again.
    Once the events are removed go back to  iCal > Preferences > Advanced > Delete events "X" days after they have passed and make sure the check mark is removed to prevent future deletion.
    Hope that helps.

  • Can you show at a glance which event images are in albums?

    Say I had an event containing multiple similar but different images, is there a way to show in the grid view for example which images have already been used in one or more albums?
    Would be handy to be able to select a 'show list of albums containing this image'dialogue box. I guess you could hide images you've used but that wouldn't work automatically, nor would any other tagging/rating.
    Another approach would be to make albums containing everything in a given event, then move the images out of that album once used, just seems fiddly to me.
    AC

    AC
    Would be handy to be able to select a 'show list of albums containing this image'dialogue box.
    Yes it would and many people have suggested tit. Add your voice to the chorus at iPhoto Menu -> Provide Apple Feedback.
    A workaround - and it's no better - is to go to an album and select al, then give all those pics a keyword. Then in grid view you can see which pics have the keyword. (View -> Keywords)
    Regards
    TD

  • Unable to capture startup and shutdown event of Photoshop in automation Plugin.

    Hi,
    I am creating an automation plugin and I want to register some events. I have seen listener plugin sample to register event in startup and unregister event in shutdown. I have used same code in my plugin but I am unable to capture the startup nad shutdown event of Photoshop. On clicking the menu item of my plugin the calls come inside the AutoPluginMain but during the startup or shutdown of plugin, the calls does not come inside the AutoPluginMain.
    I am unable to detect the cause of the problem. Can someone please giude me??
    Thanks in advance.

    Hi Tom,
    Thanks for the suggestion.
    Yes, I am working on Windows. As you suggested, I compiled .rc file but the compile option for .r file was disabled. After compiling the .rc file, I again rebuild the complete project and tested my build. But still I was not able to achive the desired result.
    Any other thing that I need to do to make it work?
    Thanks

  • Unable to capture button event in pageLayout Controller

    Hi Guys,
    I have the following layout
    pageLayout
    pageLayoutCO (controller)
    ----header (Region)
    ----------messageComponentLayout (Region)
    -----------------MessageLovInpurt
    -----------------MessageChoice(Item)
    -----------------MessageTextInput
    -----------------MessageLayout
    ----------HideShow (Region)
    -----------------MessageLovInpurt(Item)
    -----------------MessageChoice(Item)
    -----------------MessageTextInput(Item)
    -----------MessageComponentLayout (Region)
    -----------------MessageLayout
    ------------------------SubmitButton(ID:SearchBtn)
    ------------------------SubmitButton(ID:ClearBtn, fires partial action named clear)
    -----------header(Region)
    I am not able to capture the event fired by the button ClearBtn in the controller of the pagelayout.....
    The two methods I used as follows aren't worked:
    if ("clear".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
    if (pageContext.getParameter("ClearBtn") != null) {
    what should i do in order to capture the button event in the pageLayout Controller
    Thanks in advance
    Mandy
    Edited by: user8898100 on 2011-8-2 上午7:49

    Mandy,
    Its really strange that its not able to caputure the event in CO.
    Below is the way in which we handle to Submit action at CO level.
    /Check whether ClearBtn is same in case too.
    if(pageContext.getParameter("ClearBtn")!=null){
    System.out.println("Inside the Clear Btn Action");
    Regards,
    Gyan

  • SAP event not triggering in B1if

    Hi,
    Facing an issue when creating JE in one company on trigger of this b1if scenario gets activated and create JE in another company,earlier it was working fine, after upgrading Integration Component from SAP 9.0 PL12 to SAP 9.0 PL15  issue occurred.
    In message log in b1if can't see any log(Success,Failure,Processing,Filtered).
    Any help would be appreciated.
    Thanks

    Hi,
    Please check on event sender setup.
    Have you click on "Create Complete Journal Entry Events" on 4th step of Event sender in Event Filter option ?
    Thanks,
    Tushar

  • I cannot change from grid view to list view when i contol click on the downloads folder on the dock am i doing something wrong? if so how do i change the ?view in the dock

    when i contol click on the downloads icon in the dock i get the gris view . I thought if you control click, you are able to change the view to fan or list. am I doing something wrong.? Icheck to make sure the contol key is working by doing a screenshot and it works there. What am I doing wrong?

    Needs to be a Stack ?

  • When I sync my iPod to my MacBook through iTunes new events do not show up and old events are not deleted. I am using Snow Leopard  and not iSync.

    I am using Snow Leopard on a MacBook. I have an iPod touch 3G. I do not use iSync it Mobile Me. When I sync my iPod through iTunes new events on my iPod do not show up on my Mac and old events do not delete. I have read help instructions that include deleting the data on the iPod. The iPod has the correct data and the Mac does not so I have not followed those instructions. I need help as the only reason I bought the Mac was to be able to sync, back up, view and print my calendar. Currently it is useless. If only Apple could have learned from the elegance of the Palm software.

    Start here:
    iPhone, iPad, or iPod touch: Device not recognized in iTunes for Windows

  • Get All Values From NewForm.aspx using Event Receiver Item Adding

    HI All,
             I have conditions to check before the insertion of "Calendar Event".For this I am using Item Adding Event Receiver ,When Click on Save button I need to get all the values of Items filled in NewForm.aspx and check
    the condition,If condition satisfies make them insert else show alert info  as"Not Valid",Below is code and error message
    public override void ItemAdding(SPItemEventProperties properties)
                base.ItemAdding(properties);
               string StartTime = properties.AfterProperties["Start Time"].ToString();
               string EndTime = properties.AfterProperties["End Time"].ToString();
    Error
    Object reference not set to an instance of an object.
    Use the New "Keyword to create an object instance
    Can any one help me how can I do it.
    Thanks,
    Quality Communication Provides
    Quality Work.
    http://siddiq-sharepoint2010.blogspot.in/
    Siddiqali Mohammad .

    Hi,
          Have you tried with the code snippet as mentioned below
    string EndDate = Convert.ToString(properties.AfterProperties["EndDate"]);
    string StartDate = Convert.ToString(properties.AfterProperties["EventDate"]);
    If my post is helpful - please click on the green arrow to mark it as answer

  • Problem with flash in events packaged application

    Hi,
    I´v installed the Events packaged application.
    On page 24 you can show some flash-reports. But I get an error: xml loading failed (flow_flash_chart_Rxxxxx).
    What can be the reason? serverside or desktopside?
    Any reaction will be appreciated.
    Leo

    Try the following
    close all browser windows and open Windows Explorer
    in the address bar type %appdata%\Adobe
    delete the 'Flash Player' folder in there
    in the address bar type %appdata%\Macromedia
    delete the 'Flash Player' folder in there
    Now try again to change any Flash Player settings.

Maybe you are looking for

  • Unable to open pdf file using version 9.5.0 and 10.1.2 / Windows 7 HE / IE 9.0

    My issue is very similar to Elaina920. I have Adobe Reader version 9.5.0, running on Windows 7 Home Edition, using IE 9.0.5.  When I attempt to open a pdf document from a secure site, a new window opens, but nothing happens....just a blank (white) sc

  • TN Wiki TechNet Guru Announced for June 2014

    The Results are in! And the winners of the TechNet Guru Competition June 2014 have been posted on the Wiki Ninjas Blog. Below is a summary, heavily trimmed to fit the size restrictions of forum posting.  BizTalk Technical Guru - June 2014   Steef-Jan

  • Real Time TCP/IP communication

    Hi,       I am using the following hardware:      PXIe-1062Q      PXIe-8108      PXI-5600 (02 card for 40MHz Bandwidth)      PXIe-5641R (both inputs are used; one for each PXI-5600)      PMA-1115      Labview 2009      I am using instrument mode to d

  • OIM - query regarding child tables

    Hi All I have a query regarding child tables. For example, when a user is removed from an AD group, his corresponding entry from the AD groups child table will be deleted. I want to know whether it is deleted of marked as deleted. Can I get the infor

  • Mountain Lion opens in Mail, a in pdf saved webpage, with textedit

    When i want to send someone a webpage in pdf format Mail makes a document named: WebPage The extension .pdf is missing. And I think that is why the file will be opened with textedit. When the document is opened, I only see the program language of the