Setting currency and measurement unit for a field in an ALV report

Plz give sample code to set currency and measurement unit for a field in an ALV report

dear friend
i am seanding you
the display form
if you need select form
and process form also pls keep in touch.
if help full rewards are expecting.
yours
vivek
FORM build_field_catalog .
  DATA: w_dthigh(10).
  CLEAR fcat.
  fcat-fieldname = 'VBELN'.
  fcat-outputlen = 10.
  fcat-seltext_s = 'COMMERCIAL INVOICE'.
  fcat-seltext_m = 'Commercial Invoice'.
  fcat-seltext_l = 'COMMERCIAL INVOICE'.
  fcat-ddictxt = 'M'.
  fcat-inttype = 'C'.
  fcat-datatype = 'CHAR'.
  fcat-key = 'X'.
  fcat-hotspot = 'X'.
  APPEND fcat.
  CLEAR fcat.
  fcat-fieldname = 'EXNUM'.
  fcat-outputlen = 10.
  fcat-seltext_s = 'EXCISE INVOICE'.
  fcat-seltext_m = 'Excise Invoice'.
  fcat-seltext_l = 'EXCISE INVOICE'.
  fcat-ddictxt = 'M'.
  fcat-inttype = 'C'.
  fcat-datatype = 'CHAR'.
  fcat-hotspot = 'X'.
  APPEND fcat.
  CLEAR fcat.
  fcat-fieldname = 'EXDAT'.
  fcat-outputlen = 10.
  fcat-seltext_s = 'EXCISE DATE'.
  fcat-seltext_m = 'Excise Date'.
  fcat-seltext_l = 'EXCISE DATE'.
  fcat-ddictxt = 'M'.
  fcat-inttype = 'D'.
  fcat-datatype = 'DATS'.
  APPEND fcat.
  CLEAR fcat.
  fcat-fieldname = 'NAME1'.
  fcat-outputlen = 30.
  fcat-seltext_s = 'CUSTOMER'.
  fcat-seltext_m = 'Customer'.
  fcat-seltext_l = 'CUSTOMER'.
  fcat-ddictxt = 'M'.
  fcat-inttype = 'C'.
  fcat-datatype = 'CHAR'.
  fcat-lowercase = 'X'.
  APPEND fcat.
  CLEAR fcat.
  fcat-fieldname = 'ZZPD'.
  fcat-outputlen = 15.
  fcat-seltext_s = 'COUNTRY'.
  fcat-seltext_m = 'COUNTRY'.
  fcat-seltext_l = 'COUNTRY'.
  fcat-ddictxt = 'M'.
  fcat-inttype = 'C'.
  fcat-datatype = 'CHAR'.
  fcat-lowercase = 'X'.
  APPEND fcat.
  CLEAR fcat.
  fcat-fieldname = 'WERKS'.
  fcat-outputlen = 4.
  fcat-seltext_s = 'PLANT'.
  fcat-seltext_m = 'Plant'.
  fcat-seltext_l = 'PLANT'.
  fcat-ddictxt = 'M'.
  fcat-inttype = 'C'.
  fcat-datatype = 'CHAR'.
  fcat-key = 'X'.
  APPEND fcat.
  CLEAR fcat.
  fcat-fieldname = 'ARKTX'.
  fcat-outputlen = 40.
  fcat-seltext_s = 'MATERIAL DESCRIPTION'.
  fcat-seltext_m = 'Material Description'.
  fcat-seltext_l = 'MATERIAL DESCRIPTION'.
  fcat-ddictxt = 'M'.
  fcat-inttype = 'C'.
  fcat-datatype = 'CHAR'.
  fcat-lowercase = 'X'.
  APPEND fcat.
  CLEAR fcat.
  fcat-fieldname = 'FKART'.
  fcat-outputlen = 4.
  fcat-seltext_s = 'Billing type'.
  fcat-seltext_m = 'Billing type'.
  fcat-seltext_l = 'Billing type'.
  fcat-ddictxt = 'M'.
  fcat-inttype = 'C'.
  fcat-datatype = 'CHAR'.
  fcat-key = 'X'.
  APPEND fcat.
  CLEAR fcat.
  fcat-fieldname = 'INCO1'.
  fcat-outputlen = 5.
  fcat-seltext_s = 'INCO TERMS'.
  fcat-seltext_m = 'INCO TERMS'.
  fcat-seltext_l = 'INCO TERMS'.
  fcat-ddictxt = 'M'.
  fcat-inttype = 'C'.
  fcat-datatype = 'CHAR'.
  APPEND fcat.
  CLEAR fcat.
  fcat-fieldname = 'INCO2'.
  fcat-outputlen = 10.
  fcat-seltext_s = 'INCO TERMS DES'.
  fcat-seltext_m = 'INCO TERMS DES'.
  fcat-seltext_l = 'INCO TERMS DES'.
  fcat-ddictxt = 'M'.
  fcat-inttype = 'C'.
  fcat-datatype = 'CHAR'.
  APPEND fcat.
