'RS_TABLE_LIST_CREATE' - Throwing dump
Hi,
I am trying to call a table with the function module 'RS_TABLE_LIST_CREATE'. System is throwing a dump sayin <b>Function parameter "SELTAB" is unknown</b>.
Do i have to declare SELTAB?... What shud i do ?
Thanks in advance.
CALL FUNCTION 'RS_TABLE_LIST_CREATE'
EXPORTING
table_name = 'ZTVWORDERS'
ACTION = 'ANZE'
WITHOUT_SUBMIT = ' '
GENERATION_FORCED =
NEW_SEL =
NO_STRUCTURE_CHECK = ' '
DATA_EXIT = ' '
IMPORTING
PROGNAME =
TABLES
SELTAB = GV_PONUM
EXCEPTIONS
TABLE_IS_STRUCTURE = 1
TABLE_NOT_EXISTS = 2
DB_NOT_EXISTS = 3
NO_PERMISSION = 4
NO_CHANGE_ALLOWED = 5
OTHERS = 6
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
<b></b>
Hi
Look at the below thread, this is having the same question and having the answer also
call transaction
Regards
Sudheer
Similar Messages
-
Function module ISR_GET_DATA_FROM_XML throwing dump.
Hi All,
Function module ISR_GET_DATA_FROM_XML throwing dump.
The dump says,
The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not
caught in
procedure "ISR_GET_DATA_FROM_XML" "(FUNCTION)", 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.
Can you please help me in resolving this error.
PERFORM set_tag_constants.
set size of XML document
ld_size = id_size.
create the input stream
lr_stream = ir_ixml_stream_factory->create_istrea
table = it_xml
size = ld_size ). create XML document object
lr_dom = ir_ixml_factory->create_document( ).
create parser
lr_parser = ir_ixml_factory->create_parser(
stream_factory = ir_ixml_stream_factory
istream = lr_stream
document = lr_dom ).
Thanks
Rohini.Hi,
SELECT MBLNR
MJAHR
FROM MSEG
INTO TABLE I_MKPF
WHERE MBLNR IN S_MBLNR AND
MJAHR IN S_MJAHR.
IF I_MKPF IS NOT INITIAL.
SELECT * FROM MSEG INTO TABLE O_MSEG FOR ALL ENTRIES IN I_MKPF
WHERE MBLNR = I_MKPF-MBLNR
AND MJAHR = I_MKPF-MJAHR
AND MATNR IN I_MATNR
AND WERKS IN I_WERKS
AND LGORT IN I_LGORT.
ENDIF.
ALSO CHECK FM u2018/BEV2/ED_REA_MSEG_MKPFu2019.
Regards,
Deepa Kulkarni -
Archiving Transaction SARA throws dumps.
S0003731475
Hi Gurus
I am trying to run archiving transaction SARA but it throws dumps and I canu2019t seem to find the reasonu2026u2026
Here is the dumpu2026u2026..Anyone who faced similar problemu2026u2026.Please help.
Runtime errors SYNTAX_ERROR
Occurred on 12/08/2009 at 13:45:09
Syntax error in program "SAPLARCH ".
What happened?
The following syntax error occurred in the program SAPLARCH :
"Method "GET_DATA" is unknown or PROTECTED or PRIVATE."
Error in ABAP application program.
The current ABAP program "SAPMAADM" had to be terminated because one of the
statements could not be executed.
This is probably due to an error in the ABAP program.
What can you do?
Please eliminate the error by performing a syntax check
(or an extended program check) on the program "SAPLARCH ".
You can also perform the syntax check from the ABAP/4 Editor.
If the problem persists, proceed as follows:
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 administer
termination messages, especially those beyond their normal deletion
date.
Error analysis
The following syntax error was found in the program SAPLARCH :
"Method "GET_DATA" is unknown or PROTECTED or PRIVATE."
How to correct the error
Probably the only way to eliminate the error is to correct the program.
If you cannot solve the problem yourself, please send the
following documents to SAP:
1. A hard copy print describing the problem.
To obtain this, select the "Print" function on the current screen.
2. A suitable hardcopy prinout of the system log.
To obtain this, call the system log with Transaction SM21
and select the "Print" function to print out the relevant
part.
3. If the programs are your own programs or modified SAP programs,
supply the source code.
To do this, you can either use the "PRINT" command in the editor or
print the programs using the report RSINCL00.
4. Details regarding the conditions under which the error occurred
or which actions and input led to the error.
System environment
SAP Release.............. "620"
Application server....... "M3SAPA01"
Network address.......... "136.133.230.177"
Operating system......... "Windows NT"
Release.................. "5.2"
Hardware type............ "4x Intel 801586"
Character length......... 16 Bits
Pointer length........... 32 Bits
Work process number...... 0
Short dump setting....... "full"
Database server.......... "M3SAPA01"
Database type............ "MSSQL"
Database name............ "RDS"
Database owner........... "rds"
Character set............ "C"
SAP kernel............... "640"
Created on............... "Mar 10 2009 01:13:21"
Created in............... "NT 5.0 2195 Service Pack 4 x86 MS VC++ 13.10"
Database version......... "SQL_Server_8.00 "
Patch level.............. "274"
Patch text............... " "
Supported environment....
Database................. "MSSQL 7.00.699 or higher, MSSQL 8.00.194"
SAP database version..... "640"
Operating system......... "Windows NT 5.0, Windows NT 5.1, Windows NT 5.2,
Windows NT 6.0"
User, transaction...
Client.............. 220
User................ "RHEMNANI"
Language key........ "E"
Transaction......... "SARA "
Program............. "SAPMAADM"
Screen.............. "SAPMAADM 0001"
Screen line......... 2
Information on where terminated
The termination occurred in the ABAP program "SAPMAADM" in "D0001_DISPLAY".
The main program was "SAPMAADM ".
The termination occurred in line 278 of the source code of the (Include)
program "MAADMO01"
of the source code of program "MAADMO01" (when calling the editor 2780).
Source code extract
002480 * check if parameters exists
002490 progname = arch_obj-retrie_prg.
002500 answer = 'YES'.
002510 CALL FUNCTION 'RS_SELSCREEN_EXISTS'
002520 EXPORTING
002530 report = progname
002540 IMPORTING
002550 answer = answer
002560 EXCEPTIONS
002570 no_report = 01
002580 program_incorrect = 02
002590 program_not_found = 03.
002600 IF sy-subrc EQ 0.
002610 IF answer EQ 'NO'.
002620 LOOP AT SCREEN.
002630 CHECK screen-group1 = 'VAR'.
002640 screen-active = 0.
002650 MODIFY SCREEN.
002660 ENDLOOP.
002670 ENDIF.
002680 ENDIF.
002690 ENDMODULE. " D0300_DISPLAY OUTPUT
002700
002710 *&---------------------------------------------------------------------*
002720 *& Module D0001_DISPLAY OUTPUT
002730 *&---------------------------------------------------------------------*
002740 * text *
002750 *----------------------------------------------------------------------*
002760 MODULE d0001_display OUTPUT.
002770 SUPPRESS DIALOG.
-----> CALL FUNCTION 'ARCHIVE_DISABLE_MONITORING'.
002790 ENDMODULE. " D0001_DISPLAY OUTPUT
002800 *&---------------------------------------------------------------------*
002810 *& Module INIT_0120 OUTPUT
002820 *&---------------------------------------------------------------------*
002830 * text
002840 *----------------------------------------------------------------------*
002850 MODULE d0120_display OUTPUT.
002860 DATA: format1(12) TYPE c.
002870 DATA: format2 TYPE i.
002880 LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
002890 SET PF-STATUS 'SPACE'.
002900 SET TITLEBAR '105'.
002910 WRITE: / 'Archivverzeichnis:'(060), file_path.
002920 ULINE.
002930 MOVE freespace TO format2. "to format with points
002940 WRITE format2 TO format1.
002950 WRITE: / 'Verfügbarer Freiplatz:'(061),format1 NO-ZERO,'KB'.
002960 LEAVE SCREEN.
002970
Contents of system fields
SY field contents..................... SY field contents.....................
SY-SUBRC 0 SY-INDEX 0
SY-TABIX 0 SY-DBCNT 0
SY-FDPOS 0 SY-LSIND 0
SY-PAGNO 0 SY-LINNO 1
SY-COLNO 1 SY-PFKEY
SY-UCOMM SY-TITLE Archive Management Module Pool
SY-MSGTY SY-MSGID
SY-MSGNO 000 SY-MSGV1
SY-MSGV2 SY-MSGV3
SY-MSGV4
Active calls / events
No.... Type........ Name..........................
Program
Include Line
Class
2 MODULE (PBO) D0001_DISPLAY
SAPMAADM
MAADMO01 278
1 MODULE (PBO) D0001_DISPLAY
SAPMAADM
MAADMO01 278
Chosen variables
2 MODULE (PBO) D0001_DISPLAY
SAPMAADM
MAADMO01 278
%_DUMMY$$
2222
0000
0000
0000
1 MODULE (PBO) D0001_DISPLAY
SAPMAADM
MAADMO01 278
No dump information available
Application Calls
No dump information available
Application Information
No dump information available
Internal notes
The termination occurred in the function "ab_genprog" of the SAP
Basis System, specifically in line 1423 of the module
"//bas/640_REL/src/krn/runt/abgen.c#14".
The internal operation just processed is "FUNC".
The internal session was started at 20091208134509.
Program name.........: "SAPLARCH ".
Error message........: "Method "GET_DATA" is unknown or PROTECTED or PRIVATE.".Rajesh,
This might happen if the orginal function module ARCHIVE_GET_INFORMATION in LARCHF03 program is altered, bring back the the function module to original, it might solve your problem.
Anand B Vodnala -
ALE throws dump Message_Type_X
Hi All,
I did ALE configuration on my DEV and PRD for transferring data from DEV to PRD. Although i know, we should not move any data from DEV to PRD, but it's client requirement.
So i did ALE and model view successfully generated on DEV and RFC is perfectly fine even by connection test or authorization test.
When i run bd10 on DEV, it successfully generated idoc with message type MATMAS. and when i get the materail via BD11, it successfully created idoc on PRD. but when i see the material in MM03, it throws error material does not exist or is not activated.
it also throws dump Message_Type_X
WORKFLOW_LOCAL_400
RFC_READ_DESTINATION_TYPE
DESTINATION_NOT_EXIST
What steps should follow now?
Regards
DishaHi Krishnendu,
Status is in red when i check from t-code WE02.
When i check it in MM90 and execute it, it does not show any log.
Please tell if i am missing any step..
Regards
Disha -
Assign Syntax throwing DUMP!!!
Before Unicode check active, the syntax is:
ASSIGN ELBP-KRT01+OFFSET TO <X>.
I changed into
ASSIGN ELBP-KRT01+OFFSET(*) TO <X>.
after reading SAP help.
KRT01 is DEC field from DB ELBP
FIELD-SYMBOLS: <X> type any.
Dump says:
Part of the source field "ELBP-KRT01" was assigned to a field symbol,
but this is not possible for fields of type "P".
When I test this change...it throws dump.Am I missing something?
Thanks
KiranI dont see any option like Accessing Fields Using Offset and Length Addressing".
I am on 4.7EE
I can see only below.
ASSIGN f TO <fs>.
Extras:
1. ... CASTING ... or
2. ... TYPE type
3. ... DECIMALS dec
4. ... RANGE range
Hope you can help me paste the syntax from what you se rather than increasing the iterations .
Thanks
Kiran
Edited by: kiran dasari on Oct 11, 2008 2:31 AM -
ALV Grid throwing dump in total function
Hi,
My ALV grid program, is working fine in development server, for the total and subtotal function. However, the same program is throwing a short dump in Quality server when we try to get the total.Please help!
Regards,
Anita JeyanHi ,
Please go to ST22 and check what is the reason for error.
Let me know the error.
The reason might be due to some less data size or some data type mismatch.
Regards,
Uma
Edited by: UmaDave on Jun 9, 2010 12:10 PM
Edited by: UmaDave on Jun 9, 2010 12:10 PM -
FM "COM_PRCAT_CREATE_API_INT" throws DUMP!
Hi all,
I am trying to use the foll FM "COM_PRCAT_CREATE_API_INT" in a report but getting an exception:
Function module "COM_PRCAT_CREATE_API_INT" was called
with the parameter "IV_HIEARCHY_EXIST_IN_PME".
This parameter is not defined.
When i run this FM seperately and passing a blank value to this parameter,it works .However when using it in a report,if i pass a blank value to the parameter "IV_HIEARCHY_EXIST_IN_PME" the it gives the above dump.Since this parameter is a mandatory parameter,I need to pass some value to this parameter.
Can somebody throw some light?I think UR calling the FM wrongly ...
the parameter name is : IV_HIERARCHY_EXIST_IN_PME
and not IV_HIEARCHY_EXIST_IN_PME -
Dear All,
We are getting a dump while calling a badi through our Z program.
We have created a Enhancement spot through SE18 -> z_es_spot
where I have defined badi definition as Z_BADI_DEF and interface as
ZIF_EX_LE_SHP_TAB_CUST_ITEM.
I have defined a method as ADD there.
After that we have created a enhancement implemention through Se19 ->Z_ENHANCE_IMP
there we have given badi implementation as ZTEST_BADI_IMPL and implementing class is ZIMPL_CL.
Afterwards I have created a program through Se38 ->zbadi.
class cl_exithandler definition load.
data: var2 type ref to ZIF_EX_LE_SHP_TAB_CUST_ITEM.
CALL METHOD var2->add
when the program call the method ADD it throws a dump as Access via 'NULL' object reference not possible.
Any help will be appreciated.i am still stuck can any one help or give some advice.
thanx in advance
regards -
Dynamic sql is throwing dump after upgrade to EHP 7.0
Hi All,
My customer recently upgraded to EHP 7.0.
I have one query like below :
select * from (ls_table_list-tabname) into
table <table>
where (condition).
where ls_table-tabname is the table name, <table> is with the structure of same table and condition is very simple where condition. (id = 'XXXXX').
We are getting dump with "CX_SY_DYNAMIC_OSQL_SYNTAX" and the dump message is "
When parsing a dynamic statement, an error occurred.
Before upgrade same statements were working fine.
Please send us the response asap. Its urgent.
Thanks in advance,
SreedharHi Divyanshu,
Following is the text of Short dump :
Category ABAP Programming Error
Runtime error SAPSQL_PARSE_ERROR
Exception CX_SY_DYNAMIC_OSQL_SYNTAX
ABAP program / GETPF / SAPLTABLE_CONTENT_CHECK
Application component not assigned
Date and Time 07.02.2014 14:57:48
Short text
When parsing a dynamic statement, an error occurred.
What happened?
Error in ABAP application program.
The current ABAP program "/ GETPF / SAPLTABLE_CONTENT_CHECK" had to be canceled
be as it appears on
an instruction is encountered, which unfortunately can not be executed.
Error Analysis
There is an exception has occurred, which is discussed further below.
The exception, which is assigned to the class 'CX_SY_DYNAMIC_OSQL_SYNTAX'
was in the procedure "/ GETPF / TABLE_CONTENT_CHECK" "(FUNCTION)" neither
intercepted,
still propagated by a RAISING clause.
Since the caller of the procedure is not with the occurrence of the exception
could be expected, the running program was terminated.
Error was at below statement :
SELECT * FROM (ls_table_list-tabname) INTO
TABLE <table>
WHERE (condition). -
Mapping node from UIcust &View throws dump in result
hello all,
Need ur urgent help!!
I hav already posted one thread bout dis but didnt got any response.... So doing it again
Not able to map UICust node to View.Till UICust the app works fine but as i map the node to View........ Error comes of contact administrator without any exception
Contact Administrator error is coming after mapping node from UICust with View.
Its not happpening in case of 1 single attribute but while mapping the node this error is encountered even if that node consists of single attribute.
Urgent help required....Kindly help
Thanks n regards
MandeepHi Siva,
4 attr under 1 node in modal node and same i craeted in value node in uicust. but even if i try to map the replicated value node in uicust and map dat to value node of view. still its showin dump (Contact administrator wid no exception)
I hav reopnened the project....... rebuild. it doesnt show any error.... as soon as i go for mapping in view and uicust . it starts throwin dump
Thanks n Regards
Mandeep -
SE01, SE09, SE10 throwing dumps with Syntax error
We were applying some security notes in the SAP ECC6 Ehp1 system however, we forgot to implement a pre-requisite which was an external transport before implementing a note (in dev. we did it right but in test system, we forgot to do the external import first). Due to this, the RDDIMPDP job is getting cancelled every time & we get dumps whenever we use SE01 or SE09 or SE10.
Pre-requisite note : 1497003
Next note : 1582138
Could you please help resolving this issue ?
Thank you !Hi,
You can try with resetting note implementation in dev system which will generate one transport request. And move this transport request to test system as a result note will be reset in quality system as well.
Then again implement note in dev and transport it to test system after implementing pre-requisite note.
Thanks
Sunny -
Queries on infoset throwing short dump
hello all,
We have some queries based on infoset. These queries are throwing dump
Dump info
Category ABAP Programming Error
Runtime Errors GETWA_NOT_ASSIGNED
ABAP Program SAPLRSQ_ISET_RUNTIME
Application Component BW-BEX
i found following
Infoset status - active.
Queries status - active
Queries executing till Selection screen
Infoset - data loaded
Pls help to fix this issue
ThanksHi,
Run your Query in RSRT in debug mode( Select SQL Query ). Try to analyze where it's getting failed. You can even analyze the dump in ST22.
Check the definition of your Infoset joins.
Regards,
Suman -
The program is throwing a dump
when i try to sort the table program is throwing dump
*& Report ZDAN_DEMO_ALV
REPORT zdan_demo_alv.
TYPE-POOLS: slis.
Types **********
*break hopflabap1.
TYPES: BEGIN OF ty_vbap,
matnr TYPE vbap-matnr, " material number
vbeln TYPE vbap-vbeln, " SO
posnr TYPE vbap-posnr, " SO item
arktx TYPE vbap-arktx, " text for so item
j_3apgnr TYPE vbap-j_3apgnr, " grid number
KWMENG TYPE vbap-KWMENG, " Quantity
zmeng TYPE vbap-zmeng, " target quantity
END OF ty_vbap.
TYPES : BEGIN OF ty_vbep,
j_3asize TYPE vbep-j_3asize, " grid value
vbeln1 TYPE vbep-vbeln, " SO
posnr1 TYPE vbep-posnr, " SO item
END OF ty_vbep.
TYPES : BEGIN OF ty_vbak,
vbeln TYPE vbak-vbeln,
AUART TYPE vbak-AUART, " Document Type
END OF ty_vbak.
TYPES : BEGIN OF ty_final,
matnr TYPE vbap-matnr,
posnr TYPE vbap-posnr,
arktx TYPE vbap-arktx,
j_3apgnr TYPE vbap-j_3apgnr,
KWMENG TYPE vbap-KWMENG,
vbeln TYPE vbap-vbeln,
j_3asize TYPE vbep-j_3asize,
vbeln1 TYPE vbep-vbeln,
posnr1 TYPE vbep-posnr,
AUART TYPE vbak-AUART,
END OF ty_final.
Data **********
DATA : it_vbap TYPE TABLE OF ty_vbap,
wa_vbap LIKE LINE OF it_vbap,
it_vbep TYPE TABLE OF ty_vbep,
wa_vbep LIKE LINE OF it_vbep,
it_vbak TYPE TABLE OF ty_vbak,
wa_vbak LIKE LINE OF it_vbak,
it_final TYPE TABLE OF ty_final,
wa_final LIKE LINE OF it_final.
DATA : it_fclog TYPE slis_t_fieldcat_alv,
wa_fclog LIKE LINE OF it_fclog,
it_sort TYPE slis_t_sortinfo_alv,
wa_sort LIKE LINE OF it_sort,
gd_layout TYPE slis_layout_alv,
gd_print TYPE slis_print_alv,
gd_repid LIKE sy-repid,
gt_events TYPE slis_t_event.
*break hopflabap1.
SELECTION-SCREEN BEGIN OF BLOCK sodisp WITH FRAME TITLE text-001.
PARAMETERS : matnr TYPE vbap-matnr OBLIGATORY.
SELECTION-SCREEN END OF BLOCK sodisp.
START-OF-SELECTION.
PERFORM data_retv.
PERFORM fclog.
PERFORM disp_rpt.
*break hopflabap1.
*& Form data_retv
text
FORM data_retv.
SELECT matnr posnr arktx j_3apgnr zmeng vbeln
*FROM vbap INTO wa_vbap WHERE matnr EQ matnr.
*SELECT vbeln j_3asize
*FROM vbep INTO table it_vbep
for all entries in it_vbap
where vbeln = it_vbap-vbeln and posnr = it_vbap-posnr.
ENDSELECT.
*loop at it_vbap into wa_vbap.
*"move all the data of wa_vbap into wa_final
*"since you are not using full key you may get more than one record
*loop at it_vbep INTO wa_vbep Where vbeln1 = it_vbap-vbeln and posnr1 = it_vbep-posnr1.
"move the information from wa_vbep to wa_final
*endloop.
*append wa_final to it_final.
*clear wa_final.
*endloop.
*break hopflabap1.
SELECT matnr vbeln posnr arktx j_3apgnr KWMENG
FROM vbap
INTO TABLE it_vbap
WHERE matnr EQ matnr.
SELECT j_3asize vbeln posnr
FROM vbep
INTO TABLE it_vbep
FOR ALL ENTRIES IN it_vbap
WHERE vbeln EQ it_vbap-vbeln AND posnr = it_vbap-posnr.
*break hopflabap1.
SELECT vbeln AUART
FROM vbak
INTO TABLE it_vbak
FOR ALL ENTRIES IN it_vbap
WHERE vbeln EQ it_vbap-vbeln.
LOOP AT it_vbap INTO wa_vbap.
LOOP AT it_vbep INTO wa_vbep.
LOOP AT it_vbak INTO wa_vbak.
READ TABLE it_vbak INTO wa_vbak with key vbeln = wa_vbap-vbeln.
wa_final-matnr = wa_vbap-matnr.
wa_final-vbeln = wa_vbap-vbeln.
wa_final-posnr = wa_vbap-posnr.
wa_final-arktx = wa_vbap-arktx.
wa_final-j_3asize = wa_vbep-j_3asize.
wa_final-j_3apgnr = wa_vbap-j_3apgnr.
wa_final-KWMENG = wa_vbap-KWMENG.
wa_final-AUART = wa_vbak-AUART.
wa_final-BMENG = wa_vbep-BMENG.
wa_final-vbeln1 = wa_vbep-vbeln1.
wa_final-posnr1 = wa_vbep-posnr1.
*break hopflabap1.
ENDLOOP.
ENDLOOP.
APPEND wa_final TO it_final.
*break hopflabap1.
ENDLOOP.
sort it_final by vbeln posnr j_3asize.
ENDFORM. "data_retv
*& Form disp_rpt
text
FORM disp_rpt.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = gd_repid
i_callback_user_command = 'USER_COMMAND'
is_print = gd_print
i_callback_pf_status_set = 'SET_STATUS'
i_callback_top_of_page = 'TOP-OF-PAGE'
is_layout = gd_layout
it_fieldcat = it_fclog[]
it_sort = it_sort[]
i_save = 'X'
IT_EVENTS = GT_EVENTS[]
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_REPORT
*& Form fclog
text
FORM fclog.
wa_sort-fieldname = 'VBELN'.
wa_sort-up = 'X'.
wa_sort-subtot = 'X'.
wa_sort-group = 'UL'.
APPEND wa_sort TO it_sort.
wa_sort-fieldname = 'POSNR'.
wa_sort-up = 'X'.
wa_sort-subtot = 'X'.
wa_sort-group = 'UL'.
APPEND wa_sort TO it_sort.
wa_sort-fieldname = 'J_3ASIZE'.
wa_sort-up = 'X'.
wa_sort-subtot = 'X'.
wa_sort-group = 'UL'.
APPEND wa_sort TO it_sort.
wa_fclog-fieldname = 'MATNR'.
wa_fclog-tabname = 'IT_FINAL'.
wa_fclog-seltext_m = 'Material Num'.
wa_fclog-outputlen = 15.
wa_fclog-col_pos = 2.
APPEND wa_fclog TO it_fclog.
CLEAR wa_fclog.
wa_fclog-fieldname = ' VBELN'.
wa_fclog-tabname = 'IT_FINAL'.
wa_fclog-seltext_m = 'SO'.
wa_fclog-outputlen = 20.
wa_fclog-col_pos = 3.
APPEND wa_fclog TO it_fclog.
CLEAR wa_fclog.
wa_fclog-fieldname = 'POSNR '.
wa_fclog-tabname = 'IT_FINAL'.
wa_fclog-seltext_m = 'SO Item'.
wa_fclog-outputlen = 15.
wa_fclog-col_pos = 4.
APPEND wa_fclog TO it_fclog.
CLEAR wa_fclog.
wa_fclog-fieldname = 'ARKTX'.
wa_fclog-tabname = 'IT_FINAL'.
wa_fclog-seltext_m = 'Description'.
wa_fclog-outputlen = 20.
wa_fclog-col_pos = 7.
APPEND wa_fclog TO it_fclog.
CLEAR wa_fclog.
wa_fclog-fieldname = 'J_3ASIZE'.
wa_fclog-tabname = 'IT_FINAL'.
wa_fclog-seltext_m = 'Grid Value'.
wa_fclog-outputlen = 20.
wa_fclog-col_pos = 5.
APPEND wa_fclog TO it_fclog.
CLEAR wa_fclog.
wa_fclog-fieldname = 'J_3APGNR'.
wa_fclog-tabname = 'IT_FINAL'.
wa_fclog-seltext_m = 'Grid Number'.
wa_fclog-outputlen = 20.
wa_fclog-col_pos = 6.
APPEND wa_fclog TO it_fclog.
CLEAR wa_fclog.
wa_fclog-fieldname = 'KWMENG'.
wa_fclog-tabname = 'IT_FINAL'.
wa_fclog-seltext_m = 'Quantity'.
wa_fclog-outputlen = 20.
wa_fclog-col_pos = 8.
APPEND wa_fclog TO it_fclog.
CLEAR wa_fclog.
wa_fclog-fieldname = 'AUART'.
wa_fclog-tabname = 'IT_FINAL'.
wa_fclog-seltext_m = 'Document Type'.
wa_fclog-outputlen = 20.
wa_fclog-col_pos = 9.
APPEND wa_fclog TO it_fclog.
CLEAR wa_fclog.
ENDFORM. "fclogtry this program and you'll get an error....
REPORT zdan_demo_alv.
TYPE-POOLS: slis.
Types **********
*break hopflabap1.
TYPES: BEGIN OF ty_vbap,
matnr TYPE vbap-matnr, " material number
vbeln TYPE vbap-vbeln, " SO
posnr TYPE vbap-posnr, " SO item
arktx TYPE vbap-arktx, " text for so item
j_3apgnr TYPE vbap-j_3apgnr, " grid number
KWMENG TYPE vbap-KWMENG, " Quantity
zmeng TYPE vbap-zmeng, " target quantity
END OF ty_vbap.
TYPES : BEGIN OF ty_vbep,
j_3asize TYPE vbep-j_3asize, " grid value
vbeln1 TYPE vbep-vbeln, " SO
posnr1 TYPE vbep-posnr, " SO item
END OF ty_vbep.
TYPES : BEGIN OF ty_vbak,
vbeln TYPE vbak-vbeln,
AUART TYPE vbak-AUART, " Document Type
END OF ty_vbak.
TYPES : BEGIN OF ty_final,
matnr TYPE vbap-matnr,
vbeln TYPE vbap-vbeln,
posnr TYPE vbap-posnr,
arktx TYPE vbap-arktx,
j_3apgnr TYPE vbap-j_3apgnr,
KWMENG TYPE vbap-KWMENG,
j_3asize TYPE vbep-j_3asize,
vbeln1 TYPE vbep-vbeln,
posnr1 TYPE vbep-posnr,
AUART TYPE vbak-AUART,
END OF ty_final.
Data **********
DATA : it_vbap TYPE TABLE OF ty_vbap,
wa_vbap LIKE LINE OF it_vbap,
it_vbep TYPE TABLE OF ty_vbep,
wa_vbep LIKE LINE OF it_vbep,
it_vbak TYPE TABLE OF ty_vbak,
wa_vbak LIKE LINE OF it_vbak,
it_final TYPE TABLE OF ty_final,
wa_final LIKE LINE OF it_final.
DATA : it_fclog TYPE slis_t_fieldcat_alv,
wa_fclog LIKE LINE OF it_fclog,
it_sort TYPE slis_t_sortinfo_alv,
wa_sort LIKE LINE OF it_sort,
gd_layout TYPE slis_layout_alv,
gd_print TYPE slis_print_alv,
gd_repid LIKE sy-repid,
gt_events TYPE slis_t_event.
*break hopflabap1.
SELECTION-SCREEN BEGIN OF BLOCK sodisp WITH FRAME TITLE text-001.
PARAMETERS : matnr TYPE vbap-matnr OBLIGATORY.
SELECTION-SCREEN END OF BLOCK sodisp.
START-OF-SELECTION.
PERFORM data_retv.
PERFORM fclog.
PERFORM blayout.
PERFORM disp_rpt.
*break hopflabap1.
*& Form data_retv
text
FORM data_retv.
SELECT matnr posnr arktx j_3apgnr zmeng vbeln
*FROM vbap INTO wa_vbap WHERE matnr EQ matnr.
*SELECT vbeln j_3asize
*FROM vbep INTO table it_vbep
for all entries in it_vbap
where vbeln = it_vbap-vbeln and posnr = it_vbap-posnr.
ENDSELECT.
*loop at it_vbap into wa_vbap.
*"move all the data of wa_vbap into wa_final
*"since you are not using full key you may get more than one record
*loop at it_vbep INTO wa_vbep Where vbeln1 = it_vbap-vbeln and posnr1 = it_vbep-posnr1.
"move the information from wa_vbep to wa_final
*endloop.
*append wa_final to it_final.
*clear wa_final.
*endloop.
*break hopflabap1.
SELECT matnr vbeln posnr arktx j_3apgnr KWMENG
FROM vbap
INTO TABLE it_vbap
WHERE matnr EQ matnr.
SELECT j_3asize vbeln posnr
FROM vbep
INTO TABLE it_vbep
FOR ALL ENTRIES IN it_vbap
WHERE vbeln EQ it_vbap-vbeln AND posnr = it_vbap-posnr.
*break hopflabap1.
SELECT vbeln AUART
FROM vbak
INTO TABLE it_vbak
FOR ALL ENTRIES IN it_vbap
WHERE vbeln EQ it_vbap-vbeln.
LOOP AT it_vbap INTO wa_vbap.
LOOP AT it_vbep INTO wa_vbep.
LOOP AT it_vbak INTO wa_vbak.
READ TABLE it_vbak INTO wa_vbak with key vbeln = wa_vbap-vbeln.
wa_final-matnr = wa_vbap-matnr.
wa_final-vbeln = wa_vbap-vbeln.
wa_final-posnr = wa_vbap-posnr.
wa_final-arktx = wa_vbap-arktx.
wa_final-j_3asize = wa_vbep-j_3asize.
wa_final-j_3apgnr = wa_vbap-j_3apgnr.
wa_final-KWMENG = wa_vbap-KWMENG.
wa_final-AUART = wa_vbak-AUART.
wa_final-BMENG = wa_vbep-BMENG.
wa_final-vbeln1 = wa_vbep-vbeln1.
wa_final-posnr1 = wa_vbep-posnr1.
*break hopflabap1.
ENDLOOP.
ENDLOOP.
APPEND wa_final TO it_final.
*break hopflabap1.
ENDLOOP.
*SORT it_final by vbeln posnr j_3asize.
ENDFORM. "data_retv
*& Form disp_rpt
text
FORM disp_rpt.
gd_repid = sy-repid .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = gd_repid
i_callback_user_command = 'USER_COMMAND'
is_print = gd_print
i_callback_pf_status_set = 'SET_STATUS'
i_callback_top_of_page = 'TOP-OF-PAGE'
is_layout = gd_layout
it_fieldcat = it_fclog[]
it_sort = it_sort[]
i_save = 'X'
IT_EVENTS = GT_EVENTS[]
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_REPORT
*FORM blayout.
gd_layout-zebra = 'X'.
*gd_print-no_coverpage = 'X'.
*gd_print-no_print_listinfos = 'X'.
*gd_layout-info_fieldname = 'RCLR'.
**gd_layout-colwidth_optimize = 'X'.
*ENDFORM. " BUILD_LAYOUT
*& Form fclog
text
FORM fclog.
wa_sort-fieldname = 'VBELN'.
wa_sort-up = 'X'.
wa_sort-subtot = 'X'.
wa_sort-group = 'UL'.
APPEND wa_sort TO it_sort.
wa_sort-fieldname = 'POSNR'.
wa_sort-up = 'X'.
wa_sort-subtot = 'X'.
wa_sort-group = 'UL'.
APPEND wa_sort TO it_sort.
wa_sort-fieldname = 'J_3ASIZE'.
wa_sort-up = 'X'.
wa_sort-subtot = 'X'.
wa_sort-group = 'UL'.
APPEND wa_sort TO it_sort.
wa_fclog-fieldname = 'MATNR'.
wa_fclog-tabname = 'IT_FINAL'.
wa_fclog-seltext_m = 'Material Num'.
wa_fclog-outputlen = 15.
wa_fclog-col_pos = 2.
APPEND wa_fclog TO it_fclog.
CLEAR wa_fclog.
wa_fclog-fieldname = ' VBELN'.
wa_fclog-tabname = 'IT_FINAL'.
wa_fclog-seltext_m = 'SO'.
wa_fclog-outputlen = 20.
wa_fclog-col_pos = 3.
APPEND wa_fclog TO it_fclog.
CLEAR wa_fclog.
wa_fclog-fieldname = 'POSNR '.
wa_fclog-tabname = 'IT_FINAL'.
wa_fclog-seltext_m = 'SO Item'.
wa_fclog-outputlen = 15.
wa_fclog-col_pos = 4.
APPEND wa_fclog TO it_fclog.
CLEAR wa_fclog.
wa_fclog-fieldname = 'ARKTX'.
wa_fclog-tabname = 'IT_FINAL'.
wa_fclog-seltext_m = 'Description'.
wa_fclog-outputlen = 20.
wa_fclog-col_pos = 7.
APPEND wa_fclog TO it_fclog.
CLEAR wa_fclog.
wa_fclog-fieldname = 'J_3APGNR'.
wa_fclog-tabname = 'IT_FINAL'.
wa_fclog-seltext_m = 'Grid Number'.
wa_fclog-outputlen = 20.
wa_fclog-col_pos = 6.
APPEND wa_fclog TO it_fclog.
CLEAR wa_fclog.
wa_fclog-fieldname = 'KWMENG'.
wa_fclog-tabname = 'IT_FINAL'.
wa_fclog-seltext_m = 'Quantity'.
wa_fclog-outputlen = 20.
wa_fclog-col_pos = 8.
APPEND wa_fclog TO it_fclog.
CLEAR wa_fclog.
wa_fclog-fieldname = 'J_3ASIZE'.
wa_fclog-tabname = 'IT_FINAL'.
wa_fclog-seltext_m = 'Grid Value'.
wa_fclog-outputlen = 20.
wa_fclog-col_pos = 5.
APPEND wa_fclog TO it_fclog.
CLEAR wa_fclog.
wa_fclog-fieldname = 'AUART'.
wa_fclog-tabname = 'IT_FINAL'.
wa_fclog-seltext_m = 'Document Type'.
wa_fclog-outputlen = 20.
wa_fclog-col_pos = 9.
APPEND wa_fclog TO it_fclog.
CLEAR wa_fclog.
ENDFORM. "fclog -
Dump when summing up CURR field in ALV GRID display
Hi All,
I am getting dump when I try to sum the CURR field in my ALV Grid Display. The field is of CURR 23. I am using classes and methods to display alv grid.
I tried passing <fs_fieldcat>-do_sum = 'X'. When I did this, it is dumping without even displaying the alv grid.
Here is the part it is throwing dump:
ls_lvc_data-value = space.
clear ls_lvc_data-style.
loop at it_fcat_local assigning <ls_fcat>
where tech ne 'X' and no_out ne 'X'.
if l_invisible eq 'X'.
clear l_invisible.
if <ls_fcat>-do_sum is initial.
continue.
else.
clear ls_lvc_data-col_pos.
endif.
endif.
add 1 to ls_lvc_data-col_pos.
assign component <ls_fcat>-fieldname
of structure <ls_data> to <l_field_value>.
_if sy-subrc ne 0.
message x000(0k).
endif._
Regards,
GuruThomas,
Here is the dump:
Runtime Errors MESSAGE_TYPE_X
Date and Time 10/22/2010 23:30:53
Short text
The current application triggered a termination with a short dump.
What happened?
The current application program detected a situation which really
should not occur. Therefore, a termination with a short dump was
triggered on purpose by the key word MESSAGE (type X).
Error analysis
Short text of error message:
Long text of error message:
Technical information about the message:
Message class....... "0K"
Number.............. 000
Variable 1.......... " "
Variable 2.......... " "
Variable 3.......... " "
Variable 4.......... " "
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:
"MESSAGE_TYPE_X" " "
"SAPLSLVC" or "LSLVCF36"
"FILL_DATA_TABLE"
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.
Source Code Extract
Line
SourceCde
2708
is_subtottxt_info = ls_subtot_info
2709
ip_subtot_line = lr_data
2710
changing
2711
c_subtottxt = l_subtottxt.
2712
ls_lvc_data-value = l_subtottxt.
2713
2714
append ls_lvc_data to ct_lvc_data.
2715
endif.
2716
2717
2718
Column per Fieldcat Entry
2719
2720
ls_lvc_data-value = space.
2721
clear ls_lvc_data-style.
2722
loop at it_fcat_local assigning <ls_fcat>
2723
where tech ne 'X' and no_out ne 'X'.
2724
if l_invisible eq 'X'.
2725
clear l_invisible.
2726
if <ls_fcat>-do_sum is initial.
2727
continue.
2728
else.
2729
clear ls_lvc_data-col_pos.
2730
endif.
2731
endif.
2732
2733
add 1 to ls_lvc_data-col_pos.
2734
2735
assign component <ls_fcat>-fieldname
2736
of structure <ls_data> to <l_field_value>.
2737
if sy-subrc ne 0.
>>>>>
message x000(0k).
2739
endif.
2740
2741
*... work on average
2742
if <ls_fcat>-do_sum eq 'C'.
2743
Initialize average result and entries
2744
<l_field_value> = 0.
2745
clear l_entries.
2746
2747
retrive unit from fieldcatalog
2748
assign space to <l_unit>.
2749
if not <ls_fcat>-cfieldname is initial.
2750
assign component <ls_fcat>-cfieldname
2751
of structure <ls_data> to <l_unit>.
2752
endif.
2753
if not <ls_fcat>-qfieldname is initial.
2754
assign component <ls_fcat>-qfieldname
2755
of structure <ls_data> to <l_unit>.
2756
endif.
2757 -
Short Dump while execuition of DTP.
Hi,
I got short dump while execuiting the DTP.
Error messages shows as below:
1.The database returned a value containing an error
2.An exception with the type CX_SY_OPEN_SQL_DB occurred, but was neither handled locally, nor declared in a RAISING clause
3.Exception CX_SY_NO_HANDLER logged
Could you please help us in solving this issue.
Regards,
Suman.hi,
an error like this comes usually in 2 cases
1) not enough resources are available to carry out loads.in this case increase no of parallel processes to 2-3 in dtp setting,check the option get delta request by request(if its a delta load) and decrease packet size to 10000(from default 50000)
2)fileld to field assignment is not proper:
u need to check if there is any source field with lenth lets say 5 ans is getting assisgned to a target field length lets say 4.in this case dumps will come
please check the error message in st22 and here you can also check the termination point.please check in option Chosen variables /contents of system fileds where you can get temp values at point of termination.here you can pinpoint values at which prog is throwing dumps.
Maybe you are looking for
-
IMac 27" with Lion upgrade ... daily hangs! Need help and support
Dear Apple, Mid-July we got an iMac27" with Snow Leopard installed. First week of August I upgraded to Lion via web download (from Apple Store). Since then the iMac has frequently hung. It goes in two stages: 1) the cursor gets round with rolling col
-
How can i improve database connectivity with connection pool
Hi, I used to create a connection to DB per session since the application is pretty small. Now i want to improve the db connectrion with connection pool. However, i am still confused since the book i read says that i have to change something in serve
-
I have an array here numbers are coming continuously, I have to make a table of number and repeition (frequency) of the number
-
Hi I noticed some strange behaviour of a JTextArea in a JScrollPane (I always use this like that, perhaps there might be better ways - I appreciate any suggestions on that, too). When I init the text area with "" the display always scrolls down to th
-
Problem with a video transition
I'm new to FCE and just starting to make titles. I made a simple title in Title 3D, saved the clip back to the Browser, and did an Insert Edit to the beginning of the sequence. I then tried to drag a video transition onto the edit point. It took the