Beruflich Dokumente
Kultur Dokumente
begin of struct_t_copa_agg,
comp_code type /bi0/oicomp_code ,
material type /bi0/oimaterial ,
end of struct_t_copa_agg.
types:
begin of struct_t_copa,
comp_code type /bi0/oicomp_code ,
material type /bi0/oimaterial ,
customer type /bi0/oicustomer,
country type /b43/oicountry ,
pcompany type /bi0/oipcompany ,
g_cwwmr type /bi0/oig_cwwmr ,
fiscvarnt type /bi0/oifiscvarnt ,
fiscper type /bi0/oifiscper ,
g_avv520 type /bi0/oig_avv520 ,
/BIC/ZG_AVVACO type /BIC/OIZG_AVVACO,
g_avv510 type /bi0/oig_avv510 ,
g_avv3sf type /bi0/oig_avv3sf ,
g_avv3fp type /bi0/oig_avv3fp ,
g_avvaci type /bi0/oig_avvaci ,
g_avvavp type /bi0/oig_avvavp ,
g_avvdpr type /bi0/oig_avvdpr ,
g_avvene type /bi0/oig_avvene ,
g_avven1 type /bi0/oig_avven1 ,
g_avvexc type /bi0/oig_avvexc ,
g_avvifp type /bi0/oig_avvifp ,
g_avvisf type /bi0/oig_avvisf ,
g_avvinm type /bi0/oig_avvinm ,
g_avvlab type /bi0/oig_avvlab ,
g_avvmnt type /bi0/oig_avvmnt ,
g_avvna type /bi0/oig_avvna ,
g_avvpac type /bi0/oig_avvpac ,
g_avvpro type /bi0/oig_avvpro ,
g_avvqco type /bi0/oig_avvqco ,
g_avvsbc type /bi0/oig_avvsbc ,
g_avv006 type /bi0/oig_avv006 ,
g_avv110 type /bi0/oig_avv110 ,
g_avv632 type /bi0/oig_avv632 ,
g_avv040 type /bi0/oig_avv040 ,
g_avv041 type /bi0/oig_avv041 ,
g_avv042 type /bi0/oig_avv042 ,
g_avv043 type /bi0/oig_avv043 ,
vol_rebate type /bi0/oivol_rebate ,
g_avvot type /bi0/oig_avvot ,
g_avvsko type /bi0/oig_avvsko ,
g_avv004 type /bi0/oig_avv004 ,
g_avv012 type /bi0/oig_avv012 ,
g_avv613 type /bi0/oig_avv613 ,
g_avv031 type /bi0/oig_avv031 ,
g_avv230 type /bi0/oig_avv230 ,
g_avvdpf type /bi0/oig_avvdpf ,
g_avvdpv type /bi0/oig_avvdpv ,
g_avvdo type /bi0/oig_avvdo ,
g_avv22f type /bi0/oig_avv22f ,
g_avv220 type /bi0/oig_avv220 ,
g_avvenf type /bi0/oig_avvenf ,
g_avvenv type /bi0/oig_avvenv ,
g_avv120 type /bi0/oig_avv120 ,
g_avv005 type /bi0/oig_avv005 ,
g_avv064 type /bi0/oig_avv064 ,
g_avvdbo type /bi0/oig_avvdbo ,
g_avvdcd type /bi0/oig_avvdcd ,
g_avvdre type /bi0/oig_avvdre ,
g_avvfgd type /bi0/oig_avvfgd ,
g_avvfgf type /bi0/oig_avvfgf ,
g_avvfgp type /bi0/oig_avvfgp ,
g_avvfc type /bi0/oig_avvfc ,
g_avvfl type /bi0/oig_avvfl ,
g_avv062 type /bi0/oig_avv062 ,
g_avv061 type /bi0/oig_avv061 ,
g_avvfr type /bi0/oig_avvfr ,
g_avv001 type /bi0/oig_avv001 ,
g_avv420 type /bi0/oig_avv420 ,
g_avv410 type /bi0/oig_avv410 ,
g_avv011 type /bi0/oig_avv011 ,
g_avv010 type /bi0/oig_avv010 ,
g_avv611 type /bi0/oig_avv611 ,
g_avv240 type /bi0/oig_avv240 ,
g_avvint type /bi0/oig_avvint ,
g_avv910 type /bi0/oig_avv910 ,
g_avvsrk type /bi0/oig_avvsrk ,
g_avvlbf type /bi0/oig_avvlbf ,
g_avvlbv type /bi0/oig_avvlbv ,
g_avv612 type /bi0/oig_avv612 ,
g_avv210 type /bi0/oig_avv210 ,
g_avv032 type /bi0/oig_avv032 ,
g_avv633 type /bi0/oig_avv633 ,
g_avv630 type /bi0/oig_avv630 ,
g_avv250 type /bi0/oig_avv250 ,
g_avvmg type /bi0/oig_avvmg ,
g_avvmk type /bi0/oig_avvmk ,
g_avv020 type /bi0/oig_avv020 ,
g_avv021 type /bi0/oig_avv021 ,
g_avv999 type /bi0/oig_avv999 ,
g_arabat type /bi0/oig_arabat ,
g_avv050 type /bi0/oig_avv050 ,
g_avv051 type /bi0/oig_avv051 ,
g_avv008 type /bi0/oig_avv008 ,
g_aausfr type /bi0/oig_aausfr ,
g_avvohs type /bi0/oig_avvohs ,
g_avv130 type /bi0/oig_avv130 ,
g_avvpcd type /bi0/oig_avvpcd ,
g_avvpcf type /bi0/oig_avvpcf ,
g_avvpcp type /bi0/oig_avvpcp ,
g_avv065 type /bi0/oig_avv065 ,
g_avv060 type /bi0/oig_avv060 ,
g_avv610 type /bi0/oig_avv610 ,
g_avvpm type /bi0/oig_avvpm ,
g_avv620 type /bi0/oig_avv620 ,
g_avv260 type /bi0/oig_avv260 ,
g_avvohp type /bi0/oig_avvohp ,
g_avvpr type /bi0/oig_avvpr ,
g_avv270 type /bi0/oig_avv270 ,
g_avvqc type /bi0/oig_avvqc ,
g_avv007 type /bi0/oig_avv007 ,
g_avv030 type /bi0/oig_avv030 ,
g_avvrmd type /bi0/oig_avvrmd ,
g_avvrmf type /bi0/oig_avvrmf ,
g_avvrmp type /bi0/oig_avvrmp ,
g_avvrma type /bi0/oig_avvrma ,
g_avvrd type /bi0/oig_avvrd ,
g_avv009 type /bi0/oig_avv009 ,
g_aerlos type /bi0/oig_aerlos ,
g_avvima type /bi0/oig_avvima ,
g_avvrnd type /bi0/oig_avvrnd ,
g_avv852 type /bi0/oig_avv852 ,
g_avv851 type /bi0/oig_avv851 ,
g_avv811 type /bi0/oig_avv811 ,
g_avv823 type /bi0/oig_avv823 ,
g_avv822 type /bi0/oig_avv822 ,
g_avv82f type /bi0/oig_avv82f ,
g_avv812 type /bi0/oig_avv812 ,
g_avv842 type /bi0/oig_avv842 ,
g_avv841 type /bi0/oig_avv841 ,
g_avv824 type /bi0/oig_avv824 ,
g_avv821 type /bi0/oig_avv821 ,
g_avv825 type /bi0/oig_avv825 ,
g_avv99s type /bi0/oig_avv99s ,
g_avv813 type /bi0/oig_avv813 ,
g_avv826 type /bi0/oig_avv826 ,
g_avv827 type /bi0/oig_avv827 ,
g_avv832 type /bi0/oig_avv832 ,
g_avvsl type /bi0/oig_avvsl ,
g_avv100 type /bi0/oig_avv100 ,
g_avv022 type /bi0/oig_avv022 ,
g_avv023 type /bi0/oig_avv023 ,
g_avv631 type /bi0/oig_avv631 ,
g_avv003 type /bi0/oig_avv003 ,
g_avrprs type /bi0/oig_avrprs ,
g_avv320 type /bi0/oig_avv320 ,
g_avvsub type /bi0/oig_avvsub ,
g_avv063 type /bi0/oig_avv063 ,
g_avv002 type /bi0/oig_avv002 ,
g_qabsmg type /bi0/oig_qabsmg ,
g_uabsmg type /bi0/oig_uabsmg,
end of struct_t_copa.
types:
begin of struct_t_cust,
customer type /bi0/oicustomer ,
/b43/s_country type /b43/oicountry ,
end of struct_t_cust.
types:
begin of struct_t_cust_kosovo,
customer type /bi0/oicustomer ,
end of struct_t_cust_kosovo.
field-symbols:
<fs_copa> type struct_t_copa,
<fs_copa_agg> type struct_t_copa_agg,
<fs_cust> type /bi0/pcustomer.
<fs_cust>-/b43/s_country = 'CS'.
endif.
endloop.
if <fs_copa>-g_cwwmr = 'RS'.
<fs_copa>-g_cwwmr = 'CS'.
endif.
clear ls_cust.
read table lt_cust into ls_cust with key customer =
<fs_copa>-customer .
if <fs_copa>-country is initial.
if <fs_copa>-g_cwwmr is initial.
<fs_copa>-g_cwwmr = ls_cust-/b43/s_country.
endif.
else.
<fs_copa>-g_cwwmr = <fs_copa>-country .
endif.
if <fs_copa>-pcompany is initial.
<fs_copa>-pcompany = ls_cust-pcompany.
endif.
<fs_copa>-fiscper = lv_fiscper_to.
<fs_copa>-fiscvarnt = 'K4'.
endloop.
<result_fields>-fiscper = lv_fiscper_to.
<result_fields>-fiscvarnt = 'K4'.
<result_fields>-/b43/s_rev_copa = ls_copa_agg-g_aerlos +
ls_copa_agg-g_avvdre
+ ls_copa_agg-g_avvint .
<result_fields>-/b43/s_dsc_copa = ls_copa_agg-g_avv001.
<result_fields>-/b43/s_dsc_ics = ls_copa_agg-g_avv010 +
ls_copa_agg-g_avv011.
<result_fields>-/b43/s_dsc_ret = ls_copa_agg-g_avv009.
<result_fields>-/b43/s_dsc_cn = ls_copa_agg-g_avv002 +
ls_copa_agg-g_avv003
+ ls_copa_agg-g_avv004
+ ls_copa_agg-g_avv005
+ ls_copa_agg-g_avv006
+ ls_copa_agg-g_avv007
+ ls_copa_agg-g_avv008
+ ls_copa_agg-g_avv012 + ls_copa_agg-vol_rebate +
ls_copa_agg-g_arabat +
ls_copa_agg-g_avvsrk +
ls_copa_agg-g_avvsko +
ls_copa_agg-g_avvrnd .
<result_fields>-/b43/s_purprice = ls_copa_agg-g_avv520 +
ls_copa_agg-g_avv510 +
ls_copa_agg-g_avv420 + ls_copa_agg-g_avv410 +
ls_copa_agg-g_avvot.
<result_fields>-/B43/S_RAW_MAT = ls_copa_agg-g_avv110 +
ls_copa_agg-g_avv120.
<result_fields>-/b43/s_pack = ls_copa_agg-g_avv130 .
ls_data-/b43/s_raw_mat = ls_copa_agg-g_avv110 +
ls_copa_agg-g_avv120 .
<result_fields>-/b43/s_depr = ls_copa_agg-g_avv230.
<result_fields>-/b43/s_labor = ls_copa_agg-g_avv210.
<result_fields>-/b43/s_poh = ls_copa_agg-g_avv220 +
ls_copa_agg-g_avv22f +
ls_copa_agg-g_avv240 + ls_copa_agg-g_avv250 +
ls_copa_agg-g_avv999 +
ls_copa_agg-g_avv270 + ls_copa_agg-g_avv260 .
<result_fields>-quantity = ls_copa_agg-g_qabsmg .
<result_fields>-unit = ls_copa_agg-g_uabsmg.
<result_fields>-/B43/S_PURPR_AVR = ls_copa_agg-g_avv3sf +
ls_copa_agg-g_avv3fp +
ls_copa_agg-g_avvifp + ls_copa_agg-g_avvisf.
<result_fields>-/B43/S_PACK_AVR = ls_copa_agg-g_avvpac.
<result_fields>-/B43/S_RMAT_AVR = ls_copa_agg-/BIC/ZG_AVVACO +
ls_copa_agg-g_avvexc.
<result_fields>-/B43/S_DEPR_AVR = ls_copa_agg-g_avvdpr .
<result_fields>-/B43/S_LABOR_AVR = ls_copa_agg-g_avvlab .
<result_fields>-/B43/S_POH_AVR = ls_copa_agg-g_avvqco +
ls_copa_agg-g_avvpro +
ls_copa_agg-g_avvna +
ls_copa_agg-g_avvmnt +
ls_copa_agg-g_avvinm +
ls_copa_agg-g_avven1 +
ls_copa_agg-g_avvene .
<result_fields>-/B43/S_SUBC = ls_copa_agg-g_avv320.
<result_fields>-/B43/S_SUBC_AVR = ls_copa_agg-g_avvsbc.
endloop.
endloop.