Ansicht
Dokumentation

/ISDFPS/BADIALVFIELD - BAdI: Define Display of Assignments

/ISDFPS/BADIALVFIELD - BAdI: Define Display of Assignments

ABAP Short Reference   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

You can use this Business Add-In to define how fields are displayed on the Structures Workbenchtab pages on which assignments to material and real estate objects are mapped.

You want to override the field attribute settings for standard or customer-specific fields.

In the standard system, it is generally possible to change the assignments of material and real estate objects that have the status Planned. In subsequent statuses, most of the data fields are not ready for input. This also applies for the customer-specific fields for the assignment, and is predefined in the application.

Implement method /ISDFPS/IF_FORCER_ALV_FIELDS~SET_FIELDCATALOG to change the display properties at column level.

Implement method /ISDFPS/IF_FORCER_ALV_FIELDS~SET_EDITABLE_FIELDS to change the display properties at data record level.

Hide columns for specific transactions:

METHOD /isdfps/if_forcer_alv_fields~set_fieldcatalog.

  DATA: ls_fieldcat   TYPE   lvc_s_fcat.

  check sy-tcode = '/ISDFPS/MPO' or sy-tcode = '/ISDFPS/LPL1'.

* hide specific columns
  LOOP AT ct_fieldcatalog INTO ls_fieldcat.
    CASE ls_fieldcat-fieldname.
      WHEN 'QUANT_MOD' or 'CATLOG' or 'CATLOGX'.
        ls_fieldcat-tech = 'X'.
    ENDCASE.
    MODIFY ct_fieldcatalog FROM ls_fieldcat.
  ENDLOOP.
ENDMETHOD.






Addresses (Business Address Services)   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 1858 Date: 20240419 Time: 221038     sap01-206 ( 29 ms )