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

Commit work

Former Member
0 Likes
607

Hi all,

I have a program to copy data from one internal order to other internal order.for ex ; i have internal order 001 i need to copy all data of 001 to 002 . My program is working fine .But i have field called long text after 1 st execution program its not copying to 002 but if i execute 2nd time its copying . is there any problem with my commit work and wait statement.

Thanks,

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
582

Hi,

If you are using SAVE_TEXT to save the long text then pass the value 'X' in the parameter SAVEMODE_DIRECT. This might work..

THanks,

Naren

5 REPLIES 5
Read only

Former Member
0 Likes
583

Hi,

If you are using SAVE_TEXT to save the long text then pass the value 'X' in the parameter SAVEMODE_DIRECT. This might work..

THanks,

Naren

Read only

0 Likes
582

Naredran ,

Iam passing 'x' to savemode_direct .But still its not working..

Read only

Former Member
0 Likes
582

Are you first creating the internal order 002 as a copy of 001 and then adding the long text to 002 using SAVE_TEXT? In that case, yes you are missing the COMMIT AND WAIT after the creation of internal order 002.

Read only

Former Member
0 Likes
582

Yes the document for which you are trying to upload text is not yet committed so you cannot save the text for that document.

Read only

0 Likes
582

Hi ,

I need pass 'x' to parameter insert in save_text F.m.

As always,thanks for your help.