SAP Reports / Programs | Materials Management | Inventory Management(MM-IM) SAP MM

RM07ICN1 SAP ABAP Report - Batch Input: Create Physical Inventory Documents For Cycle Counting







RM07ICN1 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Batch input: Creating physical inventory documents for cycle counting You use this report to create: 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 RM07ICN1 into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

MICN - Btch Inpt:Ph.Inv.Docs.for Cycle Ctng


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 RM07ICN1. "Basic submit
SUBMIT RM07ICN1 AND RETURN. "Return to original report after report execution complete
SUBMIT RM07ICN1 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: XBLNI = Phys. Inventory Ref.
Selection Text: R_WERKS = Plant
Selection Text: R_MTART = Material Type
Selection Text: R_MATNR = Material
Selection Text: R_MATKL = Material Group
Selection Text: R_LGPBE = Storage Bin Description
Selection Text: R_LGORT = Storage Location
Selection Text: R_CHARG = Batch
Selection Text: INVNU = Physical Inventory Number
Title: Batch Input: Create Physical Inventory Documents For Cycle Counting
Text Symbol: C01 = For stock mgmt unit(s), no document generated:
Text Symbol: B04 = the material control record):
Text Symbol: B03 = planned date comes after the current fiscal year in
Text Symbol: B02 = for the following plants (the fiscal year for this
Text Symbol: B01 = No entry could be created for the planned count date
Text Symbol: A01 = For stock mgmt unit(s), a phys. inv. doc. can be generated:
Text Symbol: 056 = Planned Actual Inventory Count Date (User)
Text Symbol: 055 = PI Date
Text Symbol: 054 = Note
Text Symbol: 053 = Planned Count Date < Current Date
Text Symbol: 052 = Selection Criteria
Text Symbol: 051 = Distribute Phys. Inv. Diffs
Text Symbol: D01 = For stock mgmt unit(s), physical inventory must be completed:
Text Symbol: F01 = Plnt|SLoc|Material |Batch |Valuation |Comment
Text Symbol: FT1 = Accounting View Missing ;;
Text Symbol: FT2 = WM Storage Location ;;
Text Symbol: FT3 = Material Type Unknown;;
Text Symbol: FT4 = Marked for Deletion ;;
Text Symbol: FT5 = No Quantity Update ;;
Text Symbol: FT6 = Value-Based Inventory Mgmt;;
Text Symbol: FT7 = Error in V.-O. Mat. Determ.;;
Text Symbol: L01 = Plnnd Date|Ph.In.Date|I|Plnt|SLoc|Material |Batch |S|Stor. Bin |Mat. Group
Text Symbol: L02 = Plnnd Date|I|Plnt|SLoc|Material |Batch |S|Stor. Bin |Mat. Group
Text Symbol: OI1 = IS-OIL Excise Duty Revaluation
Text Symbol: 050 = Enter grouping criterion in document header
Text Symbol: 001 = Data in Phys. Inv. Docmt Header
Text Symbol: 002 = Stock Types ------------------ Continuous Inventory ---------------------------
Text Symbol: 003 = Unrestricted Use





Text Symbol: 004 = Incl. Materials Subj. to Phys. Inv.
Text Symbol: 005 = In Quality Inspection
Text Symbol: 006 = Incl. Batches Subj. to Phys. Inv.
Text Symbol: 007 = Batch Input Session
Text Symbol: 008 = Sort by
Text Symbol: 009 = Storage Bin Description
Text Symbol: 010 = Material Group
Text Symbol: 011 = Generate Batch Input
Text Symbol: 012 = Issue Log
Text Symbol: 013 = Name of Session
Text Symbol: 014 = Max. No. of Items
Text Symbol: 015 = Plnt|Fiscal Year |Planned Count Date
Text Symbol: 016 = New document created when group changed for sorting purposes;;
Text Symbol: 018 = Blocked
Text Symbol: 019 = Planned Count Date From ;;
Text Symbol: 020 = To ;;
Text Symbol: 021 = Materials Marked for Deletion
Text Symbol: 022 = Set Posting Block
Text Symbol: 024 = Freeze Book Inv.Bal.
Text Symbol: 030 = Threshold Value for Stock
Text Symbol: 031 = Only Materials with Zero Stock
Text Symbol: 032 = Value-Only Matls
Text Symbol: 033 = Phys. Inventory Ref.
Text Symbol: 034 = Stock Level
Text Symbol: 035 = Only Materials W/o Zero Stock
Text Symbol: 036 = Only Materials with Negative Stock
Text Symbol: 037 = Exclude from Selection
Text Symbol: 038 = Stock Types
Text Symbol: 039 = Wareh
Text Symbol: 040 = Qual. Inspection
Text Symbol: 041 = Blocked


INCLUDES used within this REPORT RM07ICN1

INCLUDE RM07IBDC_ALV.


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:

DATE_CONVERT_TO_FACTORYDATE CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE' EXPORTING correct_option = '+' * &001 begin: Anpassung an Zeitzonen * DATE = SY-DATUM date = sy-datlo * &001 end factory_calendar_id = xwebu-fabkl IMPORTING factorydate = xwebu-actud EXCEPTIONS calendar_buffer_not_loadable = 02 date_after_range = 04 date_before_range = 06 date_invalid = 08 factory_calendar_not_found = 10.

DATE_CONVERT_TO_FACTORYDATE CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE' EXPORTING correct_option = '+' date = gidat factory_calendar_id = xwebu-fabkl IMPORTING factorydate = xwebu-frstd workingday_indicator = workday EXCEPTIONS calendar_buffer_not_loadable = 02 date_after_range = 04 date_before_range = 06 date_invalid = 08 factory_calendar_not_found = 10.

FACTORYDATE_CONVERT_TO_DATE





CALL FUNCTION 'FACTORYDATE_CONVERT_TO_DATE' EXPORTING factorydate = xwebu-frstd factory_calendar_id = xwebu-fabkl IMPORTING date = gidat EXCEPTIONS calendar_buffer_not_loadable = 02 factorydate_after_range = 04 factorydate_before_range = 06 factorydate_invalid = 08 factory_calendar_id_missing = 10 factory_calendar_not_found = 12.

DATE_CONVERT_TO_FACTORYDATE CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE' EXPORTING correct_option = '+' date = gbdat factory_calendar_id = xwebu-fabkl IMPORTING factorydate = xwebu-lastd EXCEPTIONS calendar_buffer_not_loadable = 02 date_after_range = 04 date_before_range = 06 date_invalid = 08 factory_calendar_not_found = 10.

MARV_SINGLE_READ CALL FUNCTION 'MARV_SINGLE_READ' EXPORTING bukrs = xwebu-bukrs IMPORTING wmarv = marv EXCEPTIONS not_found = 1 wrong_call = 2 OTHERS = 3.

PERIOD_DAY_DETERMINE CALL FUNCTION 'PERIOD_DAY_DETERMINE' EXPORTING i_gjahr = marv-lfgja i_monat = marv-lfmon i_periv = xwebu-periv IMPORTING e_fday = xwebu-fdyea EXCEPTIONS error_period = 01 error_period_version = 02 firstday_not_defined = 03 period_not_defined = 04.

PERIOD_DAY_DETERMINE CALL FUNCTION 'PERIOD_DAY_DETERMINE' EXPORTING i_gjahr = marv-lfgja i_monat = marv-lfmon i_periv = xwebu-periv IMPORTING e_fday = datum_int EXCEPTIONS error_period = 01 error_period_version = 02 firstday_not_defined = 03 period_not_defined = 04.

DATE_CONVERT_TO_FACTORYDATE CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE' EXPORTING correct_option = '-' date = datum_int factory_calendar_id = xwebu-fabkl IMPORTING factorydate = xwebu-ldyea EXCEPTIONS calendar_buffer_not_loadable = 02 date_after_range = 04 date_before_range = 06 date_invalid = 08 factory_calendar_not_found = 10.

DATE_CONVERT_TO_FACTORYDATE CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE' EXPORTING correct_option = '+' date = m_dlinl factory_calendar_id = xwebu-fabkl IMPORTING factorydate = abs_dlinl EXCEPTIONS calendar_buffer_not_loadable = 02 date_after_range = 04 date_before_range = 06 date_invalid = 08 factory_calendar_not_found = 10.

FACTORYDATE_CONVERT_TO_DATE CALL FUNCTION 'FACTORYDATE_CONVERT_TO_DATE' EXPORTING factorydate = abs_dlinl factory_calendar_id = xwebu-fabkl IMPORTING date = tab-gpdat EXCEPTIONS calendar_buffer_not_loadable = 02 factorydate_after_range = 04 factorydate_before_range = 06 factorydate_invalid = 08 factory_calendar_id_missing = 10 factory_calendar_not_found = 12.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_ALERT' info = lv_info IMPORTING RESULT = x_icon_dis EXCEPTIONS icon_not_found = 1 outputfield_too_short = 2 OTHERS = 3.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = gv_repid i_callback_user_command = lv_form is_layout = ls_layo it_fieldcat = lt_fcat it_events = lt_evts1 TABLES t_outtab = gt_outtab_1 EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = gv_repid i_structure_name = 'SCM_RM07IBDC_ALV1' CHANGING ct_fieldcat = xt_fcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = xt_eventtab EXCEPTIONS list_type_wrong = 1 OTHERS = 2.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = gv_repid i_callback_user_command = lv_form is_layout = ls_layo it_fieldcat = lt_fcat it_events = lt_evts2 TABLES t_outtab = gt_outtab_2 EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = gv_repid i_structure_name = 'SCM_RM07IBDC_ALV2' CHANGING ct_fieldcat = xt_fcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = xt_eventtab EXCEPTIONS list_type_wrong = 1 OTHERS = 2.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = gv_repid i_callback_user_command = lv_form is_layout = ls_layo it_fieldcat = lt_fcat it_events = lt_evts3 TABLES t_outtab = gt_outtab_3 EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = gv_repid i_structure_name = 'SCM_RM07ICN1_ALV3' CHANGING ct_fieldcat = xt_fcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = xt_eventtab EXCEPTIONS list_type_wrong = 1 OTHERS = 2.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = gv_repid i_callback_user_command = lv_form is_layout = ls_layo it_fieldcat = lt_fcat it_events = lt_evts4 TABLES t_outtab = gt_outtab_4 EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = gv_repid i_structure_name = 'SCM_RM07ICN1_ALV4' CHANGING ct_fieldcat = xt_fcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.




REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = xt_eventtab EXCEPTIONS list_type_wrong = 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 RM07ICN1 or its description.