‎2008 Dec 24 10:44 AM
Dear All,
We have a dynamic standard text. The text is being created based on sales order (I don't know how this has been created). Now I want to add text inside the standard text. That text will also contain variable.
Example: "This is a valid sales order 100010000". This is a standard text where the sales order value is fed dynamically, I don't know how?
Now the objective is to add another field "abcd" in the standard text with some other fixed texts. Eg. "I want to add my name sy-uname". So the entire text should be as:-
"This is a valid sales order 100010000. I want to add my name sy-uname."
1. I am not sure how to identify the original standard text. I would like to add second line there.
2. I would like to pass variable value dynamically in the standard text.
Please can you help me out in solving the issues.
Best wishes,
Atanu
‎2008 Dec 24 10:53 AM
hi ,
if you want to show message like
"This is valid sales order 000815556.my name is sy-uname".
you should write ir as..
message I001(zmsgclass) with sales sy-uname.
here zmsgclass is a a message class..
here you need to write message as
001 " This is valid sales order &.my name is &."
‎2008 Dec 24 10:56 AM
Hi,
Is it in Report or a Sapscript, if Sapscript, Goto SE71 open the form RVORDER01 in display mode and Identify the widow which the standard text is displaying, and identify the Standard text.
Goto SO10 Tcode and give that Standard text and open, do the required modification
Regards
Bala Krishna
‎2008 Dec 24 11:00 AM
Hello Atanu,
I understand the std. text is being created through an Exit or BAdI which gets triggered when a sales order is created. In the code you have passed the for Sales Order Number, you have to add sy-uname to this code )
Sound simple, isnt it ... Major challenge is to find the Exit or BAdI )
BR,
Suhas
‎2008 Dec 24 11:06 AM
Hi
Could you please be clear with your question so that some one can provide you with best solution quickly.
I am assuming that when your sales order is being created at the same time ,your dynamic standard text is generated .So now you want to amend this standard text just after the sales order is saved.If so then
Just go to the sales order text tab in change mode and click on the text eidtor window ,it will take to you sapscript editor ,Then from menu Goto-Header .From here you get the details of
Text Name
Language
Text ID
Text Object
Now Find the userexit after save and their use a read_text function module and read the standard text which is alreday created and take down in it_lines table and modify the text by appending your sy-uname line as second line or you can concetante on the same line. Now then use the save_text function module and save the standard text.
You can use the exit MV45AFZZ In that routine FORM userexit_save_document..
Hope this help you to resolve the issue.
Cheers
Joginder