SAP Note 722264 - SAP-BP: Able to change address in the SAP business partner

Component : Address -

Solution : https://service.sap.com/sap/support/notes/722264 (SAP Service marketplace login required)

Summary :
When editing an existing business partner (BP) in SAP, the address fields are unexpectedly editable in additional BP roles. This issue arises because standard field modification criteria (BP role, activity, and BP type) do not suffice to restrict address field modifications as needed. The solution is to develop a new field modification criterion using the Business Data Toolset, which doesn't require creating new customizing tables. Instead, implement logic in function module FMOD1 to alter field statuses appropriately, setting them to "display" as per example code provided in SAP's note.

Key words :
call function 'bus_parameters_issta_get'      importing        e_objap      = lv_objap        e_aktyp      = lv_aktyp        e_xdinp      = lv_xdinp, created  call function 'bup_bupa_but000_get'    importing      e_but000      = ls_but000      e_but000_stat = ls_but000_stat, direct input  check lv_objap = 'bupa', check ls_but000_stat-aktdb ne '01', separate field modification criterion, ls_but000          type but000, ls_but000_stat     type bus_istat, function module, field modification criterion, business data toolset

Related Notes :

591578 SAP BP: Frequently asked questions