RCAMPAIN is a standard Executable ABAP Report 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 RCAMPAIN into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
PCA1 - Creating a Production Campaign
PCA2 - Change Prod. Camp.: Initial Screen
PCA3 - Display Prod. Camp.: Initial Screen
PCCO - Production Campaign: Costs
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.
Selection Text: BED = Requirements
Selection Text: DATF_S = Start Date
Selection Text: EHEIT_S = Unit
Selection Text: GPROGR_S = Business Process Group
Selection Text: GPRONR_S = Business Process
Selection Text: KAMPNR_S = Production Campaign
Selection Text: KAMTXT_S = Production Campaign Text
Selection Text: LOSGR_S = Fixed Lot Size
Selection Text: MAT = Material
Selection Text: MATNR_S = Material
Selection Text: MENGE_S = Production Campaign Quantity
Selection Text: NNAME_S = Resource Network
Selection Text: PLANNR_S = Task List Type
Selection Text: PLNAL_S = Task List Group
Selection Text: PLTY_S = Task List Number
Selection Text: RES = Recipe
Selection Text: REZ = Resource Network
Selection Text: TAKT_S = Takt
Selection Text: VERID_S = Production Version
Selection Text: WERKS_S = Plant
Text Symbol: UMS = Convert Planned Order &1 (&2 of &3)
Text Symbol: 520 = Confirmation Log
Text Symbol: 500 = Orders with Goods Movements to Be Postprocessed
Text Symbol: 420 = Change Busn. Process Group
Text Symbol: 410 = Delete Campaign
Text Symbol: 405 = Order Type for Converting Planned Orders
Text Symbol: 400 = Determine Order Type
Text Symbol: 001 = Production Campaign Description
Text Symbol: 002 = Production Campaign Number
Text Symbol: 003 = Planned Order
Text Symbol: 004 = Manufacturing Order
Text Symbol: 005 = Save Production Campaign
Text Symbol: 006 = Continue with Saving
Text Symbol: 010 = General Production Campaign Data
Text Symbol: 014 = Takt
Text Symbol: 015 = Qty
Text Symbol: 016 = Fxd Lot Size
Text Symbol: 017 = Bus. Process
INCLUDE RCAMPTOP.
No SAP DATABASE tables are accessed within this REPORT code!
NUMBER_CHECK CALL FUNCTION 'NUMBER_CHECK' EXPORTING nr_range_nr = '3 ' number = kampnr_s object = 'PCAMPAIGN' * SUBOBJECT = ' ' * TOYEAR = '0000' * NUMERIC_CHECK = ' ' IMPORTING returncode = r_code EXCEPTIONS interval_not_found = 1 number_range_not_extern = 2 object_not_found = 3 OTHERS = 4.
ENQUEUE_EPPCMH CALL FUNCTION 'ENQUEUE_EPPCMH' EXPORTING * MODE_PCMH = 'E' * MANDT = SY-MANDT pcmnr = kampnr_s * X_PCMNR = ' ' * _SCOPE = '2' * _WAIT = ' ' * _COLLECT = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.
MATERIAL_READ CALL FUNCTION 'MATERIAL_READ' EXPORTING schluessel = mtcom_tmp IMPORTING matdaten = mt61d_tmp.
NUMBER_RANGE_INTERVAL_LIST CALL FUNCTION 'NUMBER_RANGE_INTERVAL_LIST' EXPORTING object = 'PCAMPAIGN' TABLES interval = number EXCEPTIONS nr_range_nr1_not_found = 1 nr_range_nr1_not_intern = 2 nr_range_nr2_must_be_space = 3 nr_range_nr2_not_extern = 4 nr_range_nr2_not_found = 5 object_not_found = 6 subobject_must_be_space = 7 subobject_not_found = 8 OTHERS = 9.
NUMBER_CHECK CALL FUNCTION 'NUMBER_CHECK' EXPORTING nr_range_nr = nr_extern number = kampnr_d object = 'PCAMPAIGN' * SUBOBJECT = ' ' * TOYEAR = '0000' * NUMERIC_CHECK = ' ' IMPORTING returncode = r_code EXCEPTIONS interval_not_found = 1 number_range_not_extern = 2 object_not_found = 3 OTHERS = 4.
ENQUEUE_EPPCMH CALL FUNCTION 'ENQUEUE_EPPCMH' EXPORTING * mode_pcmh = 'E' * mandt = sy-mandt pcmnr = kampnr_d * x_pcmnr = ' ' * _scope = '2' * _wait = ' ' * _collect = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.
K_GROUP_SELECT CALL FUNCTION 'K_GROUP_SELECT' EXPORTING class = '0107' field_name = 'PRZNR' set = '*' table = 'CCSS' IMPORTING set_name = gprogr_d EXCEPTIONS no_set_picked = 1 OTHERS = 2.
UNIT_OF_MEASUREMENT_HELP CALL FUNCTION 'UNIT_OF_MEASUREMENT_HELP' EXPORTING dimid = 'TIME' language = sy-langu IMPORTING select_unit = uom_d.
ND_EXITS_ACTIVE_CHECK CALL FUNCTION 'ND_EXITS_ACTIVE_CHECK' EXCEPTIONS exits_not_active = 1 OTHERS = 2.
MARC_EXIST_MATNR CALL FUNCTION 'MARC_EXIST_MATNR' EXPORTING matnr = matnr_a EXCEPTIONS wrong_call = 1 not_found = 2 OTHERS = 3.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.