Binocular search for Cost Center
I want to add accounting category and cost center Infos to BID document. So I added the following fields to the CI_BBP_HDR and CI_BBP_HDR_BID structures:
ZZCOST_CTR of type KOSTL
ZZACC_CAT of type BBP_ACC_CAT
How can I add a binocular search to ZZCOST_CTR that takes in consideration the ZZACC_CAT value?
Thank you for your help,
You have 2 options:
- try to activate generic accounting screen in BBP_BID_INV (I never did it)
- re-use the standard R/3 search feature with a R/3 dialog RFC used in SC/PO item accounting screen (see thread How to restrict the Cost Center Search ?)
In that case, look at FORM f4_search_costcent of LBBP_PDH_ACCF20 to see how SRM uses META_SHLP_CALL.
For CUF, you can assign search help in the CI structure field definition.
So you have 2 options:
- create a Z search help that re-use the logic of FORM f4_search_costcent (read user's attribute ACS to get the FI system), and assign it in your CI structure
- use BADI to handle CUF in your own specific screen, so you can use the instruction PROCESS ON VALUE-REQUEST (like in SAPLBBP_PDH_ACC 2000).
(for BADI BBP_CUF_BADI, see Using BBP_CUF_BADI to display custom screens)