SAP Reports / Programs

BUSOBARCH SAP ABAP Report - BDT: Archiving - Archiving Program







BUSOBARCH is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for To create archive files...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 BUSOBARCH 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 BUSOBARCH. "Basic submit
SUBMIT BUSOBARCH AND RETURN. "Return to original report after report execution complete
SUBMIT BUSOBARCH 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: $O027 = Bank Area
Selection Text: $O026 = To
Selection Text: $O025 = Payment card type
Selection Text: $O024 = No. Variable Trans.
Selection Text: $O023 = Business Partner
Selection Text: $O022 = Company Code
Selection Text: $O021 = Grant
Selection Text: $O020 = Funded Program
Selection Text: $O019 = FM Area
Selection Text: $O018 = Budget Period
Selection Text: $O017 = Business Partner
Selection Text: $O016 = Contract Account
Selection Text: $O015 = Prepaid Account
Selection Text: $O014 = Provider Contract
Selection Text: $O013 = Master Agreement
Selection Text: $O012 = Client
Selection Text: $O011 = Contract Number
Selection Text: $O010 = Commission Application
Selection Text: $O009 = Business Partner
Selection Text: $O008 = Role definition cat.
Selection Text: $O007 = Relationship Cat.
Selection Text: $O006 = Business Partner
Selection Text: $O005 = Standing Order No.
Selection Text: $O004 = Bank Area
Selection Text: $O028 = Plan number of the retirement
Selection Text: P_WRITST = D .
Selection Text: P_WRIPRD = D .
Selection Text: P_SNAP = D .
Selection Text: P_PROT_O = D .
Selection Text: P_PROT = D .
Selection Text: P_DEST = D .
Selection Text: P_DELTST = D .
Selection Text: P_COMENT = D .
Selection Text: P_AR_ILM = D .
Selection Text: $O043 = RE Key
Selection Text: $O042 = RE Key
Selection Text: $O041 = Object Number
Selection Text: $O040 = RE Key





Selection Text: $O039 = RE Key
Selection Text: $O038 = RE Key
Selection Text: $O037 = Contract Number
Selection Text: $O036 = Company Code
Selection Text: $O035 = RE Key
Selection Text: $O034 = RE Key
Selection Text: $O033 = RE Key
Selection Text: $O032 = RE Key
Selection Text: $O031 = ArchObj
Selection Text: $O030 = RE Key
Selection Text: $O029 = Functional Area
Selection Text: $D000 = General Data
Selection Text: $D001 = Company Code Data
Selection Text: $D001001 = Company Code
Selection Text: $D002 = Financial Product
Selection Text: $D002001 = Dunning Area
Selection Text: $D003 = Dunning Area Data
Selection Text: $D003001 = Company Code
Selection Text: $D003002 = Dunning Area
Selection Text: $D004 = Billing Group Data
Selection Text: $D004001 = Company Code
Selection Text: $D005 = FSCM Credit Segment
Selection Text: $D005001 = Credit Segment
Selection Text: $D006 = Differentiation
Selection Text: $D006001 = Differentiation Criterion
Selection Text: $O001 = Internal Acct Number
Selection Text: $O002 = Bank Area
Selection Text: $O003 = Internal Acct Number
Title: BDT: Archiving - Archiving Program
Text Symbol: 026 = Upd. Run
Text Symbol: 025 = Run Started By:
Text Symbol: 015 = Stop Time
Text Symbol: 014 = Stop Date
Text Symbol: 013 = StartTime
Text Symbol: 012 = Start Date
Text Symbol: 009 = Detail Log
Text Symbol: 008 = Reasn
Text Symbol: 007 = Object ID
Text Symbol: 006 = The following data will not be archived





Text Symbol: 005 = You have not selected any data records for archiving
Text Symbol: 004 = will be/were archived
Text Symbol: 003 = Data recs
Text Symbol: 002 = Data recs
Text Symbol: 001 = Test Run
Text Symbol: 030 = archived successfully
Text Symbol: 031 = could not be archived
Text Symbol: 049 = Archiving Session Statistics
Text Symbol: 050 = Number of objects read
Text Symbol: 051 = Of which are archivable and deletable:
Text Symbol: 052 = copiable and non-deletable:
Text Symbol: 053 = non-archivable:
Text Symbol: 054 = Reasons data not archived (several reasons possible)
Text Symbol: 055 = Due To
Text Symbol: 056 = Dependencies:
Text Symbol: 057 = &1% (&2 of &3) of the Objects Were Archived
Text Symbol: 058 = &2 Objects Were Archived
Text Symbol: 062 = Processed/Created Archiving Session:
Text Symbol: B01 = General Selections
Text Symbol: B02 = Other Selections
Text Symbol: B03 = Program Control


INCLUDES used within this REPORT BUSOBARCH

INCLUDE BUSOBARCH_TOP.
INCLUDE BUSGENC2.
INCLUDE BUSGENC1.
INCLUDE BUSARCHDELF01.


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:

TR_GET_SAPR3_TYPE CALL FUNCTION 'TR_GET_SAPR3_TYPE' TABLES tt_cvers = gt_cvers EXCEPTIONS no_tsyst_entry = 1 OTHERS = 2.

BUS_TBZ1_SELECT_ALL CALL FUNCTION 'BUS_TBZ1_SELECT_ALL' TABLES t_tbz1 = gt_tbz1.

BDT_TBZ1F_GET CALL FUNCTION 'BDT_TBZ1F_GET' EXPORTING iv_objcn = gc_objcn_buss iv_objap = gv_objap TABLES et_tbz1f = lt_tbz1f EXCEPTIONS not_found = 1 OTHERS = 2.

ARCHIVE_PROTOCOL_INIT CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT' EXPORTING i_detailprotocol = p_prot.

BAL_DB_SAVE CALL FUNCTION 'BAL_DB_SAVE' EXPORTING i_in_update_task = ' ' i_t_log_handle = lt_log_handle EXCEPTIONS OTHERS = 0.

ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING archive_handle = gv_archive_handle object_id = object EXCEPTIONS OTHERS = 1.




PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-057 i_processed = gv_archived_objects i_total = lv_archive_total.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-058 i_processed = gv_archived_objects.

ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' "Objekt speichern EXPORTING archive_handle = gv_archive_handle IMPORTING end_of_retention = lv_eort EXCEPTIONS termination_requested = 1 data_object_not_saved = 6 OTHERS = 7.

BUPA_NUMBERS_GET CALL FUNCTION 'BUPA_NUMBERS_GET' EXPORTING iv_partner = lv_partner IMPORTING ev_partner_guid = lv_partner_guid.

CRM_STATUS_UPDATE_ON_COMMIT CALL FUNCTION 'CRM_STATUS_UPDATE_ON_COMMIT'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING I_OBJECT = gt_arch-guid I_TEXT = text-030 i_msgtype = 1.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = gt_arch-value i_text = text-030 i_msgtype = 1.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = gt_arch-value i_text = text-031 i_msgtype = 2.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = gt_not_arch-value i_text = gt_not_arch-text i_msgtype = 2 i_msgid = gt_not_arch-id i_msgno = gt_not_arch-number i_msgv1 = gt_not_arch-message_v1 i_msgv2 = gt_not_arch-message_v2 i_msgv3 = gt_not_arch-message_v3 i_msgv4 = gt_not_arch-message_v4.

ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.



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 BUSOBARCH or its description.