Hi everyone,
Good day.
We need to dynamically disable (not editable) and enable (editable) Account Assignment Category in SRM 7.
We have already set the customizing in SPRO via the link below:
SAP Supplier Relationship Management -> SRM Server -> Cross-Application Basic Settings -> Extensions and Field Control (Personalization) -> Configure Field Control -> Configure Control for Fields of Substructures -> Metadata for Fields of Substructures and Table-Like Enhancements
Below is the customizing details:
Bus. Object Set Type 31 Account assignment
Structure Field Name ACC_CAT Account Assignment Category in SRM
Bus. Object Type BUS2203 Confirmation of Goods/Services
Set Level ITEM Item Level
Set Subtype
Dyn. Customer Class ZCLASS
Dyn. Customer Method ZMETHOD
In our Z Class, a Z Method was created with the below parameters:
IV_FIELD_NAME | Importing | Type | /SAPSRM/PDO_META_FIELD_NAME |
IS_HEADER | Importing | Type | DATA |
IS_ITEM | Importing | Type | DATA |
IS_SET | Importing | Type | DATA |
IS_ADD_DATA | Importing | Type | /SAPSRM/S_PDO_META_FLD_ADD_DAT |
CS_METADATA | Changing | Type | /SAPSRM/S_PDO_FIELD_METADATA |
However, upon testing to testing to check if it will pass thru my Z Method. The error below appears:
Formal parameter not found during dynamic method call.
Method: /SAPSRM/IF_PDO_META_CONF_BO~GET_BO_SET_FIELD_METADATA of program /SAPSRM/CL_PDO_META_CONF_PROV=CP
Method: /SAPSRM/IF_PDO_META_CONSUMER~GET_FIELD_METADATA of program /SAPSRM/CL_PDO_META_BO_CONF===CP
Method: /SAPSRM/IF_PDO_META_CONSUMER~GET_FIELD_METADATA of program /SAPSRM/CL_PDO_META_BOCONF_ADVCP
Method: /SAPSRM/IF_PDO_META_CONSUMER~GET_FIELD_METADATA of program /SAPSRM/CL_PDO_META_HANDLER===CP
Method: UPDATE_META_DATA_ELEMENT of program /SAPSRM/CL_CH_WD_MAP_META_HDLRCP
Method: UPDATE_META_DATA of program /SAPSRM/CL_CH_WD_MAP_META_HDLRCP
Method: BIND_ACC_DATA_OVERVIEW of program /SAPSRM/CL_CH_WD_DODM_ACC=====CP
Method: /SAPSRM/IF_CLL_MAPPER~REFRESH of program /SAPSRM/CL_CH_WD_DODM_ACC=====CP
Method: WDDOMODIFYVIEW of program /1BCWDY/1360VCXTW2LDEKBANMKV==CP
Method: IF_WDR_VIEW_DELEGATE~WD_DO_MODIFY_VIEW of program /1BCWDY/1360VCXTW2LDEKBANMKV==CP
Can you please provide the detailed approach on how to dynamically disable (not editable) and enable (editable) Account Assignment Category in SRM 7? Can you kindly provide example code (if any)? Thanks in advance.
Best regards,
Brando