SAP Reports / Programs | Supplier Relationship Management | Enterprise Buyer | Enterprise/Business Partner Management(SRM-EBP-ADM) SAP SRM

BBP_BUPA_XPRA_TMP_TO_BUPA SAP ABAP Report - Program BBP_BUPA_XPRA_TMP_TO_BUPA







BBP_BUPA_XPRA_TMP_TO_BUPA is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Using the report, the conversion is carried out for the integration of the temporary tables of the EBP Business Partner into the business partner in CRM online...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 BBP_BUPA_XPRA_TMP_TO_BUPA 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 BBP_BUPA_XPRA_TMP_TO_BUPA. "Basic submit
SUBMIT BBP_BUPA_XPRA_TMP_TO_BUPA AND RETURN. "Return to original report after report execution complete
SUBMIT BBP_BUPA_XPRA_TMP_TO_BUPA VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Program BBP_BUPA_XPRA_TMP_TO_BUPA
Text Symbol: 001 = Start of conversion of temporary tables of BBP Business Partner
Text Symbol: 003 = BP not created because of the above error
Text Symbol: 005 = The organization given for the new contact person does not exist
Text Symbol: 006 = Category data for given organization cannot be found
Text Symbol: 007 = The "organization" given for the new contact person is not an organization


INCLUDES used within this REPORT BBP_BUPA_XPRA_TMP_TO_BUPA

No INCLUDES are used within this REPORT code!


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:

BUPA_NUMBERS_GET CALL FUNCTION 'BUPA_NUMBERS_GET' EXPORTING * IV_PARTNER = iv_partner_guid = gv_check_guid * IV_RESET_BUFFER_ON_COMMIT = 'X' IMPORTING ev_partner = lv_existing_partner.

BAPI_TRANSACTION_COMMIT CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' IMPORTING return = gs_bapi_return.

BAPI_BUPA_BBP0010_CREATE CALL FUNCTION 'BAPI_BUPA_BBP0010_CREATE' EXPORTING businesspartner = iv_businesspartner data = ls_data_10 TABLES return = gt_bapi_return.

BAPI_BUPA_BBP0020_ADD CALL FUNCTION 'BAPI_BUPA_BBP0020_ADD' EXPORTING businesspartner = iv_businesspartner data = ls_data_20 TABLES return = gt_bapi_return.

BAPI_BUPA_BBP0030_ADD CALL FUNCTION 'BAPI_BUPA_BBP0030_ADD' EXPORTING businesspartner = iv_businesspartner data = ls_data_30 TABLES return = gt_bapi_return.

BAPI_BUPA_BBP0040_ADD CALL FUNCTION 'BAPI_BUPA_BBP0040_ADD' EXPORTING businesspartner = iv_businesspartner data = ls_data_40 TABLES return = gt_bapi_return.

BAPI_BUPA_BBP0060_ADD CALL FUNCTION 'BAPI_BUPA_BBP0060_ADD' EXPORTING businesspartner = iv_businesspartner purcha_org = ls_pdorg data = ls_bbp_ven000 TABLES return = gt_bapi_return.

BAPI_BUPA_BANKDETAIL_ADD CALL FUNCTION 'BAPI_BUPA_BANKDETAIL_ADD' EXPORTING businesspartner = iv_businesspartner bankdetaildata = ls_bbp_org_bankdetail TABLES return = gt_bapi_return.

BAPI_IDENTIFICATION_ADD CALL FUNCTION 'BAPI_IDENTIFICATION_ADD' EXPORTING businesspartner = gv_businesspartner_o identificationcategory = 'BUP001' identificationnumber = duns_long identification = gs_ident TABLES return = gt_bapi_return.

TR_APPEND_LOG CALL FUNCTION 'TR_APPEND_LOG' TABLES xmsg = gt_prot EXCEPTIONS OTHERS = 0.

TR_FLUSH_LOG CALL FUNCTION 'TR_FLUSH_LOG'.

BUPA_CREATE_FROM_DATA_ADDON CALL FUNCTION 'BUPA_CREATE_FROM_DATA_ADDON' EXPORTING * IV_PARTNER = iv_category = gc_partnercat_organ * IV_GROUP = is_data = gs_org_central * IS_DATA_PERSON = is_data_organ = gs_org_central_organ * IS_DATA_GROUP = iv_partner_guid = lv_16_guid IMPORTING ev_partner = gv_businesspartner_o * EV_ADDRNUMBER = TABLES et_return = gt_bapi_return .

BAPI_BUPA_STATUS_ADD CALL FUNCTION 'BAPI_BUPA_STATUS_ADD' EXPORTING businesspartner = gv_businesspartner_o TABLES status = lt_status return = gt_bapi_return.

BUPA_ADDRESS_ADD CALL FUNCTION 'BUPA_ADDRESS_ADD' EXPORTING iv_partner = gv_businesspartner_o * IV_PARTNER_GUID = is_address = gs_org_address * IV_DUPLICATE_MESSAGE_TYPE = * IMPORTING * EV_ADDRNUMBER = * EV_ADDRGUID = TABLES it_adtel = gt_adtel_org it_adfax = gt_adfax_org it_adsmtp = gt_adsmtp_org et_return = gt_bapi_return .

