Documentos de Académico
Documentos de Profesional
Documentos de Cultura
1. Add the field BPTAXNUM to Search Structure CRMT_BUPA_IL_HEADER_SEARCH and activate the structure.
Activate the table once done 3. Now that the field is now added to the search structure CRMT_BUPA_IL_HEADER_SEARCH, it is available in Componet workbench accessed using tcode BSP_WD_CMPWB Choose component ICCMP_BP_SEARCH (for interaction center BP Search) and click on Display Selec t view ICCMP_BP_SEARCH/BuPaSearchB2B Choose the context node for Customersearch. You will find the TAX_NUMBER entry there 4. Now create a configuration view and add the tax number to the search. The view looks as shown in the screenshot
5. Create an implementation of the BAdI BADI_CRM_BUPA_IL_SEARCH_EXT in order to map the data to be fetched into the field created above.
01.DATA: ls_bupa_header_search TYPE crmt_bupa_il_header_search, 02. rt_bu_type TYPE RANGE OF but000-type, 03. rs_bu_type LIKE LINE OF rt_bu_type, 04. lt_partner_keys TYPE bup_partner_guid_t, 05. lt_partner_keys1 TYPE bup_partner_guid_t, 06. lr_partner_keys LIKE LINE OF ct_partner_keys, 07. lt_dfkkbptaxnum TYPE TABLE OF dfkkbptaxnum, 08. lr_dfkkbptaxnum LIKE LINE OF lt_dfkkbptaxnum. 09. 10. MOVE-CORRESPONDING is_parameters TO ls_bupa_header_search. 11.IF ct_partner_keys IS NOT INITIAL. 12. SELECT partner partner_guid FROM zcrmv_bptaxnum 13. INTO CORRESPONDING FIELDS OF TABLE lt_partner_keys 14. FOR ALL ENTRIES IN ct_partner_keys 15. WHERE taxnum = ls_bupa_header_search-tax_number 16. AND partner_guid = ct_partner_keys-partner_guid. 17. ELSE. 18. SELECT partner partner_guid FROM zcrmv_bptaxnum 19. INTO CORRESPONDING FIELDS OF TABLE lt_partner_keys 20. WHERE taxnum = ls_bupa_header_search-tax_number. 21. ENDIF. 22. 23. ct_partner_keys = lt_partner_keys. 24. IF ct_partner_keys IS INITIAL. 25. RAISE no_partners_found. 26. ENDIF.
6. Add the tax number to the ICCMP_BP_DETAIL component in order to show it in the result selection. In order to do so, we need to right click on the context node in the view structure tab in tcode BSP_WD_CMPWD and choose create. A wizard will be initiated. 7. Maintian the following details in the wizard, leave rest all empty.
continue to press continue for the remaining screens, till you reach the "Define Dependency" screen. Maintain the
Imp: Donot forget the check the AlwaysCreateInstance option. Now complete the wizard. 8. Now configure the view and add the TAX Number field to the details view. Now the process is complete, and it is now possible to search and confirm BP based on BP Tax Number