cancel
Showing results for 
Search instead for 
Did you mean: 

Record Management Framework

s0001711731
Explorer
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Pragya_Pande
Contributor
0 Kudos

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

s0001711731
Explorer
0 Kudos

Dear Pragya,

i want to display records. And in this record is a node, for example a business object like purchase order.

The final result is to display the node and not the purchase order in the trabsaction ME23N!

Thank you for further help

Günter

Pragya_Pande
Contributor
0 Kudos

Dear Gunter,

This kind of functionality is not available in BAPI or APIs directly(eg with some parameter). If this is a top X prio for you then you may need to redefine the visualization class CL_SRM_REC & put the focus on the tree node.Is this really that critical?

Best Regards,

Pragya

s0001711731
Explorer
0 Kudos

Hello Pragya,

the project is running productive and all customer are happy.

This function was the top and the customer ask me every week . . .

Have you a description to redefine the class?

Best regards

Günter

Pragya_Pande
Contributor
0 Kudos

Dear Gunter,

I will check out on Monday or Tuesday & let you know. If the system is productive then there may be a further complication since redefinition may not be an option for you(redefinition goes with new service provider definition mostly).

Best Regards,

Pragya

Pragya_Pande
Contributor
0 Kudos

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

s0001711731
Explorer
0 Kudos

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

Pragya_Pande
Contributor
0 Kudos

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