Field catalog issue

Hi ppl
       I am building a field catalog for standard table 'API_VALI' , why am I not getting field catalog in xfield?
TYPE-POOLS: slis.
DATA: xfield      TYPE slis_t_fieldcat_alv,
Code:
  CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
      i_program_name         = sy-repid
      i_internal_tabname      = 'API_VALI'
    CHANGING
      ct_fieldcat                   = xfield
    EXCEPTIONS
      inconsistent_interface = 1
      program_error          = 2
      OTHERS                 = 3.

As ABAP_TECHINCAL has written, for standard tables you don't have to send the parameter i_internal_tabname . Instead you have to send the table name in the parameter i_structure_name.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = sy-repid
i_structure_name = 'API_VALI'
CHANGING
ct_fieldcat = xfield
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
See the sample program given in the link below. It shows, how to create Field Catalog for INTERNAL TABLES
http://www.erpgenie.com/abap/code/abap28.htm
Also check the link
field catalog generation using merge function

Similar Messages

  • 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.

  • Field catalog issue in Data archiving

    Hi Experts,
    We are facing issue in SAP CRM Data Archiving info structure. I have created the fieldcatlog for the service Ticket( CRM_SERORD archive object) and Act On ( CRM_ACT_ON archive Object).
    in our scenario, multiple Business partner(Consumer, orgnisational and employee) are attached to each Service ticket, in my ZARxx tables are storing the one entry means one service ticket and one Business partner.
    My requirment is it should show all the business partners for each service ticket.
    Could you please help me on this.
    Regards,
    Srini

    Hi Srini,
    We have the same problem for our project. Did you find a solution for this problem ?
    Best regards,
    Nevets

  • Issue while generating Field catalog using LVC_VARIANT_SELECT

    Hello Folks,
      When i passed the default field catalog to the function module LVC_VARIANT_SELECT... for which the field name that is passed is standard field and the table name i was passing is Internal table ( Which is mandatory for my Req). As i am not passing the table name that exists at the DB level to the default field catalog .. this function module LVC_VARIANT_SELECT is returning all the field types as CHAR ( Irrespective of the field). This is causing me a problem in calculating totals ( standard functionality - throwing me message 'Column cannot be calculated' ) in my ALV_tree.
      I have to use the Function Module LVC_VARIANT_SELECT ( Since i have a variant logic associated) and the Internal table to generate the field catalog .and i want  to achieve the functionality of total,Avg ,,,,etc.. Any idea is appreciated.

    Got the Solution ... Passes Ref-table and Ref-field ... it gives totals for currency and quantity fields

  • URGENT ISSUE ! PLS SEE IT ( related to cureency field in field catalog)

    Hi  Gurus,
    I have populated the field catalog inf like this.
        is_FIELDCATALOG-FIELDNAME   = 'W_EXT_AMOUNT'.
        is_FIELDCATALOG-SELTEXT_M   = 'Extended Amount'.
        is_FIELDCATALOG-COL_POS     = 4.
        IS_FIELDCATALOG-OUTPUTLEN   = 16.
        is_FIELDCATALOG-REF_FIELDNAME     = 'WAERS'.
        is_FIELDCATALOG-REF_TABNAME     = 'T001'.
       IS_FIELDCATALOG-CFIELDNAME  = 'DMBTR'.
        is_fieldcatalog-ctabname = 'BSIS'.
        APPEND IS_FIELDCATALOG TO IT_FIELDCATALOG.
       CLEAR  IS_FIELDCATALOG.
    Data : W_EXT_AMOUNT type DMBTR.
    I calculated it using
    W_EXT_AMOUNT = IS_ERROR-AMOUNT * P_NETAMT.( amount is of type                                                                               
    DMBTR)
    in the out put Amount is displayed with value 0,00
                        W_EXT_AMOUNT displayed as blank
    when i print it for spool generation, its giving following dump
    DUMP analysis.
    What happened?
    Error in the ABAP Application Program
    The current ABAP program "SAPLKKBL" had to be terminated because
    come across a statement that unfortunately cannot be executed.
    You attempted to access an unassigned field symbol
    (data segment 95).
    This error may occur if
    - You address a typed field symbol before it has been set with
    ASSIGN
    - You address a field symbol that pointed to the line of an
    internal table that was deleted
    - You address a field symbol that was previously reset using
    UNASSIGN or that pointed to a local field that no
    longer exists
    - You address a global function interface, although the
    respective function module is not active - that is, is
    not in the list of active calls. The list of active calls
    can be taken from this short dump.
    SourceCde
    2785 case gs_out-field_colcount.
    2786 when 001.
    2787 if gs_out_flags-slave ne 'X'.
    2788 assign <fm01> to <field>.
    2789 gs_fc = gs_mfc01.
    2790 else.
    2791 assign <fs01> to <field>.
    2792 gs_fc = gs_sfc01.
    2793 endif.
    2794 when 002.
    2795 if gs_out_flags-slave ne 'X'.
    2796 assign <fm02> to <field>.
    2797 gs_fc = gs_mfc02.
    2798 else.
    2799 assign <fs02> to <field>.
    2800 gs_fc = gs_sfc02.
    2801 endif.
    2802 when 003.
    2803 if gs_out_flags-slave ne 'X'.
    2804 assign <fm03> to <field>.
    2805 gs_fc = gs_mfc03.
    2806 else.
    2807 assign <fs03> to <field>.
    2808 gs_fc = gs_sfc03.
    2809 endif.
    2810 when 004.
    2811 if gs_out_flags-slave ne 'X'.
    >>>> assign <fm04> to <field>.2813 gs_fc = gs_mfc04.
    2814 else.
    2815 assign <fs04> to <field>.
    2816 gs_fc = gs_sfc04.
    2817 endif.
    Note : problem may be with field catalog population since if i remove W_EXT_AMOUNT it is working fine, not giving any dump.
    Pls see.
    Thanks & Regards
    Srinivas Rao

    Hi see this code and try again.
    REPORT  zn_alv_complex                          .
    TABLES : vbrk .
    TYPE-POOLS : slis .
    CONSTANTS : gc_top_of_page TYPE slis_formname VALUE 'TOP_OF_PAGE'.
    TYPES : BEGIN OF ty_vbrk ,
                 vbeln TYPE vbrk-vbeln ,
                 vkorg TYPE vbrk-vkorg,
                 vtweg TYPE vbrk-vtweg,
                 kunrg TYPE vbrk-kunrg,
                 END OF ty_vbrk,
            BEGIN OF ty_vbrp,
              vbeln TYPE vbrp-vbeln,
              posnr TYPE vbrp-posnr,
              matnr TYPE vbrp-matnr,
              netwr TYPE vbrp-netwr,
              END OF ty_vbrp,
           BEGIN OF ty_final,
              vbeln TYPE vbrk-vbeln ,
              posnr TYPE vbrp-posnr,
              matnr TYPE vbrp-matnr,
              netwr TYPE vbrp-netwr,
                 vkorg TYPE vbrk-vkorg,
                 vtweg TYPE vbrk-vtweg,
                 kunrg TYPE vbrk-kunrg,
                 END OF ty_final .
    DATA : it_vbrk TYPE TABLE OF ty_vbrk,
           it_vbrp TYPE TABLE OF ty_vbrp,
           it_final TYPE TABLE OF ty_final ,
           wa_vbrk TYPE ty_vbrk,
           wa_vbrp TYPE ty_vbrp,
           wa_final TYPE ty_final ,
           git_event TYPE slis_t_event,
           git_layout TYPE slis_layout_alv,
           git_fieldcat TYPE slis_t_fieldcat_alv,
           gwa_fieldcat TYPE slis_fieldcat_alv.
    SELECT-OPTIONS : s_vbeln FOR vbrk-vbeln,
                     s_vkorg FOR vbrk-vkorg,
                     s_vtweg FOR vbrk-vtweg.
    START-OF-SELECTION .
      SELECT vbeln vkorg vtweg kunrg
        FROM vbrk
        INTO TABLE it_vbrk
       WHERE vbeln IN s_vbeln
         AND vkorg IN s_vkorg
         AND vtweg IN s_vtweg .
      SELECT vbeln posnr matnr netwr
        FROM vbrp
        INTO TABLE it_vbrp
         FOR ALL ENTRIES IN it_vbrk
       WHERE vbeln = it_vbrk-vbeln .
      LOOP AT it_vbrp INTO wa_vbrp .
        READ TABLE it_vbrk INTO wa_vbrk WITH KEY vbeln = wa_vbrp-vbeln .
        wa_final-vbeln = wa_vbrk-vbeln.
        wa_final-posnr = wa_vbrp-posnr.
        wa_final-netwr = wa_vbrp-netwr.
        wa_final-matnr = wa_vbrp-matnr.
        wa_final-vkorg = wa_vbrk-vkorg.
        wa_final-vtweg = wa_vbrk-vkorg.
        wa_final-kunrg = wa_vbrk-kunrg.
        APPEND wa_final TO it_final.
        CLEAR : wa_vbrk , wa_vbrp , wa_final .
      ENDLOOP .
      PERFORM sub_fieldcatalog.
      PERFORM sub_layout_init CHANGING git_layout.
      PERFORM sub_build_event USING git_event[] .
      PERFORM sub_alv_display.
    *&      Form  SUB_FIELDCATALOG
          text
    FORM sub_fieldcatalog.
      REFRESH git_fieldcat.
      gwa_fieldcat-col_pos = 0.
      gwa_fieldcat-fieldname = 'VBELN'.
      gwa_fieldcat-tabname = 'IT_FINAL'.
      gwa_fieldcat-outputlen = 14.
      gwa_fieldcat-seltext_l = 'Billing Doc.' .
      gwa_fieldcat-seltext_m = 'Billing Doc.' .
      gwa_fieldcat-seltext_s = 'Billing Doc.' .
      APPEND gwa_fieldcat TO git_fieldcat .
      gwa_fieldcat-col_pos = 1.
      gwa_fieldcat-fieldname = 'POSNR'.
      gwa_fieldcat-tabname = 'IT_FINAL'.
      gwa_fieldcat-outputlen = 5.
      gwa_fieldcat-seltext_l = 'Item.' .
      gwa_fieldcat-seltext_m = 'Item' .
      gwa_fieldcat-seltext_s = 'Item' .
      APPEND gwa_fieldcat TO git_fieldcat .
      gwa_fieldcat-col_pos = 2.
      gwa_fieldcat-fieldname = 'VKORG'.
      gwa_fieldcat-tabname = 'IT_FINAL'.
      gwa_fieldcat-outputlen = 14.
      gwa_fieldcat-seltext_l = 'Sales Org' .
      gwa_fieldcat-seltext_m = 'Sales Org' .
      gwa_fieldcat-seltext_s = 'Sales Org' .
      APPEND gwa_fieldcat TO git_fieldcat .
      gwa_fieldcat-col_pos = 3.
      gwa_fieldcat-fieldname = 'VTWEG'.
      gwa_fieldcat-tabname = 'IT_FINAL'.
      gwa_fieldcat-outputlen = 14.
      gwa_fieldcat-seltext_l = 'Dist. Ch.' .
      gwa_fieldcat-seltext_m = 'Dist. Ch.' .
      gwa_fieldcat-seltext_s = 'Dist. Ch.' .
      APPEND gwa_fieldcat TO git_fieldcat .
      gwa_fieldcat-col_pos = 4.
      gwa_fieldcat-fieldname = 'MATNR'.
      gwa_fieldcat-tabname = 'IT_FINAL'.
      gwa_fieldcat-outputlen = 18.
      gwa_fieldcat-seltext_l = 'Material' .
      gwa_fieldcat-seltext_m = 'Material' .
      gwa_fieldcat-seltext_s = 'Material' .
      APPEND gwa_fieldcat TO git_fieldcat .
      gwa_fieldcat-col_pos = 5.
      gwa_fieldcat-fieldname = 'NETWR'.
      gwa_fieldcat-tabname = 'IT_FINAL'.
      gwa_fieldcat-outputlen = 14.
      gwa_fieldcat-seltext_l = 'Price' .
      gwa_fieldcat-seltext_m = 'Price' .
      gwa_fieldcat-seltext_s = 'Price' .
      gwa_fieldcat-do_sum    = 'X' .
      APPEND gwa_fieldcat TO git_fieldcat .
    ENDFORM .                    "SUB_FIELDCATALOG
    *&      Form  sub_alv_display
          text
    FORM sub_alv_display .
      DATA : gv_repid TYPE sy-repid .
      gv_repid = sy-repid.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program      = gv_repid
          i_callback_user_command = 'USER-COMMAND'
          is_layout               = git_layout
          it_fieldcat             = git_fieldcat
          i_save                  = 'A'
          it_events               = git_event[]
        TABLES
          t_outtab                = it_final
        EXCEPTIONS
          program_error           = 1
          OTHERS                  = 2.
    ENDFORM .                    "sub_alv_display
    *&      Form
          text
    FORM sub_layout_init CHANGING xyt_layout TYPE slis_layout_alv.
      CLEAR xyt_layout .
      xyt_layout-colwidth_optimize = 'X'.
      xyt_layout-zebra = 'X' .
    ENDFORM.                    "SUB_LAYOUT_INIT
    *&      Form  SUB_BUILD_EVENT
          text
         -->XT_EVENT   text
    FORM sub_build_event USING xt_event TYPE slis_t_event .
      DATA : lwa_event TYPE slis_alv_event .
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type     = 0
        IMPORTING
          et_events       = xt_event
        EXCEPTIONS
          list_type_wrong = 1
          OTHERS          = 2.
      READ TABLE xt_event WITH KEY name = slis_ev_top_of_page INTO
    lwa_event.
      lwa_event-form = gc_top_of_page.
      IF sy-subrc EQ 0 .
        MODIFY xt_event FROM lwa_event TRANSPORTING form WHERE name =
        gc_top_of_page.
      ENDIF.
    ENDFORM.                    "SUB_BUILD_EVENT
    *&      Form  TOP_OF_PAGE
          text
    FORM top_of_page .
      CONSTANTS : lc_s TYPE char01 VALUE 'S'.
      DATA : lv_ecfld(250) TYPE c ,
             lwa_header TYPE slis_listheader ,
             lv_date(10) TYPE c,
             lv_user(10) TYPE c,
             lit_alv_header TYPE slis_t_listheader .
      CLEAR : lv_user ,  lv_date .
      CLEAR : lwa_header .
      lwa_header-typ = 'S'.
      lv_ecfld = 'User'.
      lwa_header-key = lv_ecfld .
      lwa_header-info = sy-uname.
      APPEND lwa_header TO lit_alv_header .
      CLEAR : lwa_header .
      lwa_header-typ = 'S'.
      lv_ecfld = 'Date'.
      lwa_header-key = lv_ecfld .
      lwa_header-info = sy-datum .
      APPEND lwa_header TO lit_alv_header .
      CLEAR : lwa_header .
      lwa_header-typ = 'S'.
      APPEND lwa_header TO lit_alv_header .
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = lit_alv_header.
    ENDFORM .                    "TOP_OF_PAGE
    Regards,
    Nihar Swain .

  • Error ,Field catalog not found while doing billing with DP90

    Dear Guru's
    while doing billing with DP90 transaction code.i have given service order no xxxx and execute.Then i received the below error
    Field catalog not found , Message no. 0K530.Kindly help me in solving the issue.
    Thank u
    S Babu

    hi naga suribabu,
    I am also facing same issue. can you please help, where to  check the configuration for this issue

  • Change field catalog in VT05 - Selective logs for collective run

    Hi,
    Through transaction VT05, we can check shipment log which having following ALV field Catalog.
    Collective run
    Date
    Time
    User
    Transaction code
    Operating mode
    Problem class
    Expiry date
    Keep until expiry
    Processing status
    But if we want check Delivery number for particular Collective Run then we have to click that collective run and then can check for the Delivery number.
    Actually our requirement is to add one more column in above ALV field Catalog of Delivery Number.
    I have searched for Enhancements and BADIs, but I did not found suitable one for VT05 log.
    Can any one help me out for above issue for adding one more column in above ALV field Catalog of Delivery Number (along with above mentioned ALV field catalog in output) of VT05 log report.

    Thanks Nabheet once again...
    I would like to show you the coding what I have done in implemented implicit Enhancements.
    Following code is written under implemented implicit Enhancements - ZSHIPMENT_DETAIL
    Properties of Enhancement Implementation           ZSHIPMENT_DETAIL                          (Active)
    Enhancem. Technique:  Source Code Plug-In
    Description           Showing SHIPMENT Detail in output
    Package               $TMP
    Original Language     EN
    Created               MNIKAM       02/09/2012
    Last Changed          MNIKAM       02/19/2012
    Superordinate Enhancement Implementation     ZSHIPMENT
    Enhanced Development Object:   V54X
    SAPLV54X          Static Enhancement Point/Section     \PR:SAPLV54X\FO:LOG_HEADER_DISPLAY\SE:BEGIN\EI
    ENHANCEMENT 1  ZSHIPMENT_DETAIL.    "active version
    TYPE-POOLS: szal.
      DATA: g_l_header_extr     TYPE header_extr.
      FIELD-SYMBOLS: <f_g_l_header_extr>  TYPE header_extr.
      DATA: g_l_log_link        TYPE log_link.
      FIELD-SYMBOLS:  <f_g_l_log_link>  TYPE  log_link.
      DATA: g_l_t_lognumbers    TYPE szal_lognumbers WITH HEADER LINE.
      FIELD-SYMBOLS: <f_log_nr> TYPE  log_nr.
      data: messages    TYPE TABLE OF balm.
      FIELD-SYMBOLS:  <f_l_s_message> TYPE balm.
      DATA: l_tabix TYPE sy-tabix.
    LOOP AT G_HEADER_EXTR_TAB ASSIGNING <f_g_l_header_extr> WHERE status ne 1.
          CLEAR: l_tabix.
          l_tabix = sy-tabix.
          READ TABLE g_log_link_tab ASSIGNING <f_g_l_log_link>
                                     WITH KEY fccnu = <f_g_l_header_extr>-fccnu
                                     BINARY SEARCH.
           READ TABLE  <f_g_l_log_link>-log_tab ASSIGNING <f_log_nr> index 1.
           CLEAR: g_l_t_lognumbers.
           g_l_t_lognumbers-item = <f_log_nr>-log_nr.
           APPEND g_l_t_lognumbers.
           CLEAR: messages.
           CALL FUNCTION 'APPL_LOG_READ_DB_WITH_LOGNO'
            TABLES
              lognumbers = g_l_t_lognumbers[]
              messages   = messages.
          delete messages WHERE MSGNO ne 371 AND MSGNO  ne 494 AND  MSGNO ne 491.
          LOOP AT messages  ASSIGNING <f_l_s_message> WHERE  LOGNUMBER = <f_log_nr>-log_nr
                                                       AND  ( MSGTY   = 'S' or  MSGTY = 'W' )   "Message Type S-success & W-warning
                                                       AND  MSGID     = 'VW'
                                                       AND  ( MSGNO   = 371 or MSGNO  = 494 or MSGNO = 491  ).  "Message Numbr through which Shipment Number gets
                   <f_g_l_header_extr>-tknum =  <f_l_S_message>-MSGV1.      "SHIPMENT NUMBER
                   CLEAR: g_l_t_lognumbers[].
                   exit.
          ENDLOOP.
    ENDLOOP.
    ENDENHANCEMENT.
    Thanks again,
    Mahesh Nikam.

  • Runtime error in Field catalog creation

    when i try to create the field catalog using the following code.
    am getting *'Field Symbol Is not assigned' Runtime error.*
    Please give me idea how to resolve this issue.
    data: wa_field type slis_fieldcat_alv,
            t_field type slis_t_fieldcat_alv.
    LOOP AT t_role INTO wa_role.
        wa_field-col_pos = count1.
        wa_field-fieldname = wa_role-agr_name.
        wa_field-datatype = 'CHAR'.
        wa_field-ref_fieldname = 'AGR_NAME'.
        wa_field-ref_tabname = 'AGR_1251'.
        APPEND wa_field TO t_field.
        count1 = count1 + 1.
      ENDLOOP.
    Suitable  Answers rewarded with maximum points....
    it's Urgent...
    Give me Quick Reply.

    Error is having following short text.
    Field symbol has not yet been assigned.
    Error analysis                                                            
        You attempted to access an unassigned field symbol                    
        (data segment 92).                                                                               
    This error may occur for any of the following reasons:                
        - You address a typed field symbol before it is set using ASSIGN      
        - You address a field symbol that points to a line in an internal table
          that has been deleted                                               
        - You address a field symbol that had previously been reset using     
          UNASSIGN, or that pointed to a local field that no longer exists    
        - You address a global function interface parameter, even             
          though the relevant function module is not active,                  
          that is it is not in the list of active calls. You can get the list 
          of active calls from the this short dump.                           
    Please tell me how to correct this error.
    It is very Urgent..

  • Field catalog not found...

    hi all,
    when i try to create billing request for a service order (using dp90), i am getting the following message :
    Field catalog not found
        Message no. 0K530
    Diagnosis
        The field catalog cannot be determined because the output table
        structure name was not specified.
    what can i do?

    I assume this error happens when you save the billing document, and it is a billing output issue. As said, you could verify this by removing all outputs before saving, and afterwards in change mode add them again one by one to figure out which is failing. Alternatively use the blue i icon to analyze the outputs.
    Transaction NACE can be used for output setup across all modules. If the assumption regarding billing is correct, we are dealing with application V3. Mark this in the left side. Press 'output types' button and check the output types you saw in the billing document by double clicking. On the 'General data' is the access sequence assigned. Double click that. Probably will multiple output types be attached to the same access sequence. Mark the access sequence, and unfold the 'Accesses' to the left. Check out the condition tables in the Tab column. All condition tables below 599 is standard and probably OK. Note down the high numbers.
    Go back to the initial screen of NACE. With the application (V3) marked, select EDIT - CONDITION TABLES in the menu.
    Check each of the used condition tables here. Use utilities - Generate in the menu. Mark all boxes and execute. You can even select the entire range 500-999 at one time if you prefer. At least one condition table should give errors in the generation.

  • How to Create Field Catalogs (More than one Source Table)

    Hi Data Archiving Experts,
    Could you please help me how to create the Field Catalogs (More than one Source Table). If any one is having example that will help.
    My scenario:
    Currently we are archiving on CRM Data archiving project. We are facing one issue on creating field catalog with more than one source table.
    Ex: ST -- BP1
                  BP2
                  BP3
    ST info store in one table and BP1 -- BP 3 info sotre in another table. with current field catalog we are getting ST -- BP1. Our requirment is we need to show the ST  -- BP3 How we can achive this.
    Regards,
    Srini

    Hi,
    I don't think its possible to create fieldcatalog for different tables,
    but if you want to do so create a dummy table which has all the fields which you want in fieldcatalog.
    populate the data from different table to that dummy table
    then create fieldcatalog for that table and pass it in the function module...
    Regards,
    Siddarth

  • Error "No field catalog available"

    hi
    im using REUSE_ALV_GRID_DISPLAY wni try to excute my program
    im getting the error as
    " No field catalog available"
    can any one help me in this issue?

    hi
    below is my code
    call function 'REUSE_ALV_GRID_DISPLAY'
          exporting
            I_CALLBACK_PROGRAM      = SY-REPID
            IS_LAYOUT               = GS_LAYOUT
            IT_FIELDCAT             = I_FCAT
            I_DEFAULT               = 'X'
            I_SAVE                  = 'A'
    *      it_sort                 = gs_sort
            IS_PRINT                = LS_PRINT
          tables
            T_OUTTAB                = IT_FINAL[]
          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.

  • Characteristic KNDNR is no longer in the  field catalog and will be deleted

    Hi ,
    we are doing System Landscape optimisation project  and the issue is as follows
    In account based copa when i run the KE30 report , i am getting the message in the target  system
    'Characteristic KNDNR is no longer in the  field catalog and will be deleted'
    In the source system (production system), the customer characteristic is available as a variable in the characteristic list as an option and can be selected in the KE32 t code.
    the customer is available in the KE30 report (source system) and it can be drilled down on the basis of the customer but it  is not possible in the target system
    in the Target system (to be production system) the customer characteristic is not available as a variable for selection in the KE32 report under the characteristic list.
    i checked the ke3e t code in both the source and the target system and the characteristic KNDNR is not available as a variable
    I checked the KEA5 and KEA0  t code in both the source and the target system , the customer characteristic is not available
    thanks in advance
    kind regards
    sap student

    Hi,
    Are you trying to create a report from a Form? When are you getting this information? At the time of creating the form (KE34) or report (KE31)?
    I have not seen this message though, can suggest to check if the required characteristic is there in KEA0, KEA5 and also if adding that in KEQ3 helps.
    Regards,
    R C Sabat

  • Regarding User Exit for SD Field Catalog

    Hi All,
    I need to insert a field called "Transportation Zone" in the field catalog.
    Path: sproF5sales and DistBasic FunctionsPricing-Pricing ControlMaintain Condition Tables..
    Now using CMOD Tcode, how to locate the appropriate Exit for this issue...???
    Regards
    PAvan

    Hi Pavan,
    You can see these user exits in SE38
    To create a new field in the field catalog, the field needs to be put in field catalog with a Z name, say ZZ_TRZONE
    Now you have to make changes in these 2 user exits to populate the transportation zone which is coming from masterdata into sales order , into the structure TKOMP ...etc which are populated during pricing. If you achieve that, then the condition records will be updated.
    Please let me know if you need further information on this.
    Rwd point if it helps.
    BTW, These userexits are used only if the field which you want to include in the condition table is not in the list of allowed fields in the field catalog or not in structures KOMG, KOMP, KOMK. If the field is already there in field catalog and in all these structures, then there is no  need for user exit. You just need to create the condition table.
    Message was edited by:
            iimnava

  • Field catalog in abap objects

    hi friends,
                   i am using factory method to display my alv. now some of the fields in my internal table i have declared them as char fields, i want certain type of headings for these fields,so where can i give heading to these fields.
                   where exactly do we create a field catalog for factory method.
    pls advice me on this

    hi
    good
    go throgh this code
    *& Report  Z_ALV_OOPS
    REPORT  Z_ALV_OOPS.
    *Event class Definition                             "Event handler class
    class event_handle definition.
      public section.
        methods: handle_user
          for event user_command of cl_gui_alv_grid
          importing e_ucomm.
    endclass.
    *Event class Implementation
    class event_handle implementation.
      method handle_user.
        write:/ ''.
      endmethod.
    endclass.
    Data: t_alv       type ref to cl_gui_alv_grid,           "ALV control
          t_cont      type ref to cl_gui_custom_container,   "Cust Container
          t_alv2      type ref to cl_gui_alv_grid,           "ALV control
          t_cont2     type ref to cl_gui_custom_container,   "Cust Container
          t_fieldcat  type lvc_t_fcat with header line,      "Field Cat
          t_fieldcat2 type lvc_t_fcat with header line,      "Field Cat
          t_layout    type lvc_s_layo,                       "Layout
          t_event     type ref to event_handle,              "Event handler
          t_sort      type LVC_T_SORT with header line,      "Sort
          t_toolbar   type ui_functions with header line.    "Toolbar xclude
    Types: begin of g_vbak,                                 "Header Table
             vbeln like vbak-vbeln,
             auart like vbak-auart,
             vkorg like vbak-vkorg,
             vtweg like vbak-vtweg,
             spart like vbak-spart,
             kunnr like vbak-kunnr,
             bstnk like vbak-bstnk,
             seltab,
           end of g_vbak.
    Types: begin of g_vbap,                                  "Item Table
             vbeln like vbap-vbeln,
             posnr(6) type c,
            posrn like vbap-posnr,
             matnr like vbap-matnr,
             netwr like vbap-netwr,
             waerk like vbap-waerk,
           end of g_vbap.
    Data: t_vbak type g_vbak occurs 0,
          t_vbap type g_vbap occurs 0.
    Start-Of-Selection.
    *Fetch data from DB Table
    select vbeln auart vkorg vtweg spart kunnr bstnk
        from vbak into table t_vbak up to 20 rows.
    End-Of-Selection.
    *Call ALV screen
    call screen 100.
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'ALV'.
      SET TITLEBAR 'VBAK'.
    if t_cont is initial.
      create object t_cont
        exporting
          container_name = 'ALV'.
      create object t_alv
        exporting
          i_parent = t_cont.
    *Create event handlers
      create object t_event.
      set handler t_event->handle_user for t_alv.
      perform build_fieldcatlog.
      perform build_layout.
      perform xclude_toolbar.
      CALL METHOD t_alv->SET_TABLE_FOR_FIRST_DISPLAY
        EXPORTING
         I_BUFFER_ACTIVE               =
         I_BYPASSING_BUFFER            =
         I_CONSISTENCY_CHECK           =
         I_STRUCTURE_NAME              =
         IS_VARIANT                    =
         I_SAVE                        =
         I_DEFAULT                     = 'X'
          IS_LAYOUT                     = t_layout
         IS_PRINT                      =
         IT_SPECIAL_GROUPS             =
          IT_TOOLBAR_EXCLUDING          = t_toolbar[]
         IT_HYPERLINK                  =
         IT_ALV_GRAPHICS               =
         IT_EXCEPT_QINFO               =
        CHANGING
          IT_OUTTAB                     = t_vbak[]
          IT_FIELDCATALOG               = t_fieldcat[]
         IT_SORT                       =
         IT_FILTER                     =
       EXCEPTIONS
         INVALID_PARAMETER_COMBINATION = 1
         PROGRAM_ERROR                 = 2
         TOO_MANY_LINES                = 3
         others                        = 4
      IF SY-SUBRC <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    endif.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE USER_COMMAND_0100 INPUT.
    Data: lt_rows type lvc_t_row,
          wa_rows type line of lvc_t_row,
          wa_vbak type g_vbak,
          l_lines type i.
    refresh: t_vbap.
    case sy-ucomm.
      when 'DET'.                                  "Item details
      Get selected rows from ALV
        call method t_alv->get_selected_rows
            importing
                et_index_rows = lt_rows.
      Fetch corresponding Item details from VBAP
        loop at lt_rows into wa_rows.
          read table t_vbak into wa_vbak index wa_rows-index transporting
                                                                    vbeln.
          select vbeln posnr matnr netwr waerk from vbap
              appending corresponding fields of table t_vbap
              where vbeln = wa_vbak-vbeln.
        endloop.
      Prepare fieldcatlog
      Display Item details in ALV
        call screen 200 starting at 8 5.
      when 'SHOW'.                                  "Display order
        call method t_alv->get_selected_rows
            importing
                et_index_rows = lt_rows.
        Describe table lt_rows lines l_lines.
        if l_lines > 1.
          message e999(z_error).
        else.
          read table lt_rows into wa_rows index 1.
          read table t_vbak into wa_vbak index wa_rows-index transporting
                                                                    vbeln.
          set parameter id 'AUN' field wa_vbak-vbeln.
          call transaction 'VA03' and skip first screen.
        endif.
    endcase.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Form  build_fieldcatlog
          text
    form build_fieldcatlog .
      clear t_fieldcat.
      t_fieldcat-col_pos = '1'.
      t_fieldcat-fieldname = 'VBELN'.
      t_fieldcat-ref_table = 'VBAK'.
      t_fieldcat-ref_field = 'VBELN'.
      append t_fieldcat.
      t_fieldcat-col_pos = '2'.
      t_fieldcat-fieldname = 'AUART'.
      t_fieldcat-ref_table = 'VBAK'.
      t_fieldcat-ref_field = 'AUART'.
      append t_fieldcat.
      t_fieldcat-col_pos = '3'.
      t_fieldcat-fieldname = 'VKORG'.
      t_fieldcat-ref_table = 'VBAK'.
      t_fieldcat-ref_field = 'VKORG'.
      append t_fieldcat.
      t_fieldcat-col_pos = '4'.
      t_fieldcat-fieldname = 'VTWEG'.
      t_fieldcat-ref_table = 'VBAK'.
      t_fieldcat-ref_field = 'VTWEG'.
      append t_fieldcat.
      t_fieldcat-col_pos = '5'.
      t_fieldcat-fieldname = 'SPART'.
      t_fieldcat-ref_table = 'VBAK'.
      t_fieldcat-ref_field = 'SPART'.
      append t_fieldcat.
      t_fieldcat-col_pos = '6'.
      t_fieldcat-fieldname = 'KUNNR'.
      t_fieldcat-ref_table = 'VBAK'.
      t_fieldcat-ref_field = 'KUNNR'.
      append t_fieldcat.
      t_fieldcat-col_pos = '7'.
      t_fieldcat-fieldname = 'BSTNK'.
      t_fieldcat-ref_table = 'VBAK'.
      t_fieldcat-ref_field = 'BSTNK'.
      append t_fieldcat.
    endform.                    " build_fieldcatlog
    *&      Module  LEAVE  INPUT
          text
    module LEAVE input.
    case sy-ucomm.
      when 'BACK' or 'EXIT' or 'CANCEL'.
        leave program.
    endcase.
    endmodule.                 " LEAVE  INPUT
    *&      Form  build_layout
          text
    -->  p1        text
    <--  p2        text
    form build_layout .
    t_layout-zebra = 'X'.
    t_layout-sel_mode = 'A'.
    t_layout-grid_title = 'Header Details'.
    endform.                    " build_layout
    *&      Form  build_fcat_vbap
          text
    form build_fcat_vbap .
      clear t_fieldcat2.
      t_fieldcat2-scrtext_m = 'Sales Doc'.
      t_fieldcat2-col_pos = 1.
      t_fieldcat2-fieldname = 'VBELN'.
      t_fieldcat2-tabname = 'T_VBAP'.
      t_fieldcat2-no_zero = 'X'.
      t_fieldcat2-ref_table = 'VBAP'.
      t_fieldcat2-ref_field = 'VBELN'.
      append t_fieldcat2.
      clear t_fieldcat2.
      t_fieldcat2-col_pos = 2.
      t_fieldcat2-scrtext_m = 'Item'.
      t_fieldcat2-fieldname = 'POSNR'.
      t_fieldcat2-tabname = 'T_VBAP'.
      t_fieldcat2-intlen = '6'.
      t_fieldcat2-inttype = 'C'.
      t_fieldcat2-no_zero = 'X'.
    t_fieldcat2-ref_table = 'VBAP'.
    t_fieldcat2-ref_field = 'POSNR'.
      append t_fieldcat2.
      clear t_fieldcat2.
      t_fieldcat2-col_pos = 3.
      t_fieldcat2-fieldname = 'MATNR'.
      t_fieldcat2-ref_table = 'VBAP'.
      t_fieldcat2-ref_field = 'MATNR'.
      append t_fieldcat2.
      clear t_fieldcat2.
      t_fieldcat2-col_pos = 4.
      t_fieldcat2-fieldname = 'NETWR'.
      t_fieldcat2-ref_table = 'VBAP'.
      t_fieldcat2-ref_field = 'NETWR'.
      t_fieldcat2-do_sum = 'X'.
      append t_fieldcat2.
      clear t_fieldcat2.
      t_fieldcat2-col_pos = 5.
      t_fieldcat2-fieldname = 'WAERK'.
      t_fieldcat2-ref_table = 'VBAP'.
      t_fieldcat2-ref_field = 'WAERK'.
      append t_fieldcat2.
    endform.                    " build_fcat_vbap
    *&      Module  STATUS_0200  OUTPUT
          text
    module STATUS_0200 output.
      SET PF-STATUS 'ITEM1'.
      SET TITLEBAR 'VBAP'.
      perform build_fcat_vbap.
      perform sort_alv2.
    if t_cont2 is initial.
      create object t_cont2
        exporting
          container_name = 'ITEM'.
      create object t_alv2
        exporting
          i_parent = t_cont2.
      t_layout-grid_title = 'Item Details'.
      CALL METHOD t_alv2->set_table_for_first_display
        EXPORTING
         I_BUFFER_ACTIVE               =
         I_BYPASSING_BUFFER            =
         I_CONSISTENCY_CHECK           =
         I_STRUCTURE_NAME              =
         IS_VARIANT                    =
         I_SAVE                        =
         I_DEFAULT                     = 'X'
          IS_LAYOUT                     = t_layout
         IS_PRINT                      =
         IT_SPECIAL_GROUPS             =
          IT_TOOLBAR_EXCLUDING          = t_toolbar[]
         IT_HYPERLINK                  =
         IT_ALV_GRAPHICS               =
         IT_EXCEPT_QINFO               =
         IR_SALV_ADAPTER               =
        CHANGING
          it_outtab                     = t_vbap[]
          IT_FIELDCATALOG               = t_fieldcat2[]
          IT_SORT                       = t_sort[]
         IT_FILTER                     =
       EXCEPTIONS
         INVALID_PARAMETER_COMBINATION = 1
         PROGRAM_ERROR                 = 2
         TOO_MANY_LINES                = 3
         others                        = 4
      IF sy-subrc <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    else.
      CALL METHOD t_alv2->refresh_table_display
       EXPORTING
         IS_STABLE      =
         I_SOFT_REFRESH =
       EXCEPTIONS
         FINISHED       = 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.
    endif.
    endmodule.                 " STATUS_0200  OUTPUT
    *&      Module  USER_COMMAND_0200  INPUT
          text
    module USER_COMMAND_0200 input.
    case sy-ucomm.
      when 'GOBACK'.
        leave to screen 0.
    endcase.
    endmodule.                 " USER_COMMAND_0200  INPUT
    *&      Form  sort_alv2
          text
    -->  p1        text
    <--  p2        text
    form sort_alv2 .
    clear t_sort.
    t_sort-spos = '1'.
    t_sort-fieldname = 'VBELN'.
    t_sort-up = 'X'.
    t_sort-subtot = 'X'.
    append t_sort.
    endform.                    " sort_alv2
    *&      Form  xclude_toolbar
          text
    -->  p1        text
    <--  p2        text
    form xclude_toolbar .
    t_toolbar = '&DETAIL'.
    append t_toolbar.
    t_toolbar = '&&SEP00'.
    append t_toolbar.
    t_toolbar = '&&SEP01'.
    append t_toolbar.
    t_toolbar = '&&SEP02'.
    append t_toolbar.
    t_toolbar = '&SORT_ASC'.
    append t_toolbar.
    t_toolbar = '&SORT_DSC'.
    append t_toolbar.
    t_toolbar = '&FIND'.
    append t_toolbar.
    t_toolbar = '&MB_FILTER'.
    append t_toolbar.
    t_toolbar = '&&SEP04'.
    append t_toolbar.
    t_toolbar = '&MB_SUM'.
    append t_toolbar.
    t_toolbar = '&MB_SUB_TOTAL'.
    append t_toolbar.
    t_toolbar = '&PRINT_BACK'.
    append t_toolbar.
    t_toolbar = '&MB_VIEW'.
    append t_toolbar.
    t_toolbar = '&MB_EXPORT'.
    append t_toolbar.
    t_toolbar = '&GRAPH'.
    append t_toolbar.
    t_toolbar = '&COLO'.
    append t_toolbar.
    t_toolbar = '&&SEP06'.
    append t_toolbar.
    t_toolbar = '&&SEP07'.
    append t_toolbar.
    t_toolbar = '&INFO'.
    append t_toolbar.
    t_toolbar = '&&SEP03'.
    append t_toolbar.
    endform.                    " xclude_toolbar
    reward point if helpful.
    thanks
    mrutyun^

  • Error in updating ALV field catalog in selection tool for Planning Book

    Hi ,
    I am Implementing BADI  '/SAPAPO/SDP_SELECTOR' to upload Custom Fields Data in Planning Book Selection Window under APO Location Product. These Custom Fields are maintained in Custom Table.So from Table whatever Custom Fields are availabe all the fields needs to be available in for selection. Once selection is done the same data to be uploaded into Planning Book.
    This BADI is working Fine upto 4 fields but if any extra fields are added in the table 'Error in updating ALV field catalog in selection tool' error Pop Up is coming. Here i am using Folloowing Methods
    1). INIT_OBJECT_LIST
    2). F4
    3). LOC_PROD_VALUE_LIST
    Please help on the same if u have any idea or clue.
    Thanks.

    Hi Srinivas!
    Where did you get your implementation from?
    It would be nice if you could debug your code!
    For the F4 method, have you seen this note?
    Note 544904 - Sample source code f.BAdI /SAPAPO/SDP_SELECTOR ('F4'method)
    Also check this note. It contains selection modifications in the BAdI:
    Note 376902 - SDP selector: Basis corrections for BADI
    I do not know your release and support package in your SCM, but you can find a lot of notes related to this BAdI.
    Thank you!
    Will
    SCM Support Consultant

