0% found this document useful (0 votes)
108 views2 pages

Code

This document contains code snippets and references for customizing customer master data and properties in SAP using classes like CL_FPM, IF_FPM, and IF_FPM_CNR_OVP. It includes examples of getting instance references, retrieving services, and modifying toolbar buttons for forms.

Uploaded by

Shaik Fayazuddin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
108 views2 pages

Code

This document contains code snippets and references for customizing customer master data and properties in SAP using classes like CL_FPM, IF_FPM, and IF_FPM_CNR_OVP. It includes examples of getting instance references, retrieving services, and modifying toolbar buttons for forms.

Uploaded by

Shaik Fayazuddin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

USMD_ACC_FLD_PROP_CUST_DEP_SET.

https://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=35124
https://www.guru99.com/create-customer-master-by-t-code-xd01-3.html
cl_fpm=>get_instance( ).
https://help.sap.com/viewer/product/SAP_ASSET_INTELLIGENCE_NETWORK/1908/en-US
Data : LO_FPM TYPE REF TO IF_FPM .

data: lo_ovp type ref to if_fpm_ovp.


BS_CU_MLT_ASSIGNMENT
BS_CU_SALES_AREAS
BS_CU_COMPANY_CODES

lofpm = cl_fpm=>get_instance( ).

lo_ovp ?= lofpm->get_service( cl_fpm_service_manager=>gc_key_cnr_ovp ).

https://answers.sap.com/questions/12042551/showhide-andor-enabledisable-uibb-
form.html

lo_fpm TYPE REF TO if_fpm,


lo_fpm_cnr_ovp TYPE REF TO if_fpm_cnr_ovp,
lo_fpm_ovp TYPE REF TO cl_fpm_ovp,

lo_fpm = cl_fpm_factory=>get_instance( ).
lo_fpm_cnr_ovp ?= lo_fpm-
>get_service( cl_fpm_service_manager=>gc_key_cnr_ovp ).
ls_runtime_info = lo_fpm->get_runtime_info( ).
lo_fpm_ovp ?= lo_fpm_cnr_ovp.

DATA lo_ovp TYPE REF TO if_fpm_cnr_ovp.

DATA lo_fpm TYPE REF TO if_fpm.

lo_fpm ?= cl_fpm_factory=>get_instance( ).

lo_ovp ?= lo_fpm->get_service( cl_fpm_service_manager=>gc_key_cnr_ovp ).

TRY.

lo_ovp->get_toolbar_button( EXPORTING iv_toolbar_element_id = 'DOSOMETHING'

IMPORTING es_toolbar_button = ls_toolbar_ovp_button )

IF iv_eventid = cl_fpm_event=>gc_event_cancel.

ls_toolbar_ovp_button-enabled = abap_false.

ENDIF.

IF iv_eventid = cl_fpm_event=>gc_event_edit.

ls_toolbar_ovp_button-enabled = abap_true.
ENDIF.

lo_ovp->change_toolbar_button( EXPORTING is_toolbar_button = ls_toolbar_ovp_button


iv_override_existing_action = 'X' ).

CATCH cx_fpm_floorplan. " Floorplan exceptions

ENDTRY.

You might also like