on 02-24-2011 12:09 PM
Hi,
i want to start the RM Framework from the purchase order.
My problem is not the call of the framework.
The problem is to open the tree on a dedicated position.
I use following coding to start the framework:
l_docid-l_dcl = l_dcl.
l_docid-l_guid = l_guid.
ls_spoid-id = 'DOC_ID'.
ls_spoid-value = l_docid.
INSERT ls_spoid INTO TABLE lt_spoid.
ls_spoid-id = 'VERSION'.
ls_spoid-value = '0'.
INSERT ls_spoid INTO TABLE lt_spoid.
ls_spoid-id = 'VARIANT'.
ls_spoid-value = '0'.
INSERT ls_spoid INTO TABLE lt_spoid.
CREATE OBJECT lr_srm.
TRY.
CALL METHOD lr_srm->set_instance_data
EXPORTING
im_area_id = 'S_AREA_RMS'
im_activity = if_srm_activity_list=>display
im_rms_id = 'Z_RMS_EINKAUF'
im_sps_id = 'Z_RMS_EINKAUF_AKT'
im_sp_poid = lt_spoid.
CALL METHOD lr_srm->get_srm_service
RECEIVING
re_service = lr_srmserv.
CALL METHOD lr_srmserv->get_cross_qy_property_service
RECEIVING
re_service = lr_srm_cqu.
CALL METHOD lr_srm->get_poid
RECEIVING
ex_poid_ref = lr_poid.
CALL METHOD lr_srm_cqu->get_query
EXPORTING
im_poid = lr_poid
RECEIVING
re_if = lr_srm_query.
Organizer aufrufen
CALL METHOD lr_srm->start
EXPORTING
option_organizer = if_srm=>true
option_navigation = if_srm=>true.
CATCH cx_srm_initialization INTO lrc_init.
CATCH cx_srm_no_authorization .
CATCH cx_srm_poid INTO lrc_poid.
CATCH cx_srm_registration_data INTO lrc_reg.
CATCH cx_srm_poid_dir INTO lrc_poidd.
CATCH cx_srm_activity .
CATCH cx_srm_framework.
ENDTRY.
And now i want, for example, start a query to display the requested document.
Please can anyone help me?
regards
Günter
Dear Gunter,
What object are you trying to display? Only record & case has got nodes. Are you talking azbout opening a record?
Best regards,
Pragya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Guenter,
For this functionality, at the very least, you will need to redefine the visualization class of the Service Provider record. The visualization class CL_SRM_REC contains the tree instance in GLOB_SP_TREE attribute. This is an instance of CL_SRM_REC_TREE which implements IF_SRM_TREE. if_srm_tree->search can be referred to as to how an element can be searched & highlighted. Any access to tree always requires a node to start off so you can use the root node. It will be the first entry of GLOB_NODEKEY_TAB in CL_SRM_REC_TREE . There is a possibility of search in the record tree on the screen. That uses the method I have mentioned above. You can check the on screen search further to explore in this direction.
Best Regards,
Pragya
Hi,
this functions are well known to me, but they not solve my problem.
I want to view a single node in the organizer three structure and not in
a detailled view. Should like the search function.
Have you any idea?
Günter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Guenter,
Why not use BAPIs like SRM_DOCUMENT_DISPLAY etc directly? Or if you want to display the organizer screen along with object then use SRM_START_FRAMEWORK_RFC(or check for with SRMFRAMEWORKRFC for exact name). THere is a flag which
decides whether left side of screen like role-based view, history is also shown or not.
Best Regards,
Pragya
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.