cancel
Showing results for 
Search instead for 
Did you mean: 

Helper Class to retrieve text from the trq root

Former Member
0 Kudos

Hi experts,

would u kindly let me know which helper class I can use to retrieve texts from the OTR? I would like to retrieve certain text IDs for a form.

As input parameter, I just need the OTR key and the text id number,

Thank you in advance

Petra

Accepted Solutions (1)

Accepted Solutions (1)

Dragoș
Employee
Employee
0 Kudos

The texts are stored in the DO text collection, which itself is under the node ROOT of object /SCMTMS/TRQ.

The path is the following:

TRQ.Root

  • (1:1) TextCollection.Root
    • (1:n) TextCollection.Text
      • (1:1) TextCollection.Content

To navigate from TRQ. Root to TextCollection.Root you can use association /scmtms/if_trq_c=>sc_association-root-textcollection, but for the DO subnodes you need to compute the dynamic node and association keys, depending on the host node. This can be done with the method GET_DO_KEYS_4_RBA of class /SCMTMS/CL_COMMON_HELPER.

An example on how this is done is in method GET_GENDATA_TEXT of /SCMTMS/CL_UI_VIEWEXIT_TRQ.

Former Member
0 Kudos

Hi Dragos,

thanks a lot for your answer which helps me so much!!

Regards

Petra

Madjid
Participant
0 Kudos

do you know an easy way to navigate to TextCollection from TRQ root?

thanks

Answers (0)