cancel
Showing results for 
Search instead for 
Did you mean: 

Container element for text comment

former_member586438
Participant
0 Kudos

Hi

Can someone please assist me with the correct table that I can use to reference my container element to that will be used

for rejection comments..

Needs to be a long text field.

I searched the forum but cant find anything ..

Many thks

Gerhard

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can use Text ID's for this ... create containers required for TextID's and use FM SAVE_TEXT to write value...

To retrieve value use READ_TEXT or the INCLUDE Syntax which ever is suitable for your requirement...

Regards

Gautam

former_member586438
Participant
0 Kudos

Hi

I'm using function CATSXT_SIMPLE_TEXT_EDITOR to create a rejection text comment .

I now need a conatiner element in the WF to receive the long text field ,but cant find an ABAP table and field to use as reference...

Former Member
0 Kudos

Hi,

Just use the same data element TXLINE that the function returns. And of course remember to define it as a multiline element. You don't need to refer to an actual database table - there is an option to to refer to a data dictionary type when you create the container element.

Regards,

Karri

former_member586438
Participant
0 Kudos

Hi

If I use the ABAP Dict Data type option, which data element must I select ?

Former Member
0 Kudos

Hi,

Look the function and check the data element of the returning/exporting data. If I remember correctly, it was returning data of type TXLINE. Try that. This is exactly same logic as with ABAP.

Regards,

Karri

former_member586438
Participant
0 Kudos

Hi

TXLINE is only 72 char ...I need a bigger field to ref to

Former Member
0 Kudos

Hi,

Now, I don't really get you? You said you are using function CATSXT_SIMPLE_TEXT_EDITOR to "create" the text. This function returns the 72 characters long TXLINE (in an internal table). Why do you need a longer text in the container then?

Regards,

Karri

Edited by: Karri Kemppi on Aug 10, 2011 12:34 PM

former_member586438
Participant
0 Kudos

I added a loop in that function to bring back all the lines of the comment and not only the first line(72 char)..

Former Member
0 Kudos

That's why you need to create a multiline container element! When you create the container element, go to the properties tab and set the element as multiline. => Container element will be an "Internal table that has lines of TXLINE.

Or go to SE11 and check "where used list" and find table types that are using TXLINE. Then you can use that table type in the data as dictionary object in the container element.

Or create your own table type that has line of TXLINE, and use that.

Regards,

Karri

Former Member
0 Kudos

>I added a loop in that function to bring back all the lines of the comment and not only the first line(72 char)..

And isn't this function already returning all the lines? At least in my system it does without any extra coding...

former_member586438
Participant
0 Kudos

Can i ask u to please check in your FM what the size is of the exit text parm or what is it referenced to ?

In my FM it is 72

The container element is multi line but only bringing back the 72 char

Former Member
0 Kudos

In changing tab there is parameter CH_TEXT that is table type CATSXT_LONGTEXT_ITAB. (You could actually use this in the container element and it should be then automatically multiline element). This table type consists of lines of TXLINE (72 characters long). If I test the function in SE37, it seems to return all the text that I write in the text box. If the text exceeds 72 characters, there will be several lines...

If you are having problems with the containers, please check that all the container elements / parameters (task, metdod, workflow) are correct type (=mutiline).

Regards,

Karri

former_member586438
Participant
0 Kudos

I'm not sure where my element and parameter is going wrong ,but i will investigate

Many thanks for your help