SAP Reports / Programs | Cross-Application Components(CA) SAP CA

CNV_OPTIMIZE_STRING_FORM SAP ABAP INCLUDE - Include CNV_OPTIMIZE_STRING_FORM







CNV_OPTIMIZE_STRING_FORM 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 CNV_OPTIMIZE_STRING_FORM 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 CNV_OPTIMIZE_STRING_FORM. "Basic submit
SUBMIT CNV_OPTIMIZE_STRING_FORM AND RETURN. "Return to original report after report execution complete
SUBMIT CNV_OPTIMIZE_STRING_FORM 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 CNV_OPTIMIZE_STRING_FORM


INCLUDES used within this REPORT CNV_OPTIMIZE_STRING_FORM

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:

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = ls_log_header IMPORTING e_log_handle = ev_log_handle EXCEPTIONS log_header_inconsistent = 1 OTHERS = 2.

JOB_OPEN * CALL FUNCTION 'JOB_OPEN' * EXPORTING * jobname = gv_jobname * IMPORTING * jobcount = gv_jobcount * EXCEPTIONS * cant_create_job = 1 * invalid_job_data = 2 * jobname_missing = 3 * OTHERS = 4.

CNV_MBT_RFC_GET CALL FUNCTION 'CNV_MBT_RFC_GET' EXPORTING packid = p_pack exec_target = 'E' * ALL_AS_TABLE = 'X' * NONE_AT_LOCAL_DEST = 'X' IMPORTING destination_id = ls_substate-destination * TABLES * DESTTAB = EXCEPTIONS no_destinations_for_packid = 1 no_specific_destination_type = 2 get_system_info_failure = 3 rfc_failure = 4 system_info_has_changed = 5 login_not_possible = 6 OTHERS = 7 .

CNV_MBT_PC_PROG_START_BGR CALL FUNCTION 'CNV_MBT_PC_PROG_START_BGR' EXPORTING progname = lc_repid job_name = ls_substate-jobname IMPORTING jobcount = ls_substate-jobcount TABLES lt_params = lt_params EXCEPTIONS program_does_not_exist = 1 no_authority = 2 scheduling_error = 3 * communication_failure = 98 MESSAGE gd_msgtext * system_failure = 99 MESSAGE gd_msgtext OTHERS = 4.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

JOB_OPEN * CALL FUNCTION 'JOB_OPEN' * EXPORTING * jobname = gv_jobname * IMPORTING * jobcount = gv_jobcount * EXCEPTIONS * cant_create_job = 1 * invalid_job_data = 2 * jobname_missing = 3 * OTHERS = 4.

JOB_CLOSE * CALL FUNCTION 'JOB_CLOSE' * EXPORTING * jobcount = gv_jobcount * jobname = gv_jobname * strtimmed = gc_x * EXCEPTIONS * cant_start_immediate = 1 * invalid_startdate = 2 * jobname_missing = 3 * job_close_failed = 4 * job_nosteps = 5 * job_notex = 6 * lock_failed = 7 * OTHERS = 8.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING textline1 = text-005 textline2 = text-007 titel = text-006 IMPORTING answer = lv_answer.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_s_msg = is_log_msg i_log_handle = ev_log_handle EXCEPTIONS log_not_found = 0 OTHERS = 1.

BAL_DB_SAVE CALL FUNCTION 'BAL_DB_SAVE' EXPORTING i_client = iv_client i_in_update_task = iv_update_task i_save_all = iv_save_all i_t_log_handle = lt_log_handle * IMPORTING * e_new_lognumbers = EXCEPTIONS log_not_found = 1 save_not_allowed = 2 numbering_error = 3 OTHERS = 4.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_s_msg = is_log_msg i_log_handle = ev_log_handle EXCEPTIONS log_not_found = 0 OTHERS = 1.

CNV_MBT_SUBSTATE_WRITE CALL FUNCTION 'CNV_MBT_SUBSTATE_WRITE' TABLES im_cnvmbtsubstate = it_substate EXCEPTIONS update_failed = 1 OTHERS = 2.

CNV_MBT_RFC_PCL CALL FUNCTION 'CNV_MBT_RFC_PCL' EXPORTING packid = p_pack IMPORTING destination_id = lv_pcl_rfc EXCEPTIONS no_destinations_for_packid = 1 no_pcl_destination_for_packid = 2 OTHERS = 3.

CNV_MBT_SUBSTATE_WRITE CALL FUNCTION 'CNV_MBT_SUBSTATE_WRITE' DESTINATION lv_pcl_rfc TABLES im_cnvmbtsubstate = it_substate EXCEPTIONS update_failed = 1 communication_failure = 98 MESSAGE gd_msgtext system_failure = 99 MESSAGE gd_msgtext OTHERS = 2.

CNV_MBT_SUBSTATE_JOBCOUNT_UPD CALL FUNCTION 'CNV_MBT_SUBSTATE_JOBCOUNT_UPD' * DESTINATION is_substate-destination EXPORTING i_cnvmbtsubstate = is_substate EXCEPTIONS OTHERS = 1.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = lv_title text_question = lv_text text_button_1 = lv_button1 text_button_2 = lv_button2 IMPORTING answer = lv_answer EXCEPTIONS text_not_found = 1 OTHERS = 2.



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