Application Development and Automation 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: 
Read only

Adding Long text on a network activity

Former Member
0 Likes
1,047

Hi All,

i am uploading a file and then i am wanting to add long text to a network activity. i have tried the FM EDIT_TEXT_INLINE and SAVE TEXT. here is an example of how i used it.

call function 'SAVE_TEXT'

EXPORTING

header = thead

insert = ' '

savemode_direct = 'X'

TABLES

lines = tline.

move 'AUFK' to thead-tdobject.

move 'AVOT' to thead-tdid.

move 'EN' to thead-tdspras.

move '700000007084900000002' to thead-tdname.

move 'test' to tline-tdline. append tline.

i am not getting the text on the long text of the activity ?

anyone have any ideas. .thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
829

Do you execute FM COMMIT_TEXT after SAVE_TEXT ? It's documented.

Rob

4 REPLIES 4
Read only

Former Member
0 Likes
830

Do you execute FM COMMIT_TEXT after SAVE_TEXT ? It's documented.

Rob

Read only

0 Likes
829

Hi Rob,

thanks for your quick response.

i have a commit work there already. i was adding one test line and it does not show up on the network activity, now when i add a second test line the second line item shows up. exp

move '*' to tline-tdformat. "this does not show up

move 'test' to tline-tdline.

append tline.

move '*' to tline-tdformat. " this one does.

move 'test 2' to tline-tdline.

append tline.

it appears i have to do some more research as to why.

thanks scott

Read only

0 Likes
829

I think you have to use the particular FM I mentioned. It's different than a database COMMIT.

Rob

Read only

0 Likes
829

Hi Rob,

well it seems if i use the commit or the FM it works. now i have a new problem i was updating the text on the Operative network cn22, now i am trying to do the same for the Standard network (cn02) and it is not working. I am using the following info to update the text line.

move 'ROUTING' to thead-tdobject.

move 'PLPO' to thead-tdid.

move 'EN' to thead-tdspras.

move '7000100000400000002000000020' to thead-tdname.

. i do the FM READ_TEXT, then SAVE_TEXT. Then the FM COMMIT_TEXT. but it does not add these new lines to the long text of the network activity.

thanks scott