SAP Reports / Programs | Controlling | Product Cost Controlling | Product Cost Planning(CO-PC-PCP) SAP CO

RBDSECOP SAP ABAP Report - Send Cost Component Split via ALE







RBDSECOP is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Sending of calculations corresponding to the selection entered in the form of IDOC "COPCPA" to the given receiver system...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

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


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

CKA1 - Std Cost Est to Profitability Anal.


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 RBDSECOP. "Basic submit
SUBMIT RBDSECOP AND RETURN. "Return to original report after report execution complete
SUBMIT RBDSECOP VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: LOGSYS = Receiving Logical System
Selection Text: P_DATUM = Date Interpretation
Selection Text: P_KALKL = Only Current Std Cost Ests
Selection Text: P_KLVAR = Costing Variant
Selection Text: P_MANKZ = Additive Cost Estimates
Selection Text: P_MASKZ = Automatic Cost Estimates
Selection Text: P_MATNR = Material
Selection Text: P_STATUS = Status
Selection Text: P_TVERS = Costing Version
Selection Text: P_WERKS = Plant
Selection Text: CK_KALDT = D .
Selection Text: CK_KALID = D .
Selection Text: P_SELIST = D .
Title: Send Cost Component Split via ALE
Text Symbol: 001 = Selecting data
Text Symbol: 204 = Date
Text Symbol: 205 = Cost Est.
Text Symbol: 206 = Costing Run


INCLUDES used within this REPORT RBDSECOP

INCLUDE FCK01COM.
INCLUDE MC64SCON.


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:

F4HELP_CLASS CALL FUNCTION 'F4HELP_CLASS' EXPORTING DBTABELLE_NAME = 'MARA' IMPORTING LISTUNG_ID = P_SELIST-LOW.

F4HELP_CLASS CALL FUNCTION 'F4HELP_CLASS' EXPORTING DBTABELLE_NAME = 'MARA' IMPORTING LISTUNG_ID = P_SELIST-HIGH.

OWN_LOGICAL_SYSTEM_GET CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET' IMPORTING OWN_LOGICAL_SYSTEM = OWN_LOGSYS EXCEPTIONS OWN_LOGICAL_SYSTEM_NOT_DEFINED = 1 OTHERS = 2.

ALE_MODEL_DETERMINE_IF_TO_SEND CALL FUNCTION 'ALE_MODEL_DETERMINE_IF_TO_SEND' EXPORTING MESSAGE_TYPE = 'COPCPA' SENDING_SYSTEM = OWN_LOGSYS RECEIVING_SYSTEM = LOGSYS VALIDDATE = SY-DATUM IMPORTING IDOC_MUST_BE_SENT = COPCPA_SEND EXCEPTIONS OWN_SYSTEM_NOT_DEFINED = 1 OTHERS = 2.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING TEXT = TEXT-001. "'Daten werden gerade selektiert'

IDOC_CREATE_COPCPA CALL FUNCTION 'IDOC_CREATE_COPCPA' EXPORTING RCVPFC = ' ' RCVPRN = LOGSYS RCVPRT = RCVPRT SNDPFC = ' ' SNDPRN = ' ' SNDPRT = ' ' IMPORTING COUNT = COUNT CREATED_COMM_IDOCS = CREATED_COMM_IDOCS TABLES T_MATNR = P_MATNR T_WERKS = P_WERKS T_KLVAR = P_KLVAR T_TVERS = P_TVERS T_STATUS = P_STATUS T_KADAT = T_KADAT T_BIDAT = T_BIDAT T_KKZMA = T_KKZMA T_KALKL = T_KALKL T_KALAID = T_KALAID "INS46C note430408 T_KALADAT = T_KALADAT. "INS46C note430408

CLASSTYPE_FOR_MESSAGETYPE_GET CALL FUNCTION 'CLASSTYPE_FOR_MESSAGETYPE_GET' EXPORTING MESSAGE_TYPE = 'COPCPA' IMPORTING DISTRIBUTION_CLASS_TYPE = KLART EXCEPTIONS NO_CLASSOBJECT_FOR_THIS_MESTYP = 01 NO_CLASSTYPE_FOR_THIS_OBJECT = 02.

CLAL_KLAH_KSSK_SEL CALL FUNCTION 'CLAL_KLAH_KSSK_SEL' EXPORTING KEY_DATE = SY-DATUM KLART = KLART TABLES IN_CLASS = P_MATCLS EX_KSSK = T_KSSK EXCEPTIONS OBJECTS_NOT_FOUND = 01.



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