SAP Reports / Programs | Industry Solution Catch Weight Management | Industry Solution Catch Weight Management(IS-CWM) SAP IS

/CWM/CHECK_MSEG_LIME SAP ABAP Report - Report /CWM/CHECK_MSEG_LIME







/CWM/CHECK_MSEG_LIME is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for ..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 /CWM/CHECK_MSEG_LIME 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 /CWM/CHECK_MSEG_LIME. "Basic submit
SUBMIT /CWM/CHECK_MSEG_LIME AND RETURN. "Return to original report after report execution complete
SUBMIT /CWM/CHECK_MSEG_LIME 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: SO_ZEILE = D .
Selection Text: SO_WERKS = D .
Selection Text: SO_SOBKZ = D .
Selection Text: SO_SHKZG = D .
Selection Text: SO_MJAHR = D .
Selection Text: SO_MBLNR = D .
Selection Text: SO_MATNR = D .
Selection Text: SO_LIFNR = D .
Selection Text: SO_LGORT = D .
Selection Text: SO_KZVBR = D .
Selection Text: SO_KUNNR = D .
Selection Text: SO_INSMK = D .
Selection Text: SO_EBELP = D .
Selection Text: SO_EBELN = D .
Selection Text: SO_CHARG = D .
Selection Text: SO_BWART = D .
Selection Text: P_UPTO = Maximum Number of Lines
Selection Text: P_TEST = Test Mode (No Update)
Selection Text: P_SIMUL = Simulations Mode (No Update)
Selection Text: P_NO_DIF = Lines without Differences
Selection Text: P_MSEG = Table MSEG
Title: Report /CWM/CHECK_MSEG_LIME
Text Symbol: 009 = Archived Single Docs.
Text Symbol: 008 = Archive Sel.
Text Symbol: 007 = Read Archive Direct
Text Symbol: 006 = Archive InfoStruc.
Text Symbol: 005 = Data Source
Text Symbol: 004 = Counter
Text Symbol: 003 = Assign Reports
Text Symbol: 002 = Assign Reports
Text Symbol: 001 = Assign Reports


INCLUDES used within this REPORT /CWM/CHECK_MSEG_LIME

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:

AIND_HELP_VALUES_FOR_ARCHINDEX CALL FUNCTION 'AIND_HELP_VALUES_FOR_ARCHINDEX' EXPORTING i_archobject = 'MM_MATBEL' i_active_only = 'X' IMPORTING e_archindex = p_ainstr.

RSTI_REPORT_ADD CALL FUNCTION 'RSTI_REPORT_ADD' EXPORTING e_fccls = '9' e_tool = 'RT' e_report = gs_rstirec * E_RECSEN = 'S' * E_DISPLAY = * I_NO_CHECK = ' ' EXCEPTIONS wrong_function_call = 0 foreign_lock = 0 not_found = 0 OTHERS = 0 .

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = '/LIME/REF_R3_MATDOC' CHANGING ct_fieldcat = lt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = '/LIME/ITEM_DATA' CHANGING ct_fieldcat = lt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = '/LIME/LOC_KEY' CHANGING ct_fieldcat = lt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = '/LIME/STOCK_KEY' CHANGING ct_fieldcat = lt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = '/LIME/LOC_KEY' CHANGING ct_fieldcat = lt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = '/LIME/STOCK_KEY' CHANGING ct_fieldcat = lt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = '/LIME/DOC_QUAN' CHANGING ct_fieldcat = lt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = '/LIME/DOC_QUAN' CHANGING ct_fieldcat = lt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING * I_INTERFACE_CHECK = ' ' * I_BYPASSING_BUFFER = ' ' * I_BUFFER_ACTIVE = ' ' i_callback_program = lv_repid i_callback_pf_status_set = lv_status i_callback_user_command = lv_callback_user_command * I_CALLBACK_TOP_OF_PAGE = ' ' * I_CALLBACK_HTML_TOP_OF_PAGE = ' ' * I_CALLBACK_HTML_END_OF_LIST = ' ' * i_structure_name = 'TY_ITEM_FLAT' * I_BACKGROUND_ID = ' ' * I_GRID_TITLE = * I_GRID_SETTINGS = is_layout = ls_layout it_fieldcat = lt_fieldcat * IT_EXCLUDING = * IT_SPECIAL_GROUPS = it_sort = lt_alv1_sort_pre * IT_FILTER = * IS_SEL_HIDE = * I_DEFAULT = 'X' i_save = 'A' is_variant = ls_variant * IT_EVENTS = * IT_EVENT_EXIT = * IS_PRINT = * IS_REPREP_ID = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * I_HTML_HEIGHT_TOP = 0 * I_HTML_HEIGHT_END = 0 * IT_ALV_GRAPHICS = * IT_HYPERLINK = * IT_ADD_FIELDCAT = * IT_EXCEPT_QINFO = * IR_SALV_FULLSCREEN_ADAPTER = * IMPORTING * E_EXIT_CAUSED_BY_CALLER = * ES_EXIT_CAUSED_BY_USER = TABLES t_outtab = gt_item_flat * EXCEPTIONS * PROGRAM_ERROR = 1 * OTHERS = 2 .

