2012 Apr 06 9:00 AM
Hi all,
I have a requirement from my client: Get mail and attachment file---PO from SAP.
Now, the test is OK. I have received the mail and the file.
But one more issue is: When I receive the mail, I want to show the mail title is "PO NUM" and in the mail body is "NO Replying"
Regards
2012 Apr 06 9:13 AM
Hi, if you call the default SAP sapscript or smartform function module to send mail then changing the mail content is not possible. The mail subject can be set in the output type configuration by setting the text symbol replace program and form. The subject text itself is also configuration in the mailtitle screen of the output type. Variable texts like &EKKO-EBELN& can be used in here.
Regards Jack
Hi all,
I have a requirement from my client: Get mail and attachment file---PO from SAP.
Now, the test is OK. I have received the mail and the file.
But one more issue is: When I receive the mail, I want to show the mail title is "PO NUM" and in the mail body is "NO Replying"
Regards
2012 Apr 06 9:13 AM
Hi, if you call the default SAP sapscript or smartform function module to send mail then changing the mail content is not possible. The mail subject can be set in the output type configuration by setting the text symbol replace program and form. The subject text itself is also configuration in the mailtitle screen of the output type. Variable texts like &EKKO-EBELN& can be used in here.
Regards Jack
2012 Apr 06 9:32 AM
Hi,
Thank you for your prompt reply.
The mail subject can be set in the output type configuration by setting the text symbol replace program and form
I wanner know how to do it.
Regards
2012 Apr 06 9:16 AM
Are you using standard output configuration?
If yes check SAP Note 191470 and relavent notes.
Also refer http://scn.sap.com/thread/1751485
Hope this helps.
2012 Apr 06 9:56 AM
Thankyou!
I do not use standard output config.
I revised the progam and smartforms.
2012 Apr 06 11:09 AM
Create standard text in S010 exapmle
Purchase Order &PONO&
Now retrive this text
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = 'ST'
language = 'E'
name ='ZTEXTCAP1'
object ='TEXT'
IMPORTING
header = ls_docu_head
TABLES
lines = i_line2
EXCEPTIONS
id = 1
OTHERS = 8
Define global varibale PONO in your program which will have value PONO = "34567889".
CALL FUNCTION 'TEXT_SYMBOL_REPLACE'
EXPORTING
endline = sy-tabix
header = ls_docu_head
program = sy-repid
replace_program = 'X'
replace_standard = 'X'
* replace_text = 'X'
startline = 1
TABLES
lines = i_line2.
You will get the required text in i_line2
2012 Apr 13 9:48 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |