Ansicht
Dokumentation

CRM_ISU_PRODSEL - BAdI: Define Customer-specific Fields for Product Proposal

CRM_ISU_PRODSEL - BAdI: Define Customer-specific Fields for Product Proposal

Fill RESBD Structure from EBP Component Structure   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.
SAP E-Book

User Exit for Product Proposal

You use this Business Add-In to integrate the new fields in the search help CRM_ISU_GET_PRODUCT.

The following seven methods are available for this purpose (see example coding):

1.) CHANGE_SELECTION_OPTIONS:

You use this method to process incorrect entries in the selection screen. If, for example, an industry sector is entered, which is not available in the system, then the user can issue a corresponding message.

2.) COLLECT_SELECTION_OPTIONS:

This method is used to map the field names from the search help interface to the field names from the database table CRM_ISU_PROD. This is necessary because the field names are generated from table CRM_ISU_PROD and begin as follows: "FF00xx".

The method is also required to create a table of all selection criteria from the entries in the selection dialog box.

3.) COMPLETE_OUTPUT_STRING:

You use this method to prepare the hit list. Only values from those fields that appear in the hit list are written in the output string. You define this in advance in Customizing.

The method is also required to create a table of all selection criteria from the entries in the selection dialog box.

4.) FILL_FIELDS_ON_DYNPRO:

You use this method to preassign the new fields in the search help CRM_ISU_GET_PRODUCT in the selection screen. If necessary, you can also set these fields to be not ready for input.

5.) FILL_GRID_LEVEL_VALUE_TABLE:

You use this method to dynamically fill the value table for the grid level (field GRID_LEVEL), depending on the division. In the standard system, the value table CRM_ISU_GRIDLEV2 is only maintained if division 01 (electricity) was found. For all other divisions, the table remains empty and this method must be defined in order to start the process.

6.) READ_FURTHER_ENVIRONEMNT:

This method is used to read additional data/information from the connection object, premise, and point of delivery area. This is required to preassign the new fields in search help CRM_ISU_GET_PRODUCT at the selection screen.

7.) SELECT_VIA_CUSTOMER_CRITERIA:

You use this method to select products using only customer-specific selection criteria. However, it is only used if no products are found using the standard criteria. Otherwise the method COMPLETE_OUTPUT_STRING is used.

The following prerequisites are necessary to add new fields to search help CRM_ISU_GET_PRODUCT (the first three activities are not included in the IMG):

1.) You must have defined a new set category, which contains only the new fields (the existing product master data has been adjusted). The new set category must then be included in the corresponding hierarchy / category.

2.) You have added the new fields to the structure CRM_ISU_PRODUCT_SELECTOR_STRUC. A CI include allows you to make the adjustment without any modifications.

3.) You have modified the search help CRM_ISU_GET_PRODUCT accordingly (this corresponds to a modification).

4.) You have defined the new fields as mandatory or optional fields.

5.) You must then have defined the methods from the BAdI CRM_ISU_PRODSEL_EXIT (see above).

6.) You have not deactivated the search help CRM_ISU_GET_PRODUCT, otherwise it is inactive.






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

Length: 3551 Date: 20240606 Time: 125844     sap01-206 ( 59 ms )