Assign a constant to element of message in Integration Process

At the beginning of Integration Process I using Receive step and it receives message1, that contains only parameter "id":
<message1>
  <id>1234</id>
  </counter>
</message1>
Than I have some steps, than Switch step with a condition. In otherwise branch I need to assign some constant to element "counter" of message1 and send this message to the next receiver:
<message1>
  <id>1234</id>
  <counter>constant </counter>
</message1>
How can I do this?

In your otherwise branch, use a transformation step to all a mapping program, map the constant value to your counter element.
Regards.
Liang

Similar Messages

  • Missing sender information in message from Integration Process

    Hi All,
    I am testing a scenario uses Integration Process. This Integration process sends out a async message but this message has empty sender tag in header , Because of this routing rules and agreements defined for this are not triggered and message goes into error state.
    There is sender interface Information in message header but not integration process information. I am working on SAP NetWeaver PI 7.1 system. This is working from other synchronous interface in same process.
    Routing rule and receiver agreement has sender as mandatory field, so can not define generic set without sender component.
    I went through SAP Note 807640 But there is no information about such error.
    Am I missing something in configuration? Please let me know how can i configure Routing Rule and Interface Determination for this scenario.

    Thanks for replying to the post.
    Integration process is used as a async-sync bridge. Following are high level steps.
    1. Receive async FI message from sender
    2. Map message to BAPI SAP FI document
    3. call Sync BAPI.
    4. Map the response of BAPI.
    5. Post it back to sender in async mode.
    I am having problem in step 5 where message is coming out of BPE without its own name (i.e sender name). Thus it does not triggers Routing rules and fails.

  • Viewing the way of a message through integration process

    Hey,
    I would like to check the lifecycle of a message through an integration process (IP). Therefore I took the ID of a message that triggers the IP.  Our IP have several sending steps and I would like to see the messages that will be send. In sxmb_moni I clicked on PE and opened the technical view of my IP.
    The payloads of the container are empty. I think this is because of configuration in sxmb_adm.
    Is this the only way to figure out which messages belong to my IP?
    How to found the message IDs of all messages that belong tho this IP?
    thx
    chris
    Edited by: Christian Riekenberg on Aug 20, 2008 3:38 PM

    @Bhavesh Kantilal 
    No I didn't check this flag. Thanks for this information.
    I figure out that you can show all messages to a integration process
    by using transaction sxmb_moni_bpe.
    Following steps are necessary:
    - took the message ID, date and time of receiving of the message that triggers a integration process
    - go to sxmb_moni_bpe and choose "Process to a message"
    - enter receiving interface name that triggers the process and a fitting time.
    - choose your process with the time and date of your message
    - mark this process and look in the further information if your message ID is in this process
    thx
    chris
    Edited by: Christian Riekenberg on Aug 20, 2008 5:12 PM

  • Sending Messages from Integration Processes

    Dear All,
    I have a problem in that my client wishes to send a message from XI via the Send Step in a BPM to a Proxy call on the target SAP system (ECC 6.0), the only problem is, is that they wish to monitor that all iDocs generated achieved a set percentage success rate < %80, if this is the case then the next message is sent from within the same BPM and so on until all 3 messages are successfully sent. If anyone of the 3 messages fail for whatever reason, the whole process must abort. Does anyone have a suggestion how this might be possible whilst retaining message persistance ?
    Really stuck and thanks in advance...
    Mark

    I sometimes have the same problem . I tried to reconnect my wifi router and everythings turn back to work again . I don't know why it is .

  • How to find length of integer elements using message mapping

    Hi all,
             How can I find the number of digits in an element using message mapping
    XIer

    Satish,
               Cause I have to write the code for 100 elements, I have decided to have a AUDF with two inputs;
    1) for the element
    2) for the length of the data type (I am passing length using Constant message mapping func).
    Now when I change my UDF and try running it I get the following error:
    <b><i>Start of test
    Source code has syntax error:  /usr/sap/B06/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map0999e66045cf11dcc83b4ebcfc11da82/source/com/sap/xi/tf/_MM_Recordcount1_.java:160: operator >= cannot be applied to int,java.lang.String if(Element_Name.length()>=Element_Length) ^ /usr/sap/B06/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map0999e66045cf11dcc83b4ebcfc11da82/source/com/sap/xi/tf/_MM_Recordcount1_.java:166: operator <= cannot be applied to int,java.lang.String for(int i=Element_Name.length();i<=Element_Length;i++) ^ 2 errors</i></b>
    The code I have used is:
    public String Include_Space(String Element_Name,String Element_Length,Container container)
    {StringBuffer sb= new StringBuffer();
    if(Element_Name.length()>=Element_Length)
    return""Element_Name"";
    else
    for(int i=Element_Name.length();i<=Element_Length;i++)
    if(i==Element_Name.length())
    sb.append(Element_Name);
    else
    sb.append(" ");
    return ""sb.toString()"";
    Pls advice, where I am going wrong...
    XIer
    Message was edited by:
            XIer

  • "In initializer for 'mxmlContent', type Object is not assignable to target Array element type..."

    Hi all,
    So I've have built an application on flash builder 4.5 using Christophe Coenraets' tutorial "Building an EmployeeDirectory" (http://www.adobe.com/devnet/flex/articles/employee-directory-android-flex.html#articlecont entAdobe_numberedheader).
    I'm getting this error message "In initializer for 'mxmlContent', type Object is not assignable to target Array element type mx.core.IVisualElement." and then the debugger highlights my code this line of my code "</s:List>" in my EmployeeDetails.mxml file. This started after I coded Part 5, Step 2 "Integrating with the Device Capabilities: Triggering the Actions".   The rest of the code debugged fine.
    I think it relates to Christophe's note "Note: Make sure you import spark.events.IndexChangeEvent (and not mx.events.IndexChangedEvent) for this code to compile.".  I don't know where to place this
    " import spark.events.IndexChangeEvent;" line of code. 
    Any help?  Tks in advance..
    Any help would be greatly appreciated.  Thanks

    You have a DataGrid directly inside a State element. Perhaps wrap it in an AddChild element?
    More information on using states can be found here:
    http://livedocs.adobe.com/flex/3/html/help.html?content=using_states_1.html

  • How to assign two complex type data in message payload

    Hi ,
    In my xsd file two complex type data is there ,
    but when i am trying to add these in message type request and response payload , i can add only one payload,
    is it any way to add 2 complex types in message types request and response payloads.
    Regards
    janardhan

    Each request and response has but a single payload. You can change the element of the payload to a single complex type from your XSD, but that's it. You can't assign more than one element to the request (or response) payload. Someone please correct me if I'm wrong.

  • How to declare and initialize a STRING ARRAY (assign strings to array elements)

    How to declare and initialize a STRING ARRAY (assign desired strings to elements of an array, for example "abc", "def", "ghi", "jkl", etc.) in LabVIEW? I saw a "string array" block in help, but could not find it in the function palette. Does a spreadsheet string have to be in a file (or can it be in a string constant block)? Thank you.

    Hi,
    you can do it in several ways:
    1. Direct way: Create string array control on front panel and type strings in its elements
    2. Programmatically 1: Create string array indicator (or local variable of control), right click on it in block diagram, select "Create constant" from drop down menu. The array constant will appear. Now type values in this constant's strings
    3. Programmatically 1: Use "Build array", "Replace array subset", "Insert into array" or "Initialize array" functions from "Functions->Array" palette.
    And of course you can combine all of these methods.
    Good luck.
    Oleg Chutko.

  • Assigning a Constant Value for Target Revenue

    Hello all,
    I have a scenario where I need to assign a Constant value, say 10000, for my Target revenue Key Figure at the Info Cube level. This value should always be 10000. Please advice.
    Your valuable suggestions will be greatly appreciated. I will be assigning points as a way of expressing thanks.
    Best Regards,
    Deepthi.

    HI Deepti,
    Today I faced same issue and I read your thread.
    I saw the responses given by others and I feel its a shallow solution hardcoding the key figure to a constant value..because key figure is meant to change.
    I solved it by altering the Aggregation level in an key figure infoobject.
    The Aggregation must read MIN..Exception aggregation may be SUM..
    and the characteristic on which aggregation must the infoobject that determines the unique value of the Infoobject..eg GJAHR/MONAT from R/3.
    This will give the result as (where Target is the non-aggregated Key figure)
    Plant   Year    Target            Document No   Production value
    110      2004    1000000           1                        10
    110      2005    2000000           20                       20
    110      2004    1000000           2                         15.
    200      2005     40000             100                      50
    110       2005    2000000          21                       23
    The target value here depends only on Plant and Year..and stays constant for the unique combination of the 2.
    U dont need to change the BEx status of any key figure..
    I know the forum post I am putting is of no use..but someday someone who needs an answer urgently please do read this.

  • You cannot make an assignment to make-to-order stock - Message no. CO684

    Hi,
    During conversion of planned order to production order in variant configuration scenario I am getting following error message....
    You cannot make an assignment to make-to-order stock
    Message no. CO684
    Diagnosis
    The component cannot be allocated to an individual stock because make-to-order production and engineer-to-order production cannot be executed with this order.
    A possible cause is that you are trying to create an order with reference to a sales-order/project, where an account assignment to a sales order/project is not allowed in the settlement profile that is assigned to the chosen order type. This is inconsistent.
    System response
    The following responses are possible:
    Order processing is canceled.
    The system resets the special stock indicator back to the original value.
    Procedure
    Choose another order type.
    Any ideas or suggestions to correct this issue..
    Pavan

    Hi Pavan,
    This is one of the most common problem comes during MTO execution.And the real problem is massage no itself because you will get the same massage no. for many reason and that's it becomes more difficult to find out root cause.
    Check below threads and settings,
    - Order type for MTO is not maintain in Production scheduling Profile.Go OPKP or CORY and maintain Order type for MTO to it.
    - [Thread 1|Error Message while cretaing a Process Order;
    - [Thread 2|Error in Variant Configuration CO684;
    - [Thread 3|error information when covert plan order to production order;
    - [Thread 4|You cannot make an assignment to make-to-order stock;
    Regards,
    Dhaval

  • Problem in assigning number range to support desk messages

    Gurus ,
    we are in the process of configuring service desk in solution manager
    7.0 .
    so far the following steps were done ,
    - implemented note 898614
    -Activate Solution Manager Services via SICF
    -activated BC sets for service desk
    -Fetched SAP components vis DSWP
    -Assigned number range for ABA notification via DNO_CUST01
    but while assigning the support desk for service messages via ,
    SPRO--> SAP Solution Manager --> Basic Settings --> SAP Solution
    Manager System --> Service Desk --> Number Ranges for Notifications.
    Then press the execute icon ( ) next to Assign number range for Service
    Desk Messages.,
    when assigning internal number as '01' and external number as '02' and clicking on save button we
    get the error as "Enter valid number range interval '

    Hi Susin,
    you may have a look at this to get more information about number ranges
    http://help.sap.com/saphelp_nw70/helpdata/EN/2a/fa02fd493111d182b70000e829fbfe/frameset.htm
    A number range is a range of numbers which are assigned to objects uniquely.
    Such numbers are some kind of identifiers (which may be used to describe obejcts). In your case the ABA / Basis notifications are identified by those unique numbers.
    Hope this clarifies things a bit.
    /cheers

  • Accessing SAP:HopList element in message header from JAVA-mapping

    Dear Experts,
    Is it possible to access the SAP:HopList element from message header in JAVA-mapping? 
    I need this to get the list off all receivers of current message (I have a ReceiverDetermination with two receivers, without any conditions, so both receivers are receiving each message and in InterfaceDetermination to one of the receivers I have a JAVA-mapping, in which I need to know the name of another receiver. And the SAP:HopList is containing this information).
    Or maybe where is some other solution?
    Best Regards,
    Artsiom Anichenka

    That's tricky, since the proper way of doing it would be through BPM.
    Anyway, if you expose your XI interface as a WebService (Soap sender cc) you could access it through Mapping Lookup (lookup works for RFC, DB and Soap lookups). Check https://help.sap.com/javadocs/NW04S/current/pi/index.html
    But be aware that Mapping Lookup API is not intended for inserts/updates (since it doesn't contain any transacational handling), just mere lookups (selects in tables), so I'm not sure it is the best approach for your case.
    Regards,
    Henrique.

  • Since upgrading to FF 4, I have constant crashes (updating graphics drivers did not help). now all my bookmarks are gone. When I try to restore them, I get error message: "Unable to process the backup file".

    Since I "upgraded" to FF 4, I have constant crashes (I tried updating my graphics drivers--it did not help) and now all of my bookmarks have disappeared. When I try to restore them, I get this error message "Unable to process the backup file". I have lost years of bookmarks...please help.
    I am using Windows XP, SP 3 if that matters.

    I am also unable to restore any of the backups of the bookmarks, both automatic backups and two backups that I created manually. Since I was able to restore backups before, and since no changes have occurred to these backup files, the problem must be with Firefox.
    Right before my bookmarks disappeared, FF crashed and I accidentally started FF 3.5. When I saw what I did, I ended the Firefox process and started FF 4. That's when all my bookmarks were gone and I discovered I couldn't retrieve any backups. I did note that an add-on was updated when I restarted FF. Maybe that's the problem. Does FF have a Safe mode?

  • Assign an output type to a message type

    Hi all,
    How do I assign an output type to a message type?
    Thanks in advance.
    JM

    You maintain the output type determination settings for the inbound and outbound delivery handlers, so that output types can be determined for deliveries, pursuant to the message control mechanism.
    <b> a.      You maintain the output types in Customizing for Logistics - General ->upply Chain Planning Interfaces (SCPI)-> Auto-ID Backend Integration->IDoc Processing ->Operational IDocs -> Output Type Determination -> Output Type Determination for Inbound/Outbound Deliveries-> Maintain Output Types</b>.
    reward points if it is usefull....
    Girish
    <b></b>

  • BW DataSource for the Assignment: Cost Component - Cost Element (like t/code OKTZ)

    Hi experts,
    is there a Standard DataSource to get the Assignment: Cost Component - Cost Element (like ERP t/code OKTZ)?
    Many thanks in advance!
    Best regards,
    Michael

    Hi,
    please check the below data source - 0CO_OM_CCA_9
    may be it will help or go to the custome data source using the table funciton.
    -Phani.

Maybe you are looking for

  • How do I share music with 2 itunes account on windows 1 computer

    I currently have a slew of apple products between me & my wife & were struggling to get Itunes to work as we require it to. We have 2 seperate itunes accounts on the same laptop we share & following the directions here we have not been able to see or

  • Error in Processing Material Dimension

    Hi We are on BPC 7.5 MS. The Material Dimension has 70000 (SEVENTY THOUSANDS MATERIAL IDS). When we are porcessing from the front end through BPC Admin COnsole, its taking about 3 hours to process and also at the end its saying the "THREAD WAS BEING

  • Email link will not open on desktop computer

    Hello. I am wanting to know why I can open email links from Shopify on my tablet and cell phone but not on my Desktop computer.  Thank you in advance for your help with this.

  • Any way to change system sounds such as File Copy Completed sound?

    Hi folks, When I copy or move a file, Finder makes a sound - as you know. The particular sound it makes did not sit well with me when I first heard it (new to Mac). It sounds like an alert for a system error, or that copy failed. I thought I would ge

  • Java Database Interfacing

    Hi all, Im relatively new to java programming and have come from a PHP base of programming with mySQL, and was wondering what is the best way for me to get into database interfacing with java. Anybody know any good tutorials for me to try, also what