SAP Reports / Programs | Plant Maintenance | Maintenance Processing | Maintenance Orders(PM-WOC-MO) SAP PM

IBAPI_ALM_MMSRV_UNITTEST_CREAT SAP ABAP INCLUDE - Include IBAPI_ALM_MMSRV_UNITTEST_CREAT







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


Text pool values


Title: Include IBAPI_ALM_MMSRV_UNITTEST_CREAT


INCLUDES used within this REPORT IBAPI_ALM_MMSRV_UNITTEST_CREAT

No INCLUDES are used within this REPORT code!


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:

IBAPI_ALM_ORDERSERVICES_READ CALL FUNCTION 'IBAPI_ALM_ORDERSERVICES_READ' EXPORTING iv_orderid = lcl_unittest_setup=>gs_test_data-aufnr IMPORTING et_serviceoutline = gt_service_outlines_ibapi et_servicelines = gt_service_lines_ibapi TABLES et_messages = lt_messages.

IBAPI_H_ORDER_READ CALL FUNCTION 'IBAPI_H_ORDER_READ' EXPORTING iv_aufnr = lcl_unittest_setup=>gs_test_data-aufnr iv_enqueue_order = space IMPORTING es_caufvd = gs_order es_affld = ls_affld EXCEPTIONS order_locked = 1 order_read_error = 2 OTHERS = 3.

IBAPI_O_OPERATIONS_GET CALL FUNCTION 'IBAPI_O_OPERATIONS_GET' EXPORTING iv_aufnr = gs_order-aufnr iv_aplfl = ls_affld-plnfl iv_with_suboper = space TABLES ct_afvgd = gt_operations EXCEPTIONS read_error = 1 OTHERS = 2.

BAPI_ALM_ORDER_MAINTAIN CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN' TABLES it_methods = lt_methods return = lt_return et_numbers = lt_numbers it_serviceoutline = lt_outlines_exp.

IBAPI_ALM_ORDERSERVICES_READ CALL FUNCTION 'IBAPI_ALM_ORDERSERVICES_READ' EXPORTING iv_orderid = lcl_unittest_setup=>gs_test_data-aufnr IMPORTING et_serviceoutline = lt_outlines_act TABLES et_messages = lt_messages.

BAPI_TRANSACTION_ROLLBACK CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.

BAPI_ALM_ORDER_MAINTAIN CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN' TABLES it_methods = lt_methods return = lt_return et_numbers = lt_numbers it_servicelines = lt_lines_exp.

BAPI_ALM_ORDER_GET_DETAIL CALL FUNCTION 'BAPI_ALM_ORDER_GET_DETAIL' EXPORTING number = lcl_unittest_setup=>gs_test_data-aufnr TABLES return = lt_return et_servicelines = lt_lines_act.

BAPI_TRANSACTION_ROLLBACK CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.

CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' EXPORTING input = -activity IMPORTING output = -activity.

BAPI_ALM_ORDER_MAINTAIN CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN' TABLES it_operation = lt_operations it_methods = lt_methods return = lt_return et_numbers = lt_numbers it_servicelimit = lt_limits_exp.

BAPI_ALM_ORDER_GET_DETAIL CALL FUNCTION 'BAPI_ALM_ORDER_GET_DETAIL' EXPORTING number = lcl_unittest_setup=>gs_test_data-aufnr TABLES return = lt_return et_servicelimit = lt_limits_act.

BAPI_TRANSACTION_ROLLBACK CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.

CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' EXPORTING input = -activity IMPORTING output = -activity.

BAPI_ALM_ORDER_MAINTAIN CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN' TABLES it_operation = lt_operations it_methods = lt_methods return = lt_return et_numbers = lt_numbers it_servicelimit = lt_limits_exp it_servicecontractlimits = lt_contract_limits_exp.

BAPI_ALM_ORDER_GET_DETAIL CALL FUNCTION 'BAPI_ALM_ORDER_GET_DETAIL' EXPORTING number = lcl_unittest_setup=>gs_test_data-aufnr TABLES return = lt_return et_servicecontractlimits = lt_contract_limits_act.

BAPI_TRANSACTION_ROLLBACK CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.

CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' EXPORTING input = -activity IMPORTING output = -activity.

BAPI_ALM_ORDER_MAINTAIN





CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN' TABLES it_header = lt_headers it_operation = lt_operations it_methods = lt_methods return = lt_return et_numbers = lt_numbers it_servicecontractlimits = lt_contract_limits_exp it_servicelimit = lt_limits_exp it_serviceoutline = lt_outlines_exp it_servicelines = lt_lines_exp.

BAPI_TRANSACTION_COMMIT CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' EXPORTING wait = abap_true.

BAPI_ALM_ORDER_GET_DETAIL CALL FUNCTION 'BAPI_ALM_ORDER_GET_DETAIL' EXPORTING number = -orderid TABLES return = lt_return et_serviceoutline = lt_outlines_act et_servicelines = lt_lines_act et_servicelimit = lt_limits_act et_servicecontractlimits = lt_contract_limits_act.

BAPI_TRANSACTION_ROLLBACK CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.

CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' EXPORTING input = -activity IMPORTING output = -activity.

BAPI_ALM_ORDER_MAINTAIN CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN' TABLES it_operation = lt_operations it_methods = lt_methods return = lt_return et_numbers = lt_numbers.

BAPI_TRANSACTION_ROLLBACK CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.

BAPI_ALM_ORDER_GET_DETAIL CALL FUNCTION 'BAPI_ALM_ORDER_GET_DETAIL' EXPORTING number = lcl_unittest_setup=>gs_test_data-aufnr TABLES et_operations = lt_operations_act return = lt_return.



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