RFTBPCD2 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report determines all addresses that were assigned once for one or several business partners and outputs all change documents of these addresses...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 RFTBPCD2 into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
BPCG - TRGP: Change Documents Addresses
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_DATE = D Date
Selection Text: P_PARTNR = D Partner
Selection Text: P_USER = User
Title: Business Partner: Change Documents - Addresses
Text Symbol: 001 = Address ID
Text Symbol: 002 = Eff. from
Text Symbol: BPN = Business Partner
Text Symbol: CDC = Change
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
TB_CD_MINIMAL_DATE_DETERMINE CALL FUNCTION 'TB_CD_MINIMAL_DATE_DETERMINE' EXPORTING date = p_date-low option = p_date-option sign = p_date-sign IMPORTING minimal_date = hlp_date EXCEPTIONS OTHERS = 1.
TB_CD_NOT_FOUND_MESSAGE CALL FUNCTION 'TB_CD_NOT_FOUND_MESSAGE'.
CHANGEDOCUMENT_READ_HEADERS CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS' EXPORTING objectclass = cd_objectclass_bp objectid = gt_hlp-hlp_objectid username = gt_hlp-hlp_user date_of_change = gt_hlp-hlp_date TABLES i_cdhdr = lt_tcdhdr EXCEPTIONS OTHERS = 1.
BPAR_R_ADDRESS_REFERENCES CALL FUNCTION 'BPAR_R_ADDRESS_REFERENCES' EXPORTING partner = hlp_partnr TABLES t_bpdadref = t_bpdadref EXCEPTIONS OTHERS = 1.
CHANGEDOCUMENT_READ_POSITIONS CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS' EXPORTING * ARCHIVE_HANDLE = 0 changenumber = cdhdr-changenr * TABLEKEY = ' ' tablename = 'BP030' * IMPORTING * HEADER = TABLES editpos = tcdshw EXCEPTIONS no_position_found = 1 wrong_access_to_archive = 2 OTHERS = 3.
CHANGEDOCUMENT_READ_HEADERS CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS' EXPORTING date_of_change = hlp_date objectclass = cd_objectclass_adr objectid = hlp_objectid_a username = hlp_user TABLES i_cdhdr = tcdhdr_a EXCEPTIONS OTHERS = 1.
TB_CD_POSITIONS_WRITE CALL FUNCTION 'TB_CD_POSITIONS_WRITE' EXPORTING header = tcdhdr_a EXCEPTIONS OTHERS = 1.
TB_CD_TOP_OF_PAGE CALL FUNCTION 'TB_CD_TOP_OF_PAGE' EXPORTING header = tcdhdr_a EXCEPTIONS OTHERS = 1.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
RFTBPCD2 - Business Partner: Change Documents - Addresses RFTBPCD2 - Business Partner: Change Documents - Addresses RFTBPCD1 - Business Partner: Change documents RFTBPCD1 - Business Partner: Change documents RFTBP030 - Data Transfer from Table BUT030 to BUT021_fs RFTBP030 - Data Transfer from Table BUT030 to BUT021_fs