RFMMDSUB_COPY is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program copies the substrings of one subdivision ID to another subdivision ID having the same definition...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 RFMMDSUB_COPY into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
FMMDFNCOPY - Copy functional area substrings
FMMDCICOPY - Copy commitment item substrings
FMMDFDCOPY - Copy fund substrings
FMMDFCCOPY - Copy funds center substrings
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.
Selection Text: P_TEST = D .
Selection Text: P_SUB5 = D .
Selection Text: P_SUB4 = D .
Selection Text: P_SUB3 = D .
Selection Text: P_SUB2 = D .
Selection Text: P_SUB1 = D .
Selection Text: P_STRTRG = D .
Selection Text: P_STRSRC = D .
Selection Text: P_ERROR = Only errors
Title: Copy master data substrings
Text Symbol: 014 = source and target lengths are different
Text Symbol: 013 = For substring
Text Symbol: 012 = does not exist
Text Symbol: 011 = The substring
Text Symbol: 010 = Copy values
Text Symbol: 009 = Select Subdivision IDs
Text Symbol: 008 = Select Substrings
Text Symbol: 007 = Target Subdivision ID
Text Symbol: 006 = Source Subdivision ID
Text Symbol: 005 = functional area
Text Symbol: 004 = fund
Text Symbol: 003 = funds center
Text Symbol: 002 = commitment item
Text Symbol: 001 = Copy substring values for
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
FM_COPY_SUBSTRING_CHECK_LOG CALL FUNCTION 'FM_COPY_SUBSTRING_CHECK_LOG' EXPORTING i_masdat = l_masdat i_strsrc = p_strsrc i_strtrg = p_strtrg i_sub1 = p_sub1 i_sub2 = p_sub2 i_sub3 = p_sub3 i_sub4 = p_sub4 i_sub5 = p_sub5 i_error = p_error i_test = p_test EXCEPTIONS error = 1 OTHERS = 2.
HELP_VALUES_GET_WITH_TABLE CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE' IMPORTING select_value = p_p_strvalue TABLES fields = l_t_fields valuetab = l_t_valuetab EXCEPTIONS field_not_in_ddic = 1 more_then_one_selectfield = 2 no_selectfield = 3 OTHERS = 4.
FM_SUBSTRING_LENGTH_SEQUENCE CALL FUNCTION 'FM_SUBSTRING_LENGTH_SEQUENCE' EXPORTING i_masdatid = l_masdat i_strid = p_strsrc i_subid = p_l_sub IMPORTING e_sublen = l_lensrc EXCEPTIONS db_failure = 1 OTHERS = 2.
FM_SUBSTRING_LENGTH_SEQUENCE CALL FUNCTION 'FM_SUBSTRING_LENGTH_SEQUENCE' EXPORTING i_masdatid = l_masdat i_strid = p_strtrg i_subid = p_l_sub IMPORTING e_sublen = l_lentrg EXCEPTIONS db_failure = 1 OTHERS = 2.
FM_SUBSTRING_CHECK_AUTHORITY CALL FUNCTION 'FM_SUBSTRING_CHECK_AUTHORITY' EXPORTING i_masdat = p_l_masdat i_subnum = p_l_sub.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.