What is FIELD CATALOG means

I saw in the forum field catalog using alv, reuse_alv_Fieldcatalog etc
Actually What is meant by field catalog?????
Can i know the purpose of it.
thanks arvind

Hi Aravind,
see the below code how to declare field catalog and declare the heading and output..
Declare field catalog..
DATA : gc_selfield     TYPE slis_selfield,
       gt_fieldcat_drd TYPE slis_t_fieldcat_alv WITH HEADER LINE.
All the fields declared in gt_fieldcat_drd-fieldname are fields in the Internal table and output tbale..
*     Building field catalog
    gt_fieldcat_drd-seltext_m = 'STO / ICSTO'.
    gt_fieldcat_drd-fieldname = 'EBELN'.
    APPEND gt_fieldcat_drd.
    CLEAR : gt_fieldcat_drd.
    gt_fieldcat_drd-seltext_m = 'Item '.
    gt_fieldcat_drd-outputlen = 4.
    gt_fieldcat_drd-fieldname = 'EBELP'.
    APPEND gt_fieldcat_drd.
    CLEAR : gt_fieldcat_drd.
    gt_fieldcat_drd-seltext_m = 'Material'.
    gt_fieldcat_drd-outputlen = 18.
    gt_fieldcat_drd-fieldname = 'MATNR'.
    APPEND gt_fieldcat_drd.
    CLEAR : gt_fieldcat_drd.
    gt_fieldcat_drd-seltext_m = 'Material Desc'.
    gt_fieldcat_drd-outputlen = 30.
    gt_fieldcat_drd-fieldname = 'MAKTX'.
    APPEND gt_fieldcat_drd.
    CLEAR : gt_fieldcat_drd.
    gt_fieldcat_drd-seltext_m = 'RecPlnt'.
    gt_fieldcat_drd-outputlen = 4.
    gt_fieldcat_drd-fieldname = 'WERKS'.
    APPEND gt_fieldcat_drd.
    CLEAR : gt_fieldcat_drd.
    gt_fieldcat_drd-seltext_m = 'ShipPlnt'.
    gt_fieldcat_drd-outputlen = 4.
    gt_fieldcat_drd-fieldname = 'RESWK'.
    APPEND gt_fieldcat_drd.
    CLEAR : gt_fieldcat_drd.
    gt_fieldcat_drd-seltext_m = 'BatchNum'.
    gt_fieldcat_drd-fieldname = 'CHARG'.
    APPEND gt_fieldcat_drd.
    CLEAR : gt_fieldcat_drd.
*   Begin of PJ040809
    gt_fieldcat_drd-seltext_m = 'Vendor Lot'.
    gt_fieldcat_drd-outputlen = 30.                               "Field size declaration
    gt_fieldcat_drd-fieldname = 'VENLOT'.
    APPEND gt_fieldcat_drd.
    CLEAR : gt_fieldcat_drd.
*   End of PJ040809
    gt_fieldcat_drd-seltext_m = 'OpenQty'.
    gt_fieldcat_drd-fieldname = 'MENGE'.
    APPEND gt_fieldcat_drd.
    CLEAR : gt_fieldcat_drd.
if delivery date is not initial.                         "in the Outptu if delivery date is there the it will show column else it will not show
    gt_fieldcat_drd-seltext_m = 'Delvry Date'.            "Field Heading
    gt_fieldcat_drd-fieldname = 'EINDT'.
    APPEND gt_fieldcat_drd.
    CLEAR : gt_fieldcat_drd.
endif.
Then call the function moduel to dispaly..
and pass the field catalog..
Regards,
Prabhudas

