Problem downloading ALV to Excel

Hi,
I have a ALV report, in that report one of the column is Vendor (LIFNR). In ALV it is displaying with leading zero. but when i download the report into Excel, the leading zero's are truncating. Could anybody let me know the solution for this. I want vendor numbers should be downloaded with leading zeros.
thanks in advance.
regards,
Sadiq

refer:
data in Excel sheet
filetype = 'DBF'"should be there

Similar Messages

  • Downloading ALV to excel file

    Hi all,
       i am trying to download ALV to excel file.
       but as the alv contains many fields,
       the row in the excel is automatically wrapped to the
       next row ..
       what i want is the row in excel should come as it is
       in the ALV (whole thing in one line) and should not wrap to next row
      Regards,
      Tarang

    Hi Shah,
    <b>
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'</b>
        EXPORTING
          I_CALLBACK_PROGRAM      = V_REPID
          I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
          IS_LAYOUT               = WA_LAYOUT
          I_SAVE                  = 'A'
          IT_FIELDCAT             = I_FLDCAT_HEAD
          IT_SORT                 = IT_SORT
          IT_EVENTS               = I_EVENTS
        TABLES
          T_OUTTAB                = IT_FINAL
        EXCEPTIONS
          PROGRAM_ERROR           = 1
          OTHERS                  = 2.
      IF SY-SUBRC = 0.
    <b>     CALL FUNCTION 'GUI_DOWNLOAD'</b>
         EXPORTING
          BIN_FILESIZE                    =
            FILENAME                        = 'C:\Documents and Settings\vikranthk\Desktop\vikranth.xls'
           FILETYPE                        = 'ASC'
          APPEND                          = ' '
          WRITE_FIELD_SEPARATOR           = ' '
          HEADER                          = '00'
          TRUNC_TRAILING_BLANKS           = ' '
          WRITE_LF                        = 'X'
          COL_SELECT                      = ' '
          COL_SELECT_MASK                 = ' '
          DAT_MODE                        = ' '
          CONFIRM_OVERWRITE               = ' '
          NO_AUTH_CHECK                   = ' '
          CODEPAGE                        = ' '
          IGNORE_CERR                     = ABAP_TRUE
          REPLACEMENT                     = '#'
          WRITE_BOM                       = ' '
          TRUNC_TRAILING_BLANKS_EOL       = 'X'
          WK1_N_FORMAT                    = ' '
          WK1_N_SIZE                      = ' '
          WK1_T_FORMAT                    = ' '
          WK1_T_SIZE                      = ' '
        IMPORTING
          FILELENGTH                      =
          TABLES
            DATA_TAB                        = it_final.
          FIELDNAMES                      =
        EXCEPTIONS
          FILE_WRITE_ERROR                = 1
          NO_BATCH                        = 2
          GUI_REFUSE_FILETRANSFER         = 3
          INVALID_TYPE                    = 4
          NO_AUTHORITY                    = 5
          UNKNOWN_ERROR                   = 6
          HEADER_NOT_ALLOWED              = 7
          SEPARATOR_NOT_ALLOWED           = 8
          FILESIZE_NOT_ALLOWED            = 9
    Thanks
    Vikranth Khimavath
    Message was edited by: Khimavath Vikranth

  • Problem in ALV to Excel Download

    Good Morning Experts,
      I am facing one issue related ALV to excel Download.
    I Developed one custom report the output is correct displaying.
    the output is like for example i am taking 3 columns (plant, material, amt).
    plant material amt
    1001  aaa     1000
    1001  bbb     2000
    while downloading to excel
    it displaying like
    plant
    material
    amt
    1001
    aaa
    1000
    1001
    bbb
    2000
    I dont know why its coming like that.
    this is my code
    DEFINE field_cat.
    wa_field-row_pos = &1.
    wa_field-fieldname = &2.
    wa_field-tabname = &3.
    wa_field-seltext_m = &4.
    wa_field-outputlen = &5.
    wa_field-currency = &6.
    wa_field-ref_fieldname = &7.
    wa_field-ref_tabname = &8.
    APPEND wa_field to it_field.
    clear wa_field.
    END-OF-DEFINITION.
    field_cat '1' 'BUKRS' 'IT_FINAL' 'Company Code' '6' '' '' ''.
    field_cat '2' 'BUTXT' 'IT_FINAL' 'Comp Descrip' '25' '' '' ''.
    field_cat '3' 'LIFNR' 'IT_FINAL' 'Vendor No' '10' '' '' ''.
    field_cat '4' 'NAME1' 'IT_FINAL' 'Vendor Name' '35' '' '' ''.
    field_cat '5' 'STRAS' 'IT_FINAL' 'Vendor Addres' '35' '' '' ''.
    field_cat '6' 'FDGRV' 'IT_FINAL' 'Nature Of Work' '30' '' '' ''.
    field_cat '7' 'DMBTR' 'IT_FINAL' 'Net Amount' '16' 'X' 'WAERS' 'IT_FINAL'.
    field_cat '8' 'QBSHB' 'IT_FINAL' 'TDS Amount' '16' 'X' 'WAERS' 'IT_FINAL'.
    field_cat '9' 'TOTAL' 'IT_FINAL' 'Total Amount' '16' 'X' 'WAERS' 'IT_FINAL'.
    it_layout-zebra = 'X'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
       I_CALLBACK_PROGRAM                = sy-repid
       I_CALLBACK_TOP_OF_PAGE            = 'TOP_OF_PAGE'
       IS_LAYOUT                         = it_layout
       IT_FIELDCAT                       = it_field
       I_SAVE                            = 'X'
      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.
    endform.                    " DISPLAY_ALV
    FORM TOP_OF_PAGE.
    REFRESH it_head. CLEAR it_head.
    wa_head-typ = 'H'.
    wa_head-info = 'Vendorwise Expense Details'.
    APPEND wa_head to it_head.
    wa_head-typ = 'S'.
    IF NOT s_MONAT-high is INITIAL.
      CONCATENATE 'Period : ' p_gjahr '.' s_MONAT-low ' to ' p_gjahr '.' s_MONAT-high INTO wa_head-info.
    ELSE.
      CONCATENATE 'Period : ' p_gjahr '.' s_MONAT-low INTO wa_head-info.
    ENDIF.
    APPEND wa_head to it_head.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
      EXPORTING
        it_list_commentary       = it_head.
    ENDFORM.
    Regards,
    Dhina..

    Hi,
    You can also try in this way
    in the output screen
      click List (in app tool bar) -> Export -> Spreadsheet
    and save at your desired location.
    (It will be save in .mhtml format , just rightclick on it and you can open it with excel )
    Then you will be able to view in your required format.
    Regards,
    koolspy.

  • Downloading ALV to EXCEL - in some fields the last character is missing ...

    Hi,
    I am experiencing this kind of problem when downloading ALV report into Excel :-
    "You are downloading an ALV result to an EXCEL file. In some fields the last character is missing."
    For example, if MATNR is 0000234567 in display but after downloading to excel it becomes only 23456.
    I found another related forum thread : Pronlem while downloading ALV grid to excel
    I tried the suggested method to apply OSS note 1075315. However, the note cannot be implemented in the system. I am working in a ECC6 environment (SAP version 700, 701).
    Kindly please help me if you came across the similar kind of issue. Thanks much.

    Hi gkGoh8     ,
    The link thread that you just gave already provided the answer, in your field catalog you need to activate field lzero.
    1. Check FM : REUSE_ALV_GRID_DISPLAY
    2. Import Parameter tab :IT_FIELDCAT
    3. Double click SLIS_T_FIELDCAT_ALV
    4. On type group SLIS, check line 93
    Regards,
    JQC

  • Download ALV into excel file

    Hi experts,
                   I used subtotals in ALV.first three columns I claculated based on the addition of individual column.In fourth column i calculated the value based on three calculated values ...It is  not problem.
              when i download this into excel file the original value is only coming .the calculated value i.e) calculated based on three values didnt get displayed in excel file..Help me please...
    Thank u,
    Manjula Devi.D

    Hi.
    I find that
    List > Export > Spreadsheet
    gives no subtotals, but
    List > Export > Local File and then Spreadsheet
    does give subtotals.
    I find that
    Views > Microsoft Excel
    followed by
    Save As
    does give subtotals.
    John

  • Download ALV to EXcel- Urgent pls help me

    Please help me in this...
    I have an ALV report around 120 column. The report is displayed perfectly on screen. But when I use the Export option to download as an excel file, some data is missing in SAP No field
    For example
    My report output is like this
    sap No    Name    Jobdes.   Dept
    00021     AAA      clerk1      FI
    00022     BBB      clerk1      FI
    00023     CCC      clerk1      FI
    00024     DDD      clerk1      FI
    00025     EEE      clerk1      FI
    00026     FFF      clerk1       FI
    Excel output is
    sap No    Name    Jobdes.   Dept
    00021     AAA      clerk1      FI
    Blank     BBB      clerk1      FI
    Blank     CCC      clerk1      FI
    Blank     DDD      clerk1      FI
    00025     EEE      clerk1      FI
    Blank    FFF      clerk1       FI
    Pls help me

    Hi Kumar,
              Pls try the below Function Modules to download the data to excel.
    ALSM_EXCEL_TO_INTERNAL_TABLE
    KCD_EXCEL_OLE_TO_INT_CONVERT – Uploads data directly from Excel sheet
    RH_START_EXCEL_WITH_DATA – Starts Excel with contents of an internal table
    or the below links also might help you.
    For uploading Excel to Internal Table??????
    Data from Excel sheet to my internal table
    Check the following link:
    http://www.sap-img.com/abap/upload-direct-excel.htm
    or even the below code might be helpful.
    Multiple excel sheets generation in a workbook
    CREATE OBJECT EXCEL 'EXCEL.SHEET'.
    GET PROPERTY OF EXCEL 'Application' = APPLICATION.
    SET PROPERTY OF APPLICATION 'Visible' = 1.
    CALL METHOD OF APPLICATION 'Workbooks' = BOOKS.
    CALL METHOD OF BOOKS 'Add' = BOOK.
    CALL METHOD OF BOOK 'WORKSHEETS' = SHEET.
    CALL METHOD OF SHEET 'ADD'.
    Fill all the sheets with relavant data
    PERFORM SHEET1 TABLES ITAB1.
    PERFORM SHEET2 TABLES ITAB2.
    PERFORM SHEET3 TABLES ITAB3.
    PERFORM SHEET4 TABLES ITAB4.
    Quit the excel after use
    CALL METHOD OF EXCEL 'QUIT'.
    FREE OBJECT: COLUMN,SHEET,BOOK,BOOKS,APPLICATION,EXCEL. "NO FLUSH.
    CLEAR V_SHEET.
    FORM FILL_CELL USING ROW COL VAL.
    CALL METHOD OF SHEET 'cells' = CELL NO FLUSH
    EXPORTING #1 = ROW #2 = COL.
    SET PROPERTY OF CELL 'value' = VAL.
    FREE OBJECT CELL NO FLUSH.
    ENDFORM. " FILL_CELL
    FORM SHEET1 TABLES ITAB1 STRUCTURE ITAB1.
    V_SHEET = Sheet Name.
    V_NO = V_NO + 1.
    CALL METHOD OF BOOK 'worksheets' = SHEET NO FLUSH EXPORTING #1 = V_NO.
    SET PROPERTY OF SHEET 'Name' = V_SHEET NO FLUSH.
    PERFORM FILL_SHEET1 TABLES ITAB1 USING V_NO V_SHEET.
    CALL METHOD OF SHEET 'Columns' = COLUMN.
    FREE OBJECT SHEET.
    CALL METHOD OF COLUMN 'Autofit'.
    FREE OBJECT COLUMN.
    ENDFORM.
    Repeat above procedure for all sheets you want to add
    FORM FILL_SHEET1
    TABLES ITAB1 STRUCTURE ITAB1
    USING V_NO V_SHEET.
    ROW = 1.
    PERFORM FILL_CELL USING ROW 1 'Column1 Name'.
    PERFORM FILL_CELL USING ROW 2 'Column2 Name'.
    PERFORM FILL_CELL USING ROW 3 'Column3 Name'.
    ROW = ROW + 1.
    LOOP AT ITAB1.
    PERFORM FILL_CELL USING ROW 1 ITAB1-Column1.
    PERFORM FILL_CELL USING ROW 2 ITAB1-Column2.
    PERFORM FILL_CELL USING ROW 3 ITAB1-Column3.
    ROW = ROW + 1.
    ENDLOOP.
    ENDFORM.
    Repeat above procedure for all sheets you want to add
    Try this also
    TYPE-POOLS: truxs.
    DATA: it_raw TYPE truxs_t_text_data.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
    field_name = 'P_FILE'
    IMPORTING
    file_name = p_file.
    Upload Excel file
    CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
    EXPORTING
    I_FIELD_SEPERATOR =
    i_line_header = 'X'
    i_tab_raw_data = it_raw
    i_filename = p_file
    TABLES
    i_tab_converted_data = i_XCEL[]
    EXCEPTIONS
    conversion_failed = 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.
    Pls reward if useful.
    THanks,
    Sirisha

  • Problem downloading data in EXCEL from ALV

    Hi,
    I have lot of fields in ALV  (OO ALV). When I tried downloading the list the last few fields wrap (come beneath other fields). Is there any solution for this?
    Thanks and regards,
    Madhu

    Hi,
    I have lot of fields in ALV  (OO ALV). When I tried downloading the list the last few fields wrap (come beneath other fields). Is there any solution for this?
    Thanks and regards,
    Madhu

  • How to download alv to excel but translate char to number  ?

    i have alv report that the user want to download the
    result to excel , ok you have two ways  :
    1) excel inplace , its work good but in big amount of
       data the option is working slow and the user
       dont want to use it .
    2) download it as local file , the problem is that
    the fields that contain the amount is char format
    due to using dynamic columnes,
    so how can i convert the field that it will be download
    to excel as number  ?
    i tried to change the fieldcatalog to :
    LS_FCAT-DATATYPE  = 'QUAN'.
    LS_FCAT-INTTYPE = 'P' .
    but its not help .
    thanks .

    hi dakota,
    you could make your own download-routine.
    before downloading you move the data in an internal table where all fields have the wanted format.
    then download it with function module "GUI_DOWNLOAD" name the file ".xls" and use filetype "DBF".
    this way you get an excel with formatted rows as you like.
    br,
    matthias

  • Download Alv into excel sheet according to variant fields

    Hi All,
    I have more than 100 fields in the ALV report, now i want to download the report according to the fields are choosen in the variant. I am getting all the fields in excel sheet but i need some fileds that is selected in the variant.
    Thanks in advance.
    Rudhir

    use your own excel button and program this steps:

    * Get the frontend fieldcatalog
    CALL METHOD go_grid->get_frontend_fieldcatalog
    IMPORTING
    et_fieldcatalog = lt_fieldcat.
    DELETE lt_fieldcat WHERE no_out EQ 'X'.

    *create dynamic table with the frontend fieldcatalog
    CALL METHOD cl_alv_table_create=>create_dynamic_table
    EXPORTING
    it_fieldcatalog = lt_fieldcat
    IMPORTING
    ep_table = lt_data
    EXCEPTIONS
    generate_subpool_dir_full = 1
    OTHERS = 2.
    IF sy-subrc EQ 0.
    ASSIGN lt_data->* TO <lt_table>.
    ENDIF.
    3° Fill the dynamic table
    4° export to excel using
    CALL FUNCTION 'XXL_SIMPLE_API'
    TABLES
    col_text = xmplt_v1
    data = <lt_table>
    online_text = xmplt_o1
    print_text = xmplt_p1
    EXCEPTIONS
    dim_mismatch_data = 1
    file_open_error       =2
    file_write_error      = 3
    inv_winsys            =4
    inv_xxl                   =5
    OTHERS                = 6.
    Check the complete example here

  • DOWNLOAD ALV TO EXCEL

    I HAVE AN ALV REPORT,
    <b>1.</b>1 FIELD IS EISBE LIKE MARC-EISBE,WHEN I DOWNLOAD TO EXCEL AND I WANT TO MAKE FUNC LIKE SUM IT IS NOT MAKE NOTHING, IF I HAVE VALUE 10 AND MAKE SUM I GET 0 ZERO <b>why?</b>
    <b>2.</b> I WANT TO DOWNLOAD AND GET THE DATE IN THE EXCEL REPRORT
    I USE THIS
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                it_fieldcat = alv_fldcat
           TABLES
                t_outtab    = <dyn_table>.
    THANKS

    Hi Liat,
    Check this thread out
    'REUSE_ALV_GRID_DISPLAY' Excel-download without dialog
    Regards,
    Santosh

  • Program about download alv to excel

    i have a program,when run it ,there to be a alv display,in the alv display,the unit is 'PC',but after  download it to the excel,the unit
    'PC' all turn to '*****',does anybody know why?
    thanks for your replay.

    hi,
    first you  try to drag teh column width in the excel sheet, you may get to see the desired output.
    if its not helpful,  then you need to use conversion routine for this.
    regards
    geeta gupta

  • How to download ALV  to Excel

    Hi all!
    Any body can guide me how to download records from ALV output to Excel,i have tried to downlowad using the Excel button which is coming as default in ALV display, but when i m clicking that Excel button ,i m getting the empty sheet with out data, what should i do?
    Thanks & Regards,
    palani

    Hello Raja,
    The standard icon should work!! Which icon are you using? there's one with the tool-tip text <b>Export</b>. That is the one to be used.
    If you are still not able to get that, then display the grid as a list and then use the standard menu option <i>System>List>Save-->Local File</i>.
    Hope that helps,
    Regards,
    Anand Mandalika.

  • Error while downloading ALV to excel

    hI - I am dowaloading an ALV report to Excel file .
    But that ALV contains japenese charactres so after downloading to excel . it got converted to cryptic/garbage characters . Please advice

    HI Arun,
    The Japanese characters should also be available in the excel.
    You can change the default language in microsoft office to Japanese and then try again.
    Or you may have to import a japanese font into your fonts folder of your windows..
    Hope it helps.
    Lokesh
    Message was edited by:
            Lokesh Aggarwal

  • Japenese charc not prinitng while downloading ALV  to excel

    hI - I am dowaloading an ALV report to Excel file .
    But that ALV contains japenese charactres so after downloading to excel . it got converted to cryptic/garbage characters . Please advice

    HI Arun,
    The Japanese characters should also be available in the excel.
    You can change the default language in microsoft office to Japanese and then try again.
    Or you may have to import a japanese font into your fonts folder of your windows..
    Hope it helps.
    Lokesh
    Message was edited by:
            Lokesh Aggarwal

  • Short dump when trying to download alv into excel

    Hi SAPAll.
    here i have got one alv report ,when executing this alv report it displays in correct way but the only problem is when i click on the icon(local file) which exists at standard tool bar at the top to dowbload into local excel file it is raising the runtime error as
      The current statement requires a character-type data object.
    at happened?
      Error in the ABAP Application Program
      The current ABAP program "SAPLKKBL" had to be terminated because it has
      come across a statement that unfortunately cannot be executed.
    ror analysis
      At the statment
           "STRLEN( obj )..."
      , only character-type data objects are supported at the argument
      position "obj".
      In this particular case, the operand "obj" has the non-charcter-type type
      "P".
    igger Location of Runtime Error
      Program                                 SAPLKKBL
      Include                                 LKKBLF99
      Row                                     3.948
      Module type                             (FORM)
      Module Name                             GEN_FIELD_OUT2
    Line  SourceCde
    3923 * Bei NUMC führende '0' und ' ' nicht berücksichtigen
    3924   elseif gs_fc-tech_form = 6.
    3925     write  to gs_out-hlpchar no-zero left-justified.
    3926     if gs_fc-just = 'R'.
    3927       condense gs_out-hlpchar.
    3928     endif.
    3929     gs_out-hlplen = strlen( gs_out-hlpchar ).
    3930   elseif gs_fc-tech_form = 11.                              "INS TECH11
    3931 *   Min. Ausgabelänge für ein Datum ist immer 8
    3932     if gs_fc-datatype = 'DATS'.                             "INS TECH11
    3933       gs_out-hlplen = 8.                                    "INS TECH11
    3934 *    Min. Ausgabelänge für eine Uhrzeit ist immer 6
    3935     elseif gs_fc-datatype = 'TIMS'.                         "INS TECH11
    3936       gs_out-hlplen = 6.                                    "INS TECH11
    3937     endif.                                                  "INS TECH11
    3938   elseif gs_fc-tech_form = 1 or gs_fc-tech_form = 90.
    3939 *   Überführung int. in ext. Format via Konvertierungsexit
    3940     if not gs_fc-convexit is initial or                     "INS TECH11
    3941        not gs_fc-inttype ca 'CN'.
    3942 *   elseif not gs_fc-convexit is initial.            "DEL TECH11
    will be waiting for quick response please respond at your discretion.
    regards.
    Varma
    Edited by: Thomas Zloch on Mar 11, 2010 11:48 AM

    hi suhas .
    the folliwing below is the code for alv and i had used 2 different structures for populating the data into alv
    FORM fieldcat_init  USING    p_fieldcat TYPE slis_t_fieldcat_alv.
      DATA: ls_fieldcat TYPE slis_fieldcat_alv.
      CLEAR ls_fieldcat.
      ls_fieldcat-fieldname   = 'ORDER'.
      ls_fieldcat-ref_tabname = 'st_proc_out'.
      ls_fieldcat-key         = 'X'.
      ls_fieldcat-seltext_s   = 'ORDER NUMBER'.
      ls_fieldcat-seltext_m   = 'ORDER NUMBER'.
      ls_fieldcat-seltext_l   = 'ORDER NUMBER'.
      APPEND ls_fieldcat TO p_fieldcat.
      CLEAR ls_fieldcat.
      ls_fieldcat-fieldname   = 'P_ORDER'.
      ls_fieldcat-ref_tabname = 'st_proc_out'.
      ls_fieldcat-key         = 'X'.
      ls_fieldcat-seltext_s   = 'P.O.NUMBER'.
      ls_fieldcat-seltext_m   = 'P.O.NUMBER'.
      ls_fieldcat-seltext_l   = 'P.O.NUMBER'.
      APPEND ls_fieldcat TO p_fieldcat.
    CLEAR ls_fieldcat.
      ls_fieldcat-fieldname   ='LINE'.
      ls_fieldcat-ref_tabname = 'st_proc_out2'.
      ls_fieldcat-key         = 'X'.
      ls_fieldcat-seltext_s   = 'Line Number'.
      ls_fieldcat-seltext_m   = 'Line Number'.
      ls_fieldcat-seltext_l   = 'Line Number'.
      APPEND ls_fieldcat TO p_fieldcat.
      CLEAR ls_fieldcat.
      ls_fieldcat-fieldname   ='MATNO'.
      ls_fieldcat-ref_tabname = 'st_proc_out2'.
      ls_fieldcat-key         = 'X'.
      ls_fieldcat-seltext_s   = 'Mat.Number'.
      ls_fieldcat-seltext_m   = 'Mat.Number'.
      ls_fieldcat-seltext_l   = 'Mat.Number'.
      APPEND ls_fieldcat TO p_fieldcat.
      CLEAR ls_fieldcat.
      ls_fieldcat-fieldname   ='MATERIAL'.
      ls_fieldcat-ref_tabname = 'st_proc_out2'.
      ls_fieldcat-key         = 'X'.
      ls_fieldcat-seltext_s   = 'Mat Descrption'.
      ls_fieldcat-seltext_m   = 'Mat Descrption'.
      ls_fieldcat-seltext_l   = 'Mat Descrption'.
      APPEND ls_fieldcat TO p_fieldcat .
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = 'YSDRO024C1'
          i_grid_title       = 'EXPORT ORDER REPORT'
          is_layout          = alv_layout
          it_fieldcat        = alv_fieldcat
          i_save             = 'A'
        TABLES
          t_outtab           = i_output
        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.
      PERFORM  proc_print.
    FORM proc_print .
      DATA: ls_fieldcat TYPE slis_fieldcat_alv.
      CLEAR ls_fieldcat.
      ls_fieldcat-col_pos     = '1'.
      ls_fieldcat-fieldname   = 'ORDER'.
      ls_fieldcat-key         = 'X'.
      ls_fieldcat-seltext_m   = 'ORDER NUMBER'.
      ls_fieldcat-ddictxt     = 'M'.
      APPEND ls_fieldcat TO alv_fieldcat.
      CLEAR ls_fieldcat.
      ls_fieldcat-col_pos     = '2'.
      ls_fieldcat-fieldname   = 'P_ORDER'.
      ls_fieldcat-key         = 'X'.
      ls_fieldcat-seltext_m   = 'PO NUMBER'.
      ls_fieldcat-ddictxt     = 'M'.
      APPEND ls_fieldcat TO alv_fieldcat.
    regards,
    Varma

Maybe you are looking for

  • Year Transfer with Custom Stored Procedures

    When "Year Transfer" is started, none of Custom (Handmade, User Defined) Stored Procedures are transferred. How to correct that?

  • How to enable a button only when a tilelist item is selected

    Simple question but it seems quite awkward to me. How do I enable a button only when an item within a tilelist is currently selected? For example lets say if I have a button called button1 that is disabled by default and a tilelist called tilelist1 w

  • In which forum may I ask Skype related questions?

    I am having troubles with Skype, but can't ask a question on the Skype Community Forum because of those troubles.  You see, I have two accounts on Skype with one email account  and when I try to create a public name to post a question the Skype appli

  • Downloading to my new iMac ?

    Hi Just puchased a new iMac (Previously only used Microsoft) and need to install my photoshop program. Problem is my iMac does not have a dvd drive. The box shows Adobe Photoshop Elements11 & Adobe Premiere Elements 11 and also has two serial numbers

  • How to create online album elements 12?

    this feature was in Elements 10, that allowed to create album and HTML home page and export to disk, how do you do this in elements 12?