SAP Reports / Programs | Financials | Business Analytics(FIN-BA) SAP FIN

UA_BATCH_IMPORT_PROCESS SAP ABAP Report - Background processing for the import of costing objects







UA_BATCH_IMPORT_PROCESS is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report is a component of the Background Processing for Import for Costing Solutions...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 UA_BATCH_IMPORT_PROCESS 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 UA_BATCH_IMPORT_PROCESS. "Basic submit
SUBMIT UA_BATCH_IMPORT_PROCESS AND RETURN. "Return to original report after report execution complete
SUBMIT UA_BATCH_IMPORT_PROCESS 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: PT_VAN = Variant
Title: Background processing for the import of costing objects
Text Symbol: 001 = Define the selection variants for the objects to be imported
Text Symbol: 002 = Variants do not have content in database
Text Symbol: 003 = Note: All variants must share the same database


INCLUDES used within this REPORT UA_BATCH_IMPORT_PROCESS

INCLUDE FINB_MSG_DEFAULT_MACROS.


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:

UA_RFC_PDCE_INIT CALL FUNCTION 'UA_RFC_PDCE_INIT' EXPORTING id_databasis = gs_variant-data_basis IMPORTING ed_code = ld_subrc TABLES bapiret2 = bapiret2.

UA_RFC_PDCE_HIER_QUERY_ID CALL FUNCTION 'UA_RFC_PDCE_HIER_QUERY_ID' EXPORTING id_databasis = gs_variant-data_basis id_root_obj_id = ls_var_sce-parent_id id_root_obj_typename = ls_var_sce-parent_type IMPORTING ed_code = ld_subrc TABLES et_object = lt_objects et_node = lt_node et_edge = lt_edge et_hier = lt_hier bapiret2 = bapiret2.

UA_RFC_PDCE_HIER_CE_IMPORT CALL FUNCTION 'UA_RFC_PDCE_HIER_CE_IMPORT' EXPORTING id_databasis = gs_variant-data_basis id_root_obj_id = ls_var_sce-parent_id id_root_obj_typename = ls_var_sce-parent_type id_source_system = gs_variant-source_system is_costinglist = ls_exlist id_r3obj = abap_true "gs_variant-d_ce_withqs id_r3tab = abap_true "gs_variant-d_ce_priceupdate id_calculate = abap_false id_batchmode = abap_true IMPORTING ed_code = ld_subrc TABLES it_upload_context = lt_context bapiret2 = bapiret2.

UA_RFC_PDCE_COSTESTIM_GETLIST CALL FUNCTION 'UA_RFC_PDCE_COSTESTIM_GETLIST' EXPORTING id_mimeger = gs_variant-d_ce_withqs id_priceupdated = gs_variant-d_ce_priceupdate id_maxrows = gs_variant-d_ce_maxnum id_source_system = gs_variant-source_system IMPORTING ed_code = ld_subrc TABLES it_klvar = lt_klvar it_matnr = lt_matnr it_werks = lt_werks it_kadat = lt_kadat it_tvers = lt_tvers et_costinglist = lt_costinglist bapiret2 = bapiret2.

NUMBER_GET_NEXT CALL FUNCTION 'NUMBER_GET_NEXT' EXPORTING nr_range_nr = '1' object = gs_variant-d_ce_number IMPORTING number = ld_dcenumber EXCEPTIONS interval_not_found = 1 number_range_not_intern = 2 object_not_found = 3 quantity_is_0 = 4 quantity_is_not_1 = 5 interval_overflow = 6 buffer_overflow = 7 OTHERS = 8.

UA_RFC_PDCE_NODE_CREATE CALL FUNCTION 'UA_RFC_PDCE_NODE_CREATE' EXPORTING id_databasis = gs_variant-data_basis is_object = ls_object_parent_dce_sel * IS_NODE = IMPORTING ed_code = ld_subrc es_object = ls_object_parent_dce_created " es_node = ls_node_parent_dce_created TABLES bapiret2 = bapiret2.

