Skip to Content
avatar image
Former Member

.dat to .txt using ASMA

Hi all,

I am using Adapter Specific Message Attributes(ASMA) to pick a file and place in another folder.

No Mapping is involved.In Communication channel no File content conversion is used.

The sent file is a .dat extension ,and i want the file with filename same at sender and receiver but with a .txt extension.

So,at sender XXXX.dat

at receiver XXXX.txt

How can i achieve this?

Thanks in Advance,

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Mar 27, 2009 at 06:37 AM

    configure the receiver file adapter filename as ..txt

    no issues using this..

    if need in details of this scenario go to wiki page of process integration and check there the entire is depicted in detail

    Rajesh

    Add comment
    10|10000 characters needed characters exceeded

    • You got to live with what the system provides. If your data is text, use FCC and define all that it needs..!! Refer to adapter help for that.. Though you do not have anything to do in mapping.. since you want the name different at receiver side, you have to follow the normal procedure..

      VJ

  • Mar 27, 2009 at 07:10 AM

    >

    > Hi all,

    >

    > I am using Adapter Specific Message Attributes(ASMA) to pick a file and place in another folder.

    > No Mapping is involved.In Communication channel no File content conversion is used.

    > The sent file is a .dat extension ,and i want the file with filename same at sender and receiver but with a .txt extension.

    >

    > So,at sender XXXX.dat

    > at receiver XXXX.txt

    >

    > How can i achieve this?

    >

    > Thanks in Advance,

    you will have to use dynamic conf and change the extension.

    the easiest way to achieve this is in a java mapping.

    Just get the payload inside and pass the same out something like a dummy mapping and then in the code use the dynamic conf. to set the file name.

    base these as ref:

    https://wiki.sdn.sap.com/wiki/display/XI/WholePayloadtoaXML+field

    /people/shabarish.vijayakumar/blog/2009/03/26/dynamic-configuration-vs-variable-substitution--the-ultimate-battle-for-the-file-name

    Add comment
    10|10000 characters needed characters exceeded