Similar Messages

  • What is field catalog?

    Dear Gurus,
    what is field catalog in pricing?
    Thanks..

    hi,
    check the link: [Field catalog|http://help.sap.com/erp2005_ehp_04/helpdata/EN/c8/19882043b111d1896f0000e8322d00/frameset.htm]
    use help.sap.com your general queries...this is very usefull ..
    Regards
    Priyanka.P

  • What is Field catalog pls urgent

    Right now I am working on ALV, in that I am using REUSE_ALV_GRID_DISPLAY FM, but the parameters for this FM are an internal table name and a field catalog so i am confused that what field catalog is? Please help me out its very urgent. Thanks in advance.
    By Ashok V

    Hi,
    <b>Field catalog</b>
    The field catalog describes the internal data table fields. It is itself an internal table containing an entry for each column in the data table. The field catalog entry determines column output options.
    <b>Creating the field catalog</b>
    The field catalog can be constructed in various ways:
    <b>Manual</b>
    Each field catalog entry is explicitly coded into the field catalog by the ALV caller.
    Fields with DDIC link must have at least the following field catalog entries:
    FIELDCAT-FIELDNAME          " Internal output table field name
    FIELDCAT-REF_TABNAME          " DDIC reference structure name
    Fields with no DDIC link must have at least the following field catalog entries:
    FIELDCAT-FIELDNAME          " Internal output table field name
    FIELDCAT-DATATYPE          " Internal output table field data type
    FIELDCAT-OUTPUTLEN          " Column width
    and at least one of the four text fields FIELDCAT-SELTEXT_L, FIELDCAT-SELTEXT_M, FIELDCAT-SELTEXT_S, REPTEXT_DDIC.
    The field FIELDCAT-TABNAME in the field catalog of hierarchical-sequential lists must also contain the name of the internal output table, to assign columns uniquely to the header or item table. This field must not be filled manually in simple lists.
    <b>Automatic</b>
    A field catalog need not be passed to ALV under the following condition:
    the structure of the internal output table is identical to a DDIC structure or table.
    The name of the structure or table is passed to ALV instead of the field catalog.
    All columns in the structure are displayed.
    <b>Semi-automatic</b>
    This mode is a combination of automatic and manual:
    the automatically created field catalog can be modified by a manually created field catalog.
    If a structure name for an automatic field catalog and a field catalog are both passed, the system determines the field catalog information from them both:
    •     If the manually created and passed field catalog contains entries for fields which are not described by the DDIC structure, they are added to the field catalog created by the System.
    •     If the manually created and passed field catalog contains entries for fields which are also described by the DDIC structure, they overwrite the DDIC information.
    The system creates field catalogs automatically and semi-automatically from the DDIC reference structure passed to ALV. ALV calls the function module REUSE_ALV_FIELDCATALOG_MERGE which creates the field catalog and adjusts it with an explicit field catalog (semi-automatic mode). This function module can also be called directly by the application (before ALV). This makes the creation of the field catalog by the application flexible.
    Hope u understood.
    Kindly reward points if u find it useful.
    Thanks&Regards,
    Ruthra

  • AlV!  Field Catalog Merge!

    Hi!
       What is Field catalog merge in ALV

    Hi,
    YOU HAVE TWO WAYS TO BUILD A FIELD CATALOG
    1) FIRST METHOD
    data w_fieldcat type slis_fieldcat_alv.
    type-pools : slis.
    tables : sflight.
    data : i_fieldcat type slis_T_fieldcat_alv.
    data v_repid like sy-repid.
    data : begin of i_sflight occurs 0,
           carrid like sflight-carrid,
           connid like sflight-connid,
           fldate like sflight-fldate,
            end of i_sflight.
    w_fieldcat-tabname = 'I_SFLIGHT'.
    w_fieldcat-fieldname = 'CARRID'.
    w_fieldcat-outputlen = '10'.
    w_fieldcat-col_pos = '1'.
    w_fieldcat-row_pos = '1'.
    w_fieldcat-seltext_l = 'Carrie ID'.
    w_fieldcat-seltext_M = 'Carrie ID'.
    w_fieldcat-seltext_S = 'Carrie ID'.
    w_fieldcat-HOTSPOT = 'X'.
    append w_fieldcat to i_fieldcat.
    clear w_fieldcat.
    w_fieldcat-tabname = 'I_SFLIGHT'.
    w_fieldcat-fieldname = 'CONNID'.
    w_fieldcat-outputlen = '10'.
    w_fieldcat-col_pos = '1'.
    w_fieldcat-row_pos = '1'.
    w_fieldcat-seltext_l = 'CONNI ID'.
    w_fieldcat-seltext_M = 'CONNI ID'.
    w_fieldcat-seltext_S = 'CONNIID'.
    w_fieldcat-HOTSPOT = 'X'.
    append w_fieldcat to i_fieldcat.
    clear w_fieldcat.
    w_fieldcat-tabname = 'I_SFLIGHT'.
    w_fieldcat-fieldname = 'FLDATE'.
    w_fieldcat-outputlen = '10'.
    w_fieldcat-col_pos = '1'.
    w_fieldcat-row_pos = '1'.
    w_fieldcat-seltext_l = 'FLDATE.
    w_fieldcat-seltext_M = 'FLDATE'.
    w_fieldcat-seltext_S = 'FLDATE'.
    w_fieldcat-HOTSPOT = 'X'.
    append w_fieldcat to i_fieldcat.
    clear w_fieldcat.
    2)  SECOND METHOD
    data w_fieldcat type slis_fieldcat_alv.
    type-pools : slis.
    tables : sflight.
    data : i_fieldcat type slis_T_fieldcat_alv.
    data v_repid like sy-repid.
    data : begin of i_sflight occurs 0,
           carrid like sflight-carrid,
           connid like sflight-connid,
           fldate like sflight-fldate,
            end of i_sflight.
    call function 'REUSE_ALV_FIELDCATALOG_MERGE'
           exporting
                i_program_name     = v_repid
                i_internal_tabname = 'I_SFLIGHT'
                i_inclname         = v_repid
           changing
                ct_fieldcat        = I_fieldcatalog_TYPE.
    Reward points if helpful
    THANKS
    Venki

  • What is the procedure to create field catalog in alv

    what is the procedure to create field catalog in alv?
    with a example please.

    Hi,
    U can use the function module REUSE_ALV_FIELDCAT_MERGE...If we use a structure that is exactly
    identical to the datadictionary other wise u hav to hard code as in the following example.
    **ALV EXAMPLE
    *& Report  ZJE_ALV_EXAMPLE
    REPORT  zje_alv_example.
    TYPE-POOLS: slis.
    *type declaration for values from ekko
    TYPES: BEGIN OF i_ekko,
              ebeln LIKE ekko-ebeln,
              aedat LIKE ekko-aedat,
              bukrs LIKE ekko-bukrs,
              bsart LIKE ekko-bsart,
              lifnr LIKE ekko-lifnr,
           END OF i_ekko.
    *type declaration for values from ekpo
    TYPES: BEGIN OF i_ekpo,
              ebeln LIKE ekpo-ebeln,
              ebelp LIKE ekpo-ebelp,
              matnr LIKE ekpo-matnr,
              menge LIKE ekpo-menge,
              meins LIKE ekpo-meins,
              netpr LIKE ekpo-netpr,
           END OF i_ekpo.
    DATA: it_ekko TYPE STANDARD TABLE OF i_ekko INITIAL SIZE 0,
          wa_ekko TYPE i_ekko.
    DATA: it_ekpo TYPE STANDARD TABLE OF i_ekpo INITIAL SIZE 0,
          wa_ekpo TYPE i_ekpo .
    *variable for Report ID
    DATA: v_repid LIKE sy-repid .
    *declaration for fieldcatalog
    DATA: i_fieldcat TYPE slis_t_fieldcat_alv,
          wa_fieldcat TYPE slis_fieldcat_alv.
    DATA: it_listheader TYPE slis_t_listheader.
    declaration for events table where user comand or set PF status will
    be defined
    DATA: v_events TYPE slis_t_event,
          wa_event TYPE slis_alv_event.
    declartion for layout
    DATA: alv_layout TYPE slis_layout_alv.
    declaration for variant(type of display we want)
    DATA: i_variant TYPE disvariant,
          i_variant1 TYPE disvariant,
          i_save(1) TYPE c.
    *PARAMETERS : p_var TYPE disvariant-variant.
    *Title displayed when the alv list is displayed
    DATA: i_title_ekko TYPE lvc_title VALUE 'FIRST LIST DISPLAYED'.
    DATA: i_title_ekpo TYPE lvc_title VALUE 'SECONDRY LIST DISPLAYED'.
    INITIALIZATION.
      v_repid = sy-repid.
      PERFORM build_fieldcatlog.
      PERFORM event_call.
      PERFORM populate_event.
    START-OF-SELECTION.
      PERFORM data_retrieval.
      PERFORM build_listheader USING it_listheader.
      PERFORM display_alv_report.
    *& Form BUILD_FIELDCATLOG
    Fieldcatalog has all the field details from ekko
    FORM build_fieldcatlog.
      wa_fieldcat-tabname = 'IT_EKKO'.
      wa_fieldcat-fieldname = 'EBELN'.
      wa_fieldcat-seltext_m = 'PO NO.'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-tabname = 'IT_EKKO'.
      wa_fieldcat-fieldname = 'AEDAT'.
      wa_fieldcat-seltext_m = 'DATE.'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-tabname = 'IT_EKKO'.
      wa_fieldcat-fieldname = 'BUKRS'.
      wa_fieldcat-seltext_m = 'COMPANY CODE'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-tabname = 'IT_EKKO'.
      wa_fieldcat-fieldname = 'BUKRS'.
      wa_fieldcat-seltext_m = 'DOCMENT TYPE'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-tabname = 'IT_EKKO'.
      wa_fieldcat-fieldname = 'LIFNR'.
      wa_fieldcat-no_out = 'X'.
      wa_fieldcat-seltext_m = 'VENDOR CODE'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    ENDFORM. "BUILD_FIELDCATLOG
    *& Form EVENT_CALL
    we get all events - TOP OF PAGE or USER COMMAND in table v_events
    FORM event_call.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
      EXPORTING
      i_list_type = 0
      IMPORTING
      et_events = v_events
    EXCEPTIONS
    LIST_TYPE_WRONG = 1
    OTHERS = 2
      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. "EVENT_CALL
    *& Form POPULATE_EVENT
    Events populated for TOP OF PAGE & USER COMAND
    FORM populate_event.
      READ TABLE v_events INTO wa_event WITH KEY name = 'TOP_OF_PAGE'.
      IF sy-subrc EQ 0.
        wa_event-form = 'TOP_OF_PAGE'.
        MODIFY v_events FROM wa_event TRANSPORTING form WHERE name =
        wa_event-form.
      ENDIF.
      READ TABLE v_events INTO wa_event WITH KEY name = 'USER_COMMAND'.
      IF sy-subrc EQ 0.
        wa_event-form = 'USER_COMMAND'.
        MODIFY v_events FROM wa_event TRANSPORTING form WHERE name =
        wa_event-name.
      ENDIF.
    ENDFORM. "POPULATE_EVENT
    *& Form data_retrieval
    retreiving values from the database table ekko
    FORM data_retrieval.
      SELECT ebeln aedat bukrs bsart lifnr
             FROM ekko
             INTO TABLE it_ekko.
    ENDFORM. "data_retrieval
    *& Form bUild_listheader
    text
    -->I_LISTHEADEtext
    FORM build_listheader USING i_listheader TYPE slis_t_listheader.
      DATA hline TYPE slis_listheader.
      hline-info = 'this is my first alv pgm'.
      hline-typ = 'H'.
    ENDFORM. "build_listheader
    *& Form display_alv_report
    text
    FORM display_alv_report.
      v_repid = sy-repid.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
      i_callback_program = v_repid
    I_CALLBACK_PF_STATUS_SET = ' '
      i_callback_user_command = 'USER_COMMAND'
      i_callback_top_of_page = 'TOP_OF_PAGE'
      i_grid_title = i_title_ekko
    I_GRID_SETTINGS =
    IS_LAYOUT = ALV_LAYOUT
      it_fieldcat = i_fieldcat[]
    IT_EXCLUDING =
    IT_SPECIAL_GROUPS =
    IT_SORT =
    IT_FILTER =
    IS_SEL_HIDE =
    i_default = 'ZLAY1'
      i_save = 'A'
    is_variant = i_variant
      it_events = v_events
      TABLES
      t_outtab = it_ekko
    EXCEPTIONS
    PROGRAM_ERROR = 1
    OTHERS = 2
      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. "display_alv_report
    *& Form TOP_OF_PAGE
    text
    FORM top_of_page.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
      EXPORTING
      it_list_commentary = it_listheader
    i_logo =
    I_END_OF_LIST_GRID =
    ENDFORM. "TOP_OF_PAGE
    *& Form USER_COMMAND
    text
    -->R_UCOMM text
    -->, text
    -->RS_SLEFIELDtext
    FORM user_command USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield.
      CASE r_ucomm.
        WHEN '&IC1'.
          READ TABLE it_ekko INTO wa_ekko INDEX rs_selfield-tabindex.
          PERFORM build_fieldcatlog_ekpo.
          PERFORM event_call_ekpo.
          PERFORM populate_event_ekpo.
          PERFORM data_retrieval_ekpo.
          PERFORM build_listheader_ekpo USING it_listheader.
          PERFORM display_alv_ekpo.
      ENDCASE.
    ENDFORM. "user_command
    *& Form BUILD_FIELDCATLOG_EKPO
    text
    FORM build_fieldcatlog_ekpo.
      wa_fieldcat-tabname = 'IT_EKPO'.
      wa_fieldcat-fieldname = 'EBELN'.
      wa_fieldcat-seltext_m = 'PO NO.'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-tabname = 'IT_EKPO'.
      wa_fieldcat-fieldname = 'EBELP'.
      wa_fieldcat-seltext_m = 'LINE NO'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-tabname = 'I_EKPO'.
      wa_fieldcat-fieldname = 'MATNR'.
      wa_fieldcat-seltext_m = 'MATERIAL NO.'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-tabname = 'I_EKPO'.
      wa_fieldcat-fieldname = 'MENGE'.
      wa_fieldcat-seltext_m = 'QUANTITY'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-tabname = 'I_EKPO'.
      wa_fieldcat-fieldname = 'MEINS'.
      wa_fieldcat-seltext_m = 'UOM'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-tabname = 'I_EKPO'.
      wa_fieldcat-fieldname = 'NETPR'.
      wa_fieldcat-seltext_m = 'PRICE'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    ENDFORM. "BUILD_FIELDCATLOG_EKPO
    *& Form event_call_ekpo
    we get all events - TOP OF PAGE or USER COMMAND in table v_events
    FORM event_call_ekpo.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
      EXPORTING
      i_list_type = 0
      IMPORTING
      et_events = v_events
    EXCEPTIONS
    LIST_TYPE_WRONG = 1
    OTHERS = 2
      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. "event_call_ekpo
    *& Form POPULATE_EVENT
    Events populated for TOP OF PAGE & USER COMAND
    FORM populate_event_ekpo.
      READ TABLE v_events INTO wa_event WITH KEY name = 'TOP_OF_PAGE'.
      IF sy-subrc EQ 0.
        wa_event-form = 'TOP_OF_PAGE'.
        MODIFY v_events FROM wa_event TRANSPORTING form WHERE name =
        wa_event-form.
      ENDIF.
    ENDFORM. "POPULATE_EVENT
    *& Form TOP_OF_PAGE
    text
    FORM f_top_of_page.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
      EXPORTING
      it_list_commentary = it_listheader
    i_logo =
    I_END_OF_LIST_GRID =
    ENDFORM. "TOP_OF_PAGE
    *& Form USER_COMMAND
    text
    -->R_UCOMM text
    -->, text
    -->RS_SLEFIELDtext
    *retreiving values from the database table ekko
    FORM data_retrieval_ekpo.
      SELECT ebeln ebelp matnr menge meins netpr
             FROM ekpo
             INTO TABLE it_ekpo.
    ENDFORM.                    "DATA_RETRIEVAL_EKPO
    *&      Form  BUILD_LISTHEADER_EKPO
          text
         -->I_LISTHEADER  text
    FORM build_listheader_ekpo USING i_listheader TYPE slis_t_listheader.
      DATA: hline1 TYPE slis_listheader.
      hline1-typ = 'H'.
      hline1-info = 'CHECKING PGM'.
    ENDFORM.                    "BUILD_LISTHEADER_EKPO
    *&      Form  DISPLAY_ALV_EKPO
          text
    FORM display_alv_ekpo.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
    I_INTERFACE_CHECK = ' '
    I_BYPASSING_BUFFER = ' '
    I_BUFFER_ACTIVE = ' '
      i_callback_program = v_repid
    I_CALLBACK_PF_STATUS_SET = ' '
    I_CALLBACK_USER_COMMAND = 'F_USER_COMMAND'
      i_callback_top_of_page = 'TOP_OF_PAGE'
    I_CALLBACK_HTML_TOP_OF_PAGE = ' '
    I_CALLBACK_HTML_END_OF_LIST = ' '
    I_STRUCTURE_NAME =
    I_BACKGROUND_ID = ' '
      i_grid_title = i_title_ekpo
    I_GRID_SETTINGS =
    IS_LAYOUT =
      it_fieldcat = i_fieldcat[]
    IT_EXCLUDING =
    IT_SPECIAL_GROUPS =
    IT_SORT =
    IT_FILTER =
    IS_SEL_HIDE =
    I_DEFAULT =
      i_save = 'A'
    IS_VARIANT =
      it_events = v_events
      TABLES
      t_outtab = it_ekpo
      EXCEPTIONS
      program_error = 1
      OTHERS = 2
      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.                    "DISPLAY_ALV_EKPO
    Reward if Helpful

  • What is the field to be used in the field catalog

    hi
    what is the field to be used in the field catalog of an ALV report to hide the relevant column inthe list

    hi,
    if you want to hide a particular column dont specify it in output list. it wont be displayed then.
    or if you want to display that column when particular radio button is selected then use:
    if radi1 = 'x'.
    Order Number
      wa_fldcat-fieldname     = 'AUFNR'.
      wa_fldcat-col_pos       =  l_pos.
      wa_fldcat-scrtext_s = 'Order'.
      wa_fldcat-scrtext_m = 'Order'.
      wa_fldcat-scrtext_l = 'Order'.
      APPEND wa_fldcat TO it_fldcat.
      CLEAR wa_fldcat.
      l_pos = l_pos + 1.
    endif.

  • What does the field Inconsistent mean for ABC Analysis for Cycle Counting report

    What does column "Inconsistent" mean for report ABC Analysis for Cycle Counting (T-code MIBC)?  The reason I'm asking is because I see TotalStock values greater than 0, but the Accounting 1 view for Material Master and MMBE both show zero stock.  I do not understand why TotalStock in the report does not show zero.  Can anyone explain how this can happen?
    Note: the report is run for consumption/usage date range.
    Thank you,
    Doug

    Hi,
       MBEW table and MMBE transaction will show the current stock. When you run MIBC report for consumption, the system considers the consumption for the date range given (from MVER table), which may not be equal to the current stock. Refer the KBA:  1817237 - Stock quantities and stock values in MIBC  which explains the system design.
    Regards,
    AKPT

  • Use of field TEXT_FIELDNAME in Field Catalog for ALV

    Hi Experts,
    Could any one pls  tell me the relevance (purpose) of the field TEXT_FIELDNAME in Field catalog for an ALV ?
    How is it different from the fields such as seltext_l, seltext_m, seltext_s ? When is it necessary to assign a value to this field ?
    Thanks & Regards
    Abhijith

    Hi Abhijit
    Refer to the following
    <b>TEXT_FIELDNAME :</b>     Field name of internal table field. You can use this field to define a reference to a field that is used as the description for the current field. If a subtotal is calculated for the current field, the ALV Grid Control displays the descriptions in the field assigned.
    Example: Your output table contains one column for material numbers and one column for the description of what these numbers mean (such as clockwork). If you calculate subtotals for the material numbers, only these numbers are usually displayed as the subtotals text. Based on the link to TXT_FIELD , you can refer to the corresponding column with the material description. This description is then used as the subtotals text.
    <b>SELTEXT_L :</b>      Long key word (40 chars long). Determines the text to be used in the column selection for the column. A value should be assigned to this field if it does not have a Data Dictionary reference.
    <b>SELTEXT_M   :</b>        Medium key word (20 chars long). Determines the text to be used in the column selection for the column. A value should be assigned to this field if it does not have a Data Dictionary reference.
    <b>SELTEXT_S :</b>     Short key word (10 chars long). Determines the text to be used in the column selection for the column. A value should be assigned to this field if it does not have a Data Dictionary reference.
    Award points if found useful.
    Regards
    Inder

  • Deleting Field from CRM Field Catalog

    I added a custom field to Item level of the CRM Field Catalog by mistake. Now I want to delete it and then add it to the header structure.
    When I try to delete the field, its giving error message "Condition tables already exist for field 2". I understand the field is already being used as we did do the download.
    How do I tackle this scenario..How to I delete this field?
    Ravi

    Easwar - Thanks for your suggestion.
    I deleted the condition tables(which was using the field) with the help of basis people as I was not able to delete.
    What do you mean by conditions? You want me to delete condition type? Can you give me more information.
    What i tried in the mean time was, I asked ther R/3 pricing guy to remove the access sequence using this field. Then I did a download from R/3to CRM...So with this step and the deletion of the condition table, it didn;t solve my problem. It still gave me the same error when I tried to delete the field.
    Appreciate your help.
    Ravi

  • Field catalog issue using REUSE_ALV_FIELDCATALOG_MERGE

    Hello experts,
    I am using FM REUSE_ALV_FIELDCATALOG_MERGE and the field catalog is created fron the program.
    The field catalog finds the date field from the program but my internal table has been changed to make the date output YYYY/MM/DD.
    When I input the internal table in FM REUSE_ALV_GRID_DISPLAY the output displays the date as DD/MM/YYYY which is not what I want.
    How can I get FM REAUSE_ALV_GRID_DISPLAY to output the date in the format YYYY/MM/DD which is in my input table.
    I have spent a lot of time researching SDN on this but cannot find a similar solution however I did find some examples of changing the field catalogue. Can anybody suggest this is the way to go and if I would use the edit mask field in the field catalog or is there a better way.
    Thanks for any suggestions

    I think you can use a field exit for this.
    This means creating a field element and a domain in the data dictionary, the domain will need to have a conversion exit set by putting an entry in the 'Convers. Routine' field, eg MYDAT.
    You will need to create two function mdules as below:
    eg, CONVERSION_EXIT_MYDAT_OUTPUT
    and CONVERSION_EXIT_MYDAT_INPUT
    Your internal table will now need to refer to the data element you have created instead of the one you are currently using. ALV should automatically pick up the conversion exits and show the ouitput as you desire.
    FUNCTION CONVERSION_EXIT_MYDAT_OUTPUT.
    ""Local Interface:
    *"  IMPORTING
    *"     REFERENCE(INPUT) TYPE  DATS
    *"  EXPORTING
    *"     REFERENCE(OUTPUT)
    concatenate input(4) '/' input4(2) '/' input6
    into output.
    ENDFUNCTION.
    FUNCTION CONVERSION_EXIT_MYDAT_INPUT.
    ""Local Interface:
    *"  IMPORTING
    *"     REFERENCE(INPUT)
    *"  EXPORTING
    *"     REFERENCE(OUTPUT) TYPE  DATS
    data l_string type string.
    l_string = input.
    replace all occurrences of '/' in l_string with ' '.
    output = l_string.
    ENDFUNCTION.

  • Error in updating ALV field catalog in selection

    Dear all,
    I'm trying to use the standard transaction /SAPAPO/TSKEYFMAIN in order to check the TS values.
    After filling the selection variant, the system shows the following error:
    'Error in updating ALV field catalog in selection'
    Could you please provide me with further details about the error? What could be the possible solution to avoid it?
    Many thanks,
    SM

    Hi Marius,
    thanks for your answer.
    I would like to use the /SAPAPO/TSKEYFMAIN transaction to check massively the values in the time series KFs and not just the consistency of them.
    So do you know any other transaction to do it or do you have an idea about the error of /SAPAPO/TSKEYFMAIN?
    Thanks for your help!
    SM

  • How to display the fields in ALV Output without using Field catalog?

    How to display the fields in ALV Output without using Field catalog?
    Could you pls tell me the coding?
    Akshitha.

    Hi,
    u mean without building field catalog. is it? I that case, we can use the FM REUSE_ALV_FIELDCATALOG_MERGE.
    data: itab type table of mara.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    i_program_name = sy-repid
    i_structure_name = itab
    CHANGING
    ct_fieldcat = lt_fieldcat[]
    EXCEPTIONS
    inconsistent_interface = 1
    program_error = 2
    OTHERS = 3.
    *Pass that field catalog into the fillowing FM
    call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
                i_grid_title            = 'REPORTING'
                is_layout              = gt_layout
                it_fieldcat             = lt_fieldcat[]
           tables
                t_outtab                = itab.

  • Problem with field catalog after upgrade from 4.0

    Hi experts,
    We have recently upgraded from CRM 4.0 to 5.2.
    I am now experiencing a problem with generation of a transport request for field catalog in transaction CTFC_CRM. I can generate the field catalog without errors.
    The problem is that when I want to create the transport request in our dev system a pop up appears saying "Create object directory entry". Here I have to enter a package for some of the fields in the field catalog. The special thing is that the fields are not custom fields but rather SAP standard fields (using standard data elements). For example field BZIRK.
    These are SAP standard fields but they are not standard in the field catalog. In 4.0 I did not get this prompt but this has apparently changed from 5.0.
    What do I do? I guess if I need to create the objects I will need to use an SAP standard package. But how do I know what package to use?
    Any comments or suggestions will be highly appreciated.
    Best regards,
    Anders

    Hi,
    If you did just install database, then you use Embed PL/SQL Gateway.
    See this guide
    Upgrading Oracle Application Express in Oracle Database Express Edition
    I think you have not run step 5 script apxldimg.sql
    Regards,
    Jari

  • Field Catalog in Free Goods Setup

    Hi Gurus,
    We are trying to set up Free Goods in CRM standalone. No condition type is replicated from R/3 and we have to set up everything from scratch in CRM. Under the IMG, Free goods, the first menu option is 'Field Catalog'. Could you please advise what this is used for? Can we still set up 'buy A get B for free' without setting anything in this option?
    many thanks,
    Leon

    hi
    field catlog help to add conditon to the condition table which is used for selecting   the conditions for Free Goods hence field cat is must as it help to determine free goods thru conditions
    do let me know if it suffice ur requirement

  • New field in Pricing field catalog for Item category

    Dear SD colleagues,
    We have scenario of maintaining pricing for Lower level BOM component.
    Like:
    Base price - 100/-
    When BOM explodes - 95/-.
    For this, I have taken ABAPer help and inseted a Z field for Item category in Pricing field catalog.
    Then, a new condition table is been generated using ZPSTYV and included in Access sequence. For Base price condition type, we have maintained record in combination with ZBOM-Item category for lower level BOM item.
    A new pricing routine is created in VOFM for Condition value and same is been assigned to Condition type as Alternative calculation type in pricin gprocedure contro data.
    Whe I create Sales order, value based on ZBOM is being pciked up by system.
    request you to please help in this regard.
    Thanks & regards,
    Praveen.

    Hi Marino,
    I have a requirement to determine the pricing based on "Discount Code", which is not a standard SAP field and i would like to have this as a custom field and linked to  customer in custom table.
    Question: When i add a new custom field and custom table for pricing, what are all the things i need to do in terms of ABAP.
    As per my knowledge, below are the steps...Please check and confirm my understanding is correct and let me know if i miss anything.
    1. Create a new field
    2. Create Custome Table
    3. Add field to Field Catlogue KOMG
    4. Add Field to KOMP (as this is item field)
    5. Add code in userexit USEREXIT_PRICING_PREPARE_TKOMP to make the data avaialable - Sales Order
    5. Add code in userexit USEREXIT_PRICING_PREPARE_TKOMP to make the data avaialable - Billing
    Thanks.

Maybe you are looking for