cancel
Showing results for 
Search instead for 
Did you mean: 

Regds : Read archive Directory

Former Member
0 Kudos

I want to read the archive directory name in sender file adapter at runtime in the message mapping?

Please suggest how can i achive this?

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Want to read the archive directory name in sender file adapter at runtime in the message mapping?

Why?

For a given sender file channel, the Archive Directory is constant. One sender file channel can be used only in one Sender Agreement. That means for given combination Communication Component, Interface, Namespace there is only one Communication Channel (Archive Directory). These three variable can be accessed in UDF using

map = container.getTransformationParameters();

headerField = (String) map.get(StreamTransformationConstants.INTERFACE_NAMESPACE);

/* similarly Communication Component, Interface */

http://help.sap.com/saphelp_nw04/helpdata/EN/43/09b16006526e72e10000000a422035/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/EN/78/b4ea10263c404599ec6edabf59aa6c/content.htm

i.e. if this combination of Communication Component, Interface, Namespace then this is Archive Directory, if this combination of Communication Component, Interface, Namespace then this is Archive Directory.

Now we have 2 option:-

1. Hard code in UDF for this combination this is Archive Directory.

2. Store these values in a database (this combination this is Archive Directory) and access it in message mapping by database lookup.

There is other option, write a Adapter module, which populate the Archive Directory in SOAP header of messages in Adapter Engine. And access Archive Directory in UDF, similar to this http://help.sap.com/saphelp_nw04/helpdata/EN/78/b4ea10263c404599ec6edabf59aa6c/content.htm

. But, this option is not recommended as it is performance overhead, and as for a Communication Channel, Archive Directory will not change (we have to do manual edit), At least very less in production (we don't change it very day ).

saif_sabri
Active Participant
0 Kudos

Hi

1. Choose Tools -


> Datafeed -


> User log -


> Read archive.

The SAP R/3 System calls up a screen where you can select the files of the archived user logs.

2. Select the user log you need to read.

3. Press ENTER

Regards from Pakistan

Former Member
0 Kudos

Any Help?

Former Member
0 Kudos

Any Updates?