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

RCAMPUSR SAP ABAP INCLUDE - Include LCPC3F01







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

INCLUDE RCAMPSHW.


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:

PCAMPAIGN_GET CALL FUNCTION 'PCAMPAIGN_GET' EXPORTING pcmnr = kampnr_d * PCM_HEADER_ONLY = * PCM_ORIGIN_ONLY = * PCM_POSITIONS_ONLY = TABLES pcm_t = kampagne_tab EXCEPTIONS pcmnr_not_valid = 1 pcm_not_found = 2 OTHERS = 3.

T006_SINGLE_READ CALL FUNCTION 'T006_SINGLE_READ' EXPORTING t006_msehi = uom_d IMPORTING wt006 = wt006_tmp.

MATERIAL_UNIT_CONVERSION CALL FUNCTION 'MATERIAL_UNIT_CONVERSION' EXPORTING input = value_in matnr = pcm_pcmpb_tab-matnr meinh = eheit_d 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.

PCAMPAIGN_ORDER_GET CALL FUNCTION 'PCAMPAIGN_ORDER_GET' EXPORTING pcmnr = kampnr_d TABLES pcm_pcmpb_tab_t = pcm_pcmpb_tab kampagne_tab = tmp_kampagne_tab EXCEPTIONS pcmnr_not_found = 1 OTHERS = 2.

ENQUEUE_EPPCMH CALL FUNCTION 'ENQUEUE_EPPCMH' EXPORTING mode_pcmh = 'E' mandt = sy-mandt pcmnr = kampnr_d EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

MD_PLANNED_ORDER_FETCH CALL FUNCTION 'MD_PLANNED_ORDER_FETCH' EXPORTING eplnum = pcm_pcmpb_tab-plnum IMPORTING iplaf = plaf_tmp.

MD_PLANNED_ORDER_SHOW CALL FUNCTION 'MD_PLANNED_ORDER_SHOW' EXPORTING ecm61o = cm61o_tmp eplaf = plaf_tmp.

MD_PLANNED_ORDER_CHANGE CALL FUNCTION 'MD_PLANNED_ORDER_CHANGE' EXPORTING ecm61o = cm61o_tmp eplaf = plaf_tmp IMPORTING iplaf = plaf_tmp EXCEPTIONS locked = 1 locking_error = 2 OTHERS = 3.

GET_PLAF_WITH_PLNUM CALL FUNCTION 'GET_PLAF_WITH_PLNUM' EXPORTING plnum = plaf_tmp-plnum EXCEPTIONS no_plnum_specified = 1 object_not_found = 2 plaf_logically_deleted = 3 OTHERS = 4.

CO_KO_SET_PLANT CALL FUNCTION 'CO_KO_SET_PLANT' EXPORTING i_werks = pcm_pcmpb_tab-werks EXCEPTIONS no_entry_found = 1 OTHERS = 2.

CO_KO_ORDER_ENTRY_EXT CALL FUNCTION 'CO_KO_ORDER_ENTRY_EXT' EXPORTING ordpar_imp = ordpar_tmp IMPORTING ordpar_exp = ordpar_tmp EXCEPTIONS authority_check_failed = 1 dialog_chanceled = 2 enqueue_failed = 3 new_data_error = 4 not_found = 5 wrong_auart = 6 wrong_autyp = 7 wrong_trtyp = 8 OTHERS = 9.

CO_BT_CAUFV_READ_WITH_KEY CALL FUNCTION 'CO_BT_CAUFV_READ_WITH_KEY' EXPORTING aufnr_act = ordpar_tmp-aufnr IMPORTING caufvd_exp = caufvd_tmp.

STATUS_CHECK CALL FUNCTION 'STATUS_CHECK' EXPORTING OBJNR = caufvd_tmp-objnr STATUS = 'I0002' EXCEPTIONS OBJECT_NOT_FOUND = 1 STATUS_NOT_ACTIVE = 2 OTHERS = 3.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-100 text_question = text-110 text_button_1 = text-120 text_button_2 = text-130 IMPORTING answer = p_answer EXCEPTIONS text_not_found = 1 OTHERS = 2.

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

MD_PLANNED_ORDER_FETCH CALL FUNCTION 'MD_PLANNED_ORDER_FETCH' EXPORTING eplnum = pcm_pcmpb_tab-plnum IMPORTING iplaf = plaf_tmp EXCEPTIONS no_plnum_specified = 1 object_not_found = 2 plaf_logically_deleted = 3 OTHERS = 4.

CK_F_PCM_SET_BP CALL FUNCTION 'CK_F_PCM_SET_BP' EXPORTING i_bpno = bpno_loc.

CO_TA_T003O_READ CALL FUNCTION 'CO_TA_T003O_READ' EXPORTING t003o_auart = aufart_loc IMPORTING t003owa = t003o_tmp EXCEPTIONS not_found = 01.

NUMBER_GET_INFO





CALL FUNCTION 'NUMBER_GET_INFO' EXPORTING nr_range_nr = t003o_tmp-numkr object = number_r_obj IMPORTING interval = nriv_tmp EXCEPTIONS interval_not_found = 1 object_not_found = 2 OTHERS = 3.

CO_IT_SET_FLG_ITAB_NEW * CALL FUNCTION 'CO_IT_SET_FLG_ITAB_NEW'.

CO_EXT_ORDER_ENTRY CALL FUNCTION 'CO_EXT_ORDER_ENTRY' EXPORTING ordpar_imp = ls_ordpar_out IMPORTING ordpar_exp = ls_ordpar_return EXCEPTIONS OTHERS = 1.

CK_F_PCM_SET_BP CALL FUNCTION 'CK_F_PCM_SET_BP' EXPORTING i_clear = 'X'.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-410 text_question = text-140 text_button_1 = text-120 text_button_2 = text-130 IMPORTING answer = answer EXCEPTIONS text_not_found = 1 OTHERS = 2.

STATUS_PRE_READ CALL FUNCTION 'STATUS_PRE_READ' TABLES jsto_pre_tab = objnr_tmp.

STATUS_CHANGE_INTERN_MULTI CALL FUNCTION 'STATUS_CHANGE_INTERN_MULTI' TABLES status = status_tmp OBJECTS = objnr_tmp EXCEPTIONS object_not_found = 1 status_inconsistent = 2 status_not_allowed = 3 OTHERS = 4.

PCAMPAIGN_DB_UPDATE CALL FUNCTION 'PCAMPAIGN_DB_UPDATE' TABLES pcm_pcmhb_tab_t = pcm_pcmhb_tab pcm_pcmo1b_tab_t = pcm_pcmo1b_tab pcm_pcmo2b_tab_t = pcm_pcmo2b_tab pcm_pcmo3b_tab_t = pcm_pcmo3b_tab pcm_pcmo4b_tab_t = pcm_pcmo4b_tab pcm_pcmpb_tab_t = pcm_pcmpb_tab.

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



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