SAP Reports / Programs

RJGBUSISM007_BAPI_TEST SAP ABAP Report - IS-M: Test BAPI Create/Change Business Partner







RJGBUSISM007_BAPI_TEST is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for With this report, you can use BAPIs to create or change business partners in exactly the same way as they were created or changed in dialog processing...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 RJGBUSISM007_BAPI_TEST 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 RJGBUSISM007_BAPI_TEST. "Basic submit
SUBMIT RJGBUSISM007_BAPI_TEST AND RETURN. "Return to original report after report execution complete
SUBMIT RJGBUSISM007_BAPI_TEST 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: COMPARE = Compare BPs
Selection Text: GPNR = Template BP
Selection Text: GPNRTW = BP to Be Changed/Created
Selection Text: MSG_LOG = Messages By Message Log
Selection Text: NOKNA1 = KNA1 Suppress Data
Selection Text: NOKNB1 = KNB1 Suppress Data
Selection Text: NOKNVV = KNVV Suppress Data
Selection Text: PARTNROL = Business Partner Role
Selection Text: XCHANGE = Change BP
Selection Text: XCREATE = Create BP
Selection Text: GPNRTMPL = D .
Selection Text: SPART = D .
Selection Text: VKORG = D .
Selection Text: VTWEG = D .
Title: IS-M: Test BAPI Create/Change Business Partner
Text Symbol: B01 = Business Partner
Text Symbol: B02 = Specifications


INCLUDES used within this REPORT RJGBUSISM007_BAPI_TEST

INCLUDE MJ001TAL_CON.
INCLUDE MJ_CHAR1.
INCLUDE MJ_MEMORYID.


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:

BAPIBUSISM007_GETDETAIL call function 'BAPIBUSISM007_GETDETAIL' exporting number = gpnrtw importing partnercategory = gs_bapi_old-partnercategory partnergroup = gs_bapi_old-partnergroup centraldata = gs_bapi_old-sap-central-central centraldataperson = gs_bapi_old-sap-central-person centraldataorganization = gs_bapi_old-sap-central-organization centraldatagroup = gs_bapi_old-sap-central-group media_central = gs_bapi_old-media-central retailer = gs_bapi_old-media-retailer customer_central = gs_bapi_old-cust-central address = gs_address_old-addressdata tables businesspartnerroles = gs_bapi_old-sap-roles-roles media_customer_sales = gs_bapi_old-media-customer_sales retailer_sales = gs_bapi_old-media-retailer_sales customer_company = gs_bapi_old-cust-company customer_sales = gs_bapi_old-cust-sales bankdetails = gs_bapi_old-sap-bankdetails-bankdetails telefondata = gs_address_old-telefondata faxdata = gs_address_old-faxdata teletexdata = gs_address_old-teletexdata telexdata = gs_address_old-telexdata e_maildata = gs_address_old-e_maildata rmladdressdata = gs_address_old-rmladdressdata x400addressdata = gs_address_old-x400addressdata rfcaddressdata = gs_address_old-rfcaddressdata prtaddressdata = gs_address_old-prtaddressdata ssfaddressdata = gs_address_old-ssfaddressdata uriaddressdata = gs_address_old-uriaddressdata pagaddressdata = gs_address_old-pagaddressdata addressnotes = gs_address_old-addressnotes communicationnotes = gs_address_old-communicationnotes return = gt_return. "#EC NO_INCOMP

ISM_BAPI_MESSAGE_RAISE call function 'ISM_BAPI_MESSAGE_RAISE' exporting pt_return = gt_return.

