Ansicht
Dokumentation

FM_USERDIM_BADI - BAdI: Enhance Customer Field (USERDIM)

FM_USERDIM_BADI - BAdI: Enhance Customer Field (USERDIM)

rdisp/max_wprun_time - Maximum work process run time   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

You use this Business Add-In (BAdI) to customize the customer field in your organization.

If you want to use your own field labels and documentation, copy the data element, FM_USERDIM,and change the field labels and data element documentation.

Note: You use the same domain name as in data element, FM_USERDIM.

Assign this data element in the BAdI method CHANGE_USERDIM_DATA_ELEMENT.

You define values for the customer field in the BAdI method GET_ALL_USERDIM_VALUES. These values are also shown by the standard search help FM_USERDIM_COLL.

You may implement your own validations on permitted values in the BAdI method CHECK_USERDIM_VALUE.

If you want to perform authorization checks on specific values, implement the BAdI method CHECK_USERDIM_AUTHORIZATION.

With BAdI method GET_USERDIM_DESCRIPTION, you assign short texts or descriptions to the customer field.

You've activated the customer field for budgeting and availability control in the Customizing activity Activate Account Assignment Elements in Budgeting under FM Budgeting-->Basic Settings-->Use of Master Data.

If you want to integrate the customer field between budgeting and funds management update, add a field named ZZUSERDIM with your own data element to the coding block. You do this with the coding block transaction in Expert Mode, as described in the implementation guide. Since you've created the desired data element, you may begin with Add Field.

When you add the field to the different structures, for example, CI_COBL, you may assign a search help, FM_USERDIM_COLL.

If you choose another field name for the coding block, implement the BAdI method GET_USERDIM_FIELDNAME_IN_COBL to set the desired field name.

Note: The field name must begin with ZZ or YY.

SAP Note 2321683 describes additional preconditions and restrictions for using the customer field in funds management.

We provide a standard implementation with the default class CL_FM_USERDIM_BADI_SAMPLE.

After you have called the IMG activity, proceed as follows:

  1. In the following dialog box, enter in the field "Implementation" a name for the BAdI implementation and choose Copy.
If implementations have already been created for the BAdI, a dialog box with the existing implementations will be displayed. In this dialog box, choose Create.
  1. In the corresponding field, enter a short text for implementation .
  2. In the tab Propertiesenter filter properties - if this is a filter-dependent BAdI.
  3. Choose the tab Interface.
The name of the implementing class is generated by the system based on the name of your impmlementation. You can change the name.
If the BAdI is a menu exit, the tab FCodes also appears.Enter a function here and, if necessary, additional data.
  1. Save your entries and assign a package.
  2. Position the cursor on a method. Call up the Class Builder by double-clicking it.
  3. Between the statements method <Interface-Name>~<Name of Method>. and endmethod, enter the coding you request for the implementation.
  4. Save and activate your coding, and navigate back to the screen Change Implementation.
  5. Save on the screen Change Implementation.
Note: You can first create an implementation for the BAdI and then activate this later on. In this case, close the processing function at this time.
  1. Choose Activate.
When the application program is executed, the coding you have created will be run.






Vendor Master (General Section)   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 5372 Date: 20240523 Time: 195603     sap01-206 ( 75 ms )