Ansicht
Dokumentation

FMFG_USKONTUI_EXIT - BAdI: Functions for US Federal Government Fields Dialog

FMFG_USKONTUI_EXIT - BAdI: Functions for US Federal Government Fields Dialog

PERFORM Short Reference   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 prefill field values in the US Federal Government fields. You can specify display options (display only, mandatory, or hidden) for each field that appears in the US Federal Government Fields dialog box. You can also adjust the field checks in the dialog or on a document level.

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 a name for 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:

  • FMFG_USKONTUI_EXIT_IMPL and class CL_FMFG_USKONTUI_EXIT_IMPL
You can add to this example implementation, or you can create your own implementation to replace it. The implementation contains comments to help you build your own implementation.
The delivered implementation includes the check for entering trading partner fields for a federal trading partner. For more information, see Customizing activity Define Trading Partner Exceptions.
The exit suggests that changes to all US Federal Government fields can be influenced by a customer implementation. Trading partner fields are controlled in standard delivered code, which limits changes to the trading partner fields when you are posting an actual document that references a predecessor document or when you are changing a document that is referenced by another document. You can provide stronger control using a customer implementation within this exit.
When creating a document that references a predecessor document, the field values default from the predecessor document.
Individual field value checks include the checks provided inBAdI: Definition of US Federal Government Field Values.






BAL_S_LOG - Application Log: Log header data   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 3813 Date: 20240523 Time: 193716     sap01-206 ( 61 ms )