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

Similar Messages

  • Short dump when trying to download alv( reuse_alv_grid data)  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
    please respond at ur time

    Hi,
    Verify your field_cat, because the element (column) with value (type P) may be defined with the parameter inttype = 'C' or inttype = 'N'.
    You have to change to inttype = 'P' .
    Best regards,
    Leandro Mengue

  • Facing short dumps when trying to open session in CSA

    Hi
    All am facing Short dump when i am trying to open session in CSA
    Error detials:
    go to System Administration workcenter  task management up CSA. Choose the Solution
    got short dump:
    Short text
        Length error occurred in IMPORT statement.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "SAPLDSVAS_PROC" had to be terminated because it has
        come across a statement that unfortunately cannot be executed.
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_IMPORT_MISMATCH_ERROR', was
         not caught in
        procedure "LOAD" "(METHOD)", nor was it propagated by a RAISING clause.
        Since the caller of the procedure could not have anticipated that the
        exception would occur, the current program is terminated.
        The reason for the exception is:
        During import the system discovered that the target object has
        a different length than the object to be imported.
    Missing RAISING Clause in Interface
        Program                                 SAPLDSVAS_PROC
        Include                                 LDSVAS_PROCTAI
        Row                                     1.431
        Module type                             (METHOD)
        Module Name                             LOAD
    Trigger Location of Exception
        Program                                 SAPLDSVAS_PROC
        Include                                 LDSVAS_PROCTAI
        Row                                     1.514
        Module type                             (METHOD)
        Module Name                             LOAD
    Please help me to solve this problem
    Regards,
    Neni

    Hello Neni
    According to the information I saw in that post it could be caused by a sort of inconsistency of the program code vs a structure.
    Wether that is a bug that is in your SAP Solution Manager release or something that is caused by administrative actions (perhaps solving SPAU entries after SP stack update or upgrade) I cannot tell.
    I would recommend you either try and find a relative SAP note (narrowing down result to only your SAP Solution Manager system) and searching using the dump keywords. If you cannot find anything I would recommend you to open a customer message so SAP can take a look at the specific error.
    If you give more information, perhaps someone on the forum can help you out abit better, which SAP Solution Manager version and so on.
    You also didn't answer my question, any recent changes you are aware of ?
    Kind regards
    Tom

  • Short dump when trying to see the text elements of main window

    Hi ,
            The form is running properly in 4.7 c . But when the same is copied in ECC5.0 (unicode) , i 'm getting short dump while trying to see the TEXT ELEMENTS .
                    The message is like ' trying to create a field with zero length'.
    Regards,
    Jytoi.

    hi
    I've never worked on ECC 5.0 version..however, I can only tell u that this could be the issue that code written in 4.7 may not be supported in 5.0..so try to get a good idea of ECC 5.0 before u start coding in this..
    regards,
    shamim

  • Short Dump when trying to open C-project due to status

    Hi,
    We have a daily batch job in CRM that reports all the project ID's and
    sends e-mails out to recipients.
    As part of this report it retrieves the statuses for the project ID's,
    however the report short dumps when retrieving the status for one of
    the projects because it is not finding an active status.
    When we try and open the project in C-projects we get the same short
    dump error: CX_DPR_FATAL_ERROR so we cannot view or update the status.
    When we investigate this issue we find that in table CRM_JCDS there are
    3 entries for this project ID. One of the statuses is inactive (I1703)
    but there is another status that is active (I1701). The two status
    entries were created at exactly the same date and time and by the same
    user.
    In table CRM_JEST there is only one entry shown which shows an inactive
    status and we believe this to be the wrong status. Please can you
    advise if this status conflict is causing the problem and also how to
    resolve this issue?

    Hi Paul,
    generally, the project and its elements must have an active status in table CRM_JEST, however, at this point it is not clear how this inconsistency arised. There is no SAP standard report or a 'generally valid' solution that could solve this issue, however, I found a customer message that you have opened in September with exactly the same problem. A colleague from the development team already provided you with a correction report, but there was no feedback from your side if it helped or not.
    It is very difficult to provide help as inconsistencies can have several different causes, so the best would be to have this checked in a customer message with an example.
    Regards,
    Silvia

  • Short dump when trying to open FPM for Web Dynpro Application

    Hi,
    I am receiving a short dump while trying to open a Web Dynpro Application in FPM.  I go to SE80 and open the Web Dynpro component 'FPM_OIF_COMPONENT'.  I then choose the application '/sapsrm/wda_l_fpm_oif'.  I then click Web Dynpro Application -> Test -> Execute in Administration Mode.  A new IE browser is opened and I then receive a short dump.  The name of the short dump runtime error is 'OBJECTS_OBJREF_NOT_ASSIGNED_NO' and the exception is 'CX_SY_REF_IS_INITIAL'.
    I have not used FPM before.  I would like to use it to remove the 'Close' button from this application.  Do I need to initialize FPM before using it?
    Please help.
    Thanks,
    Jeff

    >
    Chinnu wrote:
    > Hello Jeffery Andersen,
    >
    > If I understand correctly, you are trying to preview FPM_OIF_COMPONENT.
    >
    > I think this component can not be executed as it just is a template for creating a FPM applications. In other words, it is an interface that can be used to created a WD ABAP application from work bench.
    >
    > This [Floor Plan Manager - ABAP|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/90f3cfd2-46d0-2b10-b3ab-eabf3452cc50&overridelayout=true] can help you understand better.
    >
    > Best regards,
    > Chinnu
    Hi Chinnu,
    Your understanding is not correct, he is trying to execute the application /sapsrm/wda_l_fpm_oif'.
    Hallo Jeff,
    everyone have suggested lots of possibilities. Nothing works for you. I would suggest the following.
    Go and execute any other FPM application which uses FPM_OIF_COMPONENT,does it work ?
    If it works then you can narrow down that /sapsrm/wda_l_fpm_oif is not working and you can raise a OSS ticket.
    If it is not working then you have to see if you have right BASIS versions to use FPM.
    Edited by: Baskaran Senthivel on Dec 6, 2010 1:09 PM

  • 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

  • Short Dump when trying to change configuration of BT112H_SC/OVViewSet (Service Contracts)

    Hi Experts,
    I have a problem with a component usage when trying to change the OverviewSet Configuration for the Service Contract. The whole component BT112H_SC is complete standard and no enhancements have been made yet.
    When trying to change the configuration of the view OVViewSet there appears the error message:
    '500 SAP Internal Server Error'
    Error: Define Component Usage 'CUIR_Container' (termination: Rabax_State)
    The place where the code dumps is shown in the attached picture with the name 'ST22'. The error screen when trying to change of the configuration is shown in the attached picture 'Configuration'
    It seems like one error is appearing in Line 18 of the class CL_BSP_WD_REPOSITORY and method GET_CMP_USAGE_DEF:
    Method: GET_CMP_USAGE_DEF.
    method GET_CMP_USAGE_DEF.
       field-symbols: <USAGE> type BSP_WD_CMP_USAGE_DESCR.
       read table ME->USAGES with key USAGE_NAME = IV_USAGE_NAME
                             assigning <USAGE> binary search.
       if SY-SUBRC = 0.
    *   Is usage active?
         if CL_WEBCUIF_SWITCH=>IS_ACTIVE( IV_SWITCH_ID = <USAGE>-SFW_DATA-SWITCH_ID
                                          IV_REACTION  = <USAGE>-SFW_DATA-REACTION ) ne ABAP_TRUE.
    *     usage switched off
           raise exception type CX_BSP_WD_INCORRECT_IMPLEMENT
             exporting
               TEXTID = CX_BSP_WD_INCORRECT_IMPLEMENT=>ACCESS_2_INACTIVE_ELEMENT
               NAME   = IV_USAGE_NAME.
         endif.
         RS_RESULT = <USAGE>.
       else.
         raise exception type CX_BSP_WD_INCORRECT_IMPLEMENT
           exporting
             TEXTID = CX_BSP_WD_INCORRECT_IMPLEMENT=>UNDEFINED_CMP_USAGE
             NAME   = IV_USAGE_NAME.
       endif.
    endmethod.                    "GET_CMP_USAGE_DEF
    Any Ideas? Do I have to create the component usage manually?

    Hi Oliver,
      Go to RTR->Viewset->OVViewset-> see whether any view 'CUIR_CONTAINER' is there in that viewset.
      If it is there then u need to create component usage of that view. Or else remove that view from viewset.
    Regards,
    Arun

  • Short dump when trying to change DTP status to 'green'

    Hi,
    For a DTP delta run that brings in 0 records, the technical status turn green after 5-6seconds. But the overall status remains in yellow state.
    Also if we manually try to set it to 'red', I am able to do so and delete this request and run a new request, but again it ends with overall status yellow.
    If I try to set it to 'green' manually following short dump occurs:
    Category               ABAP Programming Error
    Runtime Errors         MESSAGE_TYPE_X
    ABAP Program           SAPLRSMDATASTATE
    Application Component  BW-WHM-DST
    I have already scanned all SAP notes relevant for this short dump, but none of them relates to this scenario.
    Please let me know if anyone faced this issue anytime, and how was it solved?
    Version : BW 7.02 SP14
    Regards,
    Rathy

    Hello Rathy,
    You can do following things,
    From message, it is apparent that there is Error in one of the ABAP Program . And as the Error is occurring within few seconds of the Start of DTP, can you check and debug the Start Routine .
    If Start Routine is not there, try to check whatever ABAP routine are there in facilitating the  processing.
    ( Routine in relevant Application Componenrt - BW-WHM-DST )
    Before this, can you also check the ABAP Dump through  ST22 and make sure that the underlying datasource ( for DTP ) is OK and smooth.
    Try to proceed in that way.. Hope this helps !
    Regards
    YN

  • Oracle crashes when trying to pull reports into Excel

    We are using Oracle 806 with Designer 2000 to pull reports into excel (office 2003).
    Here is the issue, when we try to pull the report into Excel the report pulls and it puts it in the tmapps/files folder, but excel does not open and oracle crashes.
    We also tested it with office 07 with the same results.
    What could be causing this?
    Let me know if there is any other information I can provide to help you help me.
    thank you!

    If by "oracle crashes" you mean the DB, then there are trace/dump files that the DBA can find that will help to identify the cause of the crash. If you mean Designer, I have no experience there.
    Regardless, consider newer versions/alternatives to both since they are both very dated (10 years at least) by this point.

  • Short dump when trying to Select date in Field

    Hi,
    I created generic data source based on Function Module. I went to RSA3 to test the extraction and I got this error message when I tried to enter a date as input selection in date field or any other selection field
    If I test the extraction without any input I get correct results.
    Whats the reason for this error?
    *Error analysis
       The current ABAP/4 program attempted to execute an ABAP/4 Open SQL
       statement in which the WHERE condition contains an IN itab operator.
       The IN itab operator is used with internal tables which
       have the following structure:
          SIGN(1)   OPTION(2)   LOW LIKE db_field   HIGH LIKE db_field
       The OPTION column should contain only one of the following values:
          "EQ LE GE CP BT NE LT GT NP NB"
    Function module code
    of the type SIGN = 'I' and OPTION = 'EQ' or OPTION = 'BT'.
          LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'COMPID'.
            MOVE-CORRESPONDING L_S_SELECT TO rd.
            APPEND rd.
          ENDLOOP.
          LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'SUBSCRIBERS'.
            MOVE-CORRESPONDING L_S_SELECT TO rs.
            APPEND rd.
          ENDLOOP.
          LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'TURNOVER'.
            MOVE-CORRESPONDING L_S_SELECT TO rt.
            APPEND rd.
          ENDLOOP.
          LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'ENTRYDATE'.
            MOVE-CORRESPONDING L_S_SELECT TO re.
            APPEND rd.
          ENDLOOP.
    Determine number of database records to be read per FETCH statement
    from input parameter I_MAXSIZE. If there is a one to one relation
    between DataSource table lines and database entries, this is trivial.
    In other cases, it may be impossible and some estimated value has to
    be determined.
          OPEN CURSOR WITH HOLD S_CURSOR FOR
          SELECT (S_S_IF-T_FIELDS) FROM ZMOBILEDATA
                                   WHERE COMPID  IN rd AND
                                         SUBSCRIBERS  IN rs AND
                                         TURNOVER IN rt AND
                                         ENTRYDATE IN re.
        ENDIF.                             "First data package ?
    Fetch records into interface table.
      named E_T_'Name of extract structure'.
        FETCH NEXT CURSOR S_CURSOR
                   APPENDING CORRESPONDING FIELDS
                   OF TABLE E_T_DATA
                   PACKAGE SIZE S_S_IF-MAXSIZE.
        IF SY-SUBRC <> 0.
          CLOSE CURSOR S_CURSOR.
          RAISE NO_MORE_DATA.
        ENDIF.
    Thanks

    Hi,
    thanks for your input
    Rd, rt,re and rs are ranges.
    Select ranges
      RANGES: rd FOR ZMOBILEDATA-COMPID,
              rs FOR ZMOBILEDATA-SUBSCRIBERS,
              rt FOR ZMOBILEDATA-TURNOVER,
              re FOR ZMOBILEDATA-ENTRYDATE.
    thanks'

  • Short Dump when trying to display transformations.

    hello Experts,
    When I am trying to display the rule details in the transformations i am facing the follwing shortdump messages. I just want to see the rooutine in the rule details of the transformation.Could you please help me to resolve this issue.
    "MESSAGE_TYPE_X" " "
    "CL_RSTRAN_STEP_ROUT===========CP" or "CL_RSTRAN_STEP_ROUT===========CM008"
    "MAINTAIN_ROUT"
    Regards,

    Step 1: After u see the error message when you open the transformation, try TC su53. This will tell you if you are missing any authorization.
    Step2 : If everything is fine! Is your Tran 'deactivated' id 'white' in color ? Activate you source n target again & try to open the TRAN

  • 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

  • Short Dump When Installing Key Figure Catalog from BI Content

    Hi Friends,
                    I get a Short dump when trying to Install a Key Figure Catalog (in Purchasing) from the BI content. This is what the Error Says ,
    " You Attempted to Use a "NULL" object reference (Points to nothing) access a component (variable : "  "). An Object reference must point to an object (an instance of class ) before it can be used to access components.
    Any input will be greatly appreciated,

    Hi Michal,
    this bug hits only patch level 201 of the DBSL. Please update the DBSl.
    Regarding the ABAP code I do not believe that the hint helps in this case but it should not cause any problems either. If this hint is applied more PREPARE calls are neccessary since before every execution a new statement text is assembled.
    The advantage of SUBSTITUTE_VALUES hints is that the database optimizer get more information through the statement text. The downside is that a new statement is generated every time. E.g. you won't find the statement as a top scorer in a SQL cache analysis if the access plan is still bad.
    Regards
                   Frank

  • 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

Maybe you are looking for