BAPIBUSISM007_GETDETAIL call function 'BAPIBUSISM007_GETDETAIL' exporting number = gpnr importing partnercategory = gs_bapi_new-partnercategory partnergroup = gs_bapi_new-partnergroup centraldata = gs_bapi_new-sap-central-central centraldataperson = gs_bapi_new-sap-central-person centraldataorganization = gs_bapi_new-sap-central-organization centraldatagroup = gs_bapi_new-sap-central-group media_central = gs_bapi_new-media-central retailer = gs_bapi_new-media-retailer customer_central = gs_bapi_new-cust-central address = gs_address_new-addressdata tables businesspartnerroles = gs_bapi_new-sap-roles-roles media_customer_sales = gs_bapi_new-media-customer_sales retailer_sales = gs_bapi_new-media-retailer_sales customer_company = gs_bapi_new-cust-company customer_sales = gs_bapi_new-cust-sales customer_tax_indicator = gs_bapi_new-cust-tax_indi customer_reminder = gs_bapi_new-cust-reminder bankdetails = gs_bapi_new-sap-bankdetails-bankdetails telefondata = gs_address_new-telefondata faxdata = gs_address_new-faxdata teletexdata = gs_address_new-teletexdata telexdata = gs_address_new-telexdata e_maildata = gs_address_new-e_maildata rmladdressdata = gs_address_new-rmladdressdata x400addressdata = gs_address_new-x400addressdata rfcaddressdata = gs_address_new-rfcaddressdata prtaddressdata = gs_address_new-prtaddressdata ssfaddressdata = gs_address_new-ssfaddressdata uriaddressdata = gs_address_new-uriaddressdata pagaddressdata = gs_address_new-pagaddressdata addressnotes = gs_address_new-addressnotes communicationnotes = gs_address_new-communicationnotes return = gt_return. "#EC NO_INCOMP

ISM_BAPI_MESSAGE_RAISE call function 'ISM_BAPI_MESSAGE_RAISE' exporting pt_return = gt_return.

ISM_BP_RLTGR2RLTYP call function 'ISM_BP_RLTGR2RLTYP' exporting i_rltyp = partnrol tables t_rltyp = gt_rltyp.

ISM_BAPI_007_X_FILL call function 'ISM_BAPI_007_X_FILL' changing ps_params = gs_params ps_extern = gs_bapi_new ps_extern_x = gs_bapix pt_return = gt_return.

