Ansicht
Dokumentation

FMFG_USFLDVAL_EXIT - BAdI: Definition of US Federal Government Fields

FMFG_USFLDVAL_EXIT - BAdI: Definition of US Federal Government Fields

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the Functions for U.S. Federal Government (PSM-FG) component. You can use this BAdI to define the United States Federal Government field list for which you want to provide field values and field value texts. Fields are identified by their data element. Fields with the same data element contain the same field values.

You can use this BAdI to provide F4 functions on the fields and field value checks for data entry screens. If field values are not defined for a field, the check is not performed.

You can provide hardcoded field values in your own BAdI implementation or by using a Customizing table that contains the field values.

You assigned the FMFG_USFIELD_F4 search help in the data dictionary to the corresponding field in the structure. You can access the data dictionary using transaction SE11. We deliver the FMFGUSKONTKEY_DATA structure with this assignment.

For more information about the standard settings (filters, single or multiple uses), see the Enhancement Spot Element Definitions tab in the BAdI Builder (transaction SE18).

If you want to use your own implementation, complete the following steps:

  1. In the dialog box, enter the enhancement implementation, short text, and composite enhancement implementation.
If no composite exists, create a new one by choosing Create.
  1. Save your entries, and assign the implementation to a development class.
  2. Select the BAdI tab and choose Create BAdI.
  3. In the dialog box, enter the BAdI definition, BAdI implementation, implementation class, and description, and press Enter.
  4. On the next screen, expand the implementation node and double-click Class.
  5. With your cursor on the method, double-click to enter method processing.
  6. Enter the code for the implementation between the method <Interface name> ~ and endmethod statements.
The sample implementation is copied automatically.
  1. Save and activate all objects.

You can find example implementations in the BAdI Builder on the Enhancement Spot Element Definitions tab in the Implementation Example Classes section.

The following example implementation is available:

  • CL_FMFG_USFLDVAL_EXIT_EXM
If no implementation exists, this example is used.
The example contains comments which should help you to build your own implementation. It differentiates between fields in which the field values are programmatically provided (for example, fields containing year values) and fields in which the values are maintained in Customizing. The checking function allows blank values as valid entries and does not validate fields for which field values are not defined.






PERFORM Short Reference   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 3673 Date: 20240523 Time: 215752     sap01-206 ( 62 ms )