SAP BBP_CHANGE_ORGANIZATION Function Module for SAP-GP. Ändern Organisation









BBP_CHANGE_ORGANIZATION is a standard bbp change organization SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for SAP-GP. Ändern Organisation processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for bbp change organization FM, simply by entering the name BBP_CHANGE_ORGANIZATION into the relevant SAP transaction such as SE37 or SE38.

Function Group: BBP_PARTNER_MAINT
Program Name: SAPLBBP_PARTNER_MAINT
Main Program: SAPLBBP_PARTNER_MAINT
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function BBP_CHANGE_ORGANIZATION pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'BBP_CHANGE_ORGANIZATION'"SAP-GP. Ändern Organisation
EXPORTING
IV_PARTNER = "Geschäftspartnernummer der zu ändernden Organisation
* IS_FRG0030_DEL = "Zu löschendes Qualitätsmanagementsystem
* IS_FRG0030_CHG = "Zu änderndes Qualitätsmanagementsystem
* IV_SENDMEDIUM_CHG = "Zu änderndes Sendemedium (ohne Einkaufs.-Org-Bezug)
* IV_XXS_CHECK = ' ' "'X' bedeutet dass XXS-Überprüfung laufen soll
* IV_NO_COMMIT = ' ' "Bei IV_NO_COMMIT = 'X' wird vom Baustein kein COMMIT WROK ausgelöst
* IV_RELEASE = ' ' "Nur für ROS: Lieferant freigeben
* IS_CENTRAL_CUSTOMER_EXT = "EEW Extension of BUT000
* IS_CENTRAL_CUSTOMER_EXT_X = "SAP BP: BAPI Structure for EEW Data; Update Toolbar
* IV_SUBNODE = "Object ID
* IV_ASSIGN_BP_TO_VG = ' ' "Assign BP to VG
* IS_DATA = "Zentrale Daten, Geschäftsparter-Typ unabhängig
* IS_DATA_X = "Änderungsinfo zu Zentrale Daten, Geschäftsparter-Typ unabhängig
* IS_DATA_ORGAN = "Zentrale Daten, Organisations spezifisch
* IS_DATA_ORGAN_X = "Änderungsinfo zu Zentrale Daten, Organisations spezifisch
* IS_ADDRESS = "Adresse zur Organisation
* IS_ADDRESS_X = "Änderungsinfo zu Adresse zur Organisation
* IS_FRG0010_INS = "Geschäftspartner (Flags), neue Einträge
* IS_FRG0010_CHG = "Geschäftspartner (Flags), geändetre Einträge