CLEAR fcat.
fcat-fieldname = 'FKIMG'.
fcat-outputlen = 14.
fcat-seltext_s = 'QUANTITY'.
fcat-seltext_m = 'Quantity'.
fcat-seltext_l = 'QUANTITY'.
fcat-ddictxt = 'M'.
fcat-inttype = 'P'.
fcat-datatype = 'QUAN'.
APPEND fcat.
  CLEAR fcat.
  fcat-fieldname = 'FKLMG'.
  fcat-outputlen = 10.
  fcat-seltext_s = 'QUANTITY'.
  fcat-seltext_m = 'QUANTITY'.
  fcat-seltext_l = 'QUANTITY'.
  fcat-ddictxt = 'M'.
  fcat-inttype = 'P'.
  fcat-datatype = 'QUAN'.
  APPEND fcat.
  CLEAR fcat.
  fcat-fieldname = 'MEINS'.
  fcat-outputlen = 5.
  fcat-seltext_s = 'UNIT'.
  fcat-seltext_m = 'UNIT'.
  fcat-seltext_l = 'UNIT'.
  fcat-ddictxt = 'M'.
  fcat-inttype = 'C'.
  fcat-datatype = 'CHAR'.
  APPEND fcat.
  CLEAR fcat.
  fcat-fieldname = 'KBETR'.
  fcat-outputlen = 8.
  fcat-seltext_s = 'RATE'.
  fcat-seltext_m = 'Rate'.
  fcat-seltext_l = 'RATE'.
  fcat-ddictxt = 'M'.
  fcat-inttype = 'P'.
  fcat-datatype = 'CURR'.
  APPEND fcat.
  CLEAR fcat.
  fcat-fieldname = 'NSR'.
  fcat-outputlen = 8.
  fcat-seltext_s = 'Exmill'.
  fcat-seltext_m = 'Exmill'.
  fcat-seltext_l = 'Exmill'.
  fcat-ddictxt = 'M'.
  fcat-inttype = 'P'.
  fcat-datatype = 'CURR'.
  APPEND fcat.
  CLEAR fcat.
  fcat-fieldname = 'KURSK'.
  fcat-outputlen = 8.
  fcat-seltext_s = 'EXCHANGE RATE'.
  fcat-seltext_m = 'Exchange Rate'.
  fcat-seltext_l = 'Exchange Rate'.
  fcat-ddictxt = 'M'.
  fcat-inttype = 'P'.
  fcat-datatype = 'CURR'.
  APPEND fcat.
  CLEAR fcat.
  fcat-fieldname = 'WAERK'.
  fcat-outputlen = 5.
  fcat-seltext_s = 'CURRENCY'.
  fcat-seltext_m = 'Currency'.
  fcat-seltext_l = 'CURRENCY'.
  fcat-ddictxt = 'M'.
  fcat-inttype = 'C'.
  fcat-datatype = 'CUKY'.
  APPEND fcat.
  CLEAR fcat.
  fcat-fieldname = 'LCURR1'.
  fcat-outputlen = 14.
  fcat-seltext_s = 'GROSS AMT'.
  fcat-seltext_m = 'Gross Amt'.
  fcat-seltext_l = 'GROSS AMT'.
  fcat-ddictxt = 'L'.
  fcat-inttype = 'P'.
  fcat-datatype = 'CURR'.
fcat-do_sum = 'X'.
  APPEND fcat.
================================= *****************
  fheader-typ = 'H'.
  SELECT SINGLE butxt
    FROM t001
    INTO fheader-info
   WHERE bukrs EQ '1000'.
  APPEND fheader.
  CLEAR fheader.
  fheader-typ = 'H'.
  fheader-info = 'Daily Shipments For Exp'.
  APPEND fheader.
  CLEAR fheader.
Plant
  SORT s_werks BY low.
  READ TABLE s_werks INDEX 1.
  fheader-typ = 'S'.
  WRITE s_werks-low TO fheader-key.
  SORT s_werks BY high DESCENDING.
  READ TABLE s_werks INDEX 1.
  IF s_werks-high NE space.
    CONCATENATE fheader-key 'TO' s_werks-high INTO fheader-info
                            SEPARATED BY space.
  ELSE.
    WRITE fheader-key TO fheader-info.
  ENDIF.
  CLEAR fheader-key.
  fheader-key = 'PLANT : '.
  APPEND fheader.
  CLEAR fheader.
Billing Typ
SORT S_FKART BY LOW.
READ TABLE S_FKART INDEX 1.
FHEADER-TYP = 'S'.
WRITE S_FKART-LOW TO FHEADER-KEY.
SORT S_FKART BY HIGH DESCENDING.
READ TABLE S_FKART INDEX 1.
IF S_FKART-HIGH NE SPACE.
CONCATENATE FHEADER-KEY 'TO' S_FKART-HIGH INTO FHEADER-INFO
                         SEPARATED BY SPACE.
ELSE.
   WRITE FHEADER-KEY TO FHEADER-INFO.
ENDIF.
CLEAR FHEADER-KEY.
FHEADER-KEY = 'DOCUMENT TYPE : '.
APPEND FHEADER.
CLEAR FHEADER.
Date...
  fheader-typ = 'S'.
FHEADER-KEY = S_FKDAT-LOW.
  WRITE s_fkdat-low  TO fheader-key.
  WRITE s_fkdat-high TO w_dthigh.
  CONCATENATE fheader-key 'TO' w_dthigh INTO fheader-info
                          SEPARATED BY space.
  CLEAR fheader-key.
  fheader-key = 'PERIOD : '.
  APPEND fheader.
  CLEAR fheader.
  CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
    EXPORTING
      i_list_type     = 0
    IMPORTING
      et_events       = fevents[]
    EXCEPTIONS
      list_type_wrong = 1
      OTHERS          = 2.
  READ TABLE fevents WITH KEY name = 'TOP_OF_PAGE'.
  IF sy-subrc = 0.
    fevents-form = 'TOPOFPAGE'.
    MODIFY fevents INDEX sy-tabix.
    CLEAR fevents.
  ENDIF.
  rptname = sy-repid.
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
                    EXPORTING
                      i_callback_program                = rptname
                      it_fieldcat                       = fcat[]
                      i_default                         = 'S'
                      it_events                         = fevents[]
                      i_save                            = 'X'
                     TABLES
                       t_outtab                          = it_output[]
                  EXCEPTIONS
                    PROGRAM_ERROR                     = 1
                    OTHERS                            = 2
