Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

storing text data

Former Member
0 Kudos

hi,

i have requirement where in a custom transaction user will enter few lines of text.

Like

1. This data blah blah djfhdhfhdhdf

dfkjdkfjldf dfhldhfd

2. This message dklfhldfw fw fwf;wf u;wfwf

wfl wjfwjf jwl;jf;wjfjl'wf

wfj w jfwfw;

How to handle this entry at screen (dynpro) level.

As well what is the best method to store this data ?

Assuming per line the user will type no more than 40 characters.

thks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

1) For displaying.

Use the text editor control to display the data..Check the demo program RSDEMO_DRAG_DROP_EDIT_TREE on how to create a text editor control.

2) For saving.

You can create a text object / text ID in SE75..Then use SAVE_TEXT & READ_TEXT to save the text.

OR

Create a new table to store the text..

Thanks

Naren

2 REPLIES 2

former_member214498
Contributor
0 Kudos

Hi

The data will be stored in one big string however you need to write routine to distribute this in lines (say 40 words) in the dynpro.

You should examine these DB tables by SAP since they store the text data:

SOFFCONT1

HRP1002( Reference to text data).

Regards

Waz

Former Member
0 Kudos

Hi,

1) For displaying.

Use the text editor control to display the data..Check the demo program RSDEMO_DRAG_DROP_EDIT_TREE on how to create a text editor control.

2) For saving.

You can create a text object / text ID in SE75..Then use SAVE_TEXT & READ_TEXT to save the text.

OR

Create a new table to store the text..

Thanks

Naren