TABLES
* IT_ADTEL = "Telefonnummern der Organisation
* IT_ROLES_INS = "Hinzuzufügende Rollen/Rollentypen
* IT_INDUSTRIES_DEL = "Zu löschende Branchen
* IT_INDUSTRIES_INS = "Einzufügende Branchen
* IT_IDENTIFICATION_DEL = "Zu löschende Identifikationsnummern
* IT_IDENTIFICATION_INS = "Einzufügende Identifikationsnummern
* IT_TAXNUM_DEL = "Zu löschende Steuernummern
* IT_TAXNUM_INS = "Einzufügende Steuernummern
* IT_TAXCLASS_DEL = "Zu löschende Steuerklassifikation
* IT_TAXCLASS_INS = "Einzufügende Steuerklassifikation
* IT_BANKS = "Bankdaten der Organisation
* IT_ADTEL_X = "Änderungsinfo zu Telefonnummern der Organisation
* IT_BANK_X = "Änderungsinfo zu Bankdaten der Organisation
* IT_RELATIONS_CHG = "Zu ändernde Beziehungen
* IT_RELATIONS_DEL = "Zu löschende Beziehungen
* IT_RELATIONS_INS = "Einzufügende Beziehungen
* IT_FRG0061_CHG = "Update auf Einkaufsdaten
* IT_FRG0061_DEL = "Delete auf Einkaufsdaten
* IT_FRG0061_INS = "Insert auf Einkaufsdaten
* IT_FRG0040_DEL = "Delete auf Einkäuferkarten
* IT_FRG0040_INS = "Insert auf Einkäuferkarten
* IT_FRG0030_DEL = "Delete auf QM-Systeme
* IT_ADFAX = "Faxnummern der Organisation
* IT_FRG0030_INS = "Insert auf QM-Systeme
* IT_FRG0020_DEL = "Delete auf Bieter-Status
* IT_FRG0020_INS = "Insert auf Bieter-Status
* IT_BIDCC_DEL = "Delete auf Kategorien
* IT_BIDCC_INS = "Insert auf Kategorien
* IT_VENMAP_INS = "Delete auf Lieferanten-Mapping
* IT_VENMAP_DEL = "Insert auf Lieferanten-Mapping
* IT_LOCMAP_INS = "Delete auf Standort-Mapping
* IT_LOCMAP_DEL = "Insert auf Standort-Mapping
* IT_SENDMEDIUM_DEL = "Zu Löschend: Sendemedium am Partner
* IT_ADFAX_X = "Änderungsinfo zu Faxnummern der Organisation
* IT_SENDMEDIUM_INS = "Einzufügen: Sendemedium am Partner
* ET_RETURN = "Error/Messages Return Struktur
* IT_ADSMTP = "Email-Adressen der Organisation
* IT_ADSMTP_X = "Änderungsinfo zu Email-Adressen der Organisation
* IT_ADURI = "URI-Adressen der Organisation
* IT_ADURI_X = "Änderungsinfo zu URI-Adressen der Organisation
* IT_ROLES_DEL = "Zu löschende Rollen/Rollentypen

EXCEPTIONS
COMPANY_NOT_VALID = 1 ERROR_LINKING_BUPA_TO_ORGUNIT = 10 PARTNER_TYPE_NOT_VALID = 2 ERROR_MESSAGE_PASSED = 3 ERROR_CHANGING_ORG_NAMES = 4 ERROR_READING_ADDRESS = 5 ERROR_CHANGING_ORG_ADDRESS = 6 ERROR_CHANGING_TAXINFO = 7 ERROR_CHANGING_VEN_MAPPING = 8 INCONSISTENT_BANK_CHANGEINFO = 9
.



IMPORTING Parameters details for BBP_CHANGE_ORGANIZATION

IV_PARTNER - Geschäftspartnernummer der zu ändernden Organisation

Data type: BU_PARTNER
Optional: No
Call by Reference: No ( called with pass by value option)

IS_FRG0030_DEL - Zu löschendes Qualitätsmanagementsystem

Data type: BBPT_BUS_FRG0030
Optional: Yes
Call by Reference: No ( called with pass by value option)

IS_FRG0030_CHG - Zu änderndes Qualitätsmanagementsystem

Data type: BBPT_BUS_FRG0030
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_SENDMEDIUM_CHG - Zu änderndes Sendemedium (ohne Einkaufs.-Org-Bezug)

Data type: BBP_METYPE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_XXS_CHECK - 'X' bedeutet dass XXS-Überprüfung laufen soll

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_NO_COMMIT - Bei IV_NO_COMMIT = 'X' wird vom Baustein kein COMMIT WROK ausgelöst

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_RELEASE - Nur für ROS: Lieferant freigeben

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IS_CENTRAL_CUSTOMER_EXT - EEW Extension of BUT000

Data type: BUPA_CENTR_CUST_EXT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IS_CENTRAL_CUSTOMER_EXT_X - SAP BP: BAPI Structure for EEW Data; Update Toolbar

Data type: BUPA_CENTR_CUST_EXT_X
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_SUBNODE - Object ID

Data type: OBJEKTID
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_ASSIGN_BP_TO_VG - Assign BP to VG

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IS_DATA - Zentrale Daten, Geschäftsparter-Typ unabhängig

Data type: BAPIBUS1006_CENTRAL
Optional: Yes
Call by Reference: No ( called with pass by value option)