UA_RFC_PDCE_HIER_QUERY_ID CALL FUNCTION 'UA_RFC_PDCE_HIER_QUERY_ID' EXPORTING id_databasis = gs_variant-data_basis id_root_obj_id = ls_object_parent_dce_created-fobj_object_id id_root_obj_typename = ld_receivertype IMPORTING ed_code = ld_subrc TABLES et_object = lt_objects et_node = lt_node et_edge = lt_edge et_hier = lt_hier bapiret2 = bapiret2.

UA_RFC_PDCE_HIER_CE_IMPORT CALL FUNCTION 'UA_RFC_PDCE_HIER_CE_IMPORT' EXPORTING id_databasis = gs_variant-data_basis id_root_obj_id = ls_object_parent_dce_created-fobj_object_id id_root_obj_typename = ld_receivertype id_source_system = gs_variant-source_system is_costinglist = ls_costinglist id_r3obj = gs_variant-d_ce_withqs id_r3tab = gs_variant-d_ce_priceupdate id_calculate = abap_false id_batchmode = abap_true IMPORTING ed_code = ld_subrc TABLES it_upload_context = lt_context * ET_OBJECT = lt_objects * ET_NODE = lt_NODE * ET_EDGE = lt_EDGE * ET_HIER = lt_HIER bapiret2 = bapiret2.

NUMBER_GET_NEXT CALL FUNCTION 'NUMBER_GET_NEXT' EXPORTING nr_range_nr = '1' object = gs_variant-qs_number IMPORTING number = ld_qsnumber EXCEPTIONS interval_not_found = 1 number_range_not_intern = 2 object_not_found = 3 quantity_is_0 = 4 quantity_is_not_1 = 5 interval_overflow = 6 buffer_overflow = 7 OTHERS = 8.

UA_RFC_PDCE_NODE_CREATE CALL FUNCTION 'UA_RFC_PDCE_NODE_CREATE' EXPORTING id_databasis = gs_variant-data_basis is_object = ls_object_parent_qs_sel * IS_NODE = IMPORTING ed_code = ld_subrc es_object = ls_object_parent_qs_created " ES_NODE = TABLES bapiret2 = bapiret2.

UA_RFC_PDCE_HIER_QS_IMPORT CALL FUNCTION 'UA_RFC_PDCE_HIER_QS_IMPORT' EXPORTING id_databasis = gs_variant-data_basis id_root_obj_id = ls_object_parent_qs_created-fobj_object_id id_root_obj_typename = ld_receivertype id_source_system = gs_variant-source_system id_plant = gs_variant-qs_plant id_material = gs_variant-qs_matnr id_qty_structure_date = gs_variant-qs_brdat id_qty_structure_control = gs_variant-qs_aufkz id_r3obj = gs_variant-qs_r3obj id_r3tab = gs_variant-qs_r3tab id_calculate = abap_false IMPORTING ed_code = ld_subrc " id_batchmode = abap_true TABLES it_upload_context = lt_context et_object = lt_objects et_node = lt_node et_edge = lt_edge et_hier = lt_hier bapiret2 = bapiret2.

NUMBER_GET_NEXT CALL FUNCTION 'NUMBER_GET_NEXT' EXPORTING nr_range_nr = '1' object = gs_variant-ippe_number IMPORTING number = ld_ippenumber EXCEPTIONS interval_not_found = 1 number_range_not_intern = 2 object_not_found = 3 quantity_is_0 = 4 quantity_is_not_1 = 5 interval_overflow = 6 buffer_overflow = 7 OTHERS = 8.

UA_RFC_PDCE_NODE_CREATE CALL FUNCTION 'UA_RFC_PDCE_NODE_CREATE' EXPORTING id_databasis = gs_variant-data_basis is_object = ls_object_parent_ip_sel * IS_NODE = IMPORTING ed_code = ld_subrc es_object = ls_object_parent_ip_created " ES_NODE = TABLES bapiret2 = bapiret2.

UA_RFC_PDCE_HIER_IPPE_IMPORT CALL FUNCTION 'UA_RFC_PDCE_HIER_IPPE_IMPORT' EXPORTING id_databasis = gs_variant-data_basis id_root_obj_id = ls_object_parent_ip_created-fobj_object_id id_root_obj_typename = ld_receivertype id_source_system = gs_variant-source_system * IS_FOCUS = is_filter = ls_filter IMPORTING ed_code = ld_subrc TABLES it_upload_context = lt_context et_object = lt_objects et_node = lt_node et_edge = lt_edge et_hier = lt_hier et_message = bapiret2.

