Getting dump in my Z program
hi,
i am getting dump in my below code in the delete statement line.actually previously it worked fine but now suddenly we r getting dump in the second delete statement below.can some body tell me the reason.
error analysis: You attempted to change, delete or create a line in the
internal table "\PROG=YBDISEMAT\DATA=INT_MARC", but no valid cursor exists
for the table.
Possible reasons:
1. The relevant ABAP/4 statement does not include the addition
"...INDEX...", although the statement is not
inside a "LOOP...ENDLOOP" loop processing this table.
2. The relevant ABAP/4 statement was called from within a
"LOOP...ENDLOOP" loop after a DELETE "\PROG=YBDISEMAT\DATA=INT_MARC".
LOOP AT int_marc INTO wa_marc.
IF wa_marc-werks IN ra_source.
READ TABLE int_disgr WITH KEY zdisgr = wa_marc-disgr
zwerks = wa_marc-werks.
IF sy-subrc NE 0.
DELETE int_marc.
ENDIF.
ENDIF.
IF wa_marc-werks IN ra_zmdc.
READ TABLE int_disgr WITH KEY zdisgr = wa_marc-disgr
zwerks = wa_marc-werks.
IF sy-subrc NE 0.
DELETE int_marc. _______________________________________________ getting dump here
ENDIF.
ENDIF.
CLEAR wa_marc.
ENDLOOP.
Hi.
First of all deleting an internal table inside the loop is not a good practise ..You are deleting the same internal table that you are looping..
Instead of that you can make a small modification to your code.
LOOP AT int_marc INTO wa_marc.
IF wa_marc-werks IN ra_source.
READ TABLE int_disgr WITH KEY zdisgr = wa_marc-disgr
zwerks = wa_marc-werks.
IF sy-subrc NE 0.
move 'X' to any field in the internal table.
or you can have an additinal field in the end of the internal table like flag type char01.
and move 'X' to wa_marc-flag.
ENDIF.
ENDIF.
Now outside the loop you can delete
delete int_marc where flag = 'X'.
Regards
Ansari
Similar Messages
-
Getting Dump in Production system
Hi,
we are getting dump in one customise program due to missing include program.
how to transport this missing program.?
regards,
RameshHi,
run tcode SE10 in DEV system.
click on create -> select workbench request -> enter description of request -> enter
now double click on request -> click change end enter following
In first row
Program ID: R3TR
Object Type: PROG
Object Name: name of include. press enter
in second row
Program ID: LIMU
Object Type: REPS
Object Name: name of include. press enter
then click on release.
import this request in PRD system.
regards,
kaushal -
After copied class from standard class program getting dump.?
HI
Expert
I copied to a zclass from standard class (CL_SPROJECT_SOLAR_BASE_REPORT).. if calling program through zclass program getting dump, if calliing program through above standard class then it works fine...
error is
The function module interface allows you to specify only fields of particular type under i_so_report. The field "ME" specified different here......
Note:- Totaly i copied from standard class and activated it also.. even i did not changed any code inside method .but facing this dump why..
How to achieve this...pls help me out
Thanks
SusantaI did wt ever was there given solution but still not resolved pls help me ..thanks
showing error
Call Method XXXXX
DATA: lo_grid TYPE REF TO CL_SPROJECT_SOLAR_BASE_REPORT.
lo_grid = me.
CALL FUNCTION 'SPROJECT_EVAL_SET_SELSCREEN'
EXPORTING
i_o_data_container = a_o_data_container
i_v_reptype = global_reptype
i_o_sa_report = lo_grid
i_v_category = category
i_o_data_cont_lnk_docu = a_o_data_cont_lnk_docu "MP 21.07.05
syntax error - The type of "ME" cannot be converted to the type of "LO_GRID". ..why..? did i coded incoreclty or tell me where to define that data type... -
Getting dump with message CALL_FUNCTION_GET_NAME_FAILED
Hi,
My requirement is to write a report which will be run in background every Monday and the result will be sent to a user as email with excel as attachment.
I tried it by giving the email in 'Spool list recipient' in SM36. ut since the length of the output is more than 255 chars, so i thought of writing the email code as shown below.
DATA: l_message_content LIKE soli OCCURS 10 WITH HEADER LINE,
l_receiver_list LIKE soos1 OCCURS 5 WITH HEADER LINE,
l_packing_list LIKE soxpl OCCURS 2 WITH HEADER LINE,
l_listobject LIKE abaplist OCCURS 10,
l_compressed_attachment LIKE soli OCCURS 100 WITH HEADER LINE,
lw_object_hd_change LIKE sood1,
l_compressed_size LIKE sy-index.
l_receiver_list-recnam = sy-uname .
l_receiver_list-esc_des = 'B'.
APPEND l_receiver_list.
lw_object_hd_change-objla = sy-langu.
lw_object_hd_change-objnam = 'Selection'.
lw_object_hd_change-objsns = 'P'.
Mail subject
lw_object_hd_change-objdes = 'KRB SAP Inconsistency Report'.
Mail body
APPEND 'Consisteny report between KRB and SAP' TO l_message_content.
CALL FUNCTION 'TABLE_COMPRESS'
IMPORTING
compressed_size = l_compressed_size
TABLES
in = <fs_table>
out = l_compressed_attachment.
DESCRIBE TABLE l_compressed_attachment.
CLEAR l_packing_list.
l_packing_list-transf_bin = 'X'.
l_packing_list-head_start = 0.
l_packing_list-head_num = 0.
l_packing_list-body_start = 1.
l_packing_list-body_num = sy-tfill.
l_packing_list-objtp = 'ALI'.
l_packing_list-objnam = 'Selection'.
l_packing_list-objdes = 'SAP KRB Consistency Report'.
l_packing_list-objlen = l_compressed_size.
APPEND l_packing_list.
CALL FUNCTION 'SO_OBJECT_SEND'
EXPORTING
object_hd_change = lw_object_hd_change
object_type = 'RAW'
owner = sy-uname
TABLES
objcont = l_message_content
receivers = l_receiver_list
packing_list = l_packing_list
att_cont = l_compressed_attachment.
I am getting the mail which i checked in SBWP but when i clicked on the attachment i am getting dump with message CALL_FUNCTION_GET_NAME_FAILED.
Short text
Error when starting a Remote Function Call.
What happened?
"CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=223#CPIC program connection ended (read
error) "
An error occurred when executing a Remote Function Call.
Error analysis
An error occurred when executing a Remote Function Call.
"CPIC-CALL: 'ThSAPCMRCV' : cmRc=20 thRc=223#CPIC program connection ended (read
error) "
Status of connection.... "RFC DRV=??? ???"
Internal error code.... "RFC_IO4"
Internal error: Invalid RFC handle.
Trigger Location of Runtime Error
Program SAPMSSY1
Include SAPMSSY1
Row 266
Module type (FORM)
Module Name XAB_RUN_DRIVER
Please help in this.
<removed by moderator>
Edited by: Thomas Zloch on Sep 14, 2011 11:57 AMHi,
Check your RFC Connection Configuration. Also, check the used username & password.
Reward points if the asnwer is helpful.
Regards, -
Getting Dump at the time of opening WF
Hi,
we had created workflow WS93600011 in our development server. Till Friday 10.07.2009 it was working fine. We did some small change and activated the workflow. Till that time we were able to open the workflow template. On 13.06.2009 when we tried to open the workflow then it was giving dump, so accordingly we checked is this the problem with only 1 workflow template or all the workflow templates and we found that this is the problem with only 1 workflow template not all. So accordingly we did some analysis and I tried to check whether any SAP OSS Notes needs to be implemented but all the notes are already in place.
Please see below the what dump says...
Runtime Errors OBJECTS_OBJREF_NOT_ASSIGNED_NO
Except. CX_SY_REF_IS_INITIAL
Date and Time 07/20/2009 13:30:44
Short text
Access via 'NULL' object reference not possible.
What happened?
Error in the ABAP Application Program
The current ABAP program "CL_WFD_TASK_PROXY=============CP" had to be
terminated because it has
come across a statement that unfortunately cannot be executed.
What can you do?
Note down which actions and inputs caused the error.
To process the problem further, contact you SAP system administrator.
Using Transaction ST22 for ABAP Dump Analysis, you can look at and manage termination messages, and you can also keep them for a long time.
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not caught in procedure "CONSTRUCTOR" "(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: You attempted to use a 'NULL' object reference (points to 'nothing') access a component. An object reference must point to an object (an instance of a class) before it can be used to access components. Either the reference was never set or it was set to 'NULL' using the CLEAR statement.
How to correct the error
Probably the only way to eliminate the error is to correct the program.
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:
"OBJECTS_OBJREF_NOT_ASSIGNED_NO" "CX_SY_REF_IS_INITIAL"
"CL_WFD_TASK_PROXY=============CP" or "CL_WFD_TASK_PROXY=============CM001"
"CONSTRUCTOR"
If you cannot solve the problem yourself and want to send an error notification to SAP, include the following information:
1. The description of the current problem (short dump)
To save the description, choose "System->List->Save->Local File (Unconverted)".
2. Corresponding system log
Display the system log by calling transaction SM21. Restrict the time interval to 10 minutes before and five minutes after the short dump. Then choose "System->List->Save->Local File (Unconverted)".
3. If the problem occurs in a problem of your own or a modified SAP program: The source code of the program In the editor, choose "Utilities->More Utilities->Upload/Download->Download".
4. Details about the conditions under which the error occurred or which actions and input led to the error.
The exception must either be prevented, caught within proedure
"CONSTRUCTOR" "(METHOD)", or its possible occurrence must be declared in the
RAISING clause of the procedure.
To prevent the exception, note the following:
System environment
SAP-Release 701
Application server... "ydedb"
Network address...... "9.57.177.109"
Operating system..... "AIX"
Release.............. "6.1"
Hardware type........ "00C15EAF4C00"
Character length.... 16 Bits
Pointer length....... 64 Bits
Work process number.. 4
Shortdump setting.... "full"
Database server... "ydedb"
Database type..... "DB6"
Database name..... "YDE"
Database user ID.. "SAPYDE"
Terminal.......... "IBM-BE014934612"
Char.set.... "C"
SAP kernel....... 701
created (date)... "Mar 30 2009 21:48:51"
create on........ "AIX 2 5 00CB5A5B4C00"
Database version. "DB6_81 "
Patch level. 37
Patch text.. " "
Database............. "DB6 08.02.*, DB6 09.*"
SAP database version. 701
Operating system..... "AIX 1 5, AIX 2 5, AIX 3 5, AIX 1 6"
Memory consumption
Roll.... 16192
EM...... 8379696
Heap.... 0
Page.... 73728
MM Used. 3730104
MM Free. 457144
User and Transaction
Client.............. 210
User................ 013319744
Language key........ "E"
Transaction......... "PFTC "
Transactions ID..... "4A62BD9572AD004BE10080000939B16D"
Program............. "CL_WFD_TASK_PROXY=============CP"
Screen.............. "SAPLRHWS 1001"
Screen line......... 19
Information on where terminated
Termination occurred in the ABAP program "CL_WFD_TASK_PROXY=============CP" -
in "CONSTRUCTOR".
The main program was "SAPLRHW4 ".
In the source code you have the termination point in line 91
of the (Include) program "CL_WFD_TASK_PROXY=============CM001".
The termination is caused because exception "CX_SY_REF_IS_INITIAL" occurred in
procedure "CONSTRUCTOR" "(METHOD)", but it was neither handled locally nor
declared
in the RAISING clause of its signature.
The procedure is in program "CL_WFD_TASK_PROXY=============CP "; its source
code begins in line
1 of the (Include program "CL_WFD_TASK_PROXY=============CM001 ".
Source Code Extract
Line SourceCde
61 a_task = l_task.
62 ENDIF.
63 *-- load task
64 IF in_task IS NOT INITIAL.
65 a_task = in_task.
66 ENDIF.
67 CALL METHOD deserialize
68 EXPORTING
69 in_display = in_display
70 EXCEPTIONS
71 task_not_exists = 1
72 task_already_locked = 2
73 OTHERS = 3.
74 IF sy-subrc = 2.
75 *---- we couldn't lock in update mode -> create a proxy in display
76 *---- mode
77 CALL METHOD deserialize
78 EXPORTING
79 in_display = 'X'
80 EXCEPTIONS
81 task_not_exists = 1
82 task_already_locked = 2
83 OTHERS = 3.
84 ENDIF.
85 IF sy-subrc <> 0.
86 RAISE task_not_found.
87 ENDIF.
88 ENDIF.
89 * create before image on the container
90 TRY.
>>>>> CALL METHOD a_container->create_before_image
92 EXPORTING
93 include_extensions = 'X'.
94 CATCH cx_swf_cnt_container .
95 ENDTRY.
96
97 ENDMETHOD. "constructor
If any body is having any idea to resolve this issue then please let me know. We are into the last stage of the development.
Thanks in advance for replying this issue.
Best Regards,
Prashant RaichurkarHi Rick,
The small change I did into the business object and added those parameter into the task and workflow through binding. And you are right the changed I did was on 10/07 and I am getting dump from 13/07.
Also I already copied to copy the workflow template into another, in the new template everything is blank including workflow container and template. It is as like new template.
Also one thing I want to tell you that I thought to activate previous version so the moment I click on choose version again I got the same dump.
Please let me know if you have any idea to resolve this issue.
Thanks & Regards,
Prashant -
How to resolve the dump Syntax error in program /1BCWDY/824VCAJI0ED4WMLLJ7N
I have created 4 components and I have linked them to a single web dynpro application component through an interface.
This is working fine in development.
When we moved all these objects to quality and when i run the application it is opening the default component. However when i try to call any other component it is giving the following dump.
Syntax error in program /1BCWDY/824VCAJI0ED4WMLLJ7NV==CP.
When we debugged we found that this dump is arising in the CREATE COMPONENT method.
Please suggest how to resolve this issue.Hi,
Using the method prepare_dynamic_navigation i am calling all the components.
After this method i have written the following code for deleting the active and create the new component.
Delete the active componet if any before bind the called component
IF wa_cmp_usage-component_usage->has_active_component( ) IS NOT INITIAL.
wa_cmp_usage-component_usage->delete_component( ).
ENDIF.
Bind the compont called to this main component
wa_cmp_usage-component_usage->create_component( lv_target_comp ). -
> when i debug, inside this am getting dump.
In ST22 the error is occuring in the following place.
call method (l_gen_class_name)=>if_wdr_classloader~create_instance
receiving
component_instance = me->component_factory.
I am actually 5 components. The default and the fifth components are only having tab and a text view. There are no other UI elements. These two components are working.
The remaining components are having many UI elements and these components are giving the above said dumps.
Edited by: Mohamed Aslam on May 13, 2010 12:11 PM -
Getting dump after pressing save button in web interface
Hi all!
When i press save button in my web interface. i'm getting dump:
The following error text was processed in the system EDW : Syntax error in program GP1ARALDY6TX0M51YNJ5FNELBCI .
The error occurred on the application server kurmutau_EDW_01 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Form: VALUE_TO_SID_CONVERT1 of program SAPLRRSI
Form: VALUE_TO_SID_CONVERT1 of program SAPLRRSI
Form: VALUE_TO_SID_CONVERT of program SAPLRRSI
Function: RRSI_VAL_SID_SINGLE_CONVERT of program SAPLRRSI
Form: GET_SID of program GP5VHI3S252BZAWN36WKBAS71QH
Form: GET_DIMID_DA of program GP5VHI3S252BZAWN36WKBAS71QH
Form: WRITEIC of program GP5VHI3S252BZAWN36WKBAS71QH
Form: WRITEIC of program GPEP1KAM5Q04J9717R7T5PDWE0W
Form: APO_WRITEIC of program GPEP1KAM5Q04J9717R7T5PDWE0W
Method: _WRITE_TO_CUBE of program CL_RSDRI_INFOCUBE=============CP
Infocube and web interface were imported from BW3.5 system...
How can i solve this problem?
Thanks in advance...Go in ST22 and post the short dump to better ubderstand.
Regards -
Getting Dump COMMIT_IN_PERFORM_ON_COMMIT
Hi Experts,
I am getting Dump COMMIT_IN_PERFORM_ON_COMMIT in the module pool program.
Can you please suggest.
Regards,
IFFHi,
Are you updating the records in any DB tables? After getting dump, can you check in the transaction SM13 for analysis.
Can you more elaborate your question to answer?
Thanks,
Shiva. -
Getting Dump from a select query
Dear All,
Am selecting records from KEKO and storing into E1KEKO internal table. But am getting dump error. I need to send those E1KEKO records as idoc. Kindly help me out how to fix this dump.
SELECT * INTO CORRESPONDING FIELDS OF e1keko
FROM keko
WHERE keko~matnr = p_matnr
AND keko~werks = p_werks
AND keko~bwtar = 'Z06'
AND keko~bwvar = 'Z06'.
CLEAR t_idoc_data.
t_idoc_data-segnam = c_segnam_e1keko.
t_idoc_data-mandt = sy-mandt.
t_idoc_data-sdata = e1keko.
APPEND t_idoc_data.
CLEAR e1keph.
endselect
Thanks in advance.
AnandhanHi,
If i use the below select query in a test program, that time also am getting the same dump.
DATA: e1keph TYPE e1keph,
e1keko TYPE e1keko.
SELECT * INTO CORRESPONDING FIELDS OF e1keko
FROM keko
WHERE keko~matnr = '000000000010801071'.
endselect.
(code}
The dump showing the below message
The reason for the exception is:
In a SELECT access, the read file could not be placed in the target
field provided.
Either the conversion is not supported for the type of the target field
the target field is too small to include the value, or the data does no
have the format required for the target field.
Thanks in advance
Anandhan -
Getting dump in table maintainance generator
hi friends ,
in dev system and production iam able to maintain data in the table ,but in quality i am getting dump.
my error is bellow,
Runtime Errors DYNPRO_FIELD_CONVERSION
Date and Time 20.03.2009 14:11:59
Short text
Conversion error
What happened?
The current screen processing action was terminated since a situation
occurred where the application could not continue.
This is probably due to an error in the ABAP program or in the current
screen.
Error analysis
The program has been interrupted and cannot resume.
Program "SAPLY_J_2IRG1BAL" attempted to display fields on screen 0001.
An error occurred during the conversion of this data.
Trigger Location of Runtime Error
Program SAPLY_J_2IRG1BAL
Include LSVIMOXX
Row 253
Module type (MODULE PBO)
Module Name LISTE_SHOW_LISTEHi Sudheer,
Did you add any FLTP field in table and generating table maintenance generator for the same? FLTP type of field can't be displayed on screen or in SM30, They need to be converted to CHAR before displaying. Please check for the same.
Edited by: Gaurav Mishra on Mar 20, 2009 12:08 PM -
ZReport getting dump in Production but not in Quality and development
Hi,
There isa Zreport which displays daily stock in PP module.
It is getting dump in Production not in quality and development.
Since four days it is getting dump. Before that it is fine.
Please any one guide How to resolve.
Advance Thanks.Runtime Error SAPSQL_IN_ITAB_ILLEGAL_OPTION
Occurred on 29.08.2007 at 08:50:13
<u>Invalid value in OPTION field of value table for IN itab operator.</u>
What happened?
<b>Error in ABAP application program.</b>
The current ABAP program "ZPPRDR417" had to be terminated because o
statements could not be executed.
This is probably due to an error in the ABAP program.
What can you do?
Print out the error message (using the "Print" function)
and make a note of the actions and input that caused the
error.
To resolve the problem, contact your SAP system administrator.
You can use transaction ST22 (ABAP Dump Analysis) to view and admin
termination messages, especially those beyond their normal deletio
date.
<b>Error analysis</b>
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"
The value " " is not allowed here.
<b>How to correct the error</b>
Use only one of the permitted values in the OPTION column.
Information on where terminated
The termination occurred in the ABAP program "ZPPRDR417" in "WIP_STOCK_REP
The main program was "ZPPRDR417 ".
The termination occurred in line 330 of the source code of the (Include)
program "ZPPRDR417_FORM"
of the source code of program "ZPPRDR417_FORM" (when calling the editor 33
Source code extract
Caution: Program has changed
Caution: At time of termination, Active source code no longer available
003000 ? r_bwart-low = '106'.
003010 ? append r_bwart.
003020 ?
003030 ? r_bwart-low = '124'.
003040 ? append r_bwart.
003050 ?
003060 ? r_bwart-low = '125'.
003070 ? append r_bwart.
003080 ?
003090 ? select matnr
003100 ? werks
003110 ? into table i_marc
003120 ? from marc
003130 ? where ( matnr LIKE 'BILC%'
003140 ? OR matnr LIKE 'LGN%'
003150 ? OR matnr LIKE 'BRN%'
003160 ? OR matnr LIKE 'EBB%' )
003170 ? AND matnr NE 'BRN_DECLASSE'
003180 ? AND matnr NE 'BRN_SAF'
003190 ? and werks in r_werks.
003200 ?
003210 ? r_material-sign = 'I'.
003220 ? r_material-option = 'EQ'.
003230 ?
003240 ? loop at i_marc into wa_marc.
003250 ? r_material-low = wa_marc-matnr.
003260 ? append r_material.
003270 ? endloop.
003280 ? clear r_material.
003290 ?
> ? if not i_matdoc is initial.
003310 ? select MBLNR
003320 ? MJAHR
003330 ? ZEILE
003340 ? BWART
003350 ? MATNR
003360 ? WERKS
003370 ? SHKZG
003380 ? MENGE
003390 ? UMWRK
003400 ? into table i_mseg_qty
003410 ? from mseg
003420 ? for all entries in i_matdoc
003430 ? where MBLNR eq i_matdoc-MBLNR
003440 ? and MJAHR eq i_matdoc-MJAHR
003450 ? and BWART in r_bwart
003460 ? and matnr in r_material
003470 ? and werks in r_werks.
003480 ?
003490 ? sort i_mseg_qty by matnr. -
Getting dump for every senario
Hi experts
I am new to workflow i am getting dump on execution of every senario......
i am providing code of that one.... plz help me.
The following syntax error occurred in the program
CL_SWF_RUN_WIM_LOCAL==========CP :
"You can only define attributes in the PUBLIC, PROTECTED or PRIVATE sec"
Error in ABAP application program.
The current ABAP program "CL_SWF_RUN_WIM_FACTORY========CP" had to be
terminated because one of the
statements could not be executed.
This is probably due to an error in the ABAP program.
Thanks,
Prasad.Hi,
This class CL_SWF_RUN_WIM_LOCAL is essential in tRFC to Execute the workflow.
The class would have affected.
1) Check any User exit or Badi used related to this Class, if so Deactivate those and check.
2) Then Still you getting the dump, check for note corrections.
Regards,
Surjith -
Getting dump on implementing BADI HRPAD00INFTYBL
Hi Experts
I am using BADI (Enhancement Spot ) HRPAD00INFTYBL for updating the data through MSS,
the BADI gets executed properly through PA30, but shortly after that I am getting dump as :
The exception 'CX_HRPA_INVALID_BUFFER_STACK' was raised, but it was not caught
anywhere along
the call hierarchy.
Since exceptions represent error situations and this error was not
adequately responded to, the running ABAP program
'CL_HRPA_OM_INTEGRATION========CP' has to be
terminated.
I am getting this for IT 0759.
Has anyone faced this earlier?
Is there any configuration or setting that needs to be one?
Kindly suggest?
regards
Ashwiniseems some integeration issue check t77so.
afrasyab -
Hi all,
I want to display output using ALV tree. I havent worked on this before, So kindly provide me useful sample programs to display output using ALV tree.
Also i am creating field catalog using following code:
data : gt_fieldcatalog type lvc_t_fcat. "Fieldcatalog
get fieldcatalog
call function 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'TP_OUTTAB'
CHANGING
ct_fieldcat = gt_fieldcatalog.
But its getting dumped and "NO_FIELDCATALOG_AVAILABLE" exception is raised.
Also strucure TP_OUTTAB is as:
TYPES: BEGIN OF tp_outtab,
aufnr TYPE aufk-aufnr,
txt TYPE t003p-txt,
maktx TYPE makt-maktx,
charg TYPE afpo-charg,
icon TYPE char4,
prueflos TYPE afko-prueflos, prueflos _ r TYPE icon-id,
ext_roses(5),
expt_roses TYPE icon-id,
zurl(8), "
zurl_r TYPE icon-id,
crstat_t TYPE icon-id,
crstat TYPE icon-id,
adres TYPE cochp-adres,
END OF tp_outtab.
Kindly tell me why the code is getting dumped. Seems there is some problem with structure.
Regards,
SachinHi,
try the following example.
TYPE-POOLS: SLIS.
DATA: BEGIN OF I_VBAK OCCURS 0,
VBELN LIKE VBAK-VBELN,
ERNAM LIKE VBAK-ERNAM,
ERDAT LIKE VBAK-ERDAT,
AUDAT LIKE VBAK-AUDAT,
VAR1,
END OF I_VBAK.
DATA: BEGIN OF I_VBAP OCCURS 0,
VBELN LIKE VBAP-VBELN,
POSNR LIKE VBAP-POSNR,
MATNR LIKE VBAP-MATNR,
CHARG LIKE VBAP-CHARG,
END OF I_VBAP.
DATA: FLDCAT TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
LAYOUT TYPE SLIS_LAYOUT_ALV,
KEY TYPE SLIS_KEYINFO_ALV.
DATA: IT_HEADER1 TYPE SLIS_T_LISTHEADER.
DATA: WA_HEADER1 TYPE SLIS_LISTHEADER.
DATA: IT_EVE1 TYPE SLIS_T_EVENT,
WA_EVE1 TYPE SLIS_ALV_EVENT.
SELECT VBELN ERNAM ERDAT AUDAT FROM VBAK
INTO CORRESPONDING FIELDS OF TABLE I_VBAK
UP TO 20 ROWS.
SELECT VBELN POSNR MATNR CHARG FROM VBAP
INTO CORRESPONDING FIELDS OF TABLE I_VBAP
UP TO 20 ROWS.
FLDCAT-FIELDNAME = 'VBELN'.
FLDCAT-TABNAME = 'I_VBAK'.
FLDCAT-REF_FIELDNAME = 'VBELN'.
FLDCAT-REF_TABNAME = 'VBAK'.
FLDCAT-SELTEXT_M = 'SALES DOC.'.
FLDCAT-COL_POS = 0.
FLDCAT-KEY = 'X'.
APPEND FLDCAT.
CLEAR FLDCAT.
FLDCAT-FIELDNAME = 'ERNAM'.
FLDCAT-TABNAME = 'I_VBAK'.
FLDCAT-REF_FIELDNAME = 'ERNAM'.
FLDCAT-REF_TABNAME = 'VBAK'.
FLDCAT-SELTEXT_M = 'NAME OF PERSON'.
FLDCAT-COL_POS = 1.
APPEND FLDCAT.
CLEAR FLDCAT.
FLDCAT-FIELDNAME = 'ERDAT'.
FLDCAT-TABNAME = 'I_VBAK'.
FLDCAT-REF_FIELDNAME = 'ERDAT'.
FLDCAT-REF_TABNAME = 'VBAK'.
FLDCAT-SELTEXT_M = 'RECORD DATE'.
FLDCAT-COL_POS = 2.
APPEND FLDCAT.
CLEAR FLDCAT.
FLDCAT-FIELDNAME = 'AUDAT'.
FLDCAT-TABNAME = 'I_VBAK'.
FLDCAT-REF_FIELDNAME = 'AUDAT'.
FLDCAT-REF_TABNAME = 'VBAK'.
FLDCAT-SELTEXT_M = 'DOCUMENT DATE'.
FLDCAT-COL_POS = 3.
APPEND FLDCAT.
CLEAR FLDCAT.
FLDCAT-FIELDNAME = 'POSNR'.
FLDCAT-TABNAME = 'I_VBAP'.
FLDCAT-REF_FIELDNAME = 'POSNR'.
FLDCAT-REF_TABNAME = 'VBAP'.
FLDCAT-SELTEXT_M = 'SALES DOC ITEM'.
FLDCAT-COL_POS = 4.
APPEND FLDCAT.
CLEAR FLDCAT.
FLDCAT-FIELDNAME = 'MATNR'.
FLDCAT-TABNAME = 'I_VBAP'.
FLDCAT-REF_FIELDNAME = 'MATNR'.
FLDCAT-REF_TABNAME = 'VBAP'.
FLDCAT-SELTEXT_M = 'MATERIAL NO'.
FLDCAT-COL_POS = 5.
APPEND FLDCAT.
CLEAR FLDCAT.
FLDCAT-FIELDNAME = 'CHARG'.
FLDCAT-TABNAME = 'I_VBAP'.
FLDCAT-REF_FIELDNAME = 'CHARG'.
FLDCAT-REF_TABNAME = 'VBAP'.
FLDCAT-SELTEXT_M = 'BATCH NUMBER'.
FLDCAT-COL_POS = 6.
APPEND FLDCAT.
CLEAR FLDCAT.
LAYOUT-EXPAND_FIELDNAME = 'VAR1'.
KEY-HEADER01 = 'VBELN'.
KEY-ITEM01 = 'VBELN'.
CLEAR WA_EVE1.
WA_EVE1-NAME = 'TOP_OF_PAGE'.
WA_EVE1-FORM = 'TOP-OF-PAGE1'.
APPEND WA_EVE1 TO IT_EVE1.
CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID
IS_LAYOUT = LAYOUT
IT_FIELDCAT = FLDCAT[]
IT_EVENTS = IT_EVE1[]
I_TABNAME_HEADER = 'I_VBAK'
I_TABNAME_ITEM = 'I_VBAP'
IS_KEYINFO = KEY
TABLES
T_OUTTAB_HEADER = I_VBAK
T_OUTTAB_ITEM = I_VBAP
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.
FORM TOP-OF-PAGE1. WA_HEADER1-TYP = 'H'.
WA_HEADER1-INFO = 'Hierarchical Display'.
APPEND WA_HEADER1 TO IT_HEADER1.
CLEAR WA_HEADER1.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = IT_HEADER1[].
REFRESH IT_HEADER1.
ENDFORM. "TOP-OF-PAGE1
Reward points,if it is useful.
Thanks,
chandu. -
Getting dump on selecting the businessrole SALESPRO(CRM WEBUI)
Hi,
I am getting dump as soon as I click on CRM Business role: SALESPRO in CRM WEBUI. The dump says: 'Define component usage "Tag_clouds".
Could you please let me know, how to solve this issue?
Thanks,
SandeepHello ,
We are trying to create some tag clouds using the following classes :
cl_wcf_tc_factory=>get_object_from_genil_id
cl_wcf_tc_factory=>add_tag
cl_wcf_tc_factory=>save
The tag is created fine , bu unfortunatley , it generates the following dump when a user cliks on it.
Exception Class
CX_SY_IMPORT_MISMATCH_ERROR
Error Name
CONNE_IMPORT_WRONG_FIELD_TYPE
Program
CL_CRM_GENIL_CONT_SIMPLE_OBJ==CP
Include
CL_CRM_GENIL_CONT_SIMPLE_OBJ==CM007
ABAP Class
CL_CRM_GENIL_CONT_SIMPLE_OBJ
Method
IF_GENIL_CONT_SIMPLE_OBJECT~GET_KEY
Line
18
Long text
During IMPORT it was ascertained that the object in the dataset has a different object type to the target object, or the structure of the complex object is not compatible with the structure of the target object. The target object has either a different length, a different number of decimal places or a different data type to the object that is to be imported.
Can you please advise ?
Thanks.
Maybe you are looking for
-
Talking about transformation (BI7) Amount on source side (default currency, say EUR ) Amount (with currency) on target side I get error while activating Transformation with demand to assign currency field from source to target. As I mentioned before
-
How to repair the CVP reporting installation?
Hi, I am facing the following issue on the cvp reporting server: The Informix database has been installed on the "D" partition. The hard-disk where partition D is installed has been defected so I lost the "D" partition. Anyway, I replaced the defecte
-
Hi All, I am venkat, I know the fundamental and some extent of java. I am planning to write scjp exam. Can anyone guide me, how to prepare for the exam and what are the key concepts to work and suggest me books for my preparation. Thanq one and all.
-
hy all after listening to music in walkman or in music play the player stops or shuts down how can i resollve this problem, meybe is becouse my music is on sd card ?
-
I ran a Diagnostics and this is what I got. Microsoft Windows XP Home Edition Service Pack 2 (Build 2600) Compaq Presario 061 PS513AA-ABA SR1313CL NA510 iTunes 7.4.2.4 Current user is an administrator. Network Adapter Information Adapter Name: {E6BF3