Dynamically selection of Message Subject in AS2 adapter. Urgent Help..!!

Hi All,
I need to send the message to partner by using AS2 adapter.
And i need to keep the Message Subject by taking dynamically from the payload message.
ie. Iam sending the Purchase Order to Partner and i need to pass OrderNO which is coming in one field of my strcture to the message subject.
How i can select dynamically the Orderno and pass into message subject of AS2 Receiver adapter??
In the Seeburger AS2adpter manual, they provide the answer by using module parameters like
http://seeburger.com/xi/common/dtsubject   DYNSUBJECT
But i don't know how to put particular field into it.
Any idea abt this?
Regards
Deepthi.

Hi Deepthi,
I think this would help you in configuring Dynamically selection of Message Subject.
Supported dynamic attributes are:
•  dtSubject – if the subject parameter is set in the XI message and the AS2 receiver channel is
      configured to use all non-empty or subject attribute, it will be treated as the message subject
      by the AS2 adapter;
•  dtAS2FileName – the name of the payload. This is an attribute of the Content-Disposition
      header. With this AS2 is compatible with AS2 Filename Preservation draft.
•  dtAS2ContentType – for Example application/xml, depending on the payload type
To enable the usage of Dynamic Attributes, there is a special dedicated section in receiver channel.
Dynamic attributes are used if the “Use dynamic attributes” setting is checked in the receiver channel.
If the the setting “Use non-empty attributes” is not selected, all known attributes are used for
configuration if the attribute is present. 
Mention Check boxes for these
          Use dynamic Attributes
          Subject
Dynamically set attributes override static channel attributes. Example: the subject attrib
in receiver channels overrides the channel attribute.
Here is an example how to set them. Channel tab “Module”->”Module Configuration”:
Module Key: 1
Parameter Name: http://seeburger.com/xi/common/dtsubject
Parameter Value: DYNSUBJECT
Message Subject:  This subject will be compared with the subject in the received message. This is used to find the correct channel for the inbound message.
Wildcards are allowed.
Regards,
Varun Reddy.K

