2010 Nov 09 8:12 AM
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
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.
2010 Nov 09 10:31 AM
2010 Nov 09 10:35 AM
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
2010 Nov 09 10:35 AM
Hi,
write a WAIT UP TO 2 SECONDS. before the FM call.
Try this and let me know still you have issue
Regards
Praveen
2010 Nov 09 10:44 AM
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.
2010 Nov 09 11:25 AM
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.
2010 Nov 09 12:39 PM
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
2010 Nov 09 12:48 PM
can you post what you do in program when calling the CREATE_TEXT function module.
2010 Nov 09 1:14 PM
Hi...
did you try to change all parameters of your function module? Try SAVE_DIRECT = 'X' or space
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |