cancel
Showing results for 
Search instead for 
Did you mean: 

Access multiple OTR texts at once

Former Member
0 Kudos

Hi,

I need to access multiple OTR texts in my Web Dynpro view at once,I know the method CL_WD_UTILITIES=>GET_OTR_TEXT_BY_ALIAS will retrieve one OTR text when alias is provided.

I need to pass multiple aliases to retrieve their respective OTR texts.

Can any one let me know how to get this done?

Thanks.

Regards,

Salma

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

If you want to select multiple OTR text at a time then you can select it directly from the table

go to table SOTR_HEAD and pass the alias name in the field ALIAS_NAME. From the selected record get the value of the field "CONCEPT".

Pass the value of CONCEPT selected above in the field CONCEPT of table SOTR_TEXT. The field TEXT will contain the otr text created by you. You can create a sql statement to fetch all in one shot in an internal table.

Thanks

Vishal Kapoor

Former Member
0 Kudos

hello Salma,

Right now only method is CL_WD_UTILITIES=>GET_OTR_TEXT_BY_ALIAS.

You can try with looping throught all.

Best regards,

Rohit

Former Member
0 Kudos

_

Get all the OTR texts by passing all the alias...

I don't think we can get all the OTR texts by passing all the alias one time..If we does want all the texts, i think we can only use the Internal table..For example:


Loop at lt_table into ls_table.
   CL_WD_UTILITIES=>GET_OTR_TEXT_BY_ALIAS( ls_table-alias ).
Endloop.

So sorry for my Joke..._..

Best wishes..