IS_DATA_X - Änderungsinfo zu Zentrale Daten, Geschäftsparter-Typ unabhängig

Data type: BAPIBUS1006_CENTRAL_X
Optional: Yes
Call by Reference: No ( called with pass by value option)

IS_DATA_ORGAN - Zentrale Daten, Organisations spezifisch

Data type: BAPIBUS1006_CENTRAL_ORGAN
Optional: Yes
Call by Reference: No ( called with pass by value option)

IS_DATA_ORGAN_X - Änderungsinfo zu Zentrale Daten, Organisations spezifisch

Data type: BAPIBUS1006_CENTRAL_ORGAN_X
Optional: Yes
Call by Reference: No ( called with pass by value option)

IS_ADDRESS - Adresse zur Organisation

Data type: BAPIBUS1006_ADDRESS
Optional: Yes
Call by Reference: No ( called with pass by value option)

IS_ADDRESS_X - Änderungsinfo zu Adresse zur Organisation

Data type: BAPIBUS1006_ADDRESS_X
Optional: Yes
Call by Reference: No ( called with pass by value option)

IS_FRG0010_INS - Geschäftspartner (Flags), neue Einträge

Data type: BBPT_BUS_FRG0010
Optional: Yes
Call by Reference: No ( called with pass by value option)

IS_FRG0010_CHG - Geschäftspartner (Flags), geändetre Einträge

Data type: BBPT_BUS_FRG0010
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for BBP_CHANGE_ORGANIZATION

IT_ADTEL - Telefonnummern der Organisation

Data type: BAPIADTEL
Optional: Yes
Call by Reference: Yes

IT_ROLES_INS - Hinzuzufügende Rollen/Rollentypen

Data type: BBPS_BUPA_ROLES
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_INDUSTRIES_DEL - Zu löschende Branchen

Data type: BAPIBUS1006_INDUSTRYSECTOR
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_INDUSTRIES_INS - Einzufügende Branchen

Data type: BAPIBUS1006_INDUSTRYSECTOR
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_IDENTIFICATION_DEL - Zu löschende Identifikationsnummern

Data type: BUT0ID
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_IDENTIFICATION_INS - Einzufügende Identifikationsnummern

Data type: BUT0ID
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_TAXNUM_DEL - Zu löschende Steuernummern

Data type: DFKKBPTAXNUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_TAXNUM_INS - Einzufügende Steuernummern

Data type: DFKKBPTAXNUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_TAXCLASS_DEL - Zu löschende Steuerklassifikation

Data type: BAPIBUS1006_TAX_CLASS
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_TAXCLASS_INS - Einzufügende Steuerklassifikation

Data type: BAPIBUS1006_TAX_CLASS
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_BANKS - Bankdaten der Organisation

Data type: BAPIBUS1006_BANKDETAILS
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_ADTEL_X - Änderungsinfo zu Telefonnummern der Organisation

Data type: BAPIADTELX
Optional: Yes
Call by Reference: Yes

IT_BANK_X - Änderungsinfo zu Bankdaten der Organisation

Data type: BAPIBUS1006_BANKDETAIL_X
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_RELATIONS_CHG - Zu ändernde Beziehungen

Data type: BUT050
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_RELATIONS_DEL - Zu löschende Beziehungen

Data type: BUT050
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_RELATIONS_INS - Einzufügende Beziehungen

Data type: BUT050
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_FRG0061_CHG - Update auf Einkaufsdaten

Data type: BBPM_BUT_FRG0061
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_FRG0061_DEL - Delete auf Einkaufsdaten

Data type: BBPM_BUT_FRG0061
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_FRG0061_INS - Insert auf Einkaufsdaten

Data type: BBPM_BUT_FRG0061
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_FRG0040_DEL - Delete auf Einkäuferkarten

Data type: BBPT_BUS_FRG0040
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_FRG0040_INS - Insert auf Einkäuferkarten

Data type: BBPT_BUS_FRG0040
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_FRG0030_DEL - Delete auf QM-Systeme

