Skip to Content
author's profile photo Former Member
Former Member

About Communication Channel Parameters

What is Variable substitution (target dir/filename scheme) parameter, Run OS command before Message processing and Run OS command after Message processing parameters in the Communication Channel, where we can use this parameters(i.e which type of scenarios)

Edited by: Venkataramesh B on Feb 20, 2008 1:16 AM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Feb 19, 2008 at 08:07 PM

    Here's my 2 cents.

    Example of variable substitution, it can be used when you want your target file name is derived dynamically rather than defining it before.

    some times OS commands need to be run either before processing of a message or after processing of a message.

    Example of OS command after message processing would be to backup the output file in to different folders depending on the content of the file.

    The examples are very crude, but they are just examples.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 19, 2008 at 09:52 PM

    In our scenario we use variable substitution for dynamic file names.

    Also check these blogs

    /people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution

    /people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i

    /people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii

    Edited by: ravi ram on Feb 19, 2008 4:52 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 20, 2008 at 05:55 AM

    Hi,

    Check this one

    Run Operating System Command Before/After Message Processing -

    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm

    Variable subsistution

    /people/sameer.shadab/blog/2005/09/23/an-interesting-usage-of-variable-substitution-in-xi

    /people/jin.shin/blog/2007/04/27/sap-netweaver-xi-variable-substitution-with-adapter-specific-message-attributes-via-dynamicconfigurationbean

    /people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution

    Regards

    Seshagiri

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 20, 2008 at 06:21 AM

    Run Operating System Command Before/After Message

    Processing

    ● Command Line

    The operating system command specified here is executed before or after successful file processing. The default value is an empty character string (no command).

    When the operating system command is called, the file name currently being processed can be specified with the following placeholders:

    %f (file name)

    %F (absolute file name including path)

    ● Timeout (secs.)

    This specifies the maximum runtime of the executing program in seconds. When this time interval is exceeded, the adapter continues processing. The executable program continues to run in the background.

    ● Terminate Program After Timeout

    Set this indicator if the adapter is to terminate the executing program in the event of a timeout.

    The adapter writes the output (STDOUT and STDERR) for the operating system command in the system trace.

    check this link for the details:

    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 28, 2008 at 06:18 PM

    tx

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.