UA_RFC_PDCE_HIER_IPPE_IMPORT CALL FUNCTION 'UA_RFC_PDCE_HIER_IPPE_IMPORT' EXPORTING id_databasis = gs_variant-data_basis id_root_obj_id = ls_object_parent_ip_created-fobj_object_id id_root_obj_typename = ld_receivertype id_source_system = gs_variant-source_system is_focus = ls_focus IMPORTING ed_code = ld_subrc TABLES it_upload_context = lt_context et_object = lt_objects et_node = lt_node et_edge = lt_edge et_hier = lt_hier et_message = bapiret2.

UA_RFC_PDCE_HIER_QUERY_ID CALL FUNCTION 'UA_RFC_PDCE_HIER_QUERY_ID' EXPORTING id_databasis = gs_variant-data_basis id_root_obj_id = ls_var_xml-parent_id id_root_obj_typename = ls_var_xml-parent_type IMPORTING ed_code = ld_subrc TABLES et_object = lt_objects et_node = lt_node et_edge = lt_edge et_hier = lt_hier bapiret2 = bapiret2.

UA_RFC_PDCE_HIER_XML_IMPORT CALL FUNCTION 'UA_RFC_PDCE_HIER_XML_IMPORT' EXPORTING id_xml = ld_xml_string is_object = ls_xml_object id_databasis = gs_variant-data_basis IMPORTING ed_code = ld_subrc TABLES bapiret2 = bapiret2.

UA_RFC_PDCE_NODE_MASS_IMPORT CALL FUNCTION 'UA_RFC_PDCE_NODE_MASS_IMPORT' EXPORTING id_databasis = gs_variant-data_basis id_source_system = gs_variant-source_system id_objtype_remote = 'E' IMPORTING ed_code = ld_subrc TABLES it_upload_context = lt_context it_selections = lt_selection et_object = lt_objects bapiret2 = bapiret2.

UA_RFC_PDCE_NODE_MASS_IMPORT





CALL FUNCTION 'UA_RFC_PDCE_NODE_MASS_IMPORT' EXPORTING id_databasis = gs_variant-data_basis id_source_system = gs_variant-source_system id_objtype_remote = 'M' IMPORTING ed_code = ld_subrc TABLES it_upload_context = lt_context et_object = lt_objects it_selections = lt_selection bapiret2 = bapiret2. "ET_OBJECT =

UA_RFC_PDCE_NODE_MASS_IMPORT CALL FUNCTION 'UA_RFC_PDCE_NODE_MASS_IMPORT' EXPORTING id_databasis = gs_variant-data_basis id_source_system = gs_variant-source_system id_objtype_remote = 'BP' IMPORTING ed_code = ld_subrc TABLES it_upload_context = lt_context et_object = lt_objects it_selections = lt_selection bapiret2 = bapiret2.

UA_RFC_PDCE_NODE_MASS_IMPORT CALL FUNCTION 'UA_RFC_PDCE_NODE_MASS_IMPORT' EXPORTING id_databasis = gs_variant-data_basis id_source_system = gs_variant-source_system id_objtype_remote = 'IR' IMPORTING ed_code = ld_subrc TABLES it_upload_context = lt_context et_object = lt_objects it_selections = lt_selection bapiret2 = bapiret2. "ET_OBJECT =

UA_RFC_PDCE_NODE_MASS_IMPORT CALL FUNCTION 'UA_RFC_PDCE_NODE_MASS_IMPORT' EXPORTING id_databasis = gs_variant-data_basis id_source_system = gs_variant-source_system id_objtype_remote = 'N' IMPORTING ed_code = ld_subrc TABLES it_upload_context = lt_context et_object = lt_objects it_selections = lt_selection bapiret2 = bapiret2. "ET_OBJECT =