Data type: BBPT_BUS_FRG0030
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_ADFAX - Faxnummern der Organisation

Data type: BAPIADFAX
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_FRG0030_INS - Insert auf QM-Systeme

Data type: BBPT_BUS_FRG0030
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_FRG0020_DEL - Delete auf Bieter-Status

Data type: BBPT_BUS_FRG0020
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_FRG0020_INS - Insert auf Bieter-Status

Data type: BBPT_BUS_FRG0020
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_BIDCC_DEL - Delete auf Kategorien

Data type: BIDCC
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_BIDCC_INS - Insert auf Kategorien

Data type: BIDCC
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_VENMAP_INS - Delete auf Lieferanten-Mapping

Data type: VENMAP
Optional: Yes
Call by Reference: Yes

IT_VENMAP_DEL - Insert auf Lieferanten-Mapping

Data type: VENMAP
Optional: Yes
Call by Reference: Yes

IT_LOCMAP_INS - Delete auf Standort-Mapping

Data type: BBP_LOCMAP
Optional: Yes
Call by Reference: Yes

IT_LOCMAP_DEL - Insert auf Standort-Mapping

Data type: BBP_LOCMAP
Optional: Yes
Call by Reference: Yes

IT_SENDMEDIUM_DEL - Zu Löschend: Sendemedium am Partner

Data type: BBPT_SENDMEDIUM
Optional: Yes
Call by Reference: Yes

IT_ADFAX_X - Änderungsinfo zu Faxnummern der Organisation

Data type: BAPIADFAXX
Optional: Yes
Call by Reference: Yes

IT_SENDMEDIUM_INS - Einzufügen: Sendemedium am Partner

Data type: BBPT_SENDMEDIUM
Optional: Yes
Call by Reference: Yes

ET_RETURN - Error/Messages Return Struktur

Data type: BAPIRET2
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_ADSMTP - Email-Adressen der Organisation

Data type: BAPIADSMTP
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_ADSMTP_X - Änderungsinfo zu Email-Adressen der Organisation

Data type: BAPIADSMTX
Optional: Yes
Call by Reference: Yes

IT_ADURI - URI-Adressen der Organisation

Data type: BAPIADURI
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_ADURI_X - Änderungsinfo zu URI-Adressen der Organisation

Data type: BAPIADURIX
Optional: Yes
Call by Reference: Yes

IT_ROLES_DEL - Zu löschende Rollen/Rollentypen

Data type: BBPS_BUPA_ROLES
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

COMPANY_NOT_VALID - Der in IV_PARTNER übergebene Wert ist nicht gültig

Data type:
Optional: No
Call by Reference: Yes

ERROR_LINKING_BUPA_TO_ORGUNIT - Error in FM HR_OBJECTBUPA_INSERT

Data type:
Optional: No
Call by Reference: Yes

PARTNER_TYPE_NOT_VALID - Der in IV_PARTNER übergebene Geschäftspartner ist keine Organisation

Data type:
Optional: No
Call by Reference: Yes

ERROR_MESSAGE_PASSED - Message liegt in RETURN Struktur vor

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

ERROR_CHANGING_ORG_NAMES - Fehler beim Ändern der Namen der zugeordneten Organisationseinheit

Data type:
Optional: No
Call by Reference: Yes

ERROR_READING_ADDRESS - Fehler beim Lesen der Adresse zur Organisation

Data type:
Optional: No
Call by Reference: Yes

ERROR_CHANGING_ORG_ADDRESS - Fehler beim Ändern der Adresse der zugeordneten Organisationseinheit

Data type:
Optional: No
Call by Reference: Yes

ERROR_CHANGING_TAXINFO - Fehler beim Ändern von Steuernummer/klassifikation

Data type:
Optional: No
Call by Reference: Yes

ERROR_CHANGING_VEN_MAPPING - Fehler beim Ändern des Lieferanten-Mappings

Data type:
Optional: No
Call by Reference: Yes