Similar Messages

  • Seeburger AS2: dynamic message subject

    Hi guys,
    I'm using and developing an AS2 scenario with the Seeburger Adapter.
    I've read Deepthi Thread relating having the AS2 subject build dynamically but there is no suggestion, and the manual is not clear about this.
    In the situation of getting one message sent by an external partner, we need to have the message subject placed as * and then replace the * by a field sent on the message or even by a static text.
    Have you guys faced this kind of problem?

    Hi,
    > Can anyone please me how to identify different messagetype (like order response,ASN and invoice) without using message subject in AS2 sender adapter
    When message comes to PI, initially it goes to seeburger workbench, here based on the EDI type (ANSI X12 or EDIFACT or...), EDI Version (4010 or 4020 or...) and Signal (850 or 810 or ....) it determines the respective mapping (E2X or X2E) program, this is done by Classifier.
    When we are sending outbound scenarios and using MDN option then message subject plays an important role. Once we send the outbound signal we can get the ack(997) signal, based on AS2ID and message subject it identifies the respective 997 inbouns scenario.
    > I cant use splitter because my sender is sending XCBL data and splitter we can use when we go for EDI.
    Seeburger is used if you are handling the EDI data but here you are using XCBL so you no need to use the seeburger adapters.
    Regards,
    Venkata Ramesh

  • Message subject in seeburger sender AS2 adapter

    Hi Experts,
    I read few fourms regarding message subject in seeburger and in those below forum is related to my problem
    AS2 Sender adapter..  How we can receive 2 messages from same partner??
    like how we can identify different message types when we receive from partner
    A) using AS2 ID and message subject
    If we give message subject as * it will receive all the message but how to identify them as our partner is not providing message
    subject.
    I cant use splitter because my sender is sending XCBL data and splitter we can use when we go for EDI.
    Can anyone please me how to identify different messagetype (like order response,ASN and invoice) without using message subject in AS2 sender adapter

    Hi,
    > Can anyone please me how to identify different messagetype (like order response,ASN and invoice) without using message subject in AS2 sender adapter
    When message comes to PI, initially it goes to seeburger workbench, here based on the EDI type (ANSI X12 or EDIFACT or...), EDI Version (4010 or 4020 or...) and Signal (850 or 810 or ....) it determines the respective mapping (E2X or X2E) program, this is done by Classifier.
    When we are sending outbound scenarios and using MDN option then message subject plays an important role. Once we send the outbound signal we can get the ack(997) signal, based on AS2ID and message subject it identifies the respective 997 inbouns scenario.
    > I cant use splitter because my sender is sending XCBL data and splitter we can use when we go for EDI.
    Seeburger is used if you are handling the EDI data but here you are using XCBL so you no need to use the seeburger adapters.
    Regards,
    Venkata Ramesh

  • AS2 Adapter Error: Error while parsing AS2 message: AUTHENTICATION_ERROR #

    Hi,
    Following Scenario: Inbound.
    i have been receiving messages via Seeburger AS2 Adapter with the following Error message
    Error while parsing AS2 message: AUTHENTICATION_ERROR # 
    I have done the following in the AS2 adapter as per findings in the forum
    1. Unchecked the Authentication Required Flag.
    2. AS2 Certificates are fine.
    3. Use Authentication: Disabled (there is no authentication)
    even though every thing seems to be fine i am not able to receive messages successfully. Please let me know what could have gone wrong here.

    Hi Venkatesh,
    >> Everything is provided in the Sender Agreement. Partners Certificate, Self Encryption & Signing certificate
    How come you are using encryption when you are receiving the message. I think it might be decryption.
    1. Anyway please cross check whether you provide the following correct details in Sender agreement.
    Sender Configuration
    Authentication Certificate : Partner's public certificate.
    AS2 Receiver Configuration
    Decryption Key     :         Own private key.
    Signing Key          :         Own private key.
    2. Can you please check and tell in the Seeburger Monitoring for the incoming message, whether they are sending the message with encryption and signing? This you can check in the Seeburger Monitoring.

  • OBPM4 - Variant with dynamic selection

    Hi Experts,
    I'm using the FBPM transaction (report SAPFPAYM). I have created the variant in OBPM4, in the variant I have insert the dynamic selection for Value Date.
    When I run the report  SAPFPAYM, the report does not work. If I delate this dynamic selection the report works correctly.
    Could you help me?
    Thanks in advance.
    Regards
    Giampaolo

    Hi Jyothi,
    I have inserted in the variant the dinamic variant selection "Value Date" or only a value date:
    When I run the report I have this message:
    "No Payment Media Created in Format FR_ETEBAC_VRT-ETR
    Message no. BFIBL02159
    Diagnosis
    No payment media were created for format FR_ETEBAC_VRT-ETR for payment group
    100"
    If I delate the value date or value date dinamic parameter, the report works correctly.
    Do you have any suggestion?
    Thans a lot
    Kind Regards
    Giampaolo

  • How to add dynamic selection in LDB_PROCESS

    Hi All,
    We are calling LDB_PROCESS from our report. and we are sending callback events and selections and we are calling LDB KDF.
    We enabled housebank (HBKID) in Dynamic Selection of the LDB. Could you please help us how we can send value of field HBKID (House Bank) from LDB_Process to narrow down the selection process.
    Thanks and best regards,
    Niteeshrai

    And the setClientAttributes() takes Set object, so i added ClientAttributeTag and then set it in HashSet. Is this the way to do it ??
    and how can i set string value in ClientAttributeTag.setValue() ??
    Please help.
    Sudeep

  • Dynamic Receiver file name in AS2 adapter

    Hi Experts,
    How to get dynamic receiver file name in AS2 adapter. We need receiver file name same as of sender file name.
    We tried selecting dynamic attributes file name but we are getting followin error in CC.
    Message processing failed. Cause: javax.resource.ResourceException: Fatal exception: com.seeburger.xi.connector.queue.TaskBuildException: Mandatory attribute dtAS2FileName is not present in XI message., Mandatory attribute dtAS2FileName is not present in XI message.
    Thanks,
    Hari

    hi hari,
    You can't do it manually. As both adapter are in different context.
    You can go with UDF to slove ur problem.
    Just extract the input file name using Dynamic configuration
    Store that in some variable.
    Use same name in the dynamic file name in AS2 receiver. Below code might be useful.
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create( "http://seeburger.com/xi/common/dtAS2FileName", "DYNFILENAME");
    conf.put(key,strfilename);
    Thanks
    Jai
    Edited by: Jaideep Baid on Apr 9, 2010 9:16 AM

  • Dynamic subject in AS2 receiver

    hi experts,
        I have a scenario in which i am sending data to third party using AS2 adapter.
    My scenario is PROXY->XI->AS2. In AS2 receiver adapter I need to use dynamic subject.
    For that I have used adpater module  "localejbs/Seeburger/AttribMapper"
    *PARAMETER NAME:-- http://seeburger.com/xi/common/dtSubject*
    PARAMETER VALUE:--  DYNSUBJECT
    while mapping in IR I am passing one field(strSubject)  as  input data to the below code:-
    DynamicConfiguration conf = (DynamicConfiguration) container.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey keySubject = DynamicConfigurationKey.create( "http://seeburger.com/xi/common/dtSubject", "DYNSUBJECT");
    conf.put(keySubject, strSubject);
    The value of strSubject should be the subject in AS2 message.
    The scenario is working fine but I m getting below error in communication channel:
    Exception caught by adapter framework: AttribMapper:Could not evaluate expresion DYNSUBJECT . Error: Unexpected token <EOT> at position 0. ( expected
    Help will be appreciated
    Thanks
    Jaideep

    Let me expalin you the complete thing.
    In mapping i m using this UDF for dynamic subject.
    DateFormat dfCurrentDate = new SimpleDateFormat("yyyy-MM-dd");
    DateFormat dfCurrentTime = new SimpleDateFormat("HH:mm:ss.SS");
    Date dCurrentDate = new Date();
    String strCurrentDate = dfCurrentDate.format(dCurrentDate) + "T" + dfCurrentTime.format(dCurrentDate) + "Z";
    String strSubject="Literal"+ "_" + strCurrentDate;
    // Dynamic Subject
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey keySubject = DynamicConfigurationKey.create( "http://seeburger.com/xi/common/dtSubject", "DYNSUBJECT");
    conf.put(keySubject,strSubject);
    return "";
    In receiver service I have used "localejbs/Seeburger/AttribMapper" module.
    Parameter name  http://seeburger.com/xi/common/dtSubject
    Parameter value  @http://seeburger.com/xi/common/dtSubject/DYNSUBJECT
    In moni I can see the dynamic configuration tab(neither Tab nor value)
    But in RWB comm. channel monitoring I can see in Audit log but not in SOAP document.
    Hope i have cleared you..
    Thanks
    Jaideep

  • Seeburger AS2 Adapter - Dynamic Attributes

    Dear all,
    We have a scenario where, we are sending an IDOC from our SAP system via XI to one of our partner using AS2.
    We have to manipulate the file name at the receiver end using the dynamic attributes of the AS2 communication channel.
    As per the documentation and the following threads
    Re: File to AS2 File Name? we have done the necessary configuration in the communication channel. The following activites are done
    Selected the checkbox "Use dynamic attributes"
    Under the Module tab
    In Processing sequence added a new entry
    Number 1
    Module Name : localejbs/Seeburger/solution/as2
    Module Type  : Local enterprise bean
    Module Key   :  "dynfile"
    Under the Module Configuration added the following details
    Module key  :  "dynfile"
    Parameter Name : "http://seeburger.com/xi/AS2/dtAS2FileName"
    Parameter Value : "DYNFILENAME"
    However, I understand that this configuration is incomplete, as somewhere i need to pass the value to the variable "DYNFILENAME".
    As per the thred Re: File to AS2 File Name?, Mr Srinivas Reddy mentioned 5 steps, however I am not clear about the step 3 & 4.
    FYI : What I want to map as the file name is the Parter Profile in the EDIDC40 segment of the idoc and the date+time stamp
    Many thanks for the help , in advance
    Regards : Bobby Bal
    Edited by: Bobby Bal on Sep 20, 2010 9:52 PM

    Hi,
    Use the below UDF in your mapping..
    public String FileName(String a,Container container){
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters()
    .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://seeburger.com/xi/AS2","dtSubject");
    conf.put(key, a);
    As per your requirement, Use Concatenate function  Idoc + Date + Time .
    Pass the resultant value to the UDF and pass this to any unused Target node.
    IDOC + Time+Date --> UDF --> Target node.
    In your receiver AS2 adapter, Click on use dynamic attributes and  Subject check boxes.
    If you want to use other Dynamic attributes like dtAS2FileName, dtAS2ContentType ..
    Simply replace the dtSubject with dtAS2FileName or  dtAS2ContentType . No need to use any modules.
    Thanks
    Deepthi.

  • Seeburger AS2 Adapter:  Receiving multiple messages

    Hi guys,
    I'm having some trouble using AS2 Adapter for receiving multiple messages. The problem is really similar to Peter's problem.
    Seebuger AS2 adapter for XI as sender for multiple messages
    I have it configured for one scenario and it's working fine. The problem is when I'm trying to receive other messages for the same Party but different services. Meaning, I've one Party(example BMW) and several services (BMW_DE, BMW_USA, etc). I'm able to receive messages from service BMW_DE but when configuring BMW_USA I'm getting HTTP 403 Forbidden.
    This error may have different reasons:
    a) You or your partner has entered an incorrect AS2 ID for one of the involved parties.
    b) A valid sender agreement is missing.
    c) There are more then one AS2 sender agreements with the same sender AND receiver party.
    d) The corresponding inbound channel is set to inactive.
    And the problem is that there are two sender agreements. Although the services are different, XI is not able to find the correct sender agreement to be used. After deleting the second second agreement, I'm able to send the  respective message....
    Can anyone give me a hint on how to solve this problem?

    Hi,
    this is done by different AS2 subjects. The sender agreement is selected based on this. So create separate AS2 receiver adapters for every message you need and put there different message subjects.
    So if you'll have 3 AS2 receiver channels with subjects:
    MessageType1_DE
    MessageType1_US
    the AS2 adapter will work like following:
    first it tries to find an exact message subject, if it is found, message is "assigned" to this sender agreement. If no exact message matches the subject, then wildcards are used. (this mechanism is described in the Seeburger AS2 guide).
    If you are getting 403 HTTP code, there may be also problem with authentication certificates.
    Another problem may be, you don't have configured AS2 receiver channel for current subject.
    Does this help you? Or you meant it another way?
    Peter
    p.s. check the answer above my post, Vardharajan's right
    Edited by: Peter Jarunek on May 19, 2008 2:11 PM

  • Dynamically pass subject via mail adapter without using mail package

    Hi,
    We have requirement to pass the Dynamic variable as Mail subject
    we can't use Mail Package as we need to capture the data from Dynamic SOAP header Data from incomming channel
    Dynamic SOAP Header variable (XHeaderName1) comming from Sender SOAP channel.
    Receiver side we need to capture that XHeaderName1 in Mail Adapter channel using ASMA and Variable transport binding so that value of XHeaderName1 should overwrite Subject under General/ Mail Atribute section.
    Could you please let me know, how to handle this requirement using module configuration?
    Also suggest the correct configuration to use ASMA and Variable transport binding.
    Regards
    Venky

    Hi Venky,
    Please have a look at the links below. They should help you.
    Configuring the Sender SOAP Adapter- https://help.sap.com/saphelp_nw04/helpdata/en/fc/5ad93f130f9215e10000000a155106/content.htm
    Configuring the Receiver Mail Adapter-https://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/content.htm
    Adapter-Specific Message Attributes in the Message Header  -https://help.sap.com/saphelp_nw04/helpdata/en/43/0a7d1be4e622f3e10000000a1553f7/content.htm
    Regards,
    Jannus Botha

  • Dynamic filename in receiver AS2 adapter in B2B Add-on

    Hello Experts,
    Can you please let me know how we can put dynamic filename in the receiver AS2 adapter for B2B Addon on SAP 7.4.
    Thanks
    Saurabh

    Hi Ryan / Experts,
    Let me explain you in more detail.
    In the receiver AS2 Communication channel, if I keep the Filename field as blank as shown below, then in the Mendelson inbox folder, a file is generated with the name "ASJAVA_DX5" which is my business component name.
    If I fill the filname field for example with "CONTRL", then in the Mendelson inbox folder, a file is generated with the name "CONTRL".
    This is my requirement because, suppose i trigger this interface "first time", a file with static name (ASJAVA_DX5/CONTRL ) would be generated in the inbox folder. If I trigger this interface "second time", since the file already exists with same name, it is not overwritten and I cannot check the output of 2nd trigger . Contents are not overwritten.
    To solve this problem + as a general requirement, I wish to have this name to be dynamic, atleast with date+timestamp.
    Can you please help.

  • Receiver AS2 Adapter : Empty Message Handling

    Hello Experts ,
    We are trying to work on following requirement .
    File -> PI -> AS2 ( File) ( We are using Pranke to drop our message to the receiver system) (MDN ack too is in place )
    There are times when none of the source records are valid and we have an empty payload post mapping.
    In AS2 adapter we are using StrictXML2Plain.
    Scenario works fine for all target messages which have data and a file is created at the receiver end. MDN ACK works fine too.
    Problem is when we have empty target payloads , We get following error in communication Channel monitoring.
    Information
    SEEBURGER/AttribMapper: Finished succesfully, 1 properties set or deleted
    Information
    MP: processing local module localejbs/ModuleProcessorExitBean
    Information
    Message entered AF MP exit bean and will be passed to the JCA adapter now.
    Information
    SEEBURGER/AS2: Received order from system.
    Error
    Message could not be forwarded to the JCA adapter. Reason: Fatal exception: javax.resource.ResourceException: SEEBURGER AS2: org.apache.commons.httpclient.NoHttpResponseException: The server as2gw.pranke.com failed to respond # , SEEBURGER AS2: org.apache.commons.httpclient.NoHttpResponseException: The server as2gw.pranke.com failed to respond #
    Error
    MP: exception caught with cause javax.resource.ResourceException: Fatal exception: javax.resource.ResourceException: SEEBURGER AS2: org.apache.commons.httpclient.NoHttpResponseException: The server as2gw.pranke.com failed to respond # , SEEBURGER AS2: org.apache.commons.httpclient.NoHttpResponseException: The server as2gw.pranke.com failed to respond #
    Error
    Adapter Framework caught exception: Fatal exception: javax.resource.ResourceException: SEEBURGER AS2: org.apache.commons.httpclient.NoHttpResponseException: The server as2gw.pranke.com failed to respond # , SEEBURGER AS2: org.apache.commons.httpclient.NoHttpResponseException: The server as2gw.pranke.com failed to respond #
    Has anyone handled such situation ? Is there any workaround at the SAP end to handle this issue ?
    Or is this to be handled at the Pranke end ?
    Attaching the Seeburger AS2 monitor error as well for empty messages ,
    State
    Error on send, will be retried
    Status Description
    Could not deliver as2 message to partner: org.apache.commons.httpclient.NoHttpResponseException: The server as2gw.pranke.com failed to respond # null
    Little urgent and your expertise is appreciated PI geeks
    Sayalee

    Hi,
    here is the my requirment one source -> two target interfacess (0..1)
    If u have 2 target interfaces,then this is not suffice..... u should make it as 0..unbounded both in operation mapping and message mapping.
    But based on ur requirements posted above i guess u have only one inbound interface at a time based on some conditions....
    But,
    <messages>
    <messages1>
    based on condition first message type not created in mapping.
    <messgaes2>
    The error u r getting is because.... u want only one interface in target at a time....
    Then u should not generate Message1 also in the target.
    So avoid mapping to message1 if u want only message2.
    If both message1 and message2 are created in target means... it is triggering for two interfaces.... so avoid one message1 or message2... based on some conditions u have..
    Still nt solved do post...
    Babu

  • DYnamic select statement in JDBC adapter?

    Hi guys,
                 Is it possible so send dynamic select statement in jdbc adapter?
    XIer

    Aamir,
    The poster did not specify whether this was sender or receiver channel, but it would only make sense that a "dynamic query" must be on the receiver communication channel since if it was on the sender channel, the channel would have to intelligently determine how to do dynamic queries.
    Also, the poster asked if there was a way to "send a dynamic query" to the channel.  This seems to imply that the channel is receiving information from somewhere to determine the query, which could only mean it is a receiver channel.
    If you would like more information on the JDBC sender communication channel, please open a new thread.

  • Seebuger AS2 adapter for XI as sender for multiple messages

    Hi all,
    Has anyone managed to configure the Seeburger AS2 adapter for XI successfully to process multiple inbound message types.
    We have an issue here with inbound messages being received by the AS2 adapter. We currently have it configured for inbound deliveries which is working fine. The issue is that we would now like to send other messages as well. It seems the AS2 adapter only looks at the sender/receiver party combination to determine the correct sender agreement, but does not look at the message type which is a limitation. I have heard mention of a splitter module which can be used to distinguish between different messages and pass them to the correct sender agreement for processing, information on this is thin on the ground to non existent. What is the name of the module? Is it specified in your sender AS2 adapter with parameters? Is it wrapped as an adapter? How do you configure the module to split and pass specific messages etc... Any help on this would be much appreciated.
    Thx,
    Pete

    Hi Rudy,
    the Classifier/BIC/Splitter - Solution is mainly designed for EDI-Messages that cannot be handled directly by XI.
    IF you use pure XML-messages you should be able to handle it with XI-basic-functionality since this is what XI can handle itself.
    Depending on how different your XML-Messages are, the effort will be very small or a little bit bigger.
    In the ReceiverDetermination it should be possible for you to check whether certain XML-TAGs are existing or what the content for certain TAGs is BAsed on this information you can route the messages in a correct way.
    (Of course you might have to create  your own XSD for this containing the important TAGs of each message, so you can setup your Conditions)
    Btw. the Seeburger BIC-Adapter can provide also this functionality, but this also needs to be customized)
    Greetings
    Stefan

