cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the model structure details.

muhammed_nishad
Participant
0 Kudos

Hi,

1. I created a Record  Model Tcode "Organizer"

2. I created folder structure for Record Model.

When i create a new folder a new node id is created.

In this case nodeID is '3'.

Now I have a question , Is there a way to get the details  of the folder structure (including Folder Name ,Node ID) , by passing Model Name(or some other way) ?

Regards,

nishad

Accepted Solutions (0)

Answers (3)

Answers (3)

muhammed_nishad
Participant
0 Kudos

Hi ,

I am exposing ,my RMS structure for Creating and displaying the documents through a RFC(Webservice). How can I make use of Authorizations objects to restrict/ grant access to  the Webservice user to fetch / Upload documents .

Regards,

Muhammed Nishad

0 Kudos

Hello, Muhammed!

Please, check report SRM_MODEL_API_HOWTO.

Here you will find how to create instance of IF_SRM_SP_MODEL -  myModelApi.

First you need to create ModelPoid, you can try this way:

l_doc_id type  srmgs_doc_id,

lcl_client_service type ref to if_srm_srm_client_service.

"get poid table

CALL METHOD cl_srm_generic_sp=>create_sp_poid

             EXPORTING

               doc_id  = l_doc_id

             IMPORTING

               sp_poid = lt_sp_poid .

"get poid instance

lcl_client_service ?= cl_scmg_case_api=>get_client_service( im_sps_id ).

ModelPoid = lcl_client_service->poid_get_instance( im_sps_id  = im_sps_id

                                                           im_rms_id  = im_rms_id

                                                           im_sp_poid = lt_sp_poid ).


use this ModelPoid to create instance myModelApi.

Once you get instance myModelApi, as Pragya Pande said call method myModelApi->element_get_all to get all node's info.

Maybe before that you will need to call "open" method or something like that, I didnt test it.

With regards,

Mike.

muhammed_nishad
Participant
0 Kudos

Dear Mike,

Thank you for your help. Infact helped in breaking the issue.

Regards,

Nishad.

Pragya_Pande
Contributor
0 Kudos


Dear Nishad,

You can use IF_SRM_SP_MODEL->ELEMENT_GET_ALL to get all nodes' info and loop over the list.

Best Regards,

Pragya

muhammed_nishad
Participant
0 Kudos

Dear Pragya,

Thank you for your hint.

Regards,

Nishad.