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

Time out when using BDC for TCODE CO02

Former Member
0 Likes
950

I am running a BDC to add long text of Production Order. (call transaction 'CO02')

When I save the order, "time out" happened.

If running CO02 manual,

the order save successful,

time out situation can't happen.

please help to me.

thanks!!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
879

Why not try using the SAVE_TEXT function module with the correct parameters?

7 REPLIES 7
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
879

I'm think that there may be a problem updating the text in BDC. If CO02 uses a text edit container to allow the user to update the long text, then it will probably not work in a Background BDC. It is dependent on the gui container.

Regards,

Rich Heilman

Read only

0 Likes
879

I have just ran some tests. Instead of updating the long text via the "Long Text" tab, use the Long Text Icon next to the production order number. This will thru the SAPscript editor. By using this, it will update the text container in the long text tab.

So, record your recording again in SHDB, this time click the icon next to the production order, and enter your text there, don't go to the "long Text" tab.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
880

Why not try using the SAVE_TEXT function module with the correct parameters?

Read only

0 Likes
879

By the way, please make sure that you mark this post as a question, and award points for helpful answers.

Thanks.

Regards,

Rich Heilman

Read only

0 Likes
879

Thanks for your answer.

I have a question about call function 'SAVE_TEXT'.

To create Long text:

HEADER-TDOBJECT = 'AUFK'.

HEADER-TDNAME = '050000100017043'.

HEADER-TDID = 'KOPF'.

HEADER-TDSPRAS = 'EN'.

LINES-TDFORMAT = '/'.

LINES-TDLINE = 'TEST LINE 1'.

APPEND LINES.

CALL FUNCTION 'SAVE_TEXT'

EXPORTING

HEADER = HEADER

SAVEMODE_DIRECT = 'X'

TABLES

LINES = LINES

EXCEPTIONS

ID = 1

LANGUAGE = 2

NAME = 3

OBJECT = 4

OTHERS = 5 .

Run the program successful.

It is work using function 'READ_TEXT' to read long text.

But using TCODE CO03 to display order 100017043,

can't see the long text.

Read only

Former Member
0 Likes
879

Need to set AUFK-LTEXT = 'E'.

^^

Read only

0 Likes
879

Dear Lingyun Chang,

Now I can read the long texts by function module 'READ_TEXT', and AUFK-LTEXT has also been set to 'E', but still I can't see it in CO03. Could you kindly help? Thanks.

Best regards,

Arwen