Maybe you are looking for

  • Is there any way to install iTunes on windows 7 without it changing all my desktop shortcuts to iTunes?

    I just got a new iPhone 6 and I want to use iTunes to download songs and back my info up on iCloud, but every time I try to install iTunes it replaces all my shortcuts with iTunes! I had to entirely uninstall it last time to be able to use google chr

  • How to truncate oracle.jbo.domain.date

    Hi, I have problem to convert oracle.jbo.domain.date. Now I got current date from pagecontext, but it is yyyy-mm-dd hh:mi:ss format. I want to only yyyy-mm-dd, so I want to truncate the time from oracle.jbo.domain.date. And I want to got Date object

  • Searching multipul fields in a database

    hi there, im working on a scouting website, and i have a database that has details of camps all over the northeast. all this data is housed on one table. each row houses the info for one camp, and each column represents an attribute. there are about

  • Two eigrp clientes with same AS number

    Hi, I have one vrf with Protocol PE-CE Eigrp and AS number 100, but another new client with protocol PE-CE eigrp wish same AS number. This is a problem? Regards Rodrigo Prieto

  • Impor material procuring from local vendor with all import conditions

    Dear Experts, Our client requirementis that, we are getting import materials from local vendor. The vendor ischarging all the import charges like cutoms duty and etc., apart from that, He is charging 4% additional TAX on total amount . After that ven