Short dump during select statement
hi,
i have to display 1 alv list output using REUSE_ALV_HIERSEQ_LIST_DISPLAY function module...so i have populated the data using select statement
select EXIDV
brgew meabm
vegr1 erlkz vhilm erdat aenam
ernam from vekp
into corresponding fields of table gt_master
up to gs_test-select_amount rows.
so the data is also getting populated to gt_master table before the function module...but after executing the function module..it is giving short dump...due to some standard program....any idea
hi,
my coding is
Report : ZBCALV *
Author : *
SAP-User : *
Requester : *
Date : *
Specification: *
Description : *
Changes : *
Change No : *
Author : *
SAP-User : *
Date : *
Reason / Desc: *
REPORT ZBCALV.
**& Report BCALV_TEST_HIERSEQ_LIST_EVENTS *
*report bcalv_test_hierseq_list_events.
types: g_ty_t_exidv type standard table of vekp,
g_ty_t_brgew type standard table of vekp,
g_ty_t_vegr1 type standard table of vekp,
g_ty_t_vekp type standard table of vekp,
g_ty_t_curr type standard table of alv_cur,
g_ty_s_vekp type alv_t_t2,
g_ty_s_exidv type alv_tab,
g_ty_s_brgew type alv_tab,
g_ty_s_vegr1 type alv_chck,
g_ty_s_vekp type vekp,
g_ty_s_curr type alv_cur.
constants:
*con_vekp type lvc_fname value 'ALV_T_T2',
con_scarr type lvc_fname value 'ALV_TAB', "#EC *
con_spfli type lvc_fname value 'ALV_CHCK', "#EC *
con_vekp type lvc_fname value 'VEKP',
con_scurx type lvc_fname value 'ALV_CUR'. "#EC *
DATA *
tables: sscrfields. " for processing the FCODEs in Selektion screens
type-pools: slis, kkblo.
class lcl_events_d1001 definition deferred.
types: begin of g_ty_s_test,
select_amount type i,
selected_recs_m type i,
selected_recs_s type i,
no_info_popup type char1,
info_popup_once type char1,
events type lvc_fname occurs 0,
events_exit type slis_t_event_exit,
events_info_popup type lvc_fname occurs 0,
list_append type char1,
list_amount type i,
list_append_status type i,
layo_expand_field type char1,
layo_expand_all type char1,
vari_default type char1,
vari_save type char1,
bypassing_buffer type char1,
buffer_active type char1,
end of g_ty_s_test,
begin of g_ty_s_evt_exit.
include type slis_event_exit.
types: text type string,
end of g_ty_s_evt_exit,
g_ty_t_evt_exit type standard table of g_ty_s_evt_exit.
constants: con_true type char1 value 'X',
con_ok type sy-ucomm value 'OK',
con_exit type sy-ucomm value 'EXIT',
con_canc type sy-ucomm value 'CANC',
con_back type sy-ucomm value 'BACK',
con_event_01 type lvc_fname value 'PF_STATUS_SET',
con_event_02 type lvc_fname value 'USER_COMMAND',
con_event_03 type lvc_fname value 'CALLER_EXIT',
con_event_04 type lvc_fname value 'LIST_MODIFY',
con_event_05 type lvc_fname value 'BEFORE_LINE_OUTPUT',
con_event_06 type lvc_fname value 'AFTER_LINE_OUTPUT',
con_event_07 type lvc_fname value 'SUBTOTAL_TEXT',
con_event_08 type lvc_fname value 'REPREP_MODIFY',
con_event_09 type lvc_fname value 'TOP_OF_PAGE',
con_event_10 type lvc_fname value 'END_OF_PAGE',
con_event_11 type lvc_fname value 'TOP_OF_LIST',
con_event_12 type lvc_fname value 'END_OF_LIST',
con_event_13 type lvc_fname value 'TOP_OF_COVERPAGE',
con_event_14 type lvc_fname value 'END_OF_COVERPAGE',
con_event_15 type lvc_fname value 'TOP_OF_FOREIGN_PAGE',
con_event_16 type lvc_fname value 'END_OF_FOREIGN_PAGE',
con_event_17 type lvc_fname value 'GROUPLEVEL_CHANGE',
con_event_18 type lvc_fname value 'ITEM_DATA_EXPAND'.
data: gs_test type g_ty_s_test.
data: g_okcode type sy-ucomm.
data: g_repid type sy-repid.
data: gt_evt_exit type g_ty_t_evt_exit.
data: gr_container_d1001 type ref to cl_gui_custom_container,
gr_grid_d1001 type ref to cl_gui_alv_grid,
gr_events_d1001 type ref to lcl_events_d1001.
data: g_start_listinfo type slis_lineinfo.
*addition for extra
DATA: fieldcatalog TYPE slis_t_fieldcat_alv with header line.
types : BEGIN OF gt_output ,
EXIDV TYPE VEKP-EXIDV,
VGBEL TYPE LIPS-VGBEL,
BRGEW TYPE VEKP-BRGEW,
VEGR1 TYPE VEKP-VEGR1,
MEABM TYPE VEKP-MEABM,
ERLKZ TYPE VEKP-ERLKZ,
VSTAT TYPE NAST-VSTAT,
VHILM TYPE VEKP-VHILM,
ERDAT TYPE VEKP-ERDAT,
AENAM TYPE VEKP-AENAM,
VBELN TYPE VBELN_GEN,
ERNAM TYPE VEKP-ERNAM,
END OF gt_output.
data: ls_output type gt_output,
lt_output type gt_output occurs 0 WITH HEADER LINE .
types : BEGIN OF gt_item_output ,
EXIDV TYPE VEKP-EXIDV,
BRGEW TYPE VEKP-BRGEW,
vEGR1 TYPE VEKP-VEGR1,
TARAG TYPE VEKP-TARAG,
NTGEW TYPE VEKP-NTGEW,
MEABM TYPE VEKP-MEABM,
BREIT TYPE VEKP-BREIT,
HOEHE TYPE VEKP-HOEHE,
ANW_STATUS TYPE VEKP-ANW_STATUS,
MATNR TYPE VEPO-MATNR,
VEGR2 TYPE VEKP-VEGR2,
VSTEL TYPE VEKP-VSTEL,
WERKS TYPE VEKP-WERKS,
END OF gt_item_output.
data: ls_ITEM_output type gt_ITEM_output,
lt_ITEM_output type gt_ITEM_output occurs 0 with header line.
types: begin of g_ty_s_master.
include type gt_output.
types: box type char1,
lights type char1,
checkbox type char1,
expand type char1,
help type i,
end of g_ty_s_master,
g_ty_t_master type standard table of g_ty_s_master,
begin of g_ty_s_slave.
include type gt_item_output.
types: box type char1,
lights type char1,
checkbox type char1,
expand type char1,
help type i,
end of g_ty_s_slave,
g_ty_t_slave type standard table of g_ty_s_slave.
data: gt_master type g_ty_t_master with header line,
gt_slave type g_ty_t_slave with header line,
gs_master type g_ty_s_master.
CLASS lcl_events_d1001 DEFINITION
class lcl_events_d1001 definition.
public section.
methods:
data_changed for event data_changed
of cl_gui_alv_grid
importing er_data_changed
e_onf4
e_onf4_before
e_onf4_after,
data_changed_finished
for event data_changed_finished
of cl_gui_alv_grid.
endclass. "lcl_events_d1001 DEFINITION
CLASS lcl_events_d1001 IMPLEMENTATION
class lcl_events_d1001 implementation.
method data_changed.
endmethod. "data_changed
method data_changed_finished.
endmethod. "data_changed_finished
endclass. "lcl_events_d1001 IMPLEMENTATION
SELECTION-SCREEN *
selection-screen begin of block gen with frame.
parameters:
p_amount type i default 30.
selection-screen end of block gen.
at selection-screen.
AT SELECTION-SCREEN *
case sscrfields-ucomm.
when 'PB01'.
call screen 1001 starting at 1 1 ending at 80 20.
endcase.
START-OF-SELECTION *
start-of-selection.
g_repid = sy-repid.
gs_test-select_amount = p_amount.
END-OF-SELECTION *
end-of-selection.
perform f01_call_list.
*& Form f01_call_list
text
form f01_call_list.
data: l_callback_program type sy-cprog, "#EC NEEDED
ls_layo type slis_layout_alv,
lt_fcat type slis_t_fieldcat_alv,
ls_keyinfo type slis_keyinfo_alv.
data: ls_master type g_ty_s_master,
ls_slave type g_ty_s_slave.
l_callback_program = sy-repid.
perform f01_alv_get_outtab.
perform f01_alv_set_layout changing ls_layo.
perform f01_alv_set_fcat changing lt_fcat.
perform f01_alv_set_keyinfo changing ls_keyinfo.
if gs_test-list_append_status ne 0.
ls_layo-list_append = gs_test-list_append.
endif.
call function 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
exporting
i_callback_program = g_repid
is_layout = ls_layo
it_fieldcat = lt_fcat
i_tabname_header = 'GT_MASTER'
i_tabname_item = 'GT_SLAVE'
is_keyinfo = ls_keyinfo
tables
t_outtab_header = gt_master
t_outtab_item = gt_slave
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. " f01_call_list
FORM f01_alv_set_fcat
form f01_alv_set_fcat changing ct_fcat type slis_t_fieldcat_alv.
data: lt_fcat_master type slis_t_fieldcat_alv,
lt_fcat_slave type slis_t_fieldcat_alv.
clear ct_fcat[].
perform f01_alv_set_fcat_master changing lt_fcat_master.
perform f01_alv_set_fcat_slave changing lt_fcat_slave.
append lines of lt_fcat_master to ct_fcat.
append lines of lt_fcat_slave to ct_fcat.
endform. " F01_ALV_SET_FCAT
*& Form f01_alv_set_fcat_master
text
form f01_alv_set_fcat_master changing ct_fcat type slis_t_fieldcat_alv.
data: ls_fcat type slis_fieldcat_alv,
l_char(3) type c.
get fieldcatalog
fieldcatalog-fieldname = 'EXIDV'. "Field name in itab
fieldcatalog-seltext_l = 'HU-NR'. "Column text
FIELDCATALOG-KEY = 'X'.
FIELDCATALOG-TECH = 'X'.
fieldcatalog-col_pos = 1. "Column position
fieldcatalog-ref_tabname = 'VEKP'.
fieldcatalog-outputlen = 05. "Column width
APPEND fieldcatalog TO ct_fcat.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'VGBEL'.
fieldcatalog-seltext_L = 'SALES ORDER'.
fieldcatalog-outputlen = 15.
fieldcatalog-ref_tabname = 'LIPS'.
fieldcatalog-col_pos = 2.
APPEND fieldcatalog TO ct_fcat.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'BRGEW'.
fieldcatalog-seltext_l = 'WEIGHT'.
FIELDCATALOG-KEY = 'X'.
fieldcatalog-outputlen = 15.
fieldcatalog-col_pos = 3.
fieldcatalog-ref_tabname = 'VEKP'.
APPEND fieldcatalog TO ct_fcat.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'MEABM'.
fieldcatalog-seltext_l = 'DIMENSION'.
fieldcatalog-outputlen = 15.
fieldcatalog-col_pos = 4.
fieldcatalog-ref_tabname = 'VEKP'.
APPEND fieldcatalog TO ct_fcat.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'VEGR1'.
fieldcatalog-seltext_l = 'IPPC NR'.
fieldcatalog-outputlen = 15.
FIELDCATALOG-KEY = 'X'.
fieldcatalog-col_pos = 5.
fieldcatalog-ref_tabname = 'VEKP'.
APPEND fieldcatalog TO ct_fcat.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'ERLKZ'.
fieldcatalog-seltext_l = 'STATUS'.
fieldcatalog-outputlen = 15.
fieldcatalog-col_pos = 6.
fieldcatalog-ref_tabname = 'VEKP'.
APPEND fieldcatalog TO ct_fcat.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'VSTAT'.
fieldcatalog-seltext_l = 'PRINT STATUS'.
fieldcatalog-outputlen = 15.
fieldcatalog-col_pos = 7.
fieldcatalog-ref_tabname = 'VSTAT'.
APPEND fieldcatalog TO ct_fcat.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'VHILM'.
fieldcatalog-seltext_l = 'PACKING MATERIAL'.
fieldcatalog-outputlen = 15.
fieldcatalog-col_pos = 8.
fieldcatalog-ref_tabname = 'VEKP'.
APPEND fieldcatalog TO ct_fcat.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'ERDAT'.
fieldcatalog-seltext_l = 'CREATED FROM'.
fieldcatalog-outputlen = 15.
fieldcatalog-col_pos = 9.
fieldcatalog-ref_tabname = 'VEKP'.
APPEND fieldcatalog TO ct_fcat.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'AENAM'.
fieldcatalog-seltext_l = 'LAST CHANGE'.
fieldcatalog-outputlen = 15.
fieldcatalog-col_pos = 10.
fieldcatalog-ref_tabname = 'VEKP'.
APPEND fieldcatalog TO ct_fcat.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'VBELN'.
fieldcatalog-seltext_l = 'DELIVERY'.
fieldcatalog-outputlen = 15.
fieldcatalog-col_pos = 11.
fieldcatalog-ref_tabname = 'VEKP'.
APPEND fieldcatalog TO ct_fcat.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'ERNAM'.
fieldcatalog-seltext_l = 'CREATED BY'.
fieldcatalog-outputlen = 12.
fieldcatalog-col_pos = 8.
fieldcatalog-ref_tabname = 'VEKP'.
APPEND fieldcatalog TO ct_fcat.
CLEAR fieldcatalog.
ls_fcat-tabname = 'GT_MASTER'.
modify ct_fcat from ls_fcat transporting tabname
where tabname ne ls_fcat-tabname.
loop at ct_fcat into ls_fcat.
if ls_fcat-fieldname eq 'BRGEW'.
or ls_fcat-fieldname eq ''.
*§1.Set status of columns PLANETYPE and SEATSOCC to editable.
ls_fcat-edit = 'X'.
modify ct_fcat from ls_fcat.
endif.
endloop.
endform. " f01_alv_set_fcat_master
*& Form f01_alv_set_fcat_slave
text
form f01_alv_set_fcat_slave changing ct_fcat type slis_t_fieldcat_alv.
data: ls_fcat type slis_fieldcat_alv,
l_char(3) type c.
fieldcatalog-fieldname = 'EXIDV'. "Field name in itab
fieldcatalog-seltext_l = 'HU-NR'. "Column text
FIELDCATALOG-KEY = 'X'.
FIELDCATALOG-TECH = 'X'.
fieldcatalog-col_pos = 1. "Column position
fieldcatalog-ref_tabname = 'VEKP'.
fieldcatalog-outputlen = 05. "Column width
APPEND fieldcatalog TO ct_fcat.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'TARAG'. "Field name in itab
fieldcatalog-seltext_l = 'HU-NR'. "Column text
fieldcatalog-col_pos = 1. "Column position
fieldcatalog-ref_tabname = 'VEKP'.
fieldcatalog-outputlen = 05. "Column width
APPEND fieldcatalog TO ct_fcat.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'NTGEW'.
fieldcatalog-seltext_L = 'WEIGHT HU'.
fieldcatalog-outputlen = 15.
fieldcatalog-ref_tabname = 'VEKP'.
fieldcatalog-col_pos = 2.
APPEND fieldcatalog TO ct_fcat.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'BRGEW'.
fieldcatalog-seltext_l = 'WEIGHT'.
FIELDCATALOG-KEY = 'X'.
fieldcatalog-outputlen = 15.
fieldcatalog-col_pos = 3.
fieldcatalog-ref_tabname = 'VEKP'.
APPEND fieldcatalog TO ct_fcat.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'LAENG'.
fieldcatalog-seltext_l = 'LENGTH'.
fieldcatalog-outputlen = 15.
fieldcatalog-col_pos = 4.
fieldcatalog-ref_tabname = 'VEKP'.
APPEND fieldcatalog TO ct_fcat.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'BREIT'.
fieldcatalog-seltext_l = 'WIDTH'.
fieldcatalog-outputlen = 15.
fieldcatalog-col_pos = 5.
fieldcatalog-ref_tabname = 'VEKP'.
APPEND fieldcatalog TO ct_fcat.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'HOEHE'.
fieldcatalog-seltext_l = 'HEIGHT'.
fieldcatalog-outputlen = 15.
fieldcatalog-col_pos = 6.
fieldcatalog-ref_tabname = 'VEKP'.
APPEND fieldcatalog TO ct_fcat.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'VEGR1'.
fieldcatalog-seltext_l = 'HU GR1'.
FIELDCATALOG-KEY = 'X'.
fieldcatalog-outputlen = 15.
fieldcatalog-col_pos = 7.
fieldcatalog-ref_tabname = 'VEKP'.
APPEND fieldcatalog TO ct_fcat.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'VEGR2'.
fieldcatalog-seltext_l = 'HU GR2'.
FIELDCATALOG-KEY = 'X'.
fieldcatalog-outputlen = 15.
fieldcatalog-col_pos = 8.
fieldcatalog-ref_tabname = 'VEKP'.
APPEND fieldcatalog TO ct_fcat.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'MATNR'.
fieldcatalog-seltext_l = 'MAT NO'.
fieldcatalog-outputlen = 15.
fieldcatalog-col_pos = 9.
fieldcatalog-ref_tabname = 'VEPO'.
APPEND fieldcatalog TO ct_fcat.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'VSTEL'.
fieldcatalog-seltext_l = 'SHIPPING'.
fieldcatalog-outputlen = 15.
fieldcatalog-col_pos = 10.
fieldcatalog-ref_tabname = 'VEKP'.
APPEND fieldcatalog TO ct_fcat.
CLEAR fieldcatalog.
fieldcatalog-fieldname = 'WERKS'.
fieldcatalog-seltext_l = 'PLANT'.
fieldcatalog-outputlen = 15.
fieldcatalog-col_pos = 11.
fieldcatalog-ref_tabname = 'VEKP'.
APPEND fieldcatalog TO ct_fcat.
CLEAR fieldcatalog.
ls_fcat-tabname = 'GT_SLAVE'.
modify ct_fcat from ls_fcat transporting tabname
where tabname ne ls_fcat-tabname.
endform. " f01_alv_set_fcat_slave
FORM f01_alv_set_layout
form f01_alv_set_layout changing cs_layout type slis_layout_alv.
*... Display options
cs_layout-colwidth_optimize = con_true.
cs_layout-no_colhead = space.
cs_layout-no_hotspot = space.
cs_layout-zebra = space.
cs_layout-no_vline = space.
cs_layout-cell_merge = space.
cs_layout-no_min_linesize = space.
cs_layout-min_linesize = space.
cs_layout-max_linesize = space.
cs_layout-window_titlebar = space.
cs_layout-no_uline_hs = space.
cs_layout-no_sumchoice = space.
cs_layout-no_totalline = space.
cs_layout-totals_before_items = space.
cs_layout-totals_only = space.
cs_layout-totals_text = space.
cs_layout-no_subchoice = space.
cs_layout-no_subtotals = space.
cs_layout-subtotals_text = space.
cs_layout-numc_sum = space.
cs_layout-no_unit_splitting = space.
*... Interaction
cs_layout-box_fieldname = 'BOX'.
cs_layout-box_tabname = space.
cs_layout-box_rollname = space.
if gs_test-layo_expand_field eq con_true.
cs_layout-expand_fieldname = 'EXPAND'.
endif.
cs_layout-hotspot_fieldname = space.
cs_layout-f2code = space.
cs_layout-key_hotspot = space.
cs_layout-flexible_key = space.
cs_layout-reprep = space.
cs_layout-group_buttons = space.
cs_layout-no_keyfix = space.
cs_layout-get_selinfos = con_true.
cs_layout-group_change_edit = con_true.
cs_layout-no_scrolling = space.
cs_layout-expand_all = gs_test-layo_expand_all.
*... Detailed screen
cs_layout-detail_popup = space.
cs_layout-detail_initial_lines = space.
cs_layout-detail_titlebar = space.
*... PF-status
cs_layout-def_status = space.
*... Display variants
cs_layout-header_text = space.
cs_layout-item_text = space.
cs_layout-default_item = space.
*... colour
cs_layout-info_fieldname = space.
cs_layout-coltab_fieldname = space.
*... others
cs_layout-list_append = space.
endform. " F01_ALV_SET_LAYOUT
*& Form f01_alv_set_keyinfo
text
form f01_alv_set_keyinfo changing cs_keyinfo type slis_keyinfo_alv.
cs_keyinfo-header01 = 'EXIDV'.
cs_keyinfo-item01 = 'EXIDV'.
cs_keyinfo-header02 = 'BRGEW'."'CARRID'.
cs_keyinfo-item02 = 'BRGEW'."."'CARRID'.
cs_keyinfo-header03 = 'VEGR1'."'CONNID'.
cs_keyinfo-item03 = 'VEGR1'."'CONNID'.
cs_keyinfo-header04 = space.
cs_keyinfo-item04 = 'VEGR2'."'FLDATE'.
cs_keyinfo-header05 = space.
cs_keyinfo-item05 = space.
endform. " f01_alv_set_keyinfo
FORM f01_alv_event_pf_status_set
form f01_alv_event_pf_status_set using rt_extab type slis_t_extab.
"#EC *
data: l_event type lvc_fname. "#EC NEEDED
if gs_test-info_popup_once eq con_true.
read table gs_test-events_info_popup into l_event
with key table_line = 'PF_STATUS_SET'.
if sy-subrc ne 0.
insert 'PF_STATUS_SET' into gs_test-events_info_popup index 1.
message i000(0k) with text-t01.
endif.
elseif gs_test-no_info_popup eq space.
message i000(0k) with text-t01.
endif.
set pf-status 'STANDARD' excluding rt_extab.
set titlebar 'STANDARD'.
endform. " F01_ALV_EVENT_PF_STATUS_SET
*& Form F01_ALV_EVENT_BEFORE_LINE_OUTP
text
form f01_alv_event_before_line_outp
using rs_lineinfo type slis_lineinfo. "#EC *
data: l_event type lvc_fname. "#EC NEEDED
if gs_test-info_popup_once eq con_true.
read table gs_test-events_info_popup into l_event
with key table_line = 'BEFORE_LINE_OUTPUT'.
if sy-subrc ne 0.
insert 'BEFORE_LINE_OUTPUT' into gs_test-events_info_popup
index 1.
message i000(0k) with text-t05.
endif.
elseif gs_test-no_info_popup eq space.
message i000(0k) with text-t05.
endif.
format color off
intensified off
inverse off
hotspot off
input off.
if rs_lineinfo-tabname eq 'GT_MASTER'.
if
gs_master-exidv ne gt_master-exidv or
gs_master-brgew ne gt_master-brgew.
write: / text-t05.
write: /
gt_master-exidv,
gt_master-brgew.
gs_master = gt_master.
endif.
if gs_test-selected_recs_m eq rs_lineinfo-tabindex.
clear gs_master.
endif.
endif.
endform. " F01_ALV_EVENT_BEFORE_LINE_OUTP
*& Form f01_alv_get_outtab
text
form f01_alv_get_outtab .
field-symbols: .
select
exidv BRGEW VEGR1
TARAG NTgew meabm BREIT HOEHE VEGR2 VSTEL weRKS
from
(con_vekp) into corresponding fields of table
lt_slave up to gs_test-select_amount rows
where
exidv eq <ls_master>-exidv and
brgew eq -vegr1.
append lines of lt_slave to gt_slave.
endloop.
sort gt_slave by exidv brgew vegr1.
endif.
describe table gt_master lines gs_test-selected_recs_m.
describe table gt_slave lines gs_test-selected_recs_s.
clear gt_master.
clear gt_slave.
endform. " f01_alv_get_outtab
*& Module d1001_pbo OUTPUT
text
module d1001_pbo output.
perform d1001_pbo.
endmodule. " d1001_pbo OUTPUT
*& Module d1001_pai INPUT
text
module d1001_pai input.
perform d1001_pai.
endmodule. " d1001_pai INPUT
Similar Messages
-
Hello Experts,
I am working on PM module where I am preparing a report for ATPCHECK.
My select statement is not working.
I have to select all the active status from jest table.
select STAT from JEST into itab-STAT where objnr = ITAB-objnr
AND INACT eq 'X'.
But than I need to apply a check where I just need 2 active status 'I0002' and 'I0340'.
Is there a way to select all active status fields and than just these 2 active fields.
Thanks and Regrds,
Nikhil.SELECT pobjnr ppspnr pvbukr ppost1 pzzmattermanager pzzclient qstat qinact
INTO TABLE gt_proj_temp
FROM ( proj AS p INNER JOIN jest AS q ON pobjnr = qobjnr )
WHERE zzmattermanager IN so_pernr AND
( qstat = 'E0010' OR qstat = 'E0015') AND q~inact = ' '.
IF sy-subrc = 0.
SELECT kunnr name1
INTO TABLE gt_kna1
FROM kna1
FOR ALL ENTRIES IN gt_proj_temp
WHERE kunnr = gt_proj_temp-zzclient.
LOOP AT gt_proj_temp INTO gs_proj_temp.
READ TABLE gt_kna1 INTO gs_kna1 WITH KEY kunnr = gs_proj_temp-zzclient.
IF sy-subrc = 0.
gs_proj-objnr = gs_proj_temp-objnr.
gs_proj-pspnr = gs_proj_temp-pspnr.
gs_proj-vbukr = gs_proj_temp-vbukr.
gs_proj-post1 = gs_proj_temp-post1.
gs_proj-zzmattermanager = gs_proj_temp-zzmattermanager.
gs_proj-kunnr = gs_kna1-kunnr.
gs_proj-name1 = gs_kna1-name1.
APPEND gs_proj TO gt_proj.
CLEAR gs_proj.
ENDIF.
ENDLOOP.
ENDIF.
IF gv_lines = 0.
MESSAGE e003(z01).
ENDIF.
IF NOT gt_proj[] IS INITIAL.
SELECT pernr ename FROM pa0001 INTO TABLE gt_pa0001
FOR ALL ENTRIES IN gt_proj
WHERE pernr = gt_proj-zzmattermanager.
ENDIF.
ENDIF.
IF NOT gt_proj[] IS INITIAL.
SELECT objnr stat INTO TABLE gt_jest FROM jest
FOR ALL ENTRIES IN gt_proj
WHERE objnr = gt_proj-objnr AND stat = 'I0046' AND inact = ' '.
ENDIF. -
Short Dump during Import Statement from STXL(TX)
Hi All,
issue for me.
Error analysis
An exception occurred that is explained in detail below.
The exception which is assigned to class CX_SY_IMPORT_FORMAT_ERROR was not
caught in
procedure READ_TEXTLINES (FORM) 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:
When attempting to IMPORT the object TLINE there was a format error.
Unable to read an IMPORT dataset.
The dataset may have been processed using SQL and is
thus no longer readable for the IMPORT.
Information on where terminated
Termination occurred in the ABAP program SAPLSTXD - in READ_TEXTLINES
The main program was RS_TESTFRAME_CALL .
In the source code you have the termination point in line 106
of the (Include) program LSTXDFDB.
The termination is caused because exception C_SY_IMPORT_FORMAT_ERROR
occurred in
procedure READ_TEXTLINES (FORM) but it was neither handled locally n
declared
in the RAISING clause of its signature.
The procedure is in program SAPLSTXD its source code begins in line
75 of the (Include program LSTXDFDB .
import tline to rt_lines
from database stxl(tx)
client rt_client
id stxl_id
ACCEPTING TRUNCATION "important for Unicode->Nonunicode
IGNORING CONVERSION ERRORS.
Thanks & Regards,
Pavan.Hi Ramotar,
are you using the read_text function module to retreive contents? if yes then ensure that you have passed everything correct am given example below just check that,
DATA : T_LINE LIKE TLINE OCCURS 0 WITH HEADER LINE .
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = 'F01'
LANGUAGE = 'E'
NAME = V_NAME
OBJECT = 'EKKO'
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
TABLES
LINES = T_LINE
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8
if not just explain on what scenario you are getting this dump? -
Short dump during ME23N transaction due to missing field in KOMP table
Hi All,
We have just upgraded to Business Suite 7.0 and are experiencing the following error:
Short dump during processing of transaction ME23N - error is in program SAPLV61A when the system calls the following field: KOMP_SERVICE_PARAM2 (this does not exist in KOMP). We need to get this resolved as soon as possible, It appears that SAP have removed this field from the table KOMP but the standard programme is still looking for this field. Can anyone provide an oss note number or insight into how to resolve this issue please.
Many Thanks
AmandaDear,
This problem is caused by a missing initialization of the structure KOMP in the program SAPLV61A.
The problem may also occur during , when the "Create PO automatically" indicator (TVAP-ALEKZ) is set for the relevant item category in the item category Customizing (transaction VOV7). In this case, the data of the purchase order item that was previously processed is used for the back update of the sales order from the purchase order in KOMP.
Add the following import parameter to the function module RV_KONV_SELECT:
Parameter name COMM_ITEM_I
Typing LIKE
Associated type KOMP
Optional X
Pass Value X
Please refer the OSS note 1261566.
Regards,
R.Brahmankar -
Short Dump during Business Content Installation
Hi Gurus,
I'm working on SAP BI 7.0. I'm getting a Short Dump Error stating " Program error: ASSIGN with length 0 in program "SAPLSNR3". " while I'm try to install the Business Content.
I'm getting this error when I'm trying to install Business Content with Grouping Option " Data flow Before ", but I didn't face any problem when I started off with the Grouping Option " Only Necessary Objects ".
I tried analysing this problem by going to ST22 transaction & during my analysis I found that in the said program " SAPLSNR3 ", there's LSNR3F01 include in which line number 178 is having a ASSIGN statement, where its trying to assign a computed value to some data variable. Now i understand that there's some problem with the value getting computed in the ASSIGN statement.
I also tried finding some SAP Notes for the same problem, but to my misery I couldn't find anything appropriate. Could anyone of you who had faced similar problem help me out.
For further assistance in making your replies much easier here in I'm adding the information about BI 7.0 system components.
SAP ABAP: Level 12
SAP BASIS: Level 12
SAP BW: Level 14
Business Content: Level 5
Waiting for a early solution from U guyz.........
Regards,
Syed Shujaath Ali.Hi,
Apply SAP BW: Level 19 or 20
Business Content: 10
patches . -
Short dump during activating the BC Set in SCPR20 - "GETWA_NOT_ASSIGNED"
Hi experts,
We have upgraded from SRM 4 to 7.0.We are facing an issue when activating the BC Set in SCPR20. A short dump is occuring inside the program 'VIRSA/SAPLZVIR'. We got the solution that some correction instructions mentioned in the SAP Note 1095700 needs to be mplemented. The steps mentioned in the Note are,
1) Run transaction SE54 and click the button 'Edit Function Group'.
2) Next, enter the name of the function group /VIRSA/ZVR1.
3) Select the radio button option 'Re-generate group-specific programs',and press the 'Change' button.
4) In the following popup please mark only the option 'structure spec.data declaration renewal' and press enter.
We were able to proceed with the first two steps but stuck up during the execution of step3. When we selected the radio button u2018Re-generate group-specific programsu2019 and when clicked on the change button, we are getting a message like u2018the name space u2018/VIRSA/ZVR1u2019 does not exists. Because of this we are not able to proceed with the last step.
Kindly provide some ponters as of how to overcome this issue ..
Thanks in advance,
DhanHi there,
To overcome this error you need to go to se06 and make the "/VIRSA/" namespace as Modifiable.
Also, you should have a look at the following note if my first suggestion doesn't work.
1041089 Tx SCPR20: GETWA_NOT_ASSIGNED dump during BC Set activation
Hope this helps.
Kind Regards,
Matthew -
Short Dump While selecting Variant for ABAP query
Hi,
ABAP query is going to short dump (CONNE_IMPORT_WRONG_COMP_LENG) while selecting a Variant. If i create and use variant then i am able to see Output of Variant.But not able to use Earlier created variants .
I think some mismatch between variant values and selection screen fields.Can anyone tell me how to rectify this ?
I am not able to debug the code as dump is coming in a System program(RSDBSPVD).Can anyone tell me which database table i can use to get values of the Variant.
Thanks in Advance.
Nirmala KHi nirmala,
chk the links:
http://help.sap.com/saphelp_webas620/helpdata/en/c0/980398e58611d194cc00a0c94260a5/content.htm
http://help.sap.com/saphelp_webas620/helpdata/en/c0/9803a7e58611d194cc00a0c94260a5/content.htm
regards,
keerthi. -
Short dump during choose of Contact Person for Opportunity
Hello CRM Gurus,
we are going to implement CRM also in another Sales Organization. We have created a special Role for this Users with the Authorization Objects:
- CRM Order - Allowed Organ. Units - CRM_ORD_OE
Activity 01, 02, 03
Distribution Channel *
Sales Group *
Sales Office *
Sales Organization O 50001434
Service Organization *
- CRM Order - Allowed Organ. Units - CRM_ORD_OP
Activity 02, 03
Partner Function *
Partner Function Category *
So the User can create or generate, change, display Opportunities which are created within their Sales Organization and change, display Opportunities where this User is part of the Sales Team.
When I create now a Opportunity and choose a Sales Prospect of another Sales Organization I get a shortdump. If I save the Opportunity before I can enter the Sales Prospect of the other Sales Organization.
Steps for reconstruction:
Logon to the Portal
Navigate to Aquisition -> Opportunities
Click on "Create ..."
Choose "Opportunity"
Enter "Test" in Description
a) With Shortdump:
Enter "Riedl El*" into the Field Sales Prospect, press enter
A popup "Partner available for selection" appears. In the Background
you will see "You have no authorization to execute action Edit"
When you click now "Choose" you will get:
Error message: The current application triggered a termination with a
short dump. ( type of termination: RABAX_STATE )
b) Without:
Save the Opportunity
Enter "Riedl El*" into the Field Sales Prospect and press enter.
A popup "Partner available for selection" will appear because the
Document was already saved and the Contact Partner search does not work
with a saved document. But that is another story.
No Shortdump will occur.
Best Regards
Gregor WolfHi Everybody,
the Short dump problem is solved by SAP Note 797483. But OSS is still working on the authorization problem.
Regards
Gregor -
Short Dump During List processing
Hi ,
Problem Desc:
A program when it runs in production has huge number of data to be displayed in the list .While doing the write statement the internal table(system assigned internal table for list processing '%_LIST') exceeds the memory limit and goes for dump.
Please suggest for the following for finding a better solution, I am in 4.7 only
1.Once the program reaches a maximum memory limit I have to clear the list from memory
- so how to send the processed list to other persistent area like spool etc
- How to clear the internal list memory allocation ( Any c functions , Class is available for it )
- How to catch the memory used for the list process programmatically (for Internal table %_LIST)
Thanks in advance
Best regards,
RajHi Raj,
Why don't you go for prevention rather than cure?
When the user selects the data ranges for the report, you could do a calculation to determine the size of the report and then ask them to restrict the criteria. They could then run several reports rather than trying to do it all in one.
I would guess that if you are running out of memory that the report must be HUGE. Who is going to look at something that large?
You could also increase the memory allocation to each work process (although this is a bit of a sledgehammer to crack a nut).
As for your quesions:
1. I'm not sure you can persist the spool yourself, and certainly not from within your program. You could, however, spin off jobs from the main program which each had a portion of the overall data to process and thus each would generate a smaller spool (although collectively they would be the same size).
2. As I don't think you can achieve 1, I don't think there is any point to 2.
3. There was a thread discussing internal table memory consumption just today, with approaches for 6.20+ and 4.6-. Heres the link: How to catch the Internal Table memory
Cheers,
Brad -
Hi Experts,
I am facing the problem in the select statement where it giving the short dump
DBIF_RSQL_INVALID_RSQL CX_SY_OPEN_S.
i have searched many forms, but i found that the select option s_matnr have the limitaion 2000 entreis, but i am passing same s_matnr to other select statement with more than 2000 entries but it is not giving me any short dump.
but i am facing problem with only one select statement where if i pass select option s_matnr more than 1500 entris also giving short dump.
my select statement is
SELECT * FROM bsim
INTO CORRESPONDING FIELDS OF TABLE g_t_bsim_lean
FOR ALL ENTRIES IN t_bwkey WHERE bwkey = t_bwkey-bwkey
AND matnr IN matnr
AND bwtar IN bwtar
AND budat >= datum-low.
in the internal table g_t_bsim_lean internal table contain all the fields of the table bsim with 2 fields from other table.
Please let me know whether i need to change the select statement or any other solution for this.
Regards,
udupimy select query is like this:
DATA: BEGIN OF t_bwkey OCCURS 0, "184465
bwkey LIKE bsim-bwkey, "184465
END OF t_bwkey. "184465
LOOP AT g_t_organ WHERE keytype = c_bwkey.
MOVE g_t_organ-bwkey TO t_bwkey-bwkey.
COLLECT t_bwkey. "184465
ENDLOOP. "184465
READ TABLE t_bwkey INDEX 1. "184465
CHECK sy-subrc = 0. "184465
SELECT * FROM bsim "n443935
INTO CORRESPONDING FIELDS OF TABLE g_t_bsim_lean "n443935
FOR ALL ENTRIES IN t_bwkey WHERE bwkey = t_bwkey-bwkey
AND matnr IN matnr
AND bwtar IN bwtar
AND budat >= datum-low. -
Short dump (DBIF_RSQL_INVALID_RSQL) during activating ODS
Hello Experts,
I found short dump during activating ODS.
The error message in short dump:
Runtime Error: DBIF_RSQL_INVALID_RSQL
Except.: CX_SY_OPEN_SQL_DB
The termination occurred in the ABAP program "GP7WIVS2MDWGSTMN3ICFDKNAH65" in "ACTIVATE_SIDS".
The main program was "RSODSACT1 ".
I add one InfoObject in the ODS. After activating related objects, I loaded data into the data target.
Data seemed to be loaded correctly, but couldn't be activated.
Any suggestion on this?
-WJ-Hi,
Please chekc the following SAP Notes you will find solution
Note 908599 - Runtime error SAPSQL_INVALID_FIELDNAME during activation
Note 612995 - P13:ODS:Data activation in bckgrnd always ends 'successfully
Note 1175860 - P19: DSO: SDL: Automatic update after activation
Note 1113603 - P17:DSO:Postprocessing ODS - activating and updating
Note 378447 - Correction: hierarchies do not become green
Note 1272738 - P21:DSO: Activation and automatic updating
Note 794584 - P26:Timestamp field empty in RS2NDPROCPROT after ODSACTIVATE
Note 800086 - P26: ODS activation: Status field in table RS2NDPROCPROT
Note 856292 - P28: Automatic functions: No lock obtained for ERSICENQ
Thanks
Reddy -
Function short dump - A dynamically specified column name is unknown.
Hello,
I've created BRF fuction according to the Note 1466868 - Dunning by collection strategy with BRFplus. I get short dump during simulation of function with following exception:
"A dynamically specified column name is unknown. "
Runtime Errors SAPSQL_INVALID_FIELDNAME
Exception CX_SY_DYNAMIC_OSQL_SEMANTICS
No. Ty. Program Include Line
Name
19 METHOD CL_FDT_ELEMENT================CP CL_FDT_ELEMENT================CM012 129
CL_FDT_ELEMENT=>GET_VALUES_DDIC
18 METHOD CL_FDT_ELEMENT================CP CL_FDT_ELEMENT================CM011 124
CL_FDT_ELEMENT=>GET_VALUES
17 METHOD CL_FDT_WD_RENDER_VALUE_INPUT==CP CL_FDT_WD_RENDER_VALUE_INPUT==CM00G 139
CL_FDT_WD_RENDER_VALUE_INPUT=>VALIDATE_VALUES
In my opinion there is uncorrect query.
Current version:
. SELECT FIKRS AS VALUE NAME AS TEXT FROM FMBS_BS_T
INTO CORRESPONDING FIELDS OF TABLE lt_value
WHERE LANGU EQ 'E'.
instead of:
. SELECT FM_AREA AS VALUE NAME AS TEXT FROM FMBS_BS_T
INTO CORRESPONDING FIELDS OF TABLE lt_value
WHERE LANGU EQ 'E'.
My sap version:
EHP4 FOR SAP ERP 6.0 / NW7.01
SAP_BASIS 701 0003 SAPKB70103
Do you know any note or solution to resolve this problem.
Best regards,
Jacek WitczakHi, I came back to working on "Dunning by collection strategy with BRFplus". According to your sugestions, I raised the level of components:
SAP_BASIS Level 09
SAP_ABA level 09
PI_BASIS level 09
SAP_BW level 09
But still I have the same short dump.
Shoudl we raise any other components? Maybe you know note, which resolve this problem? -
SEM-BCS Short Dump while executing Manual Posting Task
Hi SEM-BCS Colleagues,
I am having a peculiar problem with relation to the settings for Manual Postings. I have three scenarios for which I have defined manual document types and tasks 1) Standardizing Entry (Data Collection) 2) Manual Document in IU for adjustment 3) COI Group level manual postings. I am just creating and not changing any settings for document field properties also. I have configured monthly consolidation frequency and period category and I am posting document type 1 in Local Currency and 2 and 3 in Group Currency since they are after currency translation.
Have any of you faced similar problem and help me please?Hello,
I am also getting short dump during data collection in BCS.
we recently upgraded the system to SP20. Is it anyway related to upgrade.
I also checked the MYSELF as a source system, but not found one.
Could you please let me know how you have solved this issue.
short dump:
Runtime Errors PERFORM_TOO_MANY_PARAMETERS
Exception CX_SY_DYN_CALL_PARAM_NOT_FOUND
Date and Time 04.12.2009 05:21:11
Short text
Too many parameters specified with PERFORM.
What happened?
In a subroutine call, there were more parameters than in the
routine definition.
Error in the ABAP Application Program
The current ABAP program "SAPLRSDRI" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_DYN_CALL_PARAM_NOT_FOUND', was
not caught in
procedure "RSDRI_CUBE_WRITE_PACKAGE_RFC" "(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:
A PERFORM was used to call the routine "CUBE_WRITE_PACKAGE" of the program
"GPD1S8520HM8UV0U2XBDVPADF03".
This routine contains 7 formal parameters, but the current call
contains 10 actual parameters. -
Hi,
we got a short dump during the backup of the local HANA DB in Tx DB13.
SAP Netweaver 7.30 SP08
SAP HANA 1.00.70.00
Category
ABAP Programming Error
Runtime Errors
EXSQL_ILLEGAL_DISCONNECTION
ABAP Program
CL_HDB_UTILITIES_DB13=========CP
|Short text |
| DISCONNECT is not possible for the DEFAULT connection. |
|What happened? |
| Error in the ABAP application program. |
| |
| The current ABAP program "CL_HDB_UTILITIES_DB13=========CP" had to be |
| interrupted because it contains |
| a statement that cannot be executed. |
|Error analysis |
| In a DISCONNECT command in Native SQL the connection "DEFAULT" was |
| specified. This connection cannot be broken with DISCONNECT. |
There are no note or other informations about this issue. Any ideas?
Thanks
PatrickHi Patrick Gutheil,
Could you please check and let me know if NOTE 1640741 has any relevance to the issue that you are facing!
BR
Prabhith -
Internal table size - short dump
Hi all,
I am getting following error:
'Following a SELECT statement, the data read could not be placed in AN
the output area.
A conversion may have been intended that is not supported by the
system, or the output area may be too small.'
Actually I am extracting data into an internal table. I have implemented my own logic to fetch data in packets. And after each packet, I am freeing the internal table using FREE command. After fetching 16 data packets, it gives me this error.
Please help me with this.
Thanks and regards,
RidhimaIt gives short dump in selecting data from ETXDCJ
*-- Local Data
DATA: t_etxdch TYPE STANDARD TABLE OF tp_etxdch,
t_etxdci TYPE STANDARD TABLE OF tp_etxdci,
t_etxdcj TYPE STANDARD TABLE OF tp_etxdcj,
t_docnr TYPE STANDARD TABLE OF tp_docnr,
wa_etxdch TYPE tp_etxdch,
wa_etxdci TYPE tp_etxdci,
wa_etxdcj TYPE tp_etxdcj,
wa_docnr TYPE tp_docnr,
wa_data TYPE zoxdev0388,
l_lines TYPE sy-tabix,
l_line1 TYPE sy-tabix,
l_times TYPE sy-index,
l_div TYPE sy-index,
l_cnt1 TYPE sy-tabix,
l_cnt2 TYPE sy-tabix.
*-- Clean Up
CLEAR: t_etxdch[],
t_etxdci[],
t_etxdcj[],
t_docnr[].
*-- Get the document numbers selected in extraction
LOOP AT c_t_data.
CLEAR wa_docnr.
wa_docnr = c_t_data-docnr.
APPEND wa_docnr TO t_docnr.
ENDLOOP.
DATA: t_doc TYPE STANDARD TABLE OF tp_docnr,
wa_doc TYPE tp_docnr.
DESCRIBE TABLE t_docnr LINES l_lines.
CHECK l_lines IS NOT INITIAL.
WHILE l_cnt2 LE l_lines.
l_cnt1 = l_cnt2 + 1.
l_cnt2 = l_cnt1 + 200.
APPEND LINES OF t_docnr FROM l_cnt1 TO l_cnt2 TO t_doc.
SORT t_doc BY docnr.
DELETE ADJACENT DUPLICATES FROM t_doc COMPARING docnr.
*-- Get Header data
SELECT docnr
client
currency
gl_currency
FROM etxdch
INTO TABLE t_etxdch
FOR ALL ENTRIES IN t_doc
WHERE docnr = t_doc-docnr.
*-- Success
IF sy-subrc IS INITIAL.
SORT t_etxdch BY docnr.
ENDIF.
*-- Get Item data
SELECT docnr
itemnr
quantity
unit
amount
gross_amount
freight_am
exempt_amt
taxpcov
taxamov
gl_taxpcov
gl_taxamov
FROM etxdci
INTO TABLE t_etxdci
FOR ALL ENTRIES IN t_doc
WHERE docnr = t_doc-docnr.
*-- Success
IF sy-subrc IS INITIAL.
SORT t_etxdci BY docnr
itemnr.
ENDIF.
*-- Get Jurisdiction data
SELECT docnr
itemnr
txjlv
taxpct
taxamt
taxbas
examt
gl_taxpct
gl_taxamt
gl_taxbas
FROM etxdcj
INTO TABLE t_etxdcj
FOR ALL ENTRIES IN t_doc
WHERE docnr = t_doc-docnr.
*-- Success
IF sy-subrc IS INITIAL.
SORT t_etxdcj BY docnr
itemnr
txjlv.
ENDIF.
*-- Populate the enhanced fields
CLEAR wa_data.
LOOP AT c_t_data INTO wa_data FROM l_cnt1 TO l_cnt2.
*-- Populate Header fields
CLEAR wa_etxdch.
READ TABLE t_etxdch INTO wa_etxdch WITH KEY docnr = wa_data-docnr
BINARY SEARCH.
IF sy-subrc IS INITIAL.
wa_data-yyclient = wa_etxdch-client.
wa_data-yycurrency = wa_etxdch-currency.
wa_data-yygl_currency = wa_etxdch-gl_currency.
ENDIF.
*-- Populate Item fields
CLEAR wa_etxdci.
READ TABLE t_etxdci INTO wa_etxdci WITH KEY docnr = wa_data-docnr
itemnr = wa_data-itemnr
BINARY SEARCH.
IF sy-subrc IS INITIAL.
wa_data-yyquantity = wa_etxdci-quantity.
wa_data-yyunit = wa_etxdci-unit.
wa_data-yyamount = wa_etxdci-amount.
wa_data-yygross_amount = wa_etxdci-gross_amount.
wa_data-yyfreight_am = wa_etxdci-freight_am.
wa_data-yyexempt_amt = wa_etxdci-exempt_amt.
wa_data-yytaxpcov = wa_etxdci-taxpcov.
wa_data-yytaxamov = wa_etxdci-taxamov.
wa_data-yygl_taxpcov = wa_etxdci-gl_taxpcov.
wa_data-yygl_taxamov = wa_etxdci-gl_taxamov.
ENDIF.
*-- Populate Jurisdiction fields
CLEAR wa_etxdcj.
READ TABLE t_etxdcj INTO wa_etxdcj WITH KEY docnr = wa_data-docnr
itemnr = wa_data-itemnr
txjlv = wa_data-txjlv
BINARY SEARCH.
IF sy-subrc IS INITIAL.
wa_data-yytaxpct = wa_etxdcj-taxpct.
wa_data-yytaxamt = wa_etxdcj-taxamt.
wa_data-yytaxbas = wa_etxdcj-taxbas.
wa_data-yyexamt = wa_etxdcj-examt.
wa_data-yygl_taxpct = wa_etxdcj-gl_taxpct.
wa_data-yygl_taxamt = wa_etxdcj-gl_taxamt.
wa_data-yygl_taxbas = wa_etxdcj-gl_taxbas.
ENDIF.
*-- Update values in Extract structure
MODIFY c_t_data FROM wa_data.
CLEAR wa_data.
ENDLOOP.
CLEAR: t_doc[].
FREE : t_etxdch,
t_etxdci,
t_etxdcj.
ENDWHILE.
Maybe you are looking for
-
Multiple Queries on Same/Different Table?
Hello all, I have started to learn how to integrate java with databases using JDBC. However I have a question that would make my life much easier. From what I've learned everytime I want to do a query, I have to create a new statement and new result
-
Hi, I am not getting rows from vo execution query. However I am getting rowcount through VO.getRowCount() . I want to fetch rows through VO. Thanks and Regards, Sandip
-
Authorization Of Purchase Documents
Hi Gurus, In workflow of Purchase document authorization, one system generated mail is automatically sent to the official mail box of the persons who are releasing the documents. My question is, can we make in SAP that not only mails are going to tho
-
I want to insert image/bFile into blob data. I need the insert statement on that data. Thanx.. Ratan
-
Coexistence of CF7 and CF8 on one server
I have CFMX 7.2 running on a server using the external web server, IIS6. I have installed CF8 in the multiserver configuration onto the same server. What I read is that for these to coexist the CF8 needs to be installed on the built-in web server (al