SAP Reports / Programs

BUPA_PREPARE_DA SAP ABAP Report - Business Partner: Set Deletion/Archiving Flag







BUPA_PREPARE_DA is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program allows you to transfer business partners to archiving or deletion...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 BUPA_PREPARE_DA 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

BUPA_PRE_DA - Flag Business Partner for Deletion


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 BUPA_PREPARE_DA. "Basic submit
SUBMIT BUPA_PREPARE_DA AND RETURN. "Return to original report after report execution complete
SUBMIT BUPA_PREPARE_DA 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: USEDEF = Deletion/Archivibility Check
Selection Text: TEST = Test Run, Check Only
Selection Text: SETAN = Set Flag
Selection Text: SAVE = Save Application Log
Selection Text: RESAN = Reset Flag
Selection Text: PARTNER = Business Partner
Selection Text: LOG = With Application Log
Selection Text: FILTER = Filter
Selection Text: DIFF = Further Differentiation
Selection Text: DELE = To Be Deleted
Selection Text: ARCH = To Be Archived
Title: Business Partner: Set Deletion/Archiving Flag
Text Symbol: P04 = No
Text Symbol: P02 = Yes
Text Symbol: P01 = Would you like to change the selected business partners?
Text Symbol: P00 = Business Partners' Deletion/Archiving Flag
Text Symbol: M04 = 'Not Flagged for Deletion'
Text Symbol: M03 = 'Flagged for Deletion'
Text Symbol: M02 = 'Not Flagged for Archiving'
Text Symbol: M01 = 'Flagged for Archiving'
Text Symbol: B04 = Control
Text Symbol: B03 = Deletion/Archiving Flag
Text Symbol: B02 = Variant for Additional Restrictions
Text Symbol: B01 = Select Business Partner
Text Symbol: 004 = System Status"Can Be Archived"
Text Symbol: 003 = To Be Deleted
Text Symbol: 002 = System Status "Can Be Deleted"
Text Symbol: 001 = To Be Archived


INCLUDES used within this REPORT BUPA_PREPARE_DA

INCLUDE BUPA_PREPARE_DA_TOP.
INCLUDE OBARCH_CREATE_LOGF01.
INCLUDE LBUD0_ARCHF02.
INCLUDE OBARCH_ERROR_HANDLERF01.


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:

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-p00 text_question = text-p01 text_button_1 = text-p02 icon_button_1 = 'ICON_CHECKED' text_button_2 = text-p04 icon_button_2 = 'ICON_INCOMPLETE' default_button = '2' display_cancel_button = ' ' start_column = 25 start_row = 6 IMPORTING answer = gv_answer EXCEPTIONS text_not_found = 1 OTHERS = 2.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_s_msg = gs_msg_bal i_log_handle = gv_log_handle EXCEPTIONS OTHERS = 0.

CRM_STATUS_UPDATE_ON_COMMIT CALL FUNCTION 'CRM_STATUS_UPDATE_ON_COMMIT'.

BAPI_TRANSACTION_COMMIT CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' EXPORTING WAIT = gc_x.

CRM_STATUS_BUFFER_REFRESH CALL FUNCTION 'CRM_STATUS_BUFFER_REFRESH'.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_s_msg = gs_msg_bal i_log_handle = gv_log_handle EXCEPTIONS OTHERS = 0.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_s_msg = gs_msg_bal i_log_handle = iv_log_handle EXCEPTIONS OTHERS = 0.

CRM_STATUS_READ_MULTI CALL FUNCTION 'CRM_STATUS_READ_MULTI' EXPORTING ONLY_ACTIVE = gc_x NO_BUFFER_FILL = gc_x TABLES OBJNR_TAB = lt_objnr_tab STATUS = lt_status.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_s_msg = gs_msg_bal i_log_handle = gv_log_handle EXCEPTIONS OTHERS = 0.

BUPA_CENTRAL_CHANGE CALL FUNCTION 'BUPA_CENTRAL_CHANGE' EXPORTING iv_partner = lv_partner is_data = ls_data is_data_x = ls_datax TABLES et_return = lt_return.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_s_msg = gs_msg_bal i_log_handle = gv_log_handle EXCEPTIONS OTHERS = 0.

BAL_DSP_PROFILE_NO_TREE_GET CALL FUNCTION 'BAL_DSP_PROFILE_NO_TREE_GET' IMPORTING e_s_display_profile = gs_display_profile EXCEPTIONS OTHERS = 1.

BAL_DB_RELOAD CALL FUNCTION 'BAL_DB_RELOAD' EXPORTING I_T_LOG_HANDLE = lt_log_handle EXCEPTIONS NO_LOGS_SPECIFIED = 1 LOG_NOT_FOUND = 2 OTHERS = 3.

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING i_s_display_profile = gs_display_profile i_t_log_handle = lt_log_handle EXCEPTIONS OTHERS = 1.

BUPA_NUMBERS_READ CALL FUNCTION 'BUPA_NUMBERS_READ' EXPORTING iv_partner = lv_partner IMPORTING ev_partner_guid = lv_partner_guid EXCEPTIONS OTHERS = 0.

BUPA_NUMBERS_READ CALL FUNCTION 'BUPA_NUMBERS_READ' EXPORTING iv_partner = lv_partner IMPORTING ev_partner_guid = lv_partner_guid EXCEPTIONS OTHERS = 0.

CRM_STATUS_OBJECT_READ CALL FUNCTION 'CRM_STATUS_OBJECT_READ' EXPORTING objnr = ls_status_object-objnr EXCEPTIONS object_not_found = 1 OTHERS = 2.

CRM_STATUS_OBJECT_CREATE CALL FUNCTION 'CRM_STATUS_OBJECT_CREATE' EXPORTING objnr = ls_status_object-objnr obtyp = 'BUS' EXCEPTIONS OTHERS = 6.

CRM_STATUS_CHANGE_INTERN





CALL FUNCTION 'CRM_STATUS_CHANGE_INTERN' EXPORTING objnr = ls_status_object-objnr TABLES status = it_status EXCEPTIONS object_not_found = 1 status_inconsistent = 2 status_not_allowed = 3 OTHERS = 4.

CRM_STATUS_CHANGE_INTERN CALL FUNCTION 'CRM_STATUS_CHANGE_INTERN' EXPORTING objnr = ls_status_object-objnr TABLES status = it_status EXCEPTIONS object_not_found = 1 status_inconsistent = 2 status_not_allowed = 3 OTHERS = 4.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_s_msg = gs_msg_bal i_log_handle = gv_log_handle EXCEPTIONS OTHERS = 0.



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