BPCD0002 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 for one or several business partners which were once assigned and issues all change documents for the 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 BPCD0002 into the relevant SAP transactions such as SE38 or SE80
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 = HLP_OBJECTID USERNAME = HLP_USER DATE_OF_CHANGE = HLP_DATE TABLES I_CDHDR = 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.
BPCD0002 - Business Partner: Change Documents - Addresses BPCD0002 - Business Partner: Change Documents - Addresses BPCD0001 - Business Partner: Change Documents BPCD0001 - Business Partner: Change Documents BPCATALOG_ADD_TO_MSG_LOGF01 - BPCATALOGADDTOMSGLOGF01 BPCARRYF - Analysis Program: Budget Carryforward - Projects