MIGO_DIALOG CALL FUNCTION 'MIGO_DIALOG' EXPORTING i_action = 'A04' i_refdoc = 'R02' i_notree = 'X' i_no_auth_check = ' ' i_deadend = 'X' i_skip_first_screen = 'X' i_okcode = 'OK_GO' i_mblnr = lv_mblnr * i_mjahr = list-mjahr * i_zeile = list-zeile .

SFCS_FA_PARAMETER_SET CALL FUNCTION 'SFCS_FA_PARAMETER_SET' EXPORTING function = function parameter = parameter value = ls_pn_head direction = 'I' EXCEPTIONS generation_error = 1 OTHERS = 2.

SFCS_FA_TEST_FUNCTION CALL FUNCTION 'SFCS_FA_TEST_FUNCTION' EXPORTING funcname = function * SEQUENCE = run_time_on = lv_run_time_on * TRACE_SPECIAL_UNITS = EXCEPTIONS cancelled = 1 generation_error = 2 OTHERS = 3 .

/LIME/QUERY_PN CALL FUNCTION '/LIME/QUERY_PN' EXPORTING is_pn_head = ls_pn_head * I_READ_FROM_ARCHIVE = IMPORTING et_head = p_lt_head et_bapiret = lt_bapiret e_rc_severity = lv_rc_severity et_log_quan = p_lt_log_quan et_stock = p_lt_stock et_loc = p_lt_loc .

ASH_MM_MATBEL_READ CALL FUNCTION 'ASH_MM_MATBEL_READ' EXPORTING i_borident = ls_borident TABLES et_mseg = p_lt_mseg EXCEPTIONS OTHERS = 4.

AIND_NAMETAB_GET CALL FUNCTION 'AIND_NAMETAB_GET' EXPORTING i_archindex = p_ainstr i_reffields_only = 'X' TABLES t_nametab = lt_nametab EXCEPTIONS OTHERS = 1.

AIND_NAMETAB_GET CALL FUNCTION 'AIND_NAMETAB_GET' EXPORTING i_archindex = gs_aind_str1-archindex i_reffields_only = 'X' TABLES t_nametab = lt_nametab EXCEPTIONS OTHERS = 1.

ARCHIVE_OPEN_FOR_READ





CALL FUNCTION 'ARCHIVE_OPEN_FOR_READ' EXPORTING object = 'MM_MATBEL' IMPORTING archive_handle = l_handle TABLES archive_files = so_files selected_files = lt_admi_files.

ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = l_handle EXCEPTIONS end_of_file = 1.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' "#EC * EXPORTING archive_handle = l_handle record_structure = 'MSEG' all_records_of_object = 'X' automatic_conversion = 'X' TABLES table = lt_mseg_r[] EXCEPTIONS end_of_object = 1 internal_error = 2 wrong_access_to_archive = 3 OTHERS = 4.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = l_handle.

ARCHIVE_ADMIN_POPUP_DOCUMENTS CALL FUNCTION 'ARCHIVE_ADMIN_POPUP_DOCUMENTS' EXPORTING object = 'MM_MATBEL' TABLES selected_files = lt_admi_files EXCEPTIONS cancelled_by_user = 1 no_files_selected = 2.

ARCHIVE_READ_OBJECT CALL FUNCTION 'ARCHIVE_READ_OBJECT' EXPORTING object = 'MM_MATBEL' archivkey = ps_archive-archivekey offset = ps_archive-archiveofs IMPORTING archive_handle = lv_handle EXCEPTIONS OTHERS = 1.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' "#EC * EXPORTING archive_handle = lv_handle record_structure = 'MSEG' all_records_of_object = 'X' automatic_conversion = 'X' TABLES table = lt_mseg[] EXCEPTIONS end_of_object = 1 internal_error = 2 wrong_access_to_archive = 3 OTHERS = 4.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = lv_handle EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 OTHERS = 3.

AS_API_READ CALL FUNCTION 'AS_API_READ' "#EC * EXPORTING i_fieldcat = -archindex i_selections = ls_objkey IMPORTING e_result = ct_archive[] EXCEPTIONS parameters_invalid = 1 no_infostruc_found = 2 OTHERS = 3.

SELECT_OPTIONS_RESTRICT CALL FUNCTION 'SELECT_OPTIONS_RESTRICT' EXPORTING restriction = ls_restriction EXCEPTIONS too_late = 1 repeated = 2 selopt_without_options = 3 selopt_without_signs = 4 invalid_sign = 5 empty_option_list = 6 invalid_kind = 7 repeated_kind_a = 8 OTHERS = 9.



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 /CWM/CHECK_MSEG_LIME or its description.