BPM Counter Variable

FILE1---> XI -->  IDOC
I have a BPM to receive the File. Do the Transformation and then send to R/3 as requested. This scenario is working fine for me. The only problem I have is, I need to send a mail at the end of the process, saying that how many IDOCs were sent to R/3.
I have introduced a Counter Variable(SimpleType,Integer) and counting each time an IDOC is created.
But when I add a new step to send the Counter Variable, I dont even see that variable in the Message variable of the SEnd Step!!!
What am I doing wrong?

Hi Mohan,
you cannot send variables - only messages
(there's no way to map variable to a message in BPM)
how can you do your scenario?
you can do 1:2 mapping
you can map your file to 2 kinds of messages:
- idoc
- message with one field(conuter)
then map file to those 2 messages and counter has to contain the number of idocs
then you'll be able to use it in send step:)
BTW
if you're not using combined IDOC have a look at my weblog:
/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>

Similar Messages

  • Assigning a specific value to the sapscript counter variable

    Hi all,
    I am trying to use the sapscript counter variable in my sapscript but encounter the following warning.
    My code looks like the following:
    /: DEFINE &SAPSCRIPT-COUNTER_0& = 0
    The new counter value is &SAPSCRIPT-COUNTER_0(+)&
    The warning i get when i do the syntax check is:
    Ambiguous symbol &SAPSCRIPT-COUNTER_0&
    What is wrong with my syntax?
    Appreciate any help i can get.

    Hi,
         If i am not wrong you are trying to reinitializing that standard variable. if that is the case one thing, in script we cannot assign values to variable other than at initializing time but here you don't have chance to initialize that variable because that is standard one. More over modifications to standard variable will give some warnings.
    So try to use other than standard one as per your requirement.
    Hope this will help you.
    Regards,
    Aswini.

  • How to Access a BPM container variable in XI graphical  message mapping

    Hello XI BPM and Mapping experts,
    is it possible to access a BPM container variable from an graphical mapping?
    If yes, how ?
    We need this for the following scenario:
    IDOC to BPM.
    BPM  transforms and sends transformed IDOC to fileadapter
    If both steps are successful  a STATUS.SYSTAT01 IDOC should be send back to SAP-ISU with status 06.
    If one of these steps fails  the status in the SYSTAT01 should be set to 05. (Exception branch of block)
    We want to avoid to write 2 mapping programs for mapping the SYSTAT01.
    Instead we would like to use a BPM Container Variable which contains the status.
    In the mapping for the SYSTAT01 we want to use this Container Variable.
    Is this possible?
    Thanks for soon answers.
    Regards Marlies

    Hi Marlies,
       Is not possible to acces a BPM container variable from graphical mapping. For other hand, you can to use runtime variables for this purpose.
       You could create an abstract interface with a message type having a single node with the required value and using this message in other mapping.
    Best regards
    Ivá

  • Accessing a BPM Container Variable Inside A Mapping

    Hi
    Is It possible to access a BPM container variable (Simple type say a String )in a Mapping (message mapping). This mapping  is present in the same BPM itself. Is it possible to access the variable in the mapping.
    My basic objective is i need to read and update values between My message mapping and Bpm container simple type variable. I read a value  from BPM variable and then update this variable and again write it back to the BPM container variable and then again read it in a loop . Is it possible to do this exchange.

    Hi,
    The only way is to do with mapping. Totally you need to add your conatiner values into message and then thru mapping you can access.
    Using Container Operation-Append
    http://help.sap.com/saphelp_nw04/helpdata/en/59/e1283f2bbad036e10000000a114084/content.htm
    Regards,
    Moorthy

  • Global Counter Variable - Graphical Mapping

    Hi there.
    Can anybody help with implementing a global counter variable in the graphical mapping please.
    I am trying to populate the "SEGMENT" field of an IDoc with the correct sequence, i.e. add 1 for each new segment. The IDoc has several segments, most of which are embedded. I have tried using the "<b>counter</b>" function but this seems to reset back to one for each instance of it being called.
    I would appreciate any pointers.
    Thank you.
    Mick.

    Hi see this for implementation
    <b>defining Global Variables</b>
    ArrayList arrVI;
    int counter =0;
    <b>Initialization Section</b>
    arrVI= new  ArrayList();
    <b>assignment</b>
    arrVI.add(sVI[iLoopCounter]);
    counter++;
    <b>
    fetch Values</b>
    for (int i =0;i<counter;i++)
    result.addValue(arrVI.get(i)+"");
    Mudit

  • Need to keep track of URL and a count variable

    Can anyone suggest the best way to keep track of a URL and a count variable associated with each URL. I have started using 2 List objects. When I add a URL I also add a 1 in the count List Object. I am using List Objects because I must be able to sort them and search through them.
    Can anyone verify that I am going about this the correct way?
    Thanks

    I would probably use a TreeMap that referenced the counter.

  • BPM counter script

    just needed a manual bpm counter, partially to practice perl, but also cuz i dont like the audacity auto bpm counter.  I like to manually click to the beat... but thats just me.
    It works, but the output isnt rly pretty.  should i print another line that just displays the instantaneous bpm (between the two most recent clicks) or would that just be to much info?  In my opinion i think the avg bpm is all ya need, and if you screw your bpm up by missing a few beats just rerun the app.
    #! usr/bin/perl
    #Beat Counter Program
    #By William Gur
    #2010
    use strict;
    use warnings;
    use Time::HiRes;
    use 5.010;
    sub timediff{
    state @time;
    state $total_time;
    state $focus_element;
    my $timeval=$_[0];
    my $returnval;
    #return time elaped in mins. ex: .35 mins
    #use state to keep value between calls
    push @time, $timeval;
    if(!defined($total_time)){
    $total_time=0;
    if(!defined($focus_element)){
    $focus_element=0;
    if($focus_element>=1){
    $total_time=($total_time+($time[$focus_element]-$time[($focus_element-1)]));
    $returnval=($total_time/60);
    $focus_element+=1;
    return $returnval;
    else{
    $focus_element+=1;
    return 1;
    print "hit the return button to the beat!\n";
    print "press any other key to exit\n";
    my $input="", my $counter=0, my $time_now, my $time_elapsed=1;
    #get the local time as a start val so you know how long has passed
    #in total... compare that to number of clicks so far. get average bpm from this data.
    while($input eq ""){
    $input=<STDIN>;
    chomp($input);
    $time_now = Time::HiRes::time();
    $time_elapsed = &timediff($time_now);
    if($time_elapsed != 0 && $counter != 0){
    print $counter/$time_elapsed;
    print " avg bpm";
    $counter+=1;
    print "\ngoodbye\n";
    Comes in handy covering songs

    Not exactly what you are looking to do, but check out the following:
    1) You can see and adjust tempo and time signature from the large transport bar.
    2) You can add another tempo view to your arrange window by choosing VIEW→GLOBAL TRACK COMPONENTS→TEMPO from the pull down menu in the arrange window.
    3) You can also get a window with a list of tempo and time signatures used in a song by choosing OPTIONS→TEMPO→TEMPO LIST from the main menu bar.
    Any of this help?

  • No counter display on my bpm counter plugin.

    When I insert the bpm counter on a track, it doesn't show a display for a counter like I've seen on every tutorial I've looked at. All it shows is a menu with the following: "Measured BPM," "State," and "Reset." It's driving me mad, and no tutorial I've seen addresses this, making me think it's just my Logic that has this problem. I've only had Logic for about a week, so maybe I'm doing something dumb, here...

    When I insert the bpm counter on a track, it doesn't show a display for a counter like I've seen on every tutorial I've looked at. All it shows is a menu with the following: "Measured BPM," "State," and "Reset." It's driving me mad, and no tutorial I've seen addresses this, making me think it's just my Logic that has this problem. I've only had Logic for about a week, so maybe I'm doing something dumb, here...

  • LOOKING FOR: Auto BPM counter (no tap)

    Hello there,
    I'm looking for an app which can hear the Beats Per Minute (bpm) of a song and automatically calculate them, WITHOUT the use of a touch-screen tapper.
    Do you know any ?
    Thanks in advance!
    - Tyrexionibus

    Yesssss
    All apps I've found with "BPM counter"; "AUTO BPM", or just "BPM" are all tap ones.

  • Resetting a counter variable

    I am trying to use counter variable "count". The default for "count" is 0 when the program is opened up. I initialize ssd and sumclick to be 0. However once it goes through the formula node, the value for "count" changes to 1 and then the decision loop within the formula node that checks if "count>0" is used.
    My problem is, if I stop the program and then rerun the program without closing and reopenign the program, the value for count continues to be 1, and so my intialization for ssd and sumclick dont happen. Whenever I hit the run button I want count to be 0. I dont want count to remember the 1 from the previous run. How can I do this?
    The VI is below.

    Hi Charles,
    Thanks for answering my question. The pciture I posted is part of a large program. After I posted the question I reworked on the block diagram to create a base level example to try and figure out what was going wrong. Here is the base level example. I tried to get rid of the formula node in this. i just have a while loop and all LV operations. 
    I am trying to generate a random number, take the deviation^2 of the random number from 1 and then keep adding that cumulatively to make SSD. I want my SSD to begin with 0, everytime I stop and re-run the program. VI Attached. Please look at it and tell me. Thanks for the help in advance. 
    Attachments:
    ssd.vi ‏8 KB

  • Page Counter Variable & Captivate 4

    Hello - I can't get a simple page counter variable to work that I snagged from Captain Captivate. When I click to preview, the project will not show. I’ve tried F4 and F12, it will not preview the project. When I click F3, it shows the variable text. I’ve downloaded his sample file, this will not preview either. When I delete the variable the previews work. Any ideas on how to solve this problem or is there another option for creating a simple page counter?
    Thanks!!

    Hello,
    You are talking about a slide number? There is a system variable cpInfoCurrentSlide that gives you that number. To have it on all the slides:
    insert a Text Caption on the first slide, in which you insert this system variable, you can add other text as well
    change the timing of this Text caption to 'for rest of project'
    preview: you will have the slide number on each slide.
    If you want to know more about variables, I posted something for starters. The link is in this blog post:
    Curious about variables in Captivate (4 & 5)?
    And if you want to know more, can recommend a Goober guide by the moderator of this CP-forum, Captiv8r:
    Variables and advanced actions
    Lilybiri

  • How to reset a count variable in a conditional format trigger

    I am using a conditional format trigger to eliminate sections of a report where there is no data. The trigger is automatically generated by reports (shown below). the condition is :com_count = '0' therefore no record, no display of section - if :com_count>0 then data present and display record.
    It works fine eliminating the sections - until actual data is found - and count is set to 1 and it displays the record. The problem is that once :com_count >0, then the section displays throughout the rest of the report whether there is actually data or not.
    It seems that :com_count needs to be reset to 0, but when I try to do that, it throws an error stating that :com_count is a read only variable.
    I am new to PL/SQL so can anyone suggest how I can reset the :com_count to 0 each time the trigger fires with :com_count = 1?
    Any help would be appreciated. Thanks,
    Glenn
    The conditional format trigger is:
    function M_G_COM_RANK_GRPFRFormatTrigge return boolean is
    begin
    -- Automatically Generated from Report Builder.
    if (:COM_COUNT = '0')
    then
    return (FALSE);
    end if;
    return (TRUE);
    end;
    The count
    It works perfectly

    wher is your COM_COUNT defined?
    If should be defined in the datamodel in the "mastergroup" of the "detailgroup" of which you want to count the records.
    If you do so, there is a property of the item "Reset at" ( which is by default set to "Report") and you then can change it to the name of the mastergroup. So every time a new record is "active" in the mstergroup, the count-item will be reset to 0.
    hope this helps

  • Scope of the BPM Process variables

    Hi All,
    What is the scope of the process variables in a BPM Process?
    I had defined couple of process variables in my BPM process and observed that whenever i go into a Human Task activity and come back to the BPM process all my process variables values are back to null. Is this the expected behavior or am i missing some thing?
    Thanks,
    TK

    Hi Tulasi. Check for the Modeling and Implementation Guide for Oracle Business Process Management
    You can downlod it from here:
    download.oracle.com/docs/cd/E21764_01/doc.1111/e15176.pdf
    Chapter *8 Handling Information in Your Process Design *, particulary section *8.12 Scope and Access*

  • Get BPM Container Variable?

    Is it possible to get the value of a BPM simple type container variable at Mapping time?

    Hi Ruben,
    you can use a trick:
    - datatype: extend the source container with one field (your simple type)
    - datatype: make all fields optional (0-1 or 0-unbounded)
    - process: create a new multiline container from this type
    - tranformation: fill the one line container with simple type
    - container operation: append to multiline
    - tranformation: fill the one line container with your message
    - container operation: append to multiline
    - transformation: merge the multiline to single-line
    - transformation: Now you have the value of your simple type in an additional field
    Regards,
    Udo

  • Count = variable date format

    I've got a form where the action="page.php" When on this page, I also have a recordset that counts the rows that have the same date variable called from the $_POST.
    the recordset name = datedal
    variable type = date
    Default value = 0
    Runtime value = $_POST['date_dal']
    Obviously my default value is wrong. I've tried to test using 2008-07-01 and its worked. I use the datepicker to get the date in the form.
    But I've tried default values of dates, 0000-00-00, 2008-07-01 but nothing has worked. Please help.
    thanks!

    Problem solved.

Maybe you are looking for

  • Error while installing AS 10g on Linux AS 2.1

    I m trying to install Oracle 9i AS and Oracle AS 10g on Red hat 9.0/Redhat Advanced Server 2.1 but not succeeded. As I have been successfully installed Oracle Database 10g on Red hat 9.0 but when I tried several time to install Application Server 9.0

  • Iphone 5 notification problem

    i didn't get notification sach as whatapp,wechat,facebook etc. otherwise my i phone working very well

  • Class loader Exception

    I am getting the following error even though the corresponding file is present in the app.jar. This happens when hibernates are getting loaded , when i start the oracle app server. Does anyone knows why its so. Caused by: org.hibernate.MappingExcepti

  • Using iTunes as an audiophile quality music server

    I have recently setup up a music server using iTunes on a Wintel PC, connected through a Creative Audigy 2 external sound card to a Yamaha Class A stereo amp and Dynaudio speakers. Using Apple lossless compression, the sound quality of ripped CDs is

  • My bluetooth has disappeared from my MacBook. How do I install again?

    my bluetooth has disappeared from my MacBook. How do I install again?