SAP Reports / Programs | Production Planning and Control | Production Planning for Process Industries | Production Campaign(PP-PI-PCM) SAP PP

RCAMPF01 SAP ABAP INCLUDE - Include LCPC3F01







RCAMPF01 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 RCAMPF01 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 RCAMPF01. "Basic submit
SUBMIT RCAMPF01 AND RETURN. "Return to original report after report execution complete
SUBMIT RCAMPF01 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 RCAMPF01

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:

POPUP_GET_VALUES CALL FUNCTION 'POPUP_GET_VALUES' EXPORTING popup_title = popup_title IMPORTING returncode = returncode TABLES fields = fields.

CX_SCHED_VIA_OPERATING_TIME CALL FUNCTION 'CX_SCHED_VIA_OPERATING_TIME' EXPORTING i_date_start = datum_start_loc i_time_start = time_start_loc i_duration = duration_loc i_unit = uom_d i_fcalid = pcm_pcmpb_tab-fabkl IMPORTING e_date_end = datum_start_loc e_time_end = time_start_loc e_time_start = time_start_2_loc EXCEPTIONS parameters_not_valid = 1 OTHERS = 2.

POPUP_GET_VALUES CALL FUNCTION 'POPUP_GET_VALUES' EXPORTING popup_title = popup_title IMPORTING returncode = returncode TABLES fields = fields.

CX_SCHED_VIA_OPERATING_TIME CALL FUNCTION 'CX_SCHED_VIA_OPERATING_TIME' EXPORTING i_date_end = datum_end_loc i_time_end = time_end_loc i_duration = duration_loc i_unit = uom_d i_fcalid = pcm_pcmpb_tab-fabkl IMPORTING e_date_start = datum_end_loc e_time_start = time_end_loc * e_time_start = time_start_2_loc EXCEPTIONS parameters_not_valid = 1 OTHERS = 2.

DEQUEUE_EMPLAFE CALL FUNCTION 'DEQUEUE_EMPLAFE' EXPORTING plnum = pcm_pcmpb_tab-plnum.

CO_BI_AFPO_READ_WITH_KEY CALL FUNCTION 'CO_BI_AFPO_READ_WITH_KEY' EXPORTING aufnr_act = pcm_pcmpb_tab-aufnr IMPORTING afpod_exp = ls_afpod EXCEPTIONS not_found = 1 OTHERS = 2.

DEQUEUE_EMPLAFE CALL FUNCTION 'DEQUEUE_EMPLAFE' EXPORTING plnum = ls_afpod-plnum.

DEQUEUE_ESORDER CALL FUNCTION 'DEQUEUE_ESORDER' EXPORTING aufnr = pcm_pcmpb_tab-aufnr.

PCAMPAIGN_POSITIONS_ADD CALL FUNCTION 'PCAMPAIGN_POSITIONS_ADD' EXPORTING order_from_db_incl = con_yes menge_d = menge_d takt_d = takt_d eheit_d = eheit_d uom_d = uom_d TABLES pcm_pcmhb_tab_t = pcm_pcmhb_tab pcm_pcmpb_tab_t = pcm_pcmpb_tab pcm_pcmo1b_tab_t = pcm_pcmo1b_tab CHANGING pcstd_pos = pcm_pcmhb_tab-pcstd pcend_pos = pcm_pcmhb_tab-pcend EXCEPTIONS order_from_db_not_found = 1 positions_add_not_posible = 2 service_order_add_not_posible = 3 answer_no = 4 OTHERS = 5.

PCAMPAIGN_POSITIONS_ADD CALL FUNCTION 'PCAMPAIGN_POSITIONS_ADD' EXPORTING positions_add = con_yes menge_d = losgr_d takt_d = takt_d eheit_d = eheit_d uom_d = uom_d pcmpb_current = pcm_pcmpb_tab TABLES pcm_pcmhb_tab_t = pcm_pcmhb_tab pcm_pcmpb_tab_t = pcm_pcmpb_tab pcm_pcmo1b_tab_t = pcm_pcmo1b_tab CHANGING pcstd_pos = pcstd_loc pcend_pos = pcm_pcmhb_tab-pcend EXCEPTIONS order_from_db_not_found = 1 positions_add_not_posible = 2 service_order_add_not_posible = 3 answer_no = 4 planned_order_outside_opr_time = 5 OTHERS = 6.

PCAMPAIGN_POSITIONS_ADD CALL FUNCTION 'PCAMPAIGN_POSITIONS_ADD' EXPORTING service_order_add = con_yes menge_d = menge_d takt_d = takt_d eheit_d = eheit_d uom_d = uom_d pcmpb_current = pcm_pcmpb_tab TABLES pcm_pcmhb_tab_t = pcm_pcmhb_tab pcm_pcmpb_tab_t = pcm_pcmpb_tab pcm_pcmo1b_tab_t = pcm_pcmo1b_tab CHANGING pcstd_pos = pcstd_loc pcend_pos = pcend_loc EXCEPTIONS order_from_db_not_found = 1 positions_add_not_posible = 2 service_order_add_not_posible = 3 answer_no = 4 rezept_empty = 5 missing_unit_quantity = 6 missing_auart = 7 OTHERS = 8.

MATERIAL_UNIT_CONVERSION CALL FUNCTION 'MATERIAL_UNIT_CONVERSION' EXPORTING input = value_in kzmeinh = kzmeinh_loc matnr = pcm_pcmpb_tab-matnr meinh = eheit_loc meins = mt61d_tmp-meins werks = pcm_pcmpb_tab-werks IMPORTING output = value_out EXCEPTIONS conversion_not_found = 1 input_invalid = 2 material_not_found = 3 meinh_not_found = 4 meins_missing = 5 no_meinh = 6 output_invalid = 7 overflow = 8 OTHERS = 9.

STATUS_CHANGE_FOR_ACTIVITY CALL FUNCTION 'STATUS_CHANGE_FOR_ACTIVITY' EXPORTING check_only = 'X' objnr = lv_objnr vrgng = veraendern EXCEPTIONS activity_not_allowed = 1 object_not_found = 2 status_inconsistent = 3 status_not_allowed = 4 wrong_input = 5 warning_occured = 6 OTHERS = 7.



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 RCAMPF01 or its description.