on 05-07-2009 9:03 PM
Hi,
In Shopping Cart-Sourcing, by default it is selecting contracts based on ORDERED_PROD,PRODUCT (material no).
But I want to implement search logic to get contracts based on CATEGORY_ID.
All the contracts related to this category_id I want to get that contracts.
Can any one give idea how I can get this?
I tried to implement BADI -BBP_SOS_BADI
Method -BBP_SOS_SEARCH
I tried to use the FM - BBP_PD_INDEX_FIND and pass the contracts to the BADI but it is not working.
Did anyone worked on this method, please let me know how to get the complete contracts info and sending back to BADI?
Thanks in advance.
Hi,
there is one open point for me in your question. Would you like to search:
1) only for product category contracts (which don't have product ID)
2) for contracts, which category equals to the category ID of the SC item (practically also contracts should appear, which have from the SC items product ID different product ID)
For the first case you only need to modificate the coding in the form SOS_LOCAL_CALL_PD (LBBP_SC_APPF87):
Kontext-Block
else.
clear ev_error.
* Delete heade contract from the SOS
Delete-Block
DELETE et_con_list WHERE ctr_item_number = space.
Insert-Block
* DELETE et_con_list WHERE ctr_item_number = space.
With this change in addition to the ORDERED_PROD search also product category contracts will be found.
Regards,
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.