ISM_BAPI_007_CHANGE_INFO_CALC call function 'ISM_BAPI_007_CHANGE_INFO_CALC' exporting * ps_centraldata_old = gs_bapi_old-sap-central-central "note 993002 * ps_centraldata_new = gs_bapi_new-sap-central-central "note 993002 ps_centraldata_old = ls_sap_central_bapi_old "note 993002 ps_centraldata_new = ls_sap_central_bapi_new "note 993002 ps_centraldataperson_old = gs_bapi_old-sap-central-person ps_centraldataperson_new = gs_bapi_new-sap-central-person ps_centraldataorganization_old = gs_bapi_old-sap-central-organization ps_centraldataorganization_new = gs_bapi_new-sap-central-organization ps_centraldatagroup_old = gs_bapi_old-sap-central-group ps_centraldatagroup_new = gs_bapi_new-sap-central-group ps_media_central_old = gs_bapi_old-media-central ps_media_central_new = gs_bapi_new-media-central ps_media_customer_sales_old = gs_media_customer_sales_old ps_media_customer_sales_new = gs_media_customer_sales_new ps_retailer_old = gs_bapi_old-media-retailer ps_retailer_new = gs_bapi_new-media-retailer ps_retailer_sales_old = gs_retailer_sales_old ps_retailer_sales_new = gs_retailer_sales_new ps_customer_central_old = gs_bapi_old-cust-central ps_customer_central_new = gs_bapi_new-cust-central ps_customer_company_old = gs_customer_company_old ps_customer_company_new = gs_customer_company_new ps_customer_sales_old = gs_customer_sales_old ps_customer_sales_new = gs_customer_sales_new pt_customer_tax_indicator_old = gs_bapi_old-cust-tax_indi pt_customer_tax_indicator_new = gs_bapi_new-cust-tax_indi pt_customer_reminder_old = gs_bapi_old-cust-reminder pt_customer_reminder_new = gs_bapi_new-cust-reminder * ps_address_old = gs_address_old-addressdata "note 993002 * ps_address_new = gs_address_new-addressdata "note 993002 ps_address_old = ls_addresses_bapi_old "note 993002 ps_address_new = ls_addresses_bapi_new "note 993002 pt_bankdetails_old = gs_bapi_old-sap-bankdetails-bankdetails pt_bankdetails_new = gs_bapi_new-sap-bankdetails-bankdetails pt_telefondata_old = gs_address_old-telefondata pt_telefondata_new = gs_address_new-telefondata pt_faxdata_old = gs_address_old-faxdata pt_faxdata_new = gs_address_new-faxdata pt_teletexdata_old = gs_address_old-teletexdata pt_teletexdata_new = gs_address_new-teletexdata pt_telexdata_old = gs_address_old-telexdata pt_telexdata_new = gs_address_new-telexdata pt_e_maildata_old = gs_address_old-e_maildata pt_e_maildata_new = gs_address_new-e_maildata pt_rmladdressdata_old = gs_address_old-rmladdressdata pt_rmladdressdata_new = gs_address_new-rmladdressdata pt_x400addressdata_old = gs_address_old-x400addressdata pt_x400addressdata_new = gs_address_new-x400addressdata pt_rfcaddressdata_old = gs_address_old-rfcaddressdata pt_rfcaddressdata_new = gs_address_new-rfcaddressdata pt_prtaddressdata_old = gs_address_old-prtaddressdata pt_prtaddressdata_new = gs_address_new-prtaddressdata pt_ssfaddressdata_old = gs_address_old-ssfaddressdata pt_ssfaddressdata_new = gs_address_new-ssfaddressdata pt_uriaddressdata_old = gs_address_old-uriaddressdata pt_uriaddressdata_new = gs_address_new-uriaddressdata pt_pagaddressdata_old = gs_address_old-pagaddressdata pt_pagaddressdata_new = gs_address_new-pagaddressdata pt_addressnotes_old = gs_address_old-addressnotes pt_addressnotes_new = gs_address_new-addressnotes pt_communicationnotes_old = gs_address_old-communicationnotes pt_communicationnotes_new = gs_address_new-communicationnotes importing ps_centraldata_x = gs_bapix-sap-central-central ps_centraldataperson_x = gs_bapix-sap-central-person ps_centraldataorganization_x = gs_bapix-sap-central-organization ps_centraldatagroup_x = gs_bapix-sap-central-group ps_media_central_x = gs_bapix-media-central ps_media_customer_sales_x = gs_media_customer_sales_x ps_retailer_x = gs_bapix-media-retailer ps_retailer_sales_x = gs_retailer_sales_x ps_customer_central_x = gs_bapix-cust-central ps_customer_company_x = gs_customer_company_x ps_customer_sales_x = gs_customer_sales_x pt_customer_tax_indicator_x = gt_customer_tax_indicator_x pt_customer_reminder_x = gt_customer_reminder_x ps_address_x = gs_addressdata_x pt_bankdetails_x = gs_bapix-sap-bankdetails-bankdetails pt_telefondatax = gs_address_x-telefondata pt_faxdatax = gs_address_x-faxdata pt_teletexdatax = gs_address_x-teletexdata pt_telexdatax = gs_address_x-telexdata pt_e_maildatax = gs_address_x-e_maildata pt_rmladdressdatax = gs_address_x-rmladdressdata pt_x400addressdatax = gs_address_x-x400addressdata pt_rfcaddressdatax = gs_address_x-rfcaddressdata pt_prtaddressdatax = gs_address_x-prtaddressdata pt_ssfaddressdatax = gs_address_x-ssfaddressdata pt_uriaddressdatax = gs_address_x-uriaddressdata pt_pagaddressdatax = gs_address_x-pagaddressdata pt_addressnotesx = gs_address_x-addressnotes pt_communicationnotesx = gs_address_x-communicationnotes. "#EC NO_INCOMP

