on 06-18-2007 6:02 AM
Hi,
I am working on a requirement where, on a certain predefined action, I have to take the user to BP transaction (in CRM system), open a specific BP for him & take him to a particular tab (Notes).
First I tried call transaction BP. But I couldn't find an easy way to open a particular business partner as BP transaction doesn't accept BP number as a parameter on the first screen.
Then, using "DISPLAY" method of BOR object of CRM business partner (BUS1006), I have been able to achieve first two steps i.e. I can take user to BP transaction & open a specific BP for him. But I haven't been able to figure out a way how to take him to a specific tab.
Has anyone done something like this before or have any idea how this can be achieved?
Regards,
Kaushal
Hi,
Do not use call BP transaction. Instead Use the method start_with_navigation of class cl_bupa_dialog_joel. In parameter IV_REQUEST fill in the SET_BUPA_SUB_HEADER_TAB with the needed tab id. And also fill all the other details like partner number , role etc.
Also checkout the parameter IV_OPTIONS.
let me know if you need further help.
Thanks and warm regards,
Smita.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Here come some code sample for u.
*Some constants
CONSTANTS gc_x TYPE c VALUE 'X'.
*Global data necessary for this demo
DATA gv_request TYPE REF TO cl_bupa_navigation_request.
DATA gv_options TYPE REF TO cl_bupa_dialog_joel_options.
*TYPES: begin of bu_roles ,
bprole type bus_roles-role,
bpview type bus_roles-bpview,
isgroup type bus_roles-IS_GROUP,
end of bu_roles.
DATA gv_partner TYPE bu_partner.
DATA: gv_partner_role TYPE bus_roles,
lv_bupr_main TYPE bus_bupr_maintenance.
PARAMETERS iv_bp TYPE bu_partner.
set start-up navigation-----------------------------------------------
gv_partner = iv_bp.
CREATE OBJECT gv_request.
*set partner maintenance
CALL METHOD gv_request->set_maintenance_id
EXPORTING
iv_value = gv_request->gc_maintenance_id_partner.
*set partner number to start with (in case of a guid just use the method
*set_partner_guid)
CALL METHOD gv_request->set_partner_number( gv_partner ).
*set the partner role to start with
*CALL METHOD gv_request->set_bupa_partner_role( gv_partner_role ).
*set the activity you want the user to start the maintenance with
CALL METHOD gv_request->set_bupa_activity
EXPORTING
iv_value = gv_request->gc_activity_display.
CALL METHOD gv_request->SET_BUPA_SUB_HEADER_TAB
EXPORTING
iv_value = 'BUP060'.
*set start-up options----
CREATE OBJECT gv_options.
*start the transaction with an invisible locator
CALL METHOD gv_options->set_locator_visible( space ).
*don't allow navigations to other partners
CALL METHOD gv_options->set_navigation_disabled( gc_x ).
CALL METHOD gv_options->SET_BUPR_CREATE_NOT_ALLOWED( gc_x ).
lv_bupr_main-create_allowed = gc_x.
lv_bupr_main-change_allowed = gc_x.
lv_bupr_main-delete_allowed = gc_x.
CALL METHOD gv_options->SET_BUPR_MAINTENANCE( lv_bupr_main ).
CALL METHOD gv_options->SET_ACTIVITY_SWITCHING_OFF( space ).
*Call the business partner maintenance----
*with those parameters
CALL METHOD cl_bupa_dialog_joel=>start_with_navigation
EXPORTING
iv_request = gv_request
iv_options = gv_options
EXCEPTIONS
OTHERS = 1.
Smita.
HI,Kaushal Shah
I think you can check the FM 'CCMCS_BP_DISPLAY2', you can copy a new FM like 'ZCCMCS_BP_DISPLAY2' .add an input parameter of BP NO.
DO IT.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.