SAP Reports / Programs | Pegging, Grouping, and Distribution | Aerospace & Defence Industry Solution | Pegging, Grouping, and Distribution(IS-AD-GPD) SAP IS

RPEGMASSF01 SAP ABAP INCLUDE - documentation and ABAP source code







RPEGMASSF01 is a standard ABAP INCLUDE available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter RPEGMASSF01 into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT RPEGMASSF01. "Basic submit
SUBMIT RPEGMASSF01 AND RETURN. "Return to original report after report execution complete
SUBMIT RPEGMASSF01 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


INCLUDES used within this REPORT RPEGMASSF01

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

PEG02_READ_PLANT_CUSTOMIZING CALL FUNCTION 'PEG02_READ_PLANT_CUSTOMIZING' EXPORTING i_werks = p_werks IMPORTING e_peg_tctrl = gs_peg_tctrl.

DATE_CONVERT_TO_FACTORYDATE CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE' EXPORTING date = p_mdps-dat01 factory_calendar_id = p_fabkl correct_option = '+' IMPORTING factorydate = p_mdcal-fkday date = p_mdcal-gkday workingday_indicator = p_mdcal-worki EXCEPTIONS OTHERS = 1.

FACTORYDATE_CONVERT_TO_DATE CALL FUNCTION 'FACTORYDATE_CONVERT_TO_DATE' EXPORTING factorydate = p_af61x-fkday factory_calendar_id = p_fabkl IMPORTING date = p_mdcal-gkday EXCEPTIONS OTHERS = 1.

PEG02_READ_PLANT_CUSTOMIZING CALL FUNCTION 'PEG02_READ_PLANT_CUSTOMIZING' EXPORTING i_werks = ls_mt61d-werks i_grpnr = ls_group_data-grpnr IMPORTING e_peg_tctrl = gs_peg_tctrl.

PEG02_CONVERT_EXT_INT_ID CALL FUNCTION 'PEG02_CONVERT_EXT_INT_ID' EXPORTING i_delkz = ls_replen-delkz i_del12 = ls_replen-del12 i_delnr = ls_replen-delnr i_delps = ls_replen-delps i_delet = ls_replen-delet IMPORTING e_objnr = ls_replen-repobj.

PEG02_ADJUST_FRACT_QTY CALL FUNCTION 'PEG02_ADJUST_FRACT_QTY' EXPORTING i_type = 'R' i_instk = '3' i_sort = 'X' TABLES t_real_ass = pt_real_peg_ass.

PEG02_ADJUST_FRACT_QTY CALL FUNCTION 'PEG02_ADJUST_FRACT_QTY' EXPORTING i_type = 'R' i_instk = '1' TABLES t_real_ass = pt_real_peg_ass.

PEG02_ADJUST_FRACT_QTY CALL FUNCTION 'PEG02_ADJUST_FRACT_QTY' EXPORTING i_type = 'R' i_instk = ' ' TABLES t_real_ass = pt_real_peg_ass.

PEG02_CONVERT_INT_EXT_ID CALL FUNCTION 'PEG02_CONVERT_INT_EXT_ID' EXPORTING i_objnr = ls_tactass-s_repobj IMPORTING e_delkz = ls_replen-delkz e_del12 = ls_replen-del12 e_delnr = ls_replen-delnr e_delps = ls_replen-delps e_delet = ls_replen-delet.

PEG02_CONVERT_INT_EXT_ID CALL FUNCTION 'PEG02_CONVERT_INT_EXT_ID' EXPORTING i_objnr = ls_tactass-s_repobj IMPORTING e_delkz = ls_replen-delkz e_del12 = ls_replen-del12 e_delnr = ls_replen-delnr e_delps = ls_replen-delps e_delet = ls_replen-delet.

PEG02_CONVERT_INT_EXT_ID CALL FUNCTION 'PEG02_CONVERT_INT_EXT_ID' EXPORTING i_objnr = ls_peg_tstk-repobj IMPORTING e_delkz = ls_replen-delkz e_del12 = ls_replen-del12 e_delnr = ls_replen-delnr e_delps = ls_replen-delps e_delet = ls_replen-delet.

CO_TA_T006_READ CALL FUNCTION 'CO_TA_T006_READ' EXPORTING msehi = st_meins spras = sy-langu IMPORTING t006wa = l_t006.

CO_ZF_QUANTITY_ROUNDING CALL FUNCTION 'CO_ZF_QUANTITY_ROUNDING' EXPORTING quantity = l_qty_h t006wa = l_t006 IMPORTING quantity = ps_peg_ass-asqty.

RKE_TIMESTAMP_CONVERT_INPUT CALL FUNCTION 'RKE_TIMESTAMP_CONVERT_INPUT' EXPORTING i_date = sy-datlo i_dayst = sy-dayst i_time = sy-uzeit i_tzone = sy-tzone IMPORTING e_timestmp = st_timestamp.

PEG02_READ_PLANT_CUSTOMIZING CALL FUNCTION 'PEG02_READ_PLANT_CUSTOMIZING' EXPORTING i_werks = p_werks i_grpnr = ls_group_data-grpnr IMPORTING e_peg_tctrl = ls_peg_tctrl.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name RPEGMASSF01 or its description.