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

Problem with Create_Text Function module

0 Likes
1,764

Hi All,

I am using the function module Create_Text to create the text for Condition types in ME31K. Its working fine and creating text when i go to debug mode. Its updating into transactions(ME31K). But if i run the program in back ground or foregorund with out debuging modes its not creating text. Please do let me know any reasons

8 REPLIES 8
Read only

JL23
Active Contributor
0 Likes
1,146

..

Read only

JL23
Active Contributor
0 Likes
1,146

Are you certain that the text did not create after execution?

Check with SE16 in table STXH to be sure.

I guess you are missing leading zeros for the contract number.

when debugging SAP is using the conversion exit, so you wont get the problem

Read only

Former Member
0 Likes
1,146

Hi,

write a WAIT UP TO 2 SECONDS. before the FM call.

Try this and let me know still you have issue

Regards

Praveen

Read only

roberto_vacca2
Active Contributor
0 Likes
1,146

Hi...

Probably it's caused by a COMMIT WORK AND WAIT . Try to put this instruction after have called the function module.. Pay attention that this doesn't make problems to the correct ending of you main transaction.

Hope to help, bye.

Read only

Former Member
0 Likes
1,146

Hi,

Have you used FM COMMIT_TEXT after CREATE_TEXT ? :


        CALL FUNCTION 'COMMIT_TEXT'
          EXPORTING
            OBJECT   = 'PMS'
            NAME     = W_TDNAME
            ID       = 'LTXT'
            LANGUAGE = 'E'.

Try adding the 'COMMIT_TEXT' and check.

Thanks & Regards,

Faheem.

Read only

0 Likes
1,146

Hi All,

Thanks for your valuable replies.

I tried with all of your inputs but, still its not getting updated means created, But its creating and display the long text when i run the program in debug mode

Read only

JL23
Active Contributor
0 Likes
1,146

can you post what you do in program when calling the CREATE_TEXT function module.

Read only

roberto_vacca2
Active Contributor
0 Likes
1,146

Hi...

did you try to change all parameters of your function module? Try SAVE_DIRECT = 'X' or space