cancel
Showing results for 
Search instead for 
Did you mean: 

BPM Counter Variable

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member91687
Active Contributor
0 Kudos
MichalKrawczyk
Active Contributor
0 Kudos

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>