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
Similar Messages
-
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 MarliesHi 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 -
Using Standard Container Variables in Email Alerts from BPM
Dear All
While creating alert categories from ALRTCATDEF we have a Long Text Tab where we can use Container Variables like SXMS_MSG_GUID ,SXMS_RULE_NAME, SXMS_ERROR_CAT , SXMS_ERROR_CODE etc create the mail contents. We can also display the message passed by the BPM by using the variable
ALERTDYNAMIC_SHORTTEXT , ALERTDYNAMIC_LONGTEXT .
In my case when I call the alert category from the BPM , the message passed by the BPM is displayed through the ALERTDYNAMIC_LONGTEXT in the alert inbox , but I am not able to utilize the other container variables (like SXMS_MSG_GUID ,SXMS_RULE_NAME, SXMS_ERROR_CAT ) for displaying the messageid ,error category etc. Using these variables for alerts invoked from BPM results in Blank Values for all the container variables.
If the alert is not invoked from BPM these variables are getting populated.
My question is is there a way by which we can utilize these variables for Alerts thrown from BPM.
regards
Nilesh .hi check the below links for reference:
http://help.sap.com/saphelp_nw04/helpdata/en/d0/d4b54020c6792ae10000000a155106/content.htm
http://rant03.ranffm.de:50000/rwb_mdt/detailsservlet?objectName=name=is.00.rant03,type=XIIntegrationServer&rwb=true&XIDomain=domain.00.rant03&archive=false&selectMessage=%SXMS_MSG_GUID%
note:reward points if solution found helpfull.....
regards
chandrakanth.k -
XPATH Predicate for container variable of simple type in BPM
Hi Experts,
I have read various threads and blogs with this topic and as I couldn't get a clear view, hence I am raising it here. In my BPM, I am collecting idocs by means of a finite loop. I have used a receive step, container step(to append the idocs) and another container(to increment the counter_variable) in a loop. I want to run the loop for the condition: counter_variable<=3 whereas 'counter_variable' is a container variable of 'simple XSD type(XSD: integer)'.
All the blogs and threads have demonstrated like how to use the EX operator with container variable of type 'Abstract interface'. But how can i incorporate the above scenario for a container variable of simple xsd type ? Please share your ideas.
Regards,
Laawanyaso this is what you need to do,
1. in your loop have a container operation that will increment your simple integer variable each time a message come in.
2. for your loop the condition will be, left operand (simple integer variable) /= (not equal) 3 (Constant)
Ref: SAP BASIS (SWCV) -> http://sap.com/xi/XI/System/Patterns -> Integration Process -> BpmPatternCollectPayload
the only difference here will be the loop condition to be altered as i have mentioned above. -
BPM and own container variables and their usage in transform
Hi folks,
I have a question about the usage of own container variables within the transform step of a BPM.
I want to know whether I can get the actual content of such a container variable within the mapping being done in the transform step.
I have been looking into this forum upon related topic(s) but somehow they all seemed to go about being able to get standard values like messageID etc within the transform step and NOT about getting your own variables ... It is clear that getting those standard variables will not work directly ( not without actually getting them into an XML payload before entering the BPM) ...
So basically I want to define global BPM variables, populate them with some content during BPM execution and then at some point reference those container variables in the mapping ( prob via java code ) in a transform step ... Is that supported ?
Regards,
StevenHi,
>>>So basically I want to define global BPM variables, populate them with some content during BPM execution and then at some point reference those container variables in the mapping ( prob via java code ) in a transform step ... Is that supported ?
no, this is not possible
you can only compare those varabiels with some of your message tags (in a loop step for example)
Regards,
michal -
Reg:Container variables in BPM
Hi...
I have done one scenario with BPM.
In that i have used the below steps.
1. Fork with 2 receive steps.
2. and two container steps for the 2 recieve steps ( vara= "I" for the first recieve step, and varb= "S" for the second receive step)
3.wait -- for 1 min
4. switch (if vara ="I" and varb="S", then branch 1 should execute, if vara="I",then branch 2should execute else we need to cancel the process)
the above steps i have used and executed the scenario. It is working fine. BUt i am having problem with the containers.
I am not able to satisfy the condition for [if vara="I" and varb="S",]
The switch is not going to check the above conditon because whenever the file is recieved the container variable will get updated and wait for 1 min and will go for switch contion. So here i can check only for single condition at a time.
Can you please help me how to check the both the container variables at an time..?
Regards,
LeelaCan you please help me how to check the both the container variables at an time..?
So when the Switch Step is executed are both the variables filled with the required values (I am not able to understand your query clearly)....if both the variables are filled then in the condition editor you can define the condition based on both the values (use And...it will be Insert Expression ...for executing Branch 1)
It will be something like var1 = I And var2 = S .....while selcting the left operand select the appropriate message.
If you are on 7.1 then create two condition variables representing var1 and var2.
Similarly when defing condition for Branch2 it will be only var1 to be used.
Regards,
Abhishek. -
Accessing container variable of BPM in Message Mapping function
Hi,
I have a scenario in BPM where i have a container variable that is used as a loop counter.I want to access that counter defined , every time when i go around the loop and perform certain actions based on that counter. so how can i access that variable in my message Mapping function.Hi Sudharshan,
check these links, hope they give you the required information (i think there is some problem with SDN site, check these links after a while)
Re: How to use Container Variable across Maps
Container object in Message Mapping
Copy value of container (abstract interface) to an other container
Regards
Vishnu -
Container variables in User decision Step in BPM
Hello,
I am using User decision Step in BPM.
When i use only text in "Title for Display" the BPM is activated successfully and Status in SXI_CACHE also shows 0.
If I use container variables in "Title for Display" the BPM is activated successfully but status in SXI_CACHE shows 99.
It shows the below error
"Problem updating an integration process with object ID 073AF2C620F43E839B2903344DEE29BB. Symbol 'CE/KO' expected at position 1 in expression ''
Please suggest.
Thanks,
ShabariHi Shabari, did you follow the steps for declaration of variables as in [SAP help for user decisions|http://help.sap.com/saphelp_nwpi71/helpdata/en/42/c2a19fb4511d65e10000000a1553f6/content.htm]? How did you define your variable?
Maybe discussion [in this thread|BPM activation Error in SXI_cache; can help, it is unanswered though.
Regards, Martin -
Add 2 container variables in control step BPM
Hi All,
I have a scenario where I need to add 2 container variables in control step under AlertMessage and I am using under exception branch
Control Step
StepName: XXXX
Action : XXXX
AlertCategory: XXXX
AlertMessage: ?
I am successful putting one container variable in alert message with &AAAA& but I want to add another variable values &BBBB& as well.
When I tried to keep variables as &AAAA& and &BBBB&..I can return code 99 in sxi_cache.
How can I achieve this with BPM..I am using sap pi 7.0may be i need to explain more clearly..
I have 2 container variables with simple type which holds 2 different payload values.
Under exception branch I have a control step to throw alert. In this I need to pass alert messages with these 2 varaibles.
As I said earlier I am able to pass successfully one container variable value but when I insert the second variable it is not picking up and when I check sxi_cache the IP return was 99 which means some error occured while assiging these values.( I tried in different ways)
But when I inserted has &AAAA& and &BBBB& then reuton code was 0 but whn I run scenario it is not populating both values
Can anyone please help me how I can populate 2 variable values in alert message under control step. -
Can we set a default value for the container variable in BPM?
Can we set a default value for the container variable.?
Suppose if i have a loop step and i have given a container variable i=5 as end condition.What value will it take during its first execution?Can we set the value for container before a recieve step?Hi
Define Container Variable of Type integer and Category Simple Type .Use Condtion in Loop.
In Container Operation Step Assign value and Use Expression to
Increase or Decrease Valus according to your operation.
look Pattern 4 in this blog to understand Container Operation
/people/sharathchandra.girmaji/blog/2008/09/11/bpm-with-patterns-explained-part-1 -
What is a container variable in BPM (Exchange Infrastructure)?
In BPM scenario with Exchange Infrastructure, I have come across container variable. What is this container variable? How it is used in BPM?
In another instance I read that to trigger a alert in BPM I have to create a container variable. So I have another question, What steps I have to follow to create a container variable and trigger alert?Hi,
To create alerts in XI , check this blog,
/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
ALso, if you are on SP14 and above, check this note 913858.
The container variables that are accepted while createing Alerts in XI are available on this link,
http://help.sap.com/saphelp_nw04/helpdata/en/d0/d4b54020c6792ae10000000a155106/content.htm
Regards,
Bhavesh -
Queue alerts container variables are not getting filled
Hi All,
I am referring this blog to create alerts when message struck in queues
/people/santhosh.kumarv/blog/2009/05/19/sap-xipi-alerts-for-queue-errors
I am able to get the alert when a message struck in Queue of XI. But Container variables are not filled with actual run time values
I have used the report as it is and container variables as described in blog.
I have implemented Alerts for IE & AE alerts, those are looks good as expected.
Please let me know any clue
RegardsHi,
After investigating all the things i found these
1) We have already Integration Engine & Adapter Engine Alerts configured in landscape with separate alert categories & working fine
2) Now i configured one more alert category for Queue error with the above mentioned Blog
Important thing: is even though if any error occurred on Integration engine, i get 2 alerts. one with Integration Engine alert category description & one more is with Queue alert category description
Reason for this is, for Queue alert category i selected radio button as "No Restriction". because of this if any IE error occurred also queue alert category is also triggering along with Integration engine alert category .
Please let me know is it possible to implement Queue alerts along with the IE & AE type alert categories
Any one implemented IE, AE & Queue alerts in single landscape
Regards
vamsi
Edited by: Vamsi Krishna on Jul 19, 2010 4:53 PM -
Alert rule container variable not getting filled up
I want to generate an alert if file content conversion fails. Created an alert category with the SXMS_TO_ADAPTER_ERRTXT as a container variable of dictionary type Char70 as included it in the long text.Created an alert rule in the RWB. I am getting the alert in the inbox but nothing is filled in for SXMS_TO_ADAPTER_ERRTXT. We are on PI7.0 SP9.
Has anybody noticed similar problems ?Hi Sangeeta, I had the same problem but I couldn't fixed because there was not enough time to do it, I created my own message with almost all the XI container variables. And the messages are very helpful. I send you some links
Container variable
http://help.sap.com/saphelp_nw04/helpdata/en/d0/d4b54020c6792ae10000000a155106/content.htm
Alert notification step-by-step
http://help.sap.com/saphelp_nw04/helpdata/en/d0/5e073c8e56f658e10000000a114084/frameset.htm
Michal's weblog
/people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
I hope it can help you.
Regards
Omar Hernandez -
Using variants to set/get container variables?
I am trying to determine if there is a way to retreive TestStand container variables into CVI using variants. The goal is to not have to get each member of the container separately. I am not seeing a way to do this - if it can please done can you please provide an example? Thanks.
Hi Snood1,
There are several ways to pass containers to and from code modules, one
of which is the same method you are currently employing.
I've found an old discussion forum that still is relevant to your question - you can find it here:
http://forums.ni.com/ni/board/message?board.id=270&message.id=1001&requireLogin=False
Hope this helps! If you have more questions feel free to let us know.
Have a good one Snood1,
Dan Weiland
Maybe you are looking for
-
How do I get FF to keep my tab groupings (Intel Macbook)?
I have tried unsuccessfully to arrange my tabs into groups and name them. Occasionally it would hold them for a couple of hours, but invariably it drops them either immediately or relatively quickly. These are the 2 extremes; the middle of the road e
-
Does anyone else have this problem? It's in my history, but not under "Recently Closed Tabs".
-
Scenario: R/3 - XI - Third Party System: Manage queues
Hi to all, my scenario is: an R/3 system which extract some datas -> XI -> datas are used in a third party system. In R/3 system I did a custom program which extracts datas and send them to abap proxy, this program is used by a key user who can execu
-
Acceptance at origin for subcontracting scenario
Dear Experts, Business needs to use the acceptance at origin functionality with subcontracting orders. For this, we need to first set up the field "Origin Accept." in Delivery Tab of PO. But, as soon as I enter Item category L in ME21N, the field Ori
-
Hi , I would like to ask this question again to oaf top users/gurus( Tapash Ray ,Shiv Saroj,Mukul Gupta,Ramkumar Sekar,Sumit Sharma, avajain, Srinath Mani) to put some light on this issue. Many thanks! <br><br> Hi OAF Guru's <br><br> My goal is to co