ENDFORM.                    " BUILD_FIELD_CATALOG

Similar Messages

  • Tool Tip Text for field values in ALV report

    Hi,
    How to get the tool tip text for the field values in ALV report.
    Thanks & Regards,
    Pallavi.

    Hi,
    In fieldcatalog specify the TOOLTIP.
    <b>
    LVC_S_FCAT-TOOLTIP
    </b>
    In this speicfyteh tooltip you want.
    Then append this to the fieldcatalog.
    Hope this solves ur problem.

  • Alv subtotals  and grand total for a field

    Hi friends,
    I Have an internal table ITAB1
    in that i have a senario as below.
    In my GRID display iam getting values in the layou as follows
    BUKRS =  1000
    LIFNR      MATNR     STCST
    100          abc            500,00
    100          pqr             400,00
    100          xyz            200,00
                        sub total
    200         pto              700,00
    200         vbr              900,00
                        sub total
    BUKRS =  2000
    LIFNR      MATNR     STCST
    150          abc            500,00
    150          pqr             400,00
    150          xyz            200,00
                        sub total
    260         pto              700,00
    260         vbr              900,00
                        sub total
              GRAND TOTAL = 
    Now my requirement is at the end of every vendor  i need sub total for STCST field.
    and at the end of every company code i need GRAND TOTAL for STCST field.
    Its alv grid display.
    how can i do that.
    Regards,
    Priyanka.

    Check this sample code may it will help u:
    *& Report  Z_ALV_SUBTOTAL
    REPORT z_alv_subtotal.
    *& Table declaration
    TABLES: ekko.
    *& Type pool declaration
    TYPE-POOLS: slis. " Type pool for ALV
    *& Selection screen
    SELECT-OPTIONS: s_ebeln FOR ekko-ebeln.
    *& Type declaration
    * Type declaration for internal table to store EKPO data
    TYPES: BEGIN OF x_data,
           ebeln  TYPE char30,  " Document no.
           ebelp  TYPE ebelp,   " Item no
           matnr  TYPE matnr,   " Material no
           matnr1 TYPE matnr,   " Material no
           werks  TYPE werks_d, " Plant
           werks1 TYPE werks_d, " Plant
           ntgew  TYPE entge,   " Net weight
           gewe   TYPE egewe,   " Unit of weight                          
           END OF x_data.
    *& Internal table declaration
    DATA:
    * Internal table to store EKPO data
      i_ekpo TYPE STANDARD TABLE OF x_data INITIAL SIZE 0,
    * Internal table for storing field catalog information
      i_fieldcat TYPE slis_t_fieldcat_alv,
    * Internal table for Top of Page info. in ALV Display
      i_alv_top_of_page TYPE slis_t_listheader,
    * Internal table for ALV Display events
      i_events TYPE slis_t_event,
    * Internal table for storing ALV sort information
      i_sort TYPE  slis_t_sortinfo_alv,
      i_event TYPE slis_t_event.
    *& Work area declaration
    DATA:
      wa_ekko TYPE x_data,
      wa_layout     TYPE slis_layout_alv,
      wa_events         TYPE slis_alv_event,
      wa_sort TYPE slis_sortinfo_alv.
    *& Constant declaration
    CONSTANTS:
       c_header   TYPE char1
                  VALUE 'H',                    "Header in ALV
       c_item     TYPE char1
                  VALUE 'S'.
    *& Start-of-selection event
    START-OF-SELECTION.
    * Select data from ekpo
      SELECT ebeln " Doc no
             ebelp " Item
             matnr " Material*
             matnr " Material*
             werks " Plant*
             werks " Plant*
             ntgew " Quantity
             gewei " Unit
             FROM ekpo
             INTO TABLE i_ekpo
             WHERE ebeln IN s_ebeln
             AND ntgew NE '0.00'.
      IF sy-subrc = 0.
        SORT i_ekpo BY ebeln ebelp matnr .
      ENDIF.
    * To build the Page header
      PERFORM sub_build_header.
    * To prepare field catalog
      PERFORM sub_field_catalog.
    * Perform to populate the layout structure
      PERFORM sub_populate_layout.
    * Perform to populate the sort table.
      PERFORM sub_populate_sort.
    * Perform to populate ALV event
      PERFORM sub_get_event.
    END-OF-SELECTION.
    * Perform to display ALV report
      PERFORM sub_alv_report_display.
    *&      Form  sub_build_header
    *       To build the header
    *       No Parameter
    FORM sub_build_header .
    * Local data declaration
      DATA: l_system     TYPE char10 ,          "System id
            l_r_line     TYPE slis_listheader,  "Hold list header
            l_date       TYPE char10,           "Date
            l_time       TYPE char10,           "Time
            l_success_records TYPE i,           "No of success records
            l_title(300) TYPE c.                " Title
    * Title  Display
      l_r_line-typ = c_header.               " header
      l_title = 'Test report'(001).
      l_r_line-info = l_title.
      APPEND l_r_line TO i_alv_top_of_page.
      CLEAR l_r_line.
    * Run date Display
      CLEAR l_date.
      l_r_line-typ  = c_item.                " Item
      WRITE: sy-datum  TO l_date MM/DD/YYYY.
      l_r_line-key = 'Run Date :'(002).
      l_r_line-info = l_date.
      APPEND l_r_line TO i_alv_top_of_page.
      CLEAR: l_r_line,
             l_date.
    ENDFORM.                    " sub_build_header
    *&      Form  sub_field_catalog
    *       Build Field Catalog
    *       No Parameter
    FORM sub_field_catalog .
    *  Build Field Catalog
      PERFORM sub_fill_alv_field_catalog USING:
         '01' '01' 'EBELN' 'I_EKPO' 'L'
         'Doc No'(003) ' ' ' ' ' ' ' ',
         '01' '02' 'EBELP' 'I_EKPO' 'L'
         'Item No'(004) 'X' 'X' ' ' ' ',
         '01' '03' 'MATNR' 'I_EKPO' 'L'
         'Material No'(005) 'X' 'X' ' ' ' ',
         '01' '03' 'MATNR1' 'I_EKPO' 'L'
         'Material No'(005) ' ' ' ' ' ' ' ',
         '01' '04' 'WERKS' 'I_EKPO' 'L'
         'Plant'(006) 'X' 'X' ' ' ' ',
         '01' '04' 'WERKS1' 'I_EKPO' 'L'
         'Plant'(006) ' ' ' ' ' ' ' ',
         '01' '05' 'NTGEW' 'I_EKPO' 'R'
         'Net Weight'(007) ' ' ' ' 'GEWE' 'I_EKPO'.
    ENDFORM.                    " sub_field_catalog
    *&     Form  sub_fill_alv_field_catalog
    *&     For building Field Catalog
    *&     p_rowpos   Row position
    *&     p_colpos   Col position
    *&     p_fldnam   Fldname
    *&     p_tabnam   Tabname
    *&     p_justif   Justification
    *&     p_seltext  Seltext
    *&     p_out      no out
    *&     p_tech     Technical field
    *&     p_qfield   Quantity field
    *&     p_qtab     Quantity table
    FORM sub_fill_alv_field_catalog  USING  p_rowpos    TYPE sycurow
                                            p_colpos    TYPE sycucol
                                            p_fldnam    TYPE fieldname
                                            p_tabnam    TYPE tabname
                                            p_justif    TYPE char1
                                            p_seltext   TYPE dd03p-scrtext_l
                                            p_out       TYPE char1
                                            p_tech      TYPE char1
                                            p_qfield    TYPE slis_fieldname
                                            p_qtab      TYPE slis_tabname.
    * Local declaration for field catalog
      DATA: wa_lfl_fcat    TYPE  slis_fieldcat_alv.
      wa_lfl_fcat-row_pos        =  p_rowpos.     "Row
      wa_lfl_fcat-col_pos        =  p_colpos.     "Column
      wa_lfl_fcat-fieldname      =  p_fldnam.     "Field Name
      wa_lfl_fcat-tabname        =  p_tabnam.     "Internal Table Name
      wa_lfl_fcat-just           =  p_justif.     "Screen Justified
      wa_lfl_fcat-seltext_l      =  p_seltext.    "Field Text
      wa_lfl_fcat-no_out         =  p_out.        "No output
      wa_lfl_fcat-tech           =  p_tech.       "Technical field
      wa_lfl_fcat-qfieldname     =  p_qfield.     "Quantity unit
      wa_lfl_fcat-qtabname       =  p_qtab .      "Quantity table
      IF p_fldnam = 'NTGEW'.
        wa_lfl_fcat-do_sum  = 'X'.
      ENDIF.
      APPEND wa_lfl_fcat TO i_fieldcat.
      CLEAR wa_lfl_fcat.
    ENDFORM.                    " sub_fill_alv_field_catalog
    *&      Form  sub_populate_layout
    *       Populate ALV layout
    *       No Parameter
    FORM sub_populate_layout .
      CLEAR wa_layout.
      wa_layout-colwidth_optimize = 'X'." Optimization of Col width
    ENDFORM.                    " sub_populate_layout
    *&      Form  sub_populate_sort
    *       Populate ALV sort table
    *       No Parameter
    FORM sub_populate_sort .
    * Sort on material
      wa_sort-spos = '01' .
      wa_sort-fieldname = 'MATNR'.
      wa_sort-tabname = 'I_EKPO'.
      wa_sort-up = 'X'.
      wa_sort-subtot = 'X'.
      APPEND wa_sort TO i_sort .
      CLEAR wa_sort.
    * Sort on plant
      wa_sort-spos = '02'.
      wa_sort-fieldname = 'WERKS'.
      wa_sort-tabname = 'I_EKPO'.
      wa_sort-up = 'X'.
      wa_sort-subtot = 'X'.
      APPEND wa_sort TO i_sort .
      CLEAR wa_sort.
    ENDFORM.                    " sub_populate_sort
    *&      Form  sub_get_event
    *       Get ALV grid event and pass the form name to subtotal_text
    *       event
    *       No Parameter
    FORM sub_get_event .
      CONSTANTS : c_formname_subtotal_text TYPE slis_formname VALUE
    'SUBTOTAL_TEXT'.
      DATA: l_s_event TYPE slis_alv_event.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type     = 4
        IMPORTING
          et_events       = i_event
        EXCEPTIONS
          list_type_wrong = 0
          OTHERS          = 0.
    * Subtotal
      READ TABLE i_event  INTO l_s_event
                        WITH KEY name = slis_ev_subtotal_text.
      IF sy-subrc = 0.
        MOVE c_formname_subtotal_text TO l_s_event-form.
        MODIFY i_event FROM l_s_event INDEX sy-tabix.
      ENDIF.
    ENDFORM.                    " sub_get_event
    *&      Form  sub_alv_report_display
    *       For ALV Report Display
    *       No Parameter
    FORM sub_alv_report_display .
      DATA: l_repid TYPE syrepid .
      l_repid = sy-repid .
    * This function module for displaying the ALV report
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = l_repid
          i_callback_top_of_page   = 'SUB_ALV_TOP_OF_PAGE'
          is_layout                = wa_layout
          it_fieldcat              = i_fieldcat
          it_sort = i_sort
          it_events                = i_event
          i_default                = 'X'
          i_save                   = 'A'
        TABLES
          t_outtab                 = i_ekpo
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
      IF sy-subrc <> 0.
    *    MESSAGE i000 WITH 'Error in ALV report display'(055).
      ENDIF.
    ENDFORM.                    " sub_alv_report_display
    *       FORM sub_alv_top_of_page
    *       Call ALV top of page
    *       No parameter
    FORM sub_alv_top_of_page.                                   "#EC CALLED
    * To write header for the ALV
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = i_alv_top_of_page.
    ENDFORM.                    "alv_top_of_page
    *&      Form  subtotal_text
    *       Build subtotal text
    *       P_total  Total
    *       p_subtot_text Subtotal text info
    FORM subtotal_text CHANGING
                   p_total TYPE any
                   p_subtot_text TYPE slis_subtot_text.
    * Material level sub total
      IF p_subtot_text-criteria = 'MATNR'.
        p_subtot_text-display_text_for_subtotal
        = 'Material level total'(009).
      ENDIF.
    * Plant level sub total
      IF p_subtot_text-criteria = 'WERKS'.
        p_subtot_text-display_text_for_subtotal = 'Plant level total'(010).
      ENDIF.
    ENDFORM.                    "subtotal_text
    Edited by: Joyjit Ghosh on Aug 21, 2008 5:25 PM

  • Is it Possible to set Top and Bottom Margin for each section?

    I've been googling and haven't found an answer to this problem.
    I need to specify a different top and bottom margin for each section in my document. The "document margins" apply to the whole document, so I've set those to a low amount, and I can set the Layout Left and right margins - but the "Layout Margins" do not allow "top and bottom" only "before and after". This is a critical difference, because if you have 2 pages in a section, only the first page gets the "before" margin, and only the 2nd page gets the "after" margin. This is a little odd, and I'm frankly surprised we are in version 4 of this app - and you can't set top and bottom margins for each section.
    If you insert a "layout break" on each page, then you can get the margins to reset for each page inside a section, but this is not an acceptable workaround as I need to setup templates for staff to use that will "flow" like a normal word processor.
    Does any one have any suggestions?

    On page 49 in the English Guide version it tells you about Lay-out margins. This is the text
    *Defining Layout Margins*
    *In a word processing document, a layout margin is the space around columns in a*
    layout.
    *To change the layout margin in a word processing document:*
    *1 Click in a column.*
    *2 Click Inspector in the toolbar, click the Layout button, and then click Layout.*
    *3 To change the outside margins of the column(s), enter values in the Left and Right*
    *fields under Layout Margins.*
    *4 To specify the amount of space above and below the column(s), enter values in the*
    *Before and After fields under Layout Margins.*
    *The new margins can’t extend outside the page margins set for the document in the*
    *Document inspector.*
    I hope this helps.

  • How to set upper and lower limit for service notification in SPRO

    Hello everyone,
    Good morning....!!
    I am new to SAP PM and to SCN as well.
    I have a question on Service notification user status.
    I  have notification profile configured in SAP as below:
    Status no      Status          Short text              Lower limit          Upper limit
    5                  REGD          Registered                1                          70
    10                PCKS            Pack sent                  1                          70
    20                APRC            Application received  1                        70
    etc..
    I want the statusesto be set as  navigation should only allow to go back one by one...like from APRC -->PCKS not to REGD.From PCKS -->REGD etc..not vice versa.
    Can enayone explain me to how to set lower and upper limits for these according ot the above requirement.
    for more details please check my attachment.
    Thanks in advance..!!
    Regards,
    Sudha.

    Once you change the status to previous status, just save the order. Then again open the order & try to change the user status.
    Just I made replica of your profile. I could able to change (even without saving the order).

  • HT201320 how do you set up and exchange account for google mail

    how do you set up and exchange account for google mail

    If it's a free gmail account, you don't. Google no longer permits free accounts to be set up using Exchange Active Sync. Only paid google apps accounts can be set up as Exchange accounts.

  • Subtotal and grand total for two fields(iseg-buchm and iseg-erfmg)

    hi experts,
        how to do subtotal and grand total for two fields (iseg-buchm and iseg-erfmg).please help me on solving the problem.

    subtotal & grand total can be done in folowing way in ALV.
    1.Pass it_sort parametere to REUSE_ALV_GRID_DISPLAY
    2.Give the field name for sorting in it_sort-fieldname. it can be any field name  u want to sort ur data with.
    3.For iseg-buchm & iseg-erfmg mark do_sum = 'X'. in fieldcat
      gs_sort-spos = 1.
      gs_sort-fieldname = 'ANY FIELD NAME'.
      gs_sort-up = 'X'.
      gs_sort-subtot = 'X'.
      APPEND gs_sort TO et_sort.
      IF iv_fieldname = 'BUCHM'
      OR iv_fieldname = 'ERFMG'.
        gs_fieldcat-do_sum = 'X'.
      ENDIF.
      APPEND gs_fieldcat TO gt_fieldcat.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
           is_variant              = ev_variant
          it_fieldcat             = gt_fieldcat[]

  • How to set the Background Color of a Text Field in a Tabular Report.

    Hello,
    I tried to set the Background Color of a Text Field in a Tabular Report.
    But I was not able to change this colur.
    In the report attributes --> column attributes
    I tried already:
    1. Column Formating -- >CSS Style (bgcolor: red)
    2. Tabular Form Element --> Element Attributes (bgcolor: red)
    but nothing worked.
    Can anybody help me?
    I Use Oracle Apex 2.2.1 on 10gR2
    thank you in advance.
    Oliver

    in "Report Attributes" select the column to move to the "Column Attributes" page. In the "Element Attributes" field under the "Tabular Form Element" region enter
    style="background-color:red;"
    I will also check if there is a way to do this via the template and post here again
    edit:
    in your template definition, above the template, enter the following:
    < STYLE TYPE="text/css" >
    .class INPUT {background-color:red;}
    < /STYLE >
    (remove the spaces after the < and before the >)
    change "class" to the class that the template is calling
    (I'm using theme 9, the table has: class="t9GCCReportsStyle1" so I would enter t9GCCReportsStyle1)
    A side-effect of using this second version is that ALL input types will have a red background color--checkboxes, input boxes, etc.
    Message was edited by:
    TheJosh

  • To edit the field in the ALV report

    Hi,
        i want to edit the field of the ALV report what i need to do for that..
    Thanks & Regards
    Ashu Singh

    hi,
    check the code,
    REPORT  zalv_fcat.* Output table T006 structure declarationTYPES : BEGIN OF ty_t006.
            INCLUDE STRUCTURE t006.
    TYPES : END OF ty_t006.*Internal table and wa declaration for T006
    DATA : it_t006 TYPE STANDARD TABLE OF ty_t006,
           wa_t006 TYPE ty_t006.*declarations for ALV
    DATA: ok_code               TYPE sy-ucomm,
    fieldcatalog for T006
          it_fielcat           TYPE lvc_t_fcat,
    fieldcatalog for fieldcatalog itself:
          it_fielcatalogue           TYPE lvc_t_fcat,
          it_layout           TYPE lvc_s_layo.*declaration for toolbar function
    DATA:   it_excl_func        TYPE ui_functions.
    Controls to display it_t006 and corresponding fieldcatalog
    DATA: cont_dock TYPE REF TO cl_gui_docking_container,
          cont_alvgd     TYPE REF TO cl_gui_alv_grid.*controls to display the fieldcatalog as editable alv grid and container
    DATA: cont_cust TYPE REF TO cl_gui_custom_container,
          cont_editalvgd     TYPE REF TO cl_gui_alv_grid.*intialization event
    INITIALIZATION.*start of selection event
    START-OF-SELECTION.
    LOCAL CLASS Definition for data changed in fieldcatalog ALV
    CLASS lcl_event_receiver DEFINITION.
      PUBLIC SECTION.
        METHODS handle_data_changed
          FOR EVENT data_changed OF cl_gui_alv_grid
          IMPORTING er_data_changed.
    ENDCLASS.                    "lcl_event_receiver DEFINITION
    LOCAL CLASS implementation for data changed in fieldcatalog ALV
    CLASS lcl_event_receiver IMPLEMENTATION.
      METHOD handle_data_changed.
      ENDMETHOD.                    "handle_data_changed
    ENDCLASS.                    "lcl_event_receiver IMPLEMENTATION*data declaration for event receiver
    DATA: event_receiver TYPE REF TO lcl_event_receiver.*end of selection event
    END-OF-SELECTION.*setting the screen for alv output for table display and
    *changed fieldcatalalogue display
    SET SCREEN 600.
    On this statement double click  it takes you to the screen painter SE51. Enter the attributes
    *Create a Custom container and name it CCONT and OK code as OK_CODE.
    *Save check and Activate the screen painter.
    *Now a normal screen with number 600 is created which holds the ALV grid.
    PBO of the actual screen , Here we can give a title and customized menus
    *Go to SE41 and create status 'STATUS600' and create THE function code 'SUBMIT'
    *and 'EXIT' with icons and icon texts
    Also create a TitleBar 'TITLE600' and give the relevant title.&----
    *&      Module  STATUS_0600  OUTPUT
    MODULE status_0600 OUTPUT.
      SET PF-STATUS 'STATUS600'.
      SET TITLEBAR 'TITLE600'.
    CREATE ALV GRID CONTROL IF DOES NOT EXISTS INITIALLY
      IF cont_dock IS INITIAL.
        PERFORM create_alv.
      ENDIF.ENDMODULE.                             " STATUS_0600  OUTPUT* PAI module of the screen created. In case we use an interactive ALV or
    *for additional functionalities we can create OK codes and based on the
    *user command we can do the coding as shown below
    *&      Module  USER_COMMAND_0600  INPUT
    MODULE user_command_0600 INPUT.
      CASE ok_code.
        WHEN 'SUBMIT'.
    *TO GET THE CURRENT FIELDCATALOGUE FROM THE FRONTEND
          CALL METHOD cont_alvgd->set_frontend_fieldcatalog
            EXPORTING
              it_fieldcatalog = it_fielcat.
    *refresh the alv
          CALL METHOD cont_alvgd->refresh_table_display.
    *to Send Buffered Automation Queue to Frontend
          CALL METHOD cl_gui_cfw=>flush.*Exit button clicked to leave the program
        WHEN 'EXIT'.
          LEAVE PROGRAM.  ENDCASE.ENDMODULE.                             " USER_COMMAND_0600  INPUT&----
    *&      Form  CREATE_ALV
    &----FORM create_alv.*create a docking container and dock the control at the botton
      CREATE OBJECT cont_dock
          EXPORTING
               dynnr = '600'
               extension = 100
               side = cl_gui_docking_container=>dock_at_bottom.*create the alv grid for display the table
      CREATE OBJECT cont_alvgd
          EXPORTING
               i_parent = cont_dock.*create custome container for alv
      CREATE OBJECT cont_cust
          EXPORTING
               container_name = 'CCONT'.
    *create alv editable grid
      CREATE OBJECT cont_editalvgd
          EXPORTING
               i_parent = cont_cust.* register events for the editable alv
      CREATE OBJECT event_receiver.
      SET HANDLER event_receiver->handle_data_changed FOR cont_editalvgd.  CALL METHOD cont_editalvgd->register_edit_event
        EXPORTING
          i_event_id = cl_gui_alv_grid=>mc_evt_modified.*building the fieldcatalogue for the initial display
      PERFORM build_fieldcat CHANGING it_fielcat it_fielcatalogue.*building the fieldcatalogue after the user has changed it
      PERFORM change_fieldcat CHANGING it_fielcatalogue.*fetch data from the table
      PERFORM fetch_data.*    Get excluding functions for the alv editable tool bar  APPEND cl_gui_alv_grid=>mc_fc_loc_append_row TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_fc_loc_insert_row TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_fc_loc_cut TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_fc_sort TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_fc_sort_asc TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_fc_sort_dsc TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_fc_subtot TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_fc_sum TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_fc_graph TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_fc_info TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_fc_print TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_fc_filter TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_fc_views TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_mb_export TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_mb_sum TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_mb_sum TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_mb_paste TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_fc_find TO it_excl_func.
      APPEND cl_gui_alv_grid=>mc_fc_loc_copy  TO it_excl_func.
    *Alv display for the T006 table at the bottom
      CALL METHOD cont_alvgd->set_table_for_first_display
        CHANGING
          it_outtab       = it_t006[]
          it_fieldcatalog = it_fielcat[].
    optimize column width of grid displaying fieldcatalog
      it_layout-cwidth_opt = 'X'.* Get fieldcatalog of table T006 - alv might have
    modified it after passing.
      CALL METHOD cont_alvgd->get_frontend_fieldcatalog
        IMPORTING
          et_fieldcatalog = it_fielcat[].to Send Buffered Automation Queue to Frontend  CALL METHOD cl_gui_cfw=>flush. Display fieldcatalog of table T006 in editable alv grid
      CALL METHOD cont_editalvgd->set_table_for_first_display
        EXPORTING
          is_layout            = it_layout
          it_toolbar_excluding = it_excl_func
        CHANGING
          it_outtab            = it_fielcat[]
          it_fieldcatalog      = it_fielcatalogue[].
    ENDFORM.                               " CREATE_alv
    *&      Form  fetch_data
    FORM fetch_data.* select data of T006
      SELECT * FROM t006 INTO TABLE it_t006 UP TO 50 ROWS.
    ENDFORM.                               " fetch_data
    *&      Form  BUILD_FIELDCAT
    FORM build_fieldcat CHANGING it_fldcat TYPE lvc_t_fcat
                                       it_fcat TYPE lvc_t_fcat.
    Fieldcatalog for table T006: it_fldcat
    to generate the fields automatically  CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name       = 'T006'
        CHANGING
          ct_fieldcat            = it_fldcat[]
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2
          OTHERS                 = 3.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.*----
    Fieldcatalog for table LVC_T_FCAT:it_fcat
    Generate fieldcatalog of fieldcatalog structure.
    This fieldcatalog is used to display fieldcatalog 'it_fldcat'
    on the top of the screen.  CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name       = 'LVC_S_FCAT'
        CHANGING
          ct_fieldcat            = it_fcat[]
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2
          OTHERS                 = 3.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                               " BUILD_FIELDCAT
    *&      Form  CHANGE_FIELDCAT
    *after the user has modified the fieldcatalogue we build another fieldcat
    *for the modified alv display
    FORM change_fieldcat CHANGING it_fcat TYPE lvc_t_fcat.  DATA ls_fcat TYPE lvc_s_fcat.  LOOP AT it_fcat INTO ls_fcat.
        ls_fcat-coltext = ls_fcat-fieldname.
        ls_fcat-edit = 'X'.    IF ls_fcat-fieldname = 'COL_POS' OR ls_fcat-fieldname = 'FIELDNAME'.
          ls_fcat-key = 'X'.
        ENDIF.    MODIFY it_fcat FROM ls_fcat.
      ENDLOOP.
    ENDFORM.                               " CHANGE_FIELDCAT
    ref:saptechnical tutorial.
    Regards,
    Anirban

  • Renaming Set Code and Stage Code for a refresh set in Concurrent Manager

    Hi,
    We're using Oracle Applications 11.5.10.2 on a 10.2.0.4 Database:
    Would anyone know how to rename the Set Code for the Refresh Set and Stage Code for the Stage for a Refresh Set in Concurrent Manager? I’ve seen it done in the two Report Sets but when I try to so it in the Report Set I’m creating, those fields are grayed out. How do I get around that?
    Thanks!

    950950 wrote:
    Hello folks.
    There is a request set that has three stages. I've got to remove the final stage but I don't seem to be able to do this.
    I'm logged in with a System Administrator role and I believe we're on 11.5.10.2.
    I'll keep poking around but I'm hoping one of you gurus has the information at the tip of your fingers, or could at least point me in the right direction.
    Thanks,
    GeorgeWhat is the error you get?
    Please make sure you remove the link stages for this particulare stage (from "Link Stages" window) before you delete it from the "Define Stages" window.
    Thanks,
    Hussein

  • Can I use my laptop to set up and iPad 2 for my sister.  She will use it at her house.

    How do I set up an iPad 2 for my sister using my laptop?  I don't want to keep her information on my laptop or give her mine, however, she does have an itunes account and if I log her in on my laptop, will that allow correct set up of ipad 2 for her without having any conflicts of information ?

    You do not need to use your laptop at all in order to setup your sister's iPad. I would set the device up via WiFi. If you know here Apple ID and password, its a breeze. Even if you do not know that information, it can all be entered later when she begins to use the device.
    This was relevant and written for the iPad 3 but it is still the same basic setup on the new iPad with Retina display.
    http://www.everythingicafe.com/how-to-set-up-new-ipad/2012/03/16/
    My recommendation is to just get it up and running for her. She will have to do so much customization on it anyway. Frankly, I think that a big part of the awe and wonder of getting a new iPad is the setup process and I believe that you cheat the recipient out of a really cool experience when you don't let them set it up themselves. Just my 2¢.

  • Smartform-Suppress Zero and Display Zero for same field in Diff Conditions?

    Hi,
    I have a scenario in smartform, where for a quantity field of length p15 and Dec3, needs to display ZERO for one scenario and display SPACE for another condition. To display ZERO i have made it as &quantity(c)&, so that i can display zero. It displays ZERO, but for another condition, when i want to display space, there also it displays 0.000 ! how to display SPACE there ?
    thanks,
    Padma

    Hi,
    I think then in that case we need to use (NZ) I am not sure. But however why don't you use the Condition Tab in the Text by Including the Condition Quantity > 0.000.
    Please let me know if anyone of this works for you.
    Regards,
    SRinivas

  • Voltage sweep and measure current for Keithley 2400

    Dear All
    Hello,
    anybody can help me?
    In spite of nearlly10 days i am searchig to find any labview 2010 program for voltage sweep and measure current that works with RS-232, i has not able finde anything exept some exapmle that read single and multiple data. I has tried to learm labview and changed some prorgram from gpib to RS-232 but i couldn't.
    In another attempt i find a good "votltage sweep and measure current" VI that work with RS-232 in labview 5.1.1. i converted it to 2008 but it need to old driver (ke24xx.dll) and dont work in my labview 2010 and I could't find old driver.
    in these 10 days, my project on thesis has been stopped and i couldn't do anything for our keithley.
    Please helpe...
    in following i attached these files:
    1-first it is voltage sweep that works with GPIB
    2-Vi that i change gpib port to visa (rs232) that i don't know why it dosen't work.
    3-it is Vi related to "votltage sweep and measure current" that works with RS-232 but need to old dirver so i can not use it.
    4-SubVi needed to run program of 3 (but there is no driver for these subVIs) has been atached in reply post of this post
    if any body has this program ("votltage sweep and measure current" that work rs-232) please send for me
    thanks in advances.
    Solved!
    Go to Solution.
    Attachments:
    24xx Swp-V Meas-I gpib.llb ‏373 KB
    modifi- arash-24xx Swp-V Meas-I - VISA oNLY.llb ‏172 KB
    I V new2.vi ‏103 KB

    The first time you asked this exact same question, you were given the way to get the driver and told that one of the examples does exactly what you want to do. You have chosen to disreregard this and pursue other options for these close to 10 days. If your thesis is stalled, that is really your own fault for not listening to the answers you were given. I have no idea why you would do this but I would suggest you go back to the original thread, reread it. and if you want further help, explain what the problem with the NI driver is.

  • How can I set up and email address for my grandson without giving him general access to the internet? email only

    My grandson's school needs him to have his own email address. For some reason, his is not able to use my address. I do not want him to have general access to the internet. His older brother caused my computer to be infected with a virus in a very short time. It took three weeks and one hundred dollars to get the use of my computer back.
    I do not want him to have access to the internet, but his school wants him to have an email address to communicate with him about school work. I am concerned that once he has an email address, someone (not the school) will send him a web site address in a message and he will be able to just click on it to get into the internet.

    You can use an email program (e.g. Outlook Express or Windows Live or Thunderbird) and disable HTML for that email (text only mode) to access the email account. You can create a new email account if your your ISP supports it or use a online service that allows POP3 access with an email program (most popular services allow that).

  • HT4759 how do i set up and icloud acount for a nano

    how do i set up and iloud accountfor a nano

    If you mean an iPod Nano, you can't.  iCloud only runs on an iOS device (iPhone, iPod Touch, iPad, iPad Mini) or computer.

Maybe you are looking for