Dump while using alv structre

HI ALL,
i working on the with alv tree and i am calling to the following method
with structure SYST (just for test )and the problem is that i try to put my structure
i have a dump ,
i the alv tree i dont dispaly any table just one column with all
the needed data .
my structure have just one column type LVC_VALUE .
what i miss here i want to replace the structrue SYST with my structure?
mo_tree->set_table_for_first_display(
       EXPORTING
         i_structure_name     = 'SYST'
         is_hierarchy_header  = ls_hier_header
         it_toolbar_excluding = mt_function
       CHANGING
         it_outtab            = mt_tree )
Best Regards
Alex
if it help this is the dump
You attempted to access an unassigned field symbol
(data segment "-1").
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.

Hi!
The parameter, what you give for the i_structure_name and the it_outtab, must have the same structure.
If the it_outtab contains only 1 column, it cannot be the same with SYST structure.
Maybe if you declare it like this:
DATA: mt_tree LIKE STANDARD TABLE OF syst.
However this structure will never make you a tree-like ALV.
Check out the sample programs in SE38, called BCALV_TREE_*
Regards
Tamá

Similar Messages

  • How to trigger New page while using ALV with classes/oops?

    Hi All
    I am trying to print a report which has to show the data in two pages.
    I am using ALV with classes/oops.
    Though I am able to print the report but a new page is not coming. Whole of the data is coming in one single page.
    Please tell me as to how to trigger a NEW PAGE while using ALV with classes/oops.
    Please send some code samples also if available.
    Thanks in advance.
    Jerry

    using sort option you can do it. in case of grid/oo alv class ALV you can view that only in print mode/preview mode.
    in case of list you can view that directly.
    sort-fieldname = 'FIELDNAME'.
    sort-group = '*'  "triggers new page
    sort-up = 'X'.
    append sort to it_sort.

  • Short Dump while using BAPI_PS_PRECOMMIT to set Project Definition Status

    Hi All,
    I am getting a short dump while using BAPI_PS_PRECOMMIT for setting the Project Definition status..
    The requirement is to create a Project Definition and then set its status to REL from CRTD. For this purpose i am using the BAPI's in the following sequence :
    1. BAPI_PS_INITIALIZATION
    2. BAPI_PROJECT_MAINTAIN
    3. BAPI_BUS2001_SET_STATUS
    4. BAPI_PS_PRECOMMIT
    5. BAPI_TRANSACTION_COMMIT
    The Proj Def creation is happening successfully in step2. Interestingly, when I debug the program and stop at PRECOMMIT BAPI the program does not give a dump. I have also tried to give COMMIT WORK / WAIT FOR n SECONDS after BAPI_BUS2001_SET_STATUS, to give BAPI sometime for DB update but nothing seems to be a permanent solution.
    Please give your views on a solution for this problem..
    Thanks & Regards,
    Somil

    Can you please check how to post code in SDN ...
    I cannot read your code properly

  • Strange Dump while using HR_INFOTYPE_OPERATION.

    Hi frnz,
    I am facing dump while using the FM 'HR_INFOTYPE_OPERATION' as below. <b>If I swap positions of w_p0041-endda and w_p0041-begda it does not give a dump but error msg is generated saying that no selection in the period(as obviously dates are in propper range).</b> <u>Whlie testing the FM in SE37 with the same data, it works fine.</u> Please help me find the problem.
    data: TCLAS like PSPAR-TCLAS,
          OPERATION like PSPAR-ACTIO,
          infty like PRELP-INFTY.
          infty = '0041'.
          OPERATION = 'MOD'.
          TCLAS = 'A'.
      CALL FUNCTION 'HR_INFOTYPE_OPERATION'
        EXPORTING
          INFTY                  = infty
          NUMBER                 = w_p0041-pernr
      SUBTYPE                =
      OBJECTID               =
      LOCKINDICATOR          =
         VALIDITYEND            = w_p0041-endda
         VALIDITYBEGIN          = w_p0041-begda
      RECORDNUMBER           =
          RECORD                 = w_p0041
          OPERATION              = OPERATION
          TCLAS                  = TCLAS
      DIALOG_MODE            = '0'
        NOCOMMIT               = SPACE
      VIEW_IDENTIFIER        =
      SECONDARY_RECORD       =
       IMPORTING
         RETURN                 =  Return
      KEY                    =

    Hi all ,
    I have already tried converting date to internal format, the data types are also fine. I am not able to paste the screen shot so here is a part of it. Please help.
    ************DUMP************************************
    If we can not remap we would like to just re-raise the
    exception like below like "RAISE EXCEPTION exception.".
    Unfortunately the kernel will then forget about the
    original source position.
    So this is the fallback strategy. Calling this method
    is only allowed if the exception can be resolved. Since
    this is not the case we indicate a parameter violation.
      RAISE EXCEPTION TYPE cx_hrpa_invalid_parameter
        EXPORTING
          previous  = exception
          parameter = 'EXCEPTION'.
    ENDMETHOD.
    ********************END**************
    Thanks
    Sachin

  • Short dumps while using J3A9 & VK12

    We are implementing SAP ECC 6.0 and are experiencing short dumps while using transactions J3A9 and VK12.  They all point to program /AFS/SD_DISP_CONDITION_TABLE and related Includes.  I haven't found any information regarding this program on this site or in OSS, mostly due to the fact that the program is only 2 months old, which is troubling enough...
    If anyone is experiencing similar issues, please feel free to respond.  I have opened an OSS note with SAP and they are having trouble recreating the issue as it doesn't happen consistently. 
    Thanks and best regards,
    Chris Mowl

    We are implementing SAP ECC 6.0 and are experiencing short dumps while using transactions J3A9 and VK12.  They all point to program /AFS/SD_DISP_CONDITION_TABLE and related Includes.  I haven't found any information regarding this program on this site or in OSS, mostly due to the fact that the program is only 2 months old, which is troubling enough...
    If anyone is experiencing similar issues, please feel free to respond.  I have opened an OSS note with SAP and they are having trouble recreating the issue as it doesn't happen consistently. 
    Thanks and best regards,
    Chris Mowl
    10/22/08:  Several OSS notes have been created regarding this issue but none of them have solved it.  The two most recent notes are 1262962 & 1225190.  If you are having this problem. start with these notes.

  • Classification System CA-CL: Problems / Dumps while using a new class type

    Hi All,
    You'd really make my day by helping me out w. hints or even a solution. Would reward points for your efforts...
    The problem: in order to develop a class hierachy of product groups (in industry system, Rel. 6.40) I created a new class type (let's call it ZWG).
    While doing so R/3 requsted me to provide info on the objects to assign to this class type as well as the transaction for displaying these objects. For Product Groups (material classes) this is object-table T023 and transaction WG24.
    Furthermore the sys demands the implementation of a function module. This module's task is to check the existence of a given object as well as the locking and later unlocking in the process of classifying objects. Following SAP's naming convention I implemented and activated FM OBJECT_CHECK_T023.
    After that I created a new class (FIRST_CLASS) of class-type ZWG.
    I managed to assign exactly one (1) prod-grp to this class but afterwards I only receive dumps while using transactions CL20N, CL24N  to assign objects.
    The Message from ST22 says:
    Assignment error: Overwriting a protected field.
    Error in ABAP application program.                                                                               
    The current ABAP program "SAPLCLCV" had to be terminated because one of the 
    statements could not be executed.                                                                               
    This is probably due to an error in the ABAP program.                       
    Do I have to debug throughout thís enormous amount of coding now? :-(((
    Hope someone get's my "message in a bottle"
    Best Regards
    Udo

    Yatin please see attached for warning.I am trying to create Z class using 001

  • Short Dump while executing ALV Grid.

    Hi All,
    I m getting a short dump while trying to execute an ALV.
    The dump exception is of type
    CX_SY_DYN_CALL_ILLEGAL_TYPE class.
    The message displayed is :  " Call to form 'GI_FIELDCAT' is incorrect .The actual parameter in PERFORM is different data type than requested for form GI_FIELDCAT "  .
    The part of programe included is as follows:
      FORM build_fieldcat .
        PERFORM gi_fieldcat USING 'MBLNR' text-014 '1' '20'.
        PERFORM gi_fieldcat USING 'ZEILE' text-005 '2' '4'.
        PERFORM gi_fieldcat USING 'MATNR' text-006 '3' '18'.
        PERFORM gi_fieldcat USING 'MAKTX' text-028 '4' '40'.
        PERFORM gi_fieldcat USING 'MATKL' text-029 '5' '40'.
        PERFORM gi_fieldcat USING 'BUDAT' text-027 '6' '10'.
        PERFORM gi_fieldcat USING 'MENGE' text-026 '7' '9'.
        PERFORM gi_fieldcat USING 'DMBTR' text-025 '8' '13'.
        PERFORM gi_fieldcat USING 'WAERS' text-011 '9' '5'.
        PERFORM gi_fieldcat USING 'RSNUM' text-012 '10' '10'.
        PERFORM gi_fieldcat USING 'PSPHI' text-013 '11' '10'.
    ENDFORM.                    " build_fieldcat
    FORM gi_fieldcat  USING    fieldname TYPE slis_fieldcat_alv-fieldname
                               colmname  TYPE slis_fieldcat_alv-seltext_m
                               colmpos   TYPE slis_fieldcat_alv-col_pos
                               outputlen TYPE slis_fieldcat_alv-outputlen.
      wa_fieldcat-fieldname   = fieldname.
      wa_fieldcat-seltext_m   = colmname.
      wa_fieldcat-col_pos     = colmpos.
      wa_fieldcat-outputlen   = outputlen.
    wa_fieldcat-
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR  wa_fieldcat.
    ENDFORM.                    " gi_fieldcat
    Can ayone gimmi a solution for the same.

    Hi,
    Try to change ur code like the below.
    Attached: sample code
    Building field catalog
      PERFORM modify_catlog USING:
      'GT_OUTPUT' 'AUART'  text-t02  '1',
      'GT_OUTPUT' 'KUNNR'  text-t03  '2',
      'GT_OUTPUT' 'NAME'   text-t04  '3',
      'GT_OUTPUT' 'KWMENG' text-t05  '4',
      'GT_OUTPUT' 'VRKME'  text-t06  '5',
      'GT_OUTPUT' 'LFIMG'  text-t07  '6',
      'GT_OUTPUT' 'GEWEI'  text-t08  '7',
      'GT_OUTPUT' 'VOLUM'  text-t09  '8',
      'GT_OUTPUT' 'VOLEH'  text-t10  '9',
      'GT_OUTPUT' 'BRGEW'  text-t11 '10',
      'GT_OUTPUT' 'UOMGW'  text-t12 '11',
      'GT_OUTPUT' 'VARCE'  text-t13 '12',
      'GT_OUTPUT' 'UOMVR'  text-t14 '13'.
    FORM modify_catlog USING    pa_tabname TYPE string
                                pa_field   TYPE string
                                pa_text    TYPE string
                                pa_pos     TYPE string.
      CLEAR gs_fieldcatalog.
    *Modifying field catalog
      gs_fieldcatalog-col_pos = pa_pos.
      gs_fieldcatalog-fieldname = pa_field.
      gs_fieldcatalog-tabname = pa_tabname.
      gs_fieldcatalog-seltext_m = pa_text.
      APPEND gs_fieldcatalog TO gt_fieldcatalog.
      CLEAR gs_fieldcatalog.
    l_repid = sy-repid.
    To call function to display ALV output
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                i_callback_program = l_repid
                it_fieldcat        = gt_fieldcatalog
                     TABLES
                t_outtab           = gt_output
           EXCEPTIONS
                program_error      = 1
                OTHERS             = 2.
      IF sy-subrc <> 0.
        MESSAGE e000 WITH text-t16.
      ENDIF.
    Reward if helpful.
    Regards,
    Ramya

  • Short dump while using BAPI_PO_CREATE1

    Hi all,
    I am facing this short dump while executing my program that uses BAPI_PO_CREATE1.
    The error is 'Exception condition "failure" raised'.
    The trigger location of runtime error is
    Program : CL_HANDLE_MANAGER_MM====================CP
    Include:   CL_HANDLE_MANAGER_MM=====================CM005
    Module name:   GET
    Source code:
    Method GET.
    If my_manager is initial.
        Call method get_manager.
    endif.
    call method my_manager-> search EXporting im_id  = im_id
                                                            Importing ex_handle = ex_handle
                                                            Exceptions failure = 01.
    If sy-subrc <>0.
      raise failure.
    endif.
    I am a beginner in ABAP. Plz help.

    Hi ,
    I faced the similar situation once , in my case when i passed the Delivery indicator value in the Item Table as well as Itemx Table , i was facing this error .
    what  i suggest you is to pass it at the Item table only , not at the itemx Table.
    it worked  for me .
    try this and reply for the same.

  • Getting Dump while using PYXX_READ_PAYROLL_RESULT FM

    I m trying to get the gross salary and ESI contribution amount for an indian based employee. While using the FM 'PYXX_READ_PAYROLL_RESULT' i m getting the following dump.
    ************************************************************************************************************************************************************An exception occurred that is explained in detail below.The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', wa  not caught in  procedure "PYXX_READ_PAYROLL_RESULT" "(FUNCTION)", nor was it propagated by  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:
    Call to FORM "IMPORT_RESULT" is incorrect:
    The actual parameter no. 2 has a different data type in the
    PERFORM than requested for the FORM "IMPORT_RESULT" in program  %_T06K40".    
    and it is showing the dump result here
    ELSE.
          PERFORM import_client_spec IN PROGRAM (subroutine_pool-name)
                                      USING client
                                             key
                                             payroll_result
                                             import_subrc
                                             pcl2_version_number
                                             typepool_version_number
                            IF FOUND.
    Pls help me to solve the issue as it very high priroty work

    Hi Faisal,
    Before the FM the Sy-Subrc is zero only and i have declared the exception part also..
    IF sy-subrc = 0.
      CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'
        EXPORTING
          clusterid                    = 'IN'
          employeenumber               = P0001-pernr
          sequencenumber               = it_rgdir-seqnr
          filter_cumulations           = ''
        CHANGING
          payroll_result               = it_payresult
        EXCEPTIONS
          illegal_isocode_or_clusterid = 1
          error_generating_import      = 2
          import_mismatch_error        = 3
          subpool_dir_full             = 4
          no_read_authority            = 5
          no_record_found              = 6
          versions_do_not_match        = 7
          error_reading_archive        = 8
          error_reading_relid          = 9
          OTHERS                       = 10.
      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.
    Thanks!

  • ABAP Dump while using "Upload from clipboard"

    Hi,
    We are facing ABAP dump when using "upload from clipboard" funciton without any data on the clipboard.
    "Upload data" is working fine if some data exists on the clipboard. If in case of no data on the clipboard, it is leading to an ABAP dump.
    Appreciate if anyone could point some OSS note or any solution if you've already faced this issue.
    This is happening in our BW system with SAP_BASIS "SAPKB62018" and SAP_ABA "SAPKA62018".
    Same thing happens in our BW test systems which are upgraded to the latest support pack.
    Following is the error analysis
    Error analysis                                                                               
    A RAISE statement in the program "CL_GUI_FRONTEND_SERVICES======CP " raised the        
    exception                                                                             
    condition "CNTL_ERROR".                                                                
    Since the exception was not intercepted by a superior program                          
    in the hierarchy, processing was terminated.                                                                               
    Short description of exception condition:                                                                               
    For detailed documentation of the exception condition, use                             
    Transaction SE37 (Function Library). You can take the called                           
    function module from the display of active calls.                                      
    How to correct the error                                                                               
    You may able to find an interim solution to the problem                                
    in the SAP note system. If you have access to the note system yourself,                
    use the following search criteria:                                                                               
    "RAISE_EXCEPTION" C                                                                    
    "CL_GUI_FRONTEND_SERVICES======CP " or "CL_GUI_FRONTEND_SERVICES======CM00T "          
    "CLIPBOARD_IMPORT"

    Hi,
    When you say 'We are facing ABAP dump when using "upload from clipboard" funciton without any data on the clipboard.', are you using this in a custom program and are you running your custom program in the background?
    From the error you mentioned, to me it looks like you had a control error and controls are for foreground, online process and not suitable for background processing. Same argument holds good for most of the enjoy SAP transactions when you try to do BDC, they will give you a similar error if you hit the piece of code where controls are used.
    Controls are created on the desktop of the user and in background this is not possible.
    Please let me know if this is the reason.
    Srinivas

  • Message in Status Bar while using ALV Objects

    Hi All,
    If we use ALV in objects (Build in class and methods for ALV),is it possible to display a error message using Message statement in Status bar.
    Thanks in advance.

    Hi,
    Yes, it is possible.  You can do it using the ALV Object Model (ALV OO methods) within an event handler method.  For example, the event "added_function of cl_salv_events" can be used and you can add code similar to the following code within the event handler method:
    CASE e_salv_function.
      WHEN 'XYZ'.
        MESSAGE w001(00) WITH 'Message text goes here...'.
    ENDCASE.
    The warning message will either show up as a popup or in the status bar depending on your user settings.  Of course, you can also use other message types (e.g. I, E, S) or other message techniques besides the message statement.
    Best Regards,
    Jamie

  • Sql error dump while using pfcg tcode.

    hi,
    I am getting one dump while executing PFCG tcode. Hereunder i am pasting the log,
    Runtime Errors DBIF_RSQL_SQL_ERROR
    Exception CX_SY_OPEN_SQL_DB
    Database error text........: "ORA-01115: IO error reading block from fil
    (block # 52025)#ORA-01110: data file 9:
    '/oracle/OPL/sapdata2/sr3_6/sr3.data6'#ORA-27091: unable to queue
    I/O#ORA-27072: File I/O error#HPUX-ia64 Error: 5: I/O error#Additional
    information: 3#Additional inform"
    Internal call code.........: "[RSQL/FTCH/AGR_FLAGS ]"
    Please check the entries in the system log (Transaction SM21).
    If the error occures in a non-modified SAP program, you may be able to
    find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following
    keywords:
    "DBIF_RSQL_SQL_ERROR" "CX_SY_OPEN_SQL_DB"
    "SAPLPRGN_START3" or "LPRGN_START3U33"
    "PRGN_START3_LOAD_FLAGS"
    Soon help will be appreciated.
    regards

    Hello,
    Take a look at note 546006 - point 6
    Thanks

  • How to download subtotals into xl sheet while using alv list display

    hi all,
    i have a reqiurement i.e.
    iam displaying the data by using alv list display. i have one option called Download in my PF-STATUS.when i click this button it downloads the data .now my requirement is when i cllick on subtotals list displays asubtotals according to the sales order no.now i click doenload button then it has download the data into xlsheet with subtotals and grandtotals.
    anybody can send me the sample code plz.
    thanks,
    maheedhar.t

    Hello Maheedhar
    Using ALV lists you do not need a special function for downloading. Simply calculate the totals and subtotals on your ALV list and then press the (toolbar or menu bar) button <b>"Print Preview...".</b>
    The print preview display a "flat" list including the subtotals that can be downloaded to Excel.
    Regards
      Uwe

  • Short dump while using FM "BAPI_GOODSMVT_CREATE" in background

    Hi Sir,
    I am using the FM "BAPI_GOODSMVT_CREATE" to create the Goods movement. While running the program through a job in background, article docu is generated successfully,,but at the same time it gives short dump in ST22.
    Short text
        Exception condition "CNTL_ERROR" raised.
    A RAISE statement in the program "CL_GUI_CUSTOM_CONTAINER=======CP" raised the
    exception
    condition "CNTL_ERROR".
    Since the exception was not intercepted by a superior
    program, processing was terminated.
    Please tell me what can be the possible reason for the same and how to avoid the same?
    Warm regards
    Krishan

    There's at least one note addressing this. You should be able to find it quite easily.
    Rob

  • Dump; while using LSMW with RFBIBL00.

    Hi,
    I am using Standard Batch/direct input method.
    Ending up with a dump with the following error message:
    The reason for the exception is:
    The program attempted to interpret the value "/" as a number, but
    since the value contravenes the rules for correct number formats,
    this was not possible.
        IF BBKPF-PROPMANO(1)                 NE NODATA.
         CLEAR: FTPOST-FNAM, FTPOST-FVAL.
          FTPOST-FNAM = 'BKPF-PROPMANO                    '.
          FTPOST-FVAL = BBKPF-PROPMANO                   .
        APPEND FTPOST.
       ENDIF.
    215    >>>   IF BBKPF-VATDATE(1)                  NE NODATA.
          CLEAR: FTPOST-FNAM, FTPOST-FVAL.
          FTPOST-FNAM = 'BKPF-VATDATE                     '.
           FTPOST-FVAL = BBKPF-VATDATE                    .
           APPEND FTPOST.
       ENDIF.
    ENDFORM.
    This code is a part of include program RFBIBL02.
    While i am testing the same project in the sandbox system, it's working fine, as the condition                   
    "IF BBKPF-VATDATE(1) NE NODATA"
    is not there in the program RFBIBL02 (in sandbox system) .
    Is there any way to bypass this condition or any other way to get it resolved?
    Please suggest me a relevant solution.
    Thanks.

    Hi ,
    If u r not passing any value to the date field then no data value will be taken as '/'.
    As date field cannot be given as '/' u r getting the dump.
    Please clear the date field if there is no data. u can give the following piece of code in mapping section of that date field.
    If not aritems-vatdate is initial.
    bbkpf-vatdate = aritems-vatdate.
    else.
    clear bbkpf-vatdate.
    endif.
    this will clear the '/' value if there is no data in date field.
    Reward points if useful.
    Asif

Maybe you are looking for

  • Company codes have different settings for withholding tax treatment

    Hi I got the below error message and its correct. But, I would like to know whether there is any work around to over come this error. thnks Sridevi Message no. F5786 Diagnosis You are entering a document containing at least one vendor or customer ite

  • How to use selection buttons in an ALV created without abap objects?

    Hi, I use an alv created without ABAP Objects to show some information. Can I introduce inside the alv, the top buttons to select all rows / none row? And the second question, how may I introduce lateral buttons in the ALV to select indidividual rows

  • Images dont show up

    Hi im a graphic designer and not really strong in web design so im having a bit of trouble with the site im creating for the company i work for. i created the site off line and created it in Dreamweaver CS3 now as far as I kno all my links are accura

  • No keylight in Adobe After Effects CS4 ?

    hey I can't find the keylight in Adobe After Effects CS4.  not under "keying" and not when I search for it in the effects search input. where can I find it? or how and where can download the plugin in order to install it ? thnaks

  • Just Bought A Mac (Desktop) and have a Q

    this might be a dumb question but where the time is in the corner on the top bar. right next to it is the volume icon, then beside that is an american flag. what does that mean?? and do i need it displayed up there, if not then how can i remove it fr