cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Configuration for SAP AS2 receiver

sateesh437
Participant
0 Kudos

Hi Experts,

we have an issue with SAP AS2 adapter for dynamic file name.

Requirement : File to AS2 scenario, we have to send with the same source file name to AS2 receiver, we checked the dynamic configuration in channel but no result and used "Dynamic configuration Bean" still not able to get the file name at target.

we are getting source Business system as filename.

Please help us on this issue ASAP.

Regards,

Sateesh.

Accepted Solutions (1)

Accepted Solutions (1)

manoj_khavatkopp
Active Contributor
0 Kudos

Sateesh,

You can try these with few changes : http://scn.sap.com/thread/3668599

Br,

Manoj

sateesh437
Participant
0 Kudos

Hi Manoj,

We are using SAP AS2 adapter in PO 7.4 not the SeeBurger and our scenario is File to AS2.

We tried using "Dynamic configuration Bean" and i'm able to see the file names in Dynamic configuration of PO but not at the AS2 end.

Regards,

Sateesh.

sateesh437
Participant
0 Kudos

Hi Manoj,

In our case we are not using ESR its a pick and drop scenario.

Thanks,

Sateesh.

Ryan-Crosby
Active Contributor
0 Kudos

Hi Sateesh,

We have been able to do dynamic naming with the DynamicConfigurationBean in our system with the SAP AS2 adapter.  Can you share the configuration you are using and I'll see if I can help get it working for you.

Regards,

Ryan Crosby

sateesh437
Participant
0 Kudos

Hi Ryan,

Please find below module configuration:

Regards,

Sateesh.

Ryan-Crosby
Active Contributor
0 Kudos

Hi Sateesh,

Change AS2FileName to AS2Filename - I'm pretty sure these are case sensitive in the way they are stored so you would retrieve a null value with what you have currently.

Regards,

Ryan Crosby

sateesh437
Participant
0 Kudos

Hi Ryan,

i have tried with your input still no luck, now I'm not able to get the file name in log as well.

Regards,

Sateesh.

Ryan-Crosby
Active Contributor
0 Kudos

Hi Sateesh,

Be sure that you have selected the ASMA attributes option on the file sender channel along with the FileName attribute and then it should pass the value over to the receiver using that module configuration.  You also have to be sure that you have the "Respect parameters" option on the AS2 receiver channel.

Regards,

Ryan Crosby

manoj_khavatkopp
Active Contributor
0 Kudos

Sateesh,

make sure you have enabled ASMA in both channels ?

bdw what filename you are getting in target after applying this module ?

Br,

Manoj

Answers (2)

Answers (2)

sateesh437
Participant
0 Kudos

Hi All,

Thanks a lot Ryan & Hasan for your timely solution.

Issue resolved now with the below config

Regards,

Sateesh.

hasan_celebi
Participant
0 Kudos

Hi Sateesh;

Try using these module parameters in receiver AS2 channel.

Module Name

Type

Module Key

AF_Modules/DynamicConfigurationBean

Local

getFilename

AF_Modules/DynamicConfigurationBean

Local

setFilename

Module Key

Parameter Name

Parameter Value

getFilename

key.1

write http://sap.com/xi/XI/System/File Filename

getFilename

value.1

module.filename

setFilename

key.1

read  http://sap.com/xi/XI/AS2/AS2 AS2Filename

setFilename

value.1

module.filename

Regards

Hasan

sateesh437
Participant
0 Kudos

Hi Hasan,

i tried by changing the parameters still not able to get the filename.

Regards,

Sateesh.

Ryan-Crosby
Active Contributor
0 Kudos

Hi Sateesh,

You have the order of your write and reads reversed.  The write should be done on the File ASMA attribute and the read should be done on the AS2 attribute.

Regards,

Ryan Crosby