BUPA_NUMBERS_GET CALL FUNCTION 'BUPA_NUMBERS_GET' EXPORTING iv_partner = gv_in_asp_org_partner IMPORTING EV_PARTNER_GUID = LV_PGUID_2.

BUP_PARTNER_TYPE_GET CALL FUNCTION 'BUP_PARTNER_TYPE_GET' EXPORTING i_partner = gv_in_asp_org_partner * I_PARTNERGUID = * I_XMEMORY = ' ' * I_XWA = ' ' * I_VALDT = SY-datum IMPORTING e_xorganisation = lv_xorganisation * E_XPERSON = * E_XGROUP = * E_TEXT = EXCEPTIONS OTHERS = 1 .

BUPA_CREATE_FROM_DATA_ADDON CALL FUNCTION 'BUPA_CREATE_FROM_DATA_ADDON' EXPORTING * IV_PARTNER = iv_category = gc_partnercat_person is_data = gs_asp_central is_data_person = gs_asp_central_person iv_partner_guid = lv_16_guid IMPORTING ev_partner = gv_businesspartner_cp TABLES et_return = gt_bapi_return .

BAPI_BUPA_STATUS_ADD CALL FUNCTION 'BAPI_BUPA_STATUS_ADD' EXPORTING businesspartner = gv_businesspartner_cp TABLES status = lt_status return = gt_bapi_return.

BUPA_ADDRESS_GET_NUMBERS





CALL FUNCTION 'BUPA_ADDRESS_GET_NUMBERS' EXPORTING IV_PARTNER = GV_IN_ASP_ORG_PARTNER IMPORTING EV_ADDRGUID = GV_ADDRESSGUID_R16 TABLES ET_RETURN = GT_BAPI_RETURN.

BAPI_BUPR_CONTP_CREATE CALL FUNCTION 'BAPI_BUPR_CONTP_CREATE' EXPORTING businesspartner = gv_in_asp_org_partner contactperson = gv_businesspartner_cp validfromdate = SY-datum validuntildate = '99991231' addressguid = gv_addressguid_c32 centraldata = gs_asp_address_central addressdata = gs_cp_addr TABLES bapiadtel = gt_adtel_cp bapiadfax = gt_adfax_cp bapiadsmtp = gt_adsmtp_cp return = gt_bapi_return.

BUPA_CREATE_FROM_DATA_ADDON CALL FUNCTION 'BUPA_CREATE_FROM_DATA_ADDON' EXPORTING * IV_PARTNER = iv_category = gc_partnercat_organ * IV_GROUP = is_data = gs_org_central * IS_DATA_PERSON = is_data_organ = gs_org_central_organ * IS_DATA_GROUP = iv_partner_guid = lv_16_guid IMPORTING ev_partner = gv_businesspartner_o * EV_ADDRNUMBER = TABLES et_return = gt_bapi_return .

BAPI_BUPA_STATUS_ADD CALL FUNCTION 'BAPI_BUPA_STATUS_ADD' EXPORTING businesspartner = gv_businesspartner_o TABLES status = lt_status return = gt_bapi_return.

BUPA_ADDRESS_ADD CALL FUNCTION 'BUPA_ADDRESS_ADD' EXPORTING iv_partner = gv_businesspartner_o is_address = gs_org_address TABLES it_adtel = gt_adtel_org it_adfax = gt_adfax_org it_adsmtp = gt_adsmtp_org et_return = gt_bapi_return .

BAPI_BUPA_CREATE_FROM_DATA CALL FUNCTION 'BAPI_BUPA_CREATE_FROM_DATA' EXPORTING partnercategory = gc_partnercat_person centraldata = gs_asp_central centraldataperson = gs_asp_central_person addressdata = gs_asp_address IMPORTING businesspartner = gv_businesspartner_cp TABLES return = gt_bapi_return.

BAPI_BUPA_STATUS_ADD CALL FUNCTION 'BAPI_BUPA_STATUS_ADD' EXPORTING businesspartner = gv_businesspartner_cp TABLES status = lt_status return = gt_bapi_return.

BUPA_ADDRESS_GET_NUMBERS CALL FUNCTION 'BUPA_ADDRESS_GET_NUMBERS' EXPORTING IV_PARTNER = GV_BUSINESSPARTNER_O IMPORTING EV_ADDRGUID = GV_ADDRESSGUID_R16 TABLES ET_RETURN = GT_BAPI_RETURN.

BAPI_BUPR_CONTP_CREATE CALL FUNCTION 'BAPI_BUPR_CONTP_CREATE' EXPORTING businesspartner = gv_businesspartner_o contactperson = gv_businesspartner_cp validfromdate = SY-datum validuntildate = '99991231' centraldata = gs_asp_address_central addressdata = gs_cp_addr TABLES bapiadtel = gt_adtel_cp bapiadfax = gt_adfax_cp bapiadsmtp = gt_adsmtp_cp return = gt_bapi_return.

BUPA_ADDRESS_CHANGE CALL FUNCTION 'BUPA_ADDRESS_CHANGE' EXPORTING iv_partner_guid = iv_partner_guid TABLES it_aduri = lt_uri it_aduri_x = lt_urix et_return = lt_return.



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