on 05-14-2008 8:17 AM
Who can give me the presentations of usage about "change output" and "replacement of text symbols"?
<b>Change output:</b> Whenever significant changes are made to the sales document, you should issue another output. Here, you specify a program and subroutine that checks for changes to be output (unlike PO changes where you configure instead of coding).
<b>Replacement of text symbols:</b> Here you specify a program and routine to control the title of the spool(for print output) or the title of the email(for externally sent output). You define a title with symbols like:
<b>Order# &vbeln& date &date& customer &kunnr& </b> in the Mail title and texts node. You then programatically replace the symbols &vbeln&, &date& and &kunnr& in your program.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is a quick how-to on using replaceable symbols in spool and mail titles in invoice printing. Knowledge of output configuration is a pre-requisite.
1. Under Mail title and texts, create a title with symbols. In the example above there are three symbols, &IV&, &CLT& and &DAT&. Symbols need not be bracketed in ampersand symbols, but it makes for easy readability and maintenance. Keep in mind that there is a length limitation on the title. ITCPO-TDTITLE is 50 characters long. That is a few bytes short of War and Peace.
[Image - Mail Title|https://weblogs.sdn.sap.com/weblogs/images/251736236/MailTitle.JPG]
2. Next, specify a program name and subroutine name. This subroutine will perform the replacement of symbols.
[Image Replacement |https://weblogs.sdn.sap.com/weblogs/images/251736236/Replace.JPG]
3. This is the code that performs replacement of symbols:
REPORT ZESD_EMAIL_TITLE .
FORM ENTRY TABLES IO_TLINES STRUCTURE TLINE
USING I_THEAD TYPE THEAD
I_NAST TYPE NAST.
*
DATA: L_DATE(10),
L_INV(10).
*
WRITE: SY-DATUM TO L_DATE MM/DD/YYYY.
LOOP AT IO_TLINES.
WRITE I_NAST-OBJKY(10) TO L_INV NO-ZERO.
REPLACE '&IV&' WITH L_INV INTO IO_TLINES.
CONDENSE IO_TLINES.
REPLACE '&CLT&' WITH I_NAST-PARNR INTO IO_TLINES.
CONDENSE IO_TLINES.
REPLACE '&DAT&' WITH L_DATE INTO IO_TLINES.
MODIFY IO_TLINES.
ENDLOOP.
ENDFORM.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.