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

SAPBAPITESTCREATESPLIT SAP ABAP Report - BAPI Test Program: Create Cost Estimates from Reference







SAPBAPITESTCREATESPLIT 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 SAPBAPITESTCREATESPLIT 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 SAPBAPITESTCREATESPLIT. "Basic submit
SUBMIT SAPBAPITESTCREATESPLIT AND RETURN. "Return to original report after report execution complete
SUBMIT SAPBAPITESTCREATESPLIT 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: P_WERKS = D Plant
Selection Text: P_TVERS = D Costing Version
Selection Text: P_MATNR = D Material
Selection Text: P_KLVAR = D Costing Variant
Selection Text: P_KADAT = D Costing Date From
Selection Text: P_FEH_ST = D Costing Status
Selection Text: P_BUKRS = D Company Code
Selection Text: KALAID = D Costing Run
Selection Text: KALADAT = D Costing Run Date
Title: BAPI Test Program: Create Cost Estimates from Reference
Text Symbol: 017 = Number of Cost Ests Checked:
Text Symbol: 001 = Restriction of Cost Estimates to Reorganize
001 Plant Material LowLvlCod Status CstVt CstgVersion CstDateFrm CstDate_to Manual WithQtyStructure


INCLUDES used within this REPORT SAPBAPITESTCREATESPLIT

INCLUDE BAPITESTDELETING1F01.


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:

BAPI_COSTESTIMATE_GETLIST CALL FUNCTION 'BAPI_COSTESTIMATE_GETLIST' EXPORTING COST_ESTIMATE = '01' IMPORTING RETURN = F_RETURN TABLES COSTING_VARIANT = P_KLVAR MATERIAL = T_MATNR PLANT = P_WERKS VALIDITY_FROM = P_KADAT COSTING_STATUS = P_FEH_ST COSTING_VERSION = P_TVERS COST_ESTIMATE_LIST = T_COST_ESTIMATE_LIST COSTINGRUN = KALAID COSTINGRUN_DATE = KALADAT.

BAPI_COSTESTIMATE_GETDETAIL CALL FUNCTION 'BAPI_COSTESTIMATE_GETDETAIL' EXPORTING REFERENCEOBJECT = T_COST_ESTIMATE_LIST-REF_OBJECT COSTINGNUMBER = T_COST_ESTIMATE_LIST-CSTG_NUM COSTINGTYPE = T_COST_ESTIMATE_LIST-CSTG_TYPE COSTINGDATE = T_COST_ESTIMATE_LIST-CSTG_DATE COSTINGVERSION = T_COST_ESTIMATE_LIST-VERSION VALUATIONVARIANT = T_COST_ESTIMATE_LIST-VLTN_VRNT ENTEREDMANUALLY = T_COST_ESTIMATE_LIST-ENTER_MAN COST_COMPONENT_VIEW = '01' * COST_COMPONENT_GROUP = * CURRENCY_ORG_UNIT = IMPORTING COST_ESTIMATE_HEADER = F_COST_ESTIMATE_HEADER PARTNER = F_PARTNER DIRECT_PARTNER = F_DIRECT_PARTNER RETURN = F_RETURN TABLES COST_COMPONENTS = T_COST_COMPONENTS PARTNER_COST_COMPONENTS = T_PARTNER_COST_COMPONENTS DIR_PART_PRFTCTR_CC = T_DIR_PART_PRFTCTR_CC DIR_PART_PLANT_CC = T_DIR_PART_PLANT_CC DIR_PART_COMPCODE_CC = T_DIR_PART_COMPCODE_CC DIR_PART_BUSINAREA_CC = T_DIR_PART_BUSINAREA_CC COST_COMPONENTS_AS = T_COST_COMPONENTS_AS PARTNER_COST_COMPONENTS_AS = T_PARTNER_COST_COMPONENTS_AS DIR_PART_PRFTCTR_CC_AS = T_DIR_PART_PRFTCTR_CC_AS DIR_PART_PLANT_CC_AS = T_DIR_PART_PLANT_CC_AS DIR_PART_COMPCODE_CC_AS = T_DIR_PART_COMPCODE_CC_AS DIR_PART_BUSINAREA_CC_AS = T_DIR_PART_BUSINAREA_CC_AS.

BAPI_COSTESTIMATE_CREATE_SPLIT CALL FUNCTION 'BAPI_COSTESTIMATE_CREATE_SPLIT' EXPORTING COSTING_HEADER = F_COSTING_HEADER TESTRUN = TEST IMPORTING RETURN = F_RETURN2 TABLES COST_COMPONENTS = T_SCHICHTUNG PARTNER_COST_COMPONENTS = T_PARTNER_COST_COMPONENTS DIR_PART_COMPCODE_CC = T_DIR_PART_COMPCODE_CC DIR_PART_PLANT_CC = T_DIR_PART_PLANT_CC DIR_PART_BUSINAREA_CC = T_DIR_PART_BUSINAREA_CC DIR_PART_PRFTCTR_CC = T_DIR_PART_PRFTCTR_CC COST_COMPONENTS_AS = T_NEBENSCHICHTUNG PARTNER_COST_COMPONENTS_AS = T_PARTNER_COST_COMPONENTS_AS DIR_PART_COMPCODE_CC_AS = T_DIR_PART_COMPCODE_CC_AS DIR_PART_PLANT_CC_AS = T_DIR_PART_PLANT_CC_AS DIR_PART_BUSINAREA_CC_AS = T_DIR_PART_BUSINAREA_CC_AS DIR_PART_PRFTCTR_CC_AS = T_DIR_PART_PRFTCTR_CC_AS.

BAPI_TRANSACTION_ROLLBACK CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.

BAPI_TRANSACTION_COMMIT CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' EXPORTING WAIT = 'X'.

BAPI_COSTESTIMATE_GETDETAIL CALL FUNCTION 'BAPI_COSTESTIMATE_GETDETAIL' EXPORTING REFERENCEOBJECT = F_KEKO-BZOBJ COSTINGNUMBER = F_KEKO-KALNR COSTINGTYPE = F_KEKO-KALKA COSTINGDATE = F_KEKO-KADKY COSTINGVERSION = F_KEKO-TVERS VALUATIONVARIANT = F_KEKO-BWVAR ENTEREDMANUALLY = F_KEKO-KKZMA COST_COMPONENT_VIEW = '01' * COST_COMPONENT_GROUP = * CURRENCY_ORG_UNIT = IMPORTING COST_ESTIMATE_HEADER = F_COST_ESTIMATE_HEADER_READ PARTNER = F_PARTNER_READ DIRECT_PARTNER = F_DIRECT_PARTNER_READ RETURN = F_RETURN TABLES COST_COMPONENTS = T_COST_COMPONENTS_READ PARTNER_COST_COMPONENTS = T_PARTNER_COST_COMPONENTS_READ DIR_PART_PRFTCTR_CC = T_DIR_PART_PRFTCTR_CC_READ DIR_PART_PLANT_CC = T_DIR_PART_PLANT_CC_READ DIR_PART_COMPCODE_CC = T_DIR_PART_COMPCODE_CC_READ DIR_PART_BUSINAREA_CC = T_DIR_PART_BUSINAREA_CC_READ COST_COMPONENTS_AS = T_COST_COMPONENTS_AS_READ PARTNER_COST_COMPONENTS_AS = T_PARTNER_COST_COMPONENTS_AS_R DIR_PART_PRFTCTR_CC_AS = T_DIR_PART_PRFTCTR_CC_AS_READ DIR_PART_PLANT_CC_AS = T_DIR_PART_PLANT_CC_AS_READ DIR_PART_COMPCODE_CC_AS = T_DIR_PART_COMPCODE_CC_AS_READ DIR_PART_BUSINAREA_CC_AS = T_DIR_PART_BUSINAREA_CC_AS_R.

BAPI_COSTESTIMATE_DELETE CALL FUNCTION 'BAPI_COSTESTIMATE_DELETE' EXPORTING TESTRUN = TEST COSTESTIM_ID = F_COSTESTIM_ID IMPORTING RETURN = F_RETURN2.

BAPI_TRANSACTION_ROLLBACK CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.

BAPI_TRANSACTION_COMMIT CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' EXPORTING WAIT = 'X'.



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