on 12-01-2010 2:39 AM
Hi Guys,
Is it feasible to include "Shop on behalf of" functionality in BBPSC02 (Wizard) transaction thru custom field or by creating a Z transaction coping BBPSC02, please suggest.
Regards
Ganesh
Hi. BADI BBP_SC_MODIFY_UI should allow you to do this.
It allows you to define what buying options (catalogue, material, describe requirement etc.) are available on all transactions, you can simply turn on shop on behalf if sy-tcode = BBPSC02.
Regards,
Dave.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Dave, I can see all the options you have mentioned except shop on behlaf. We are able to enable default screen thru this BADI, however "Shop On behalf" doesnt gets reflected in wizard thou. Is there some other place we need to flag Shop On Behalf to get included in Wizard transaction. Please suggest.
Regards
Ganesh
Dave, we have tried that option but Shop on is reflecting in unmodifable option. We are in SRM5.0, looks like we cant have Shop on behalf as modifiable in Wizard transaction.
We found the below code which is blocking to modify Shop on Behalf in Wizard transaction;
Call the UI control BADI
IF gr_ui_ctrl_badi_sc IS NOT INITIAL.
lv_input = cv_screen_input.
CALL METHOD gr_ui_ctrl_badi_sc->bbp_sc_ui_ctrl
EXPORTING
flt_val = c_shop
is_header = is_header
is_item = is_item
iv_mode = iv_mode
iv_fieldname = iv_fieldname
iv_progname = iv_progname
iv_dynpname = iv_dynpname
CHANGING
cv_invisible = cv_screen_invisible
cv_input_ready = cv_screen_input.
When the field is not set to modifiable by SAP or ICC, the customer
should not be able to set it to modifiable
IF lv_input = '0'.
cv_screen_input = '0'.
ENDIF.
In which version have u used this?
Regards
Ganesh
Hi. I'm really sorry, I found what I was thinking of, it was field DEFAULT_SCR in the BADI which turns on all the default options at the top apart from buy on behalf.
It lets you change goods recipient which is what I was thinking of, sorry.
The code you mention looks like the screen layout BADI, have you tried using that?
Which bit of buy on bahelf do you want to use? Do you need one user to be able to access the attributes of another or is it more for delivery address or approvals?
Regards,
Dave.
You are right Ganesh. I too am working on SRM5.0 and the Wizard does not have the "Shop-on behalf" feature in the extended details. You can add the extended details for items tab using the Badi BBP_SC_MODIFY_UI, but you cannot add the "Shop-on behalf" field in the Wizard, as per my understanding.
Regards,
Ancy
Hi. If you just want it for that then there are other options.
You can create a custom field and put a custom search help on it. Use a search help exit and in the exit you can call a function module that gets the buy on behalf users. I think it is called BBP_F4_GET_BOBUSERS. Search for BOBUSERS* and you should find it.
This will put a custom field on the cart and it will have a drop down that reads the users REQUESTOR attribute and gives a list of users to choose from.
Then you can use BBP_DOC_CHANGE_BADI to change the partners based on the new custom field.
Alternatively, is you are using the N Step workflow, you could just read the new field and work it out the new approval without changing the partner.
1 problem with using a custom field would be that the field is visible on each line item, but you can use BBP_CUF_BADI_2 to hide the field on all but the first item.
If you do not go down this route then you will probably have to change the templates, which might be quite tricky.
Regards,
Dave.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.