Maybe you are looking for

  • Pdfmaker icon is grey in firefox 23+ (not in high definition)

    In firefox 23+ the pdfmaker icon is orrible, grey. Can I fix this in a simple way or is an adobe acrobat bug? G

  • Oracle Table Recomendations

    Hello All, We have source data for prepaid system like voice calls, sms etc. Oracle database 10G is our target database. Average number of records for voice is 20 million and sms is having 10 million records per day. We have two options for loading d

  • Cannot Start SI4 After New License

    I have a test drive version of NW 4 running on Suse 9.2 Linux and db2.  It ran fine for 3 months.  Yesterday I installed a new license because the old one expired.  I installed it as root while the db was running. This morning, I cannot start sap, be

  • OT: ASP on Vista Ultimate IIS 7

    Hi there. Vista Ultimate, IIS 7 and DW CS3. I have just moved form XP Prof SP2 to Vista Ultimate and have finished adding IIS 7 to Vista and installed DW CS3 on my machine. The very first time I wanted to run default.asp by hitting F12 after synchron

  • ITunes 8.1 crashes upon startup

    After updating to iTunes 8.1, it crashes upon startup. So I created an empty dummy library, went into prefs and unticked DJ and Genius (which is hailed as the fix in some discussion groups). I then deleted my library, created a new one, and re-import