UA_RFC_PDCE_TLINE_MASS_IMPORT CALL FUNCTION 'UA_RFC_PDCE_TLINE_MASS_IMPORT' EXPORTING id_databasis = gs_variant-data_basis id_source_system = gs_variant-source_system id_objtype_remote = 'E_PRICE' IMPORTING ed_code = ld_subrc TABLES it_upload_context = lt_context it_selections = lt_selection et_tline = lt_tlines bapiret2 = bapiret2.

UA_RFC_PDCE_TLINE_MASS_IMPORT CALL FUNCTION 'UA_RFC_PDCE_TLINE_MASS_IMPORT' EXPORTING id_databasis = gs_variant-data_basis id_source_system = gs_variant-source_system id_objtype_remote = 'MAT_DISPATCH' IMPORTING ed_code = ld_subrc TABLES it_upload_context = lt_context et_tline = lt_tlines it_selections = lt_selection bapiret2 = bapiret2.

UA_RFC_PDCE_TLINE_MASS_IMPORT CALL FUNCTION 'UA_RFC_PDCE_TLINE_MASS_IMPORT' EXPORTING id_databasis = gs_variant-data_basis id_source_system = gs_variant-source_system id_objtype_remote = 'BP_PRICE' IMPORTING ed_code = ld_subrc TABLES it_upload_context = lt_context et_tline = lt_tlines it_selections = lt_selection bapiret2 = bapiret2.

UA_RFC_PDCE_TLINE_MASS_IMPORT CALL FUNCTION 'UA_RFC_PDCE_TLINE_MASS_IMPORT' EXPORTING id_databasis = gs_variant-data_basis id_source_system = gs_variant-source_system id_objtype_remote = 'IR_PRICE' IMPORTING ed_code = ld_subrc TABLES it_upload_context = lt_context et_tline = lt_tlines it_selections = lt_selection bapiret2 = bapiret2.

UA_RFC_PDCE_TLINE_MASS_IMPORT CALL FUNCTION 'UA_RFC_PDCE_TLINE_MASS_IMPORT' EXPORTING id_databasis = gs_variant-data_basis id_source_system = gs_variant-source_system id_objtype_remote = 'N_PRICE' IMPORTING ed_code = ld_subrc TABLES it_upload_context = lt_context et_tline = lt_tlines it_selections = lt_selection bapiret2 = bapiret2.

NUMBER_GET_NEXT CALL FUNCTION 'NUMBER_GET_NEXT' EXPORTING nr_range_nr = '1' object = gs_variant-bom_number IMPORTING number = ld_bomnumber EXCEPTIONS interval_not_found = 1 number_range_not_intern = 2 object_not_found = 3 quantity_is_0 = 4 quantity_is_not_1 = 5 interval_overflow = 6 buffer_overflow = 7 OTHERS = 8.

UA_RFC_PDCE_NODE_CREATE CALL FUNCTION 'UA_RFC_PDCE_NODE_CREATE' EXPORTING id_databasis = gs_variant-data_basis is_object = ls_object_parent_bom_sel * IS_NODE = IMPORTING ed_code = ld_subrc es_object = ls_object_parent_bom_created " ES_NODE = TABLES bapiret2 = bapiret2.

UA_RFC_PDCE_HIER_BOM_IMPORT CALL FUNCTION 'UA_RFC_PDCE_HIER_BOM_IMPORT' EXPORTING id_databasis = gs_variant-data_basis id_root_obj_id = ls_object_parent_bom_created-fobj_object_id id_root_obj_typename = ld_receivertype id_source_system = gs_variant-source_system id_plant = gs_variant-bom_werks id_material = gs_variant-bom_matnr id_date = gs_variant-bom_date id_capid = gs_variant-bom_app id_r3obj = gs_variant-bom_r3obj id_r3tab = gs_variant-bom_r3tab IMPORTING ed_code = ld_subrc TABLES it_upload_context = lt_context et_object = lt_objects et_node = lt_node et_edge = lt_edge et_hier = lt_hier bapiret2 = bapiret2.

UA_RFC_PDCE_SAVE CALL FUNCTION 'UA_RFC_PDCE_SAVE' IMPORTING ed_code = ld_subrc TABLES bapiret2 = bapiret2.



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