INCONSISTENT_BANK_CHANGEINFO - Die Angaben in IT_BANKS und IT_BANK_X passen nicht zueinander

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for BBP_CHANGE_ORGANIZATION Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lt_it_adtel  TYPE STANDARD TABLE OF BAPIADTEL, "   
lv_iv_partner  TYPE BU_PARTNER, "   
lv_company_not_valid  TYPE BU_PARTNER, "   
lt_it_roles_ins  TYPE STANDARD TABLE OF BBPS_BUPA_ROLES, "   
lv_is_frg0030_del  TYPE BBPT_BUS_FRG0030, "   
lv_error_linking_bupa_to_orgunit  TYPE BBPT_BUS_FRG0030, "   
lv_is_frg0030_chg  TYPE BBPT_BUS_FRG0030, "   
lt_it_industries_del  TYPE STANDARD TABLE OF BAPIBUS1006_INDUSTRYSECTOR, "   
lt_it_industries_ins  TYPE STANDARD TABLE OF BAPIBUS1006_INDUSTRYSECTOR, "   
lv_iv_sendmedium_chg  TYPE BBP_METYPE, "   
lv_iv_xxs_check  TYPE XFELD, "   SPACE
lt_it_identification_del  TYPE STANDARD TABLE OF BUT0ID, "   
lv_iv_no_commit  TYPE XFELD, "   SPACE
lt_it_identification_ins  TYPE STANDARD TABLE OF BUT0ID, "   
lv_iv_release  TYPE XFELD, "   SPACE
lt_it_taxnum_del  TYPE STANDARD TABLE OF DFKKBPTAXNUM, "   
lt_it_taxnum_ins  TYPE STANDARD TABLE OF DFKKBPTAXNUM, "   
lv_is_central_customer_ext  TYPE BUPA_CENTR_CUST_EXT, "   
lt_it_taxclass_del  TYPE STANDARD TABLE OF BAPIBUS1006_TAX_CLASS, "   
lv_is_central_customer_ext_x  TYPE BUPA_CENTR_CUST_EXT_X, "   
lv_iv_subnode  TYPE OBJEKTID, "   
lt_it_taxclass_ins  TYPE STANDARD TABLE OF BAPIBUS1006_TAX_CLASS, "   
lt_it_banks  TYPE STANDARD TABLE OF BAPIBUS1006_BANKDETAILS, "   
lv_iv_assign_bp_to_vg  TYPE XFELD, "   SPACE
lv_is_data  TYPE BAPIBUS1006_CENTRAL, "   
lt_it_adtel_x  TYPE STANDARD TABLE OF BAPIADTELX, "   
lv_partner_type_not_valid  TYPE BAPIADTELX, "   
lt_it_bank_x  TYPE STANDARD TABLE OF BAPIBUS1006_BANKDETAIL_X, "   
lt_it_relations_chg  TYPE STANDARD TABLE OF BUT050, "   
lt_it_relations_del  TYPE STANDARD TABLE OF BUT050, "   
lt_it_relations_ins  TYPE STANDARD TABLE OF BUT050, "   
lt_it_frg0061_chg  TYPE STANDARD TABLE OF BBPM_BUT_FRG0061, "   
lt_it_frg0061_del  TYPE STANDARD TABLE OF BBPM_BUT_FRG0061, "   
lt_it_frg0061_ins  TYPE STANDARD TABLE OF BBPM_BUT_FRG0061, "   
lt_it_frg0040_del  TYPE STANDARD TABLE OF BBPT_BUS_FRG0040, "   
lt_it_frg0040_ins  TYPE STANDARD TABLE OF BBPT_BUS_FRG0040, "   
lt_it_frg0030_del  TYPE STANDARD TABLE OF BBPT_BUS_FRG0030, "   
lt_it_adfax  TYPE STANDARD TABLE OF BAPIADFAX, "   
lv_is_data_x  TYPE BAPIBUS1006_CENTRAL_X, "   
lv_error_message_passed  TYPE BAPIBUS1006_CENTRAL_X, "   
lt_it_frg0030_ins  TYPE STANDARD TABLE OF BBPT_BUS_FRG0030, "   
lt_it_frg0020_del  TYPE STANDARD TABLE OF BBPT_BUS_FRG0020, "   
lt_it_frg0020_ins  TYPE STANDARD TABLE OF BBPT_BUS_FRG0020, "   
lt_it_bidcc_del  TYPE STANDARD TABLE OF BIDCC, "   
lt_it_bidcc_ins  TYPE STANDARD TABLE OF BIDCC, "   
lt_it_venmap_ins  TYPE STANDARD TABLE OF VENMAP, "   
lt_it_venmap_del  TYPE STANDARD TABLE OF VENMAP, "   
lt_it_locmap_ins  TYPE STANDARD TABLE OF BBP_LOCMAP, "   
lt_it_locmap_del  TYPE STANDARD TABLE OF BBP_LOCMAP, "   
lt_it_sendmedium_del  TYPE STANDARD TABLE OF BBPT_SENDMEDIUM, "   
lt_it_adfax_x  TYPE STANDARD TABLE OF BAPIADFAXX, "   
lv_is_data_organ  TYPE BAPIBUS1006_CENTRAL_ORGAN, "   
lv_error_changing_org_names  TYPE BAPIBUS1006_CENTRAL_ORGAN, "   
lt_it_sendmedium_ins  TYPE STANDARD TABLE OF BBPT_SENDMEDIUM, "   
lt_et_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lt_it_adsmtp  TYPE STANDARD TABLE OF BAPIADSMTP, "   
lv_is_data_organ_x  TYPE BAPIBUS1006_CENTRAL_ORGAN_X, "   
lv_error_reading_address  TYPE BAPIBUS1006_CENTRAL_ORGAN_X, "   
lv_is_address  TYPE BAPIBUS1006_ADDRESS, "   
lt_it_adsmtp_x  TYPE STANDARD TABLE OF BAPIADSMTX, "   
lv_error_changing_org_address  TYPE BAPIADSMTX, "   
lt_it_aduri  TYPE STANDARD TABLE OF BAPIADURI, "   
lv_is_address_x  TYPE BAPIBUS1006_ADDRESS_X, "   
lv_error_changing_taxinfo  TYPE BAPIBUS1006_ADDRESS_X, "   
lt_it_aduri_x  TYPE STANDARD TABLE OF BAPIADURIX, "   
lv_is_frg0010_ins  TYPE BBPT_BUS_FRG0010, "   
lv_error_changing_ven_mapping  TYPE BBPT_BUS_FRG0010, "   
lt_it_roles_del  TYPE STANDARD TABLE OF BBPS_BUPA_ROLES, "   
lv_is_frg0010_chg  TYPE BBPT_BUS_FRG0010, "   
lv_inconsistent_bank_changeinfo  TYPE BBPT_BUS_FRG0010. "   

  CALL FUNCTION 'BBP_CHANGE_ORGANIZATION'  "SAP-GP. Ändern Organisation
    EXPORTING
         IV_PARTNER = lv_iv_partner
         IS_FRG0030_DEL = lv_is_frg0030_del
         IS_FRG0030_CHG = lv_is_frg0030_chg
         IV_SENDMEDIUM_CHG = lv_iv_sendmedium_chg
         IV_XXS_CHECK = lv_iv_xxs_check
         IV_NO_COMMIT = lv_iv_no_commit
         IV_RELEASE = lv_iv_release
         IS_CENTRAL_CUSTOMER_EXT = lv_is_central_customer_ext
         IS_CENTRAL_CUSTOMER_EXT_X = lv_is_central_customer_ext_x
         IV_SUBNODE = lv_iv_subnode
         IV_ASSIGN_BP_TO_VG = lv_iv_assign_bp_to_vg
         IS_DATA = lv_is_data
         IS_DATA_X = lv_is_data_x
         IS_DATA_ORGAN = lv_is_data_organ
         IS_DATA_ORGAN_X = lv_is_data_organ_x
         IS_ADDRESS = lv_is_address
         IS_ADDRESS_X = lv_is_address_x
         IS_FRG0010_INS = lv_is_frg0010_ins
         IS_FRG0010_CHG = lv_is_frg0010_chg
    TABLES
         IT_ADTEL = lt_it_adtel
         IT_ROLES_INS = lt_it_roles_ins
         IT_INDUSTRIES_DEL = lt_it_industries_del
         IT_INDUSTRIES_INS = lt_it_industries_ins
         IT_IDENTIFICATION_DEL = lt_it_identification_del
         IT_IDENTIFICATION_INS = lt_it_identification_ins
         IT_TAXNUM_DEL = lt_it_taxnum_del
         IT_TAXNUM_INS = lt_it_taxnum_ins
         IT_TAXCLASS_DEL = lt_it_taxclass_del
         IT_TAXCLASS_INS = lt_it_taxclass_ins
         IT_BANKS = lt_it_banks
         IT_ADTEL_X = lt_it_adtel_x
         IT_BANK_X = lt_it_bank_x
         IT_RELATIONS_CHG = lt_it_relations_chg
         IT_RELATIONS_DEL = lt_it_relations_del
         IT_RELATIONS_INS = lt_it_relations_ins
         IT_FRG0061_CHG = lt_it_frg0061_chg
         IT_FRG0061_DEL = lt_it_frg0061_del
         IT_FRG0061_INS = lt_it_frg0061_ins
         IT_FRG0040_DEL = lt_it_frg0040_del
         IT_FRG0040_INS = lt_it_frg0040_ins
         IT_FRG0030_DEL = lt_it_frg0030_del
         IT_ADFAX = lt_it_adfax
         IT_FRG0030_INS = lt_it_frg0030_ins
         IT_FRG0020_DEL = lt_it_frg0020_del
         IT_FRG0020_INS = lt_it_frg0020_ins
         IT_BIDCC_DEL = lt_it_bidcc_del
         IT_BIDCC_INS = lt_it_bidcc_ins
         IT_VENMAP_INS = lt_it_venmap_ins
         IT_VENMAP_DEL = lt_it_venmap_del
         IT_LOCMAP_INS = lt_it_locmap_ins
         IT_LOCMAP_DEL = lt_it_locmap_del
         IT_SENDMEDIUM_DEL = lt_it_sendmedium_del
         IT_ADFAX_X = lt_it_adfax_x
         IT_SENDMEDIUM_INS = lt_it_sendmedium_ins
         ET_RETURN = lt_et_return
         IT_ADSMTP = lt_it_adsmtp
         IT_ADSMTP_X = lt_it_adsmtp_x
         IT_ADURI = lt_it_aduri
         IT_ADURI_X = lt_it_aduri_x
         IT_ROLES_DEL = lt_it_roles_del
    EXCEPTIONS
        COMPANY_NOT_VALID = 1
        ERROR_LINKING_BUPA_TO_ORGUNIT = 10
        PARTNER_TYPE_NOT_VALID = 2
        ERROR_MESSAGE_PASSED = 3
        ERROR_CHANGING_ORG_NAMES = 4
        ERROR_READING_ADDRESS = 5
        ERROR_CHANGING_ORG_ADDRESS = 6
        ERROR_CHANGING_TAXINFO = 7
        ERROR_CHANGING_VEN_MAPPING = 8
        INCONSISTENT_BANK_CHANGEINFO = 9
. " BBP_CHANGE_ORGANIZATION




ABAP code using 7.40 inline data declarations to call FM BBP_CHANGE_ORGANIZATION

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
 
 
 
 
 
DATA(ld_iv_xxs_check) = ' '.
 
 
DATA(ld_iv_no_commit) = ' '.
 
 
DATA(ld_iv_release) = ' '.
 
 
 
 
 
 
 
 
 
DATA(ld_iv_assign_bp_to_vg) = ' '.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!