BAPIBUSISM007_CREATEFROMDATA call function 'BAPIBUSISM007_CREATEFROMDATA' exporting businesspartnerextern = gpnrtw partnertemplate = gpnrtmpl partnercategory = gs_bapi_new-partnercategory partnergroup = bu_group partnerrole = partnrol centraldata = gs_bapi_new-sap-central-central centraldata_x = gs_bapix-sap-central-central centraldataperson = gs_bapi_new-sap-central-person centraldataperson_x = gs_bapix-sap-central-person centraldataorganization = gs_bapi_new-sap-central-organization centraldataorganization_x = gs_bapix-sap-central-organization centraldatagroup = gs_bapi_new-sap-central-group centraldatagroup_x = gs_bapix-sap-central-group media_central = gs_bapi_new-media-central media_central_x = gs_bapix-media-central media_customer_sales = gs_media_customer_sales_new media_customer_sales_x = gs_media_customer_sales_x retailer = gs_bapi_new-media-retailer retailer_x = gs_bapix-media-retailer retailer_sales = gs_retailer_sales_new retailer_sales_x = gs_retailer_sales_x customer_central = gs_bapi_new-cust-central customer_central_x = gs_bapix-cust-central customer_company = gs_customer_company_new customer_company_x = gs_customer_company_x customer_sales = gs_customer_sales_new customer_sales_x = gs_customer_sales_x * address = gs_address_new-addressdata "note 993002 address = ls_addresses_bapi_new "note 993002 address_x = gs_addressdata_x importing number = gv_gpnr_out tables customer_tax_indicator = gs_bapi_new-cust-tax_indi customer_tax_indicator_x = gt_customer_tax_indicator_x customer_reminder = gs_bapi_new-cust-reminder customer_reminder_x = gt_customer_reminder_x bankdetails = gs_bapi_new-sap-bankdetails-bankdetails bankdetails_x = gs_bapix-sap-bankdetails-bankdetails telefondata = gs_address_new-telefondata telefondata_x = gs_address_x-telefondata faxdata = gs_address_new-faxdata faxdata_x = gs_address_x-faxdata teletexdata = gs_address_new-teletexdata teletexdata_x = gs_address_x-teletexdata telexdata = gs_address_new-telexdata telexdata_x = gs_address_x-telexdata e_maildata = gs_address_new-e_maildata e_maildata_x = gs_address_x-e_maildata rmladdressdata = gs_address_new-rmladdressdata rmladdressdata_x = gs_address_x-rmladdressdata x400addressdata = gs_address_new-x400addressdata x400addressdata_x = gs_address_x-x400addressdata rfcaddressdata = gs_address_new-rfcaddressdata rfcaddressdata_x = gs_address_x-rfcaddressdata prtaddressdata = gs_address_new-prtaddressdata prtaddressdata_x = gs_address_x-prtaddressdata ssfaddressdata = gs_address_new-ssfaddressdata ssfaddressdata_x = gs_address_x-ssfaddressdata uriaddressdata = gs_address_new-uriaddressdata uriaddressdata_x = gs_address_x-uriaddressdata pagaddressdata = gs_address_new-pagaddressdata pagaddressdata_x = gs_address_x-pagaddressdata addressnotes = gs_address_new-addressnotes addressnotes_x = gs_address_x-addressnotes communicationnotes = gs_address_new-communicationnotes communicationnotes_x = gs_address_x-communicationnotes return = gt_return. "#EC NO_INCOMP

BAPIBUSISM007_CHANGE call function 'BAPIBUSISM007_CHANGE' exporting number = gpnrtw centraldata = gs_bapi_new-sap-central-central centraldata_x = gs_bapix-sap-central-central centraldataperson = gs_bapi_new-sap-central-person centraldataperson_x = gs_bapix-sap-central-person centraldataorganization = gs_bapi_new-sap-central-organization centraldataorganization_x = gs_bapix-sap-central-organization centraldatagroup = gs_bapi_new-sap-central-group centraldatagroup_x = gs_bapix-sap-central-group media_central = gs_bapi_new-media-central media_central_x = gs_bapix-media-central media_customer_sales = gs_media_customer_sales_new media_customer_sales_x = gs_media_customer_sales_x retailer = gs_bapi_new-media-retailer retailer_x = gs_bapix-media-retailer retailer_sales = gs_retailer_sales_new retailer_sales_x = gs_retailer_sales_x customer_central = gs_bapi_new-cust-central customer_central_x = gs_bapix-cust-central customer_company = gs_customer_company_new customer_company_x = gs_customer_company_x customer_sales = gs_customer_sales_new customer_sales_x = gs_customer_sales_x * address = gs_address_new-addressdata "note 993002 address = ls_addresses_bapi_new "note 993002 address_x = gs_addressdata_x tables customer_tax_indicator = gs_bapi_new-cust-tax_indi customer_tax_indicator_x = gt_customer_tax_indicator_x customer_reminder = gs_bapi_new-cust-reminder customer_reminder_x = gt_customer_reminder_x bankdetails = gs_bapi_new-sap-bankdetails-bankdetails bankdetails_x = gs_bapix-sap-bankdetails-bankdetails telefondata = gs_address_new-telefondata telefondata_x = gs_address_x-telefondata faxdata = gs_address_new-faxdata faxdata_x = gs_address_x-faxdata teletexdata = gs_address_new-teletexdata teletexdata_x = gs_address_x-teletexdata telexdata = gs_address_new-telexdata telexdata_x = gs_address_x-telexdata e_maildata = gs_address_new-e_maildata e_maildata_x = gs_address_x-e_maildata rmladdressdata = gs_address_new-rmladdressdata rmladdressdata_x = gs_address_x-rmladdressdata x400addressdata = gs_address_new-x400addressdata x400addressdata_x = gs_address_x-x400addressdata rfcaddressdata = gs_address_new-rfcaddressdata rfcaddressdata_x = gs_address_x-rfcaddressdata prtaddressdata = gs_address_new-prtaddressdata prtaddressdata_x = gs_address_x-prtaddressdata ssfaddressdata = gs_address_new-ssfaddressdata ssfaddressdata_x = gs_address_x-ssfaddressdata uriaddressdata = gs_address_new-uriaddressdata uriaddressdata_x = gs_address_x-uriaddressdata pagaddressdata = gs_address_new-pagaddressdata pagaddressdata_x = gs_address_x-pagaddressdata addressnotes = gs_address_new-addressnotes addressnotes_x = gs_address_x-addressnotes communicationnotes = gs_address_new-communicationnotes communicationnotes_x = gs_address_x-communicationnotes return = gt_return. "#EC NO_INCOMP

ISM_BAPI_MESSAGE_RAISE call function 'ISM_BAPI_MESSAGE_RAISE' exporting pt_return = gt_return exceptions abort_occurred = 1 error_occurred = 2.

BAPI_TRANSACTION_ROLLBACK call function 'BAPI_TRANSACTION_ROLLBACK'.

BAPI_TRANSACTION_COMMIT call function 'BAPI_TRANSACTION_COMMIT'.

ISM_BAPI_007_BP_COMPARE call function 'ISM_BAPI_007_BP_COMPARE' exporting pv_partner1 = gpnr pv_partner2 = gv_gpnr_comp changing pt_return = gt_return.

ENQUEUE_EBU_PARTNR call function 'ENQUEUE_EBU_PARTNR' exporting partner = pv_gpnr exceptions others = 1.

DEQUEUE_EBU_PARTNR call function 'DEQUEUE_EBU_PARTNR' exporting partner = pv_gpnr.



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