Get the field hidden in ALV!!

Hi,
Is there any FM which can give me the fields which are hidden in ALV as the FM REUSE_ALV_LIST_LAYOUT_INFO_SET doesn't work in background....
Regards
Gunjan

hi
good
i dont think there is any such function module to solve your problem..
thanks
mrutyun^

Similar Messages

  • How to get  the actual data in ALV report

    I am doing some upgradation work   in that i am using Submit  & And return and  also i am using some function modules like LIST FROM MEMORY , LIST TO TXT wnd WRITE LIST , it gives output in normal list format , But i need to print in ALV report .
    With the use of set table for 1st display i got the  ALV report   but not with actual data, (some junk value is showing) , So can any 1 suggest me how to get  the  actual data in ALV report, With the use of  Any Function Module or with Coding,
    with regards,

    Hi Saravana
    I am sure you must be getting the values in tables of table parameters from every FM.
    consolidate the values from tables of all FMs in one table and built ALV for that table only.
    I hope this way you can show the actual data in ALV.
    thanks
    Lalit

  • How to get the total pages in ALV report?

    Hi guys,
    Since I used page breaks can somebody please help me on how to get the total pages in ALV report?sincerely please...thanks guys.

    automatic display total page.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
    r

  • How to get the field COMPLETION in extract layout

    Hi,
    Does anyone knows How to get the field COMPLETION in extract layout? i have not been able to find it and it is imperative to have it for implementing a new evaluation.
    Thanks a lot for your help.
    CAMILO URIBE

    Hi Neil,
    The following steps describe what we did to get the new evaluation:
    1. Define Attributes and Object Types for Evaluations: here we added a new field for evaluation. The field was COMPLETION (degree of processing in percent), with relevant object "TASK". "No Summarization" was configurated as Rule for Summarization
    2. Define Extract Layouts: here we created a new extract layout for evaluation. The objects and attributes to be used were defined (the field COMPLETION  was defined as attribute).
    3. Assign Extract Layouts to Project Types.
    4. Define Evaluations: the new layout for evaluation were created using the attributes.
    5. Define Severity.
    6. Define Threshold Values. In the new evaluation the field COMPLETION was used in the formula.
    After configurating and testing, we have noticed that the values of field COMPLETION are not taking into account. It does not matter which value it has, evaluation always take 0.
    Thanks for your help,
    CAMILO URIBE

  • How to get the field name of an internal table during runtime?

    How to get the field name of an internal table during runtime?

    Hi  Sudhir,
    Declare and Use Get Cursor Field in Your Prm to get the field Name of the Intenal Table
    Example Code:
        <b>  DATA: v_field(60).                        " Insert this code.
         GET CURSOR FIELD v_field.        " Insert this code.</b>
         <b>CHECK v_field = 'ITAB-KUNNR'.    " Insert this code. (or)
    Write: v_field.</b>
    Regards,
    Ramganesan K.

  • How to get the field texts from abap dictionary into screen Text fields

    Hi SapAll.
    here i have got to modify one zscreen by adding 1 more field,when i added one field in teh screen by just writng the code in program as SELECT-OPTIONS ilart FOR CAUFVD-ILART.
    but iam unable to get the field text for the text field from teh table CAUFVD.
    CAN ANY BODY HELP ME IN THIS.
    regards.
    varma

    Hi Varma,
    Even if you want to personalise the Text also you can do without checking the DICTREF checkbox. Dirctly you can give the text in the Text elements by using the Menu GOTO -> Text Elemetns -> Selection Texts.
    Regards
    Thiru

  • How to get the field of customer PO no

    I cannot get the field of customer PO no in 2LIS_11_VAHDR and 2LIS_11_VAITM , please give me a hand to tell me where to get it or how to do can get the customer PO no which in sales order overview,thanks

    Hi Jeff
    please refer SAP approved doc for data source enhancement..
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/302d4b15-5847-2a10-93bb-9c45d9f06b16
    hope this works and if still issue persists try searching in SDN for documents relating to datasource enhancement , sure u will get a lot of it.
    Thanks
    Manesh

  • How to get the field in table.

    hi Guru,
    My Requirment is I hava table ZSample.
    Field:
    1.Name
    2.Age
    3.Class
    4.Country.
    Is it possible to get the field . Bye Coding.
    And i want store it in a StringTable.
    Regards
    Vivekananthan.S

    Hello,
    You can use ABAP RTTS for that.
    Follow the examplo below:
    DATA: itab TYPE TABLE OF sflight.
    DATA: ref_table        TYPE REF TO cl_abap_tabledescr,
          ref_struct        TYPE REF TO cl_abap_structdescr,
          fields_table     TYPE abap_compdescr_tab.
    FIELD-SYMBOLS: <field> LIKE LINE OF fields_table.
    ref_table  ?= cl_abap_tabledescr=>describe_by_data( itab ).
    ref_struct ?= ref_tb->get_table_line_type( ).
    fields_table[] = ref_struct->components.
    LOOP AT fields_table ASSIGNING <field>.
      WRITE: / <field>-name.
    ENDLOOP.
    The reference variable to CL_ABAP_TABLEDESCR describes the table . You have to cast from CL_ABAP_TYPEDESCR in order to have the reference variable ref_tb accessing both CL_ABAP_TABLEDESCR and CL_ABAP_TYPEDESCR.
    After this, you need to identify the line of this table, you do so using a reference for CL_ABAP_STRUCTDESCR. Again, cast is needed here CL_ABAPTYPEDESCR reference is
    returned from GET_TABLE_LINE_TYPE( ) method. By this way you will have access to the
    table where the fieldnames you need are described.
    After that, you can use as a common internal table.
    I've done this on WebAS 6.20, maybe in SAP 4.6 (and below) these classes won't be available.
    Also, there's an eLearning on SDN about generic programming.
    Regards,
    Eduardo

  • Hi, i am working in E.C.C. 6.0 , IN SMARTFORMS i am not getting the fields

    Hi, i am working in E.C.C. 6.0 , IN SMARTFORMS i am not getting the fields from field list on/off?

    Hiii
    dont worry u will get fields but u wont drag and paste it in ur text
    regards
    Jaipal

  • Increase the field width in ALV grid display

    hi
    My problem is that when i am trying to print data through REUSE_ALV_GRID_DISPLAY, a particular field which contain message is being truncated, i used ls_layout-colwidth_optimiser as 'X' and also t_fieldcat-outputlen = 1000, but still i am having this prblm, but i checked in the internal table that is passed in ALV, the entire data is stored there, but while printing its getting truncated for a particular field, please suggest me  a solution to my problem.
    Regards
    Swarnali

    Hey Neelam
    this is a very old thread, so I don t remember the exact solution which I implemented,
    however can you use the i_tab name in the field TABNAME of the field catalog.
    Regarding breaking the message, you can use a STRLEN if you are aware at the no. of chars where it should break always or split at space the string in 4 strings.
    Inside the field catalog you have to take an internal table with 4 different fields and show it.
    Hopefully it should resolve your problem.
    Regards
    SB

  • Edit the field in an alv report, also save the changes.

    Hi Everyone,
        I have made one interactive ALV report using function
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    also i had provided the code to edit a particular col.
    fs_fieldcat-fieldname = 'AENAM'.
      fs_fieldcat-tabname = 't_mara'.
      fs_fieldcat-seltext_m = 'Changed by'.
      fs_fieldcat-emphasize = 'X'.
      fs_fieldcat-edit = 'X'.
      APPEND fs_fieldcat TO t_fieldcat.
      CLEAR fs_fieldcat.
    now i want to make changes in the AENAM field and save the changes done back on the database table MARA.
    pls, if anyone can provide me some assitance  on how to save the changes on the alv.
    Regards
    Ravi Aswani.

    When SAVE Using the User_command handle the Changed records, and modify the Material using BAPI.
    Just check this following code sample. For this you need to handle to events one PF-STATUS and other USER_COMMAND. see the below comments.
    REPORT  zalv_edit.
    TYPE-POOLS: slis.
    DATA: x_fieldcat  TYPE slis_fieldcat_alv,
          it_fieldcat TYPE slis_t_fieldcat_alv.
    data: BEGIN OF itab OCCURS 0,
            vbeln LIKE vbak-vbeln,
            posnr LIKE vbap-posnr,
            kwmeng LIKE vbap-kwmeng,
          END OF itab.
    SELECT vbeln
           posnr
           kwmeng
      FROM vbap
      UP TO 20 ROWS
      INTO TABLE itab.
    x_fieldcat-fieldname = 'VBELN'.
    x_fieldcat-seltext_l = 'VBELN'.
    x_fieldcat-hotspot = 'X'.
    x_fieldcat-tabname = 'ITAB'.
    x_fieldcat-col_pos = 1.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    x_fieldcat-fieldname = 'POSNR'.
    x_fieldcat-seltext_l = 'POSNR'.
    x_fieldcat-tabname = 'ITAB'.
    x_fieldcat-col_pos = 2.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    x_fieldcat-fieldname = 'KWMENG'.
    x_fieldcat-tabname = 'ITAB'.
    x_fieldcat-col_pos = 3.
    x_fieldcat-input = 'X'.
    x_fieldcat-edit = 'X'.
    APPEND x_fieldcat TO it_fieldcat.
    CLEAR x_fieldcat.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        i_callback_program       = sy-repid
        i_callback_pf_status_set = 'STATUS'
        i_callback_user_command  = 'USER_COMMAND'
        it_fieldcat              = it_fieldcat
      TABLES
        t_outtab                 = itab
      EXCEPTIONS
        program_error            = 1
        OTHERS                   = 2.
    IF sy-subrc NE 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    *&      Form  STATUS
    *       PF-STATUS
    FORM status USING p_extab TYPE slis_t_extab.
      "Set the Button using the staus
      "Copy the Standard status from the program SAPLKKBL status
      " STANDARD using SE41, and use that here.
      "Pf status
      SET PF-STATUS 'STATUS' EXCLUDING p_extab.
    ENDFORM. " STATUS
    *&      Form  USER_COMMAND
    *       USER_COMMAND
    FORM user_command USING r_ucomm LIKE sy-ucomm
                            rs_selfield TYPE slis_selfield.
      DATA: gd_repid LIKE sy-repid,
            ref_grid TYPE REF TO cl_gui_alv_grid.
      IF ref_grid IS INITIAL.
        CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
          IMPORTING
            e_grid = ref_grid.
      ENDIF.
      IF NOT ref_grid IS INITIAL.
        CALL METHOD ref_grid->check_changed_data .
      ENDIF.
      CASE r_ucomm.
        WHEN 'SAVE'.
          "Here you will get the data(along with modified rows/data)
          "Filter the modified rows and update to DB using BAPI/BDC
          "Accordingly
      ENDCASE.
      rs_selfield-refresh = 'X'.
    ENDFORM. "USER_COMMAND

  • How the get the content of selected ALV cell??

    hello expert,
    after click one of the ALV lines, we want to get the cell content of this selected line? how to realize this? thanks/

    hi,
    it is pretty simple,
    in the methosd u declare for the click we use the events of the ALV.
    in that we have an attribute r_param.
    do this to get the value:
    FIELD-SYMBOLS:<l_value> TYPE ANY.
      ASSIGN r_param->index TO <l_value>.
    the clicked value will be in <l_value>.
    madhu.

  • How to get the fields in a display variant

    Hello gurus,
    I have created variants for an ALV display that I can select on my selection. This works fine.
    Now I need to know during the execution of the program what are the fields that have been selected in the display variant so that I can export the selected fields in an excel sheet that I send by mail. The file is currently being sent with all the possible fields .
    Is there a module function that allows the program to know which field is present in the display variant?
    Thanks,
    Parvez

    Hi,
    Try these:     REUSE_ALV_VARIANT_DEFAULT_GET.
         REUSE_ALV_VARIANT_F4.
    .also see the link for more Details:
    http://www.abapcode.info/2008/09/selecting-variants-for-initial-alv-list.html.
    Hope it helps.
    Regards,
    Rahul

  • How to get the field names of a table

    hi all,
    i need to get all field names of a table. here i dont need any data. i need only field names.
    initially i used this query, select * from tname;
    the problem is if table have 1000 records, all records will be in memory.
    how to get this one.
    regards
    pavan.

    hi all,
    thanks a lot. the query is working.
    initially i given this query
    select column_name from user_tab_columns where table_name='mytable';
    but no rows selected.
    and i tried with this,
    select column_name from user_tab_columns where table_name='MYTABLE';
    this is working fine.
    thanks
    pavan.

  • How to get the field row name of database from a form?

    Hello experts,
    I am newer in OIM and developments with the API's.
    I have this environment,
    one resource that have the attribute department
    relationship with the database row
    UD_RESOURCE1_DEPARTMENT and other resource with the same attribute in, UD_RESOURCE2_DEPARTMENT
    I am programing one java class that put values in the
    form field through the table name, sample,
    UD_RESOURCE_DEPARTMENT.
    I let some code:
    # Hash table with the value of Department
    myMap.put("UD_RESOURCE_DEPARTMENT", value);
    # and save in the resource form
    tcFormInstanceOperationsIntf tcform = (tcFormInstanceOperationsIntf)tcUtilityFactory.getUtility(dataProvider,"Thor.API.Operations.tcFormInstanceOperationsIntf");
    tcform.setProcessFormData(Long.parseLong(formKey), myMap);
    But this solution implies know the name of the field in the database and not is a global solution.
    I am interesting in know how I can obtain the name of the
    row field of the database for the atribute. Does anybody know how to obtain the row field name of database from an IT Resource or through the field name of the form?
    Is this the correct way to store data in a form?
    Thanks in advanced.

    Hi,
    Thank you.
    I have seen this function in the OTN help, but how can i get the index number. My requirment is when saving the data, I need to save both the value and the element name into the database,
    Also it is tabular block, more than one rows
    Thanks again

Maybe you are looking for