Taking a container element into a graphical mapping
Hi experts,
I need to take a simple container string value from a container step into a graphical mapping in my BPM.
Does anybody knows how to do that?
Regards
Gonzalo
Hi,
Check the discussions
Accessing container variable of BPM in Message Mapping function
Re: How to use Container Variable across Maps
Thanks!
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á -
Reg: Access the container element value inside the Task's description tab
Hi All,
I need to call one of my container element into the task's description tab as text symbols.
Please let me know how to do it.
Regards,
Selva.define an importing element in the task container.
map this importing element with the element in the workflow container.
now you can use this task container element in your description text box. (method exxplained in the previous post to this problem)
rgds, -
Writing Exception into ccBPM container trace from Graphical mapping
Hi guys,
I followed the Guarneri's blog /people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
It works fine within message monitor, but at the trace of ccBPM nothing appears! I'm talking about the trace of the container at the message mapping in the ccBPM. (I increased the trace level, but didn't solve)
Anyone knows if it is possible to use this approach for the ccBPM container trace as well, or I'm missing something here?
Thanks in advance & regards,
Ricardo.Hi Gonzalo,
you wrote:
>>Mark the tag 'Create new transaction' in your transformation step in your BPM. Then navigating in the sxmb_moni_bpe transaction wil bring you to your message. But it is hard to find the XML there.
The low technology solution is simulating the data flow in your bpm throw a sequence of chained mapping tests. <<
I already have the option "create new transaction". but maybe I'm searching in the wrong place. Could you point me where to find at ccBPM?
Thanks ®ards,
Ricardo. -
Copy of source message to an element with graphical mapping
Hi all,
Is there a way to copy the complete source message of a mapping to an element of the destination message (with CDATA) with the graphical mapping (or UDF, but I want to avoid XSL) ?
For example, from this message:
<source>
<element>test</element>
<element2>test2</element2>
</source>
I expect the following result:
<dest>
<data><![CDATA[<source><element>test</element><element2>test2</element2></source>]]>
</data>
</dest>
Thanks for your help.
GregHi,
Use this Simple Concept
XML node into a string with graphical mapping
/people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping
Regards
Seshagiri -
Get the value of Container element in message mapping
Hi,
Is it possible to read the value of container elements(bpm) in a UDF defined in message mapping. If yes, please tell me how?
Thanks and regards,
SijiSiji,
Refer thread - Creating the container Object In Java Mapping
Regards,
Geetha -
Container Element in the Mapping UDF
Is there any way that to access the BPM container Element in the Mapping UDF. Can some one share the UDF code for this
Hi,
Refer BPM Container Element and Container in UDF Relation
BPM Container Element and Container in UDF Relation
Creating the container Object In Java Mapping
Thanks
swarup -
BackUp graphical mapping in PI 7.1
Hi every one,
I am trying to save .mte of an existing graphical map in PI 7.1. I could do it in PI 7.0 using - key combination of -
CTRL + SHIFT + Right click - when I select "Export" - it would prompt for File Save option - to save .mte file on the local machine.
When I tried the same thing in PI 7.1, there is no "Export" option.
Can anyone help me please.Hey Shewta,
I have configured a new web service interface which is sync.
I am able to send the request successfully to thirdparty but response is error:
Below is the audit log with error message:
2011-06-02 16:31:43 Information The message was successfully received by the messaging system. Protocol: XI URL: http://udofwpi1:52000/MessagingSystem/receive/AFW/XI Credential (User): PIISUSER
2011-06-02 16:31:43 Information Using connection SOAP_http://sap.com/xi/XI/System. Trying to put the message into the request queue.
2011-06-02 16:31:43 Information Message successfully put into the queue.
2011-06-02 16:31:43 Information The message was successfully retrieved from the request queue.
2011-06-02 16:31:43 Information The message status was set to DLNG.
2011-06-02 16:31:43 Information Delivering to channel: WEBSERVICES_30DAY_PI_to_DUNBRAD
2011-06-02 16:31:43 Information Anonimizer: anonymizing XML ...
2011-06-02 16:31:43 Information Anonimizer: successfully anonymized
2011-06-02 16:31:43 Information SOAP: request message entering the adapter with user J2EE_GUEST
2011-06-02 16:31:44 Information SOAP: completed the processing
2011-06-02 16:31:44 Information SOAP: continuing to response message fbfb5e40-8ce1-11e0-8e51-066296e84702
2011-06-02 16:31:44 Error SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: The request element <ExecuteXMLRequest xmlns='> was not recognized.
2011-06-02 16:31:44 Error Adapter Framework caught exception: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: The request element <ExecuteXMLRequest xmlns=''> was not recognized.
2011-06-02 16:31:44 Error Delivering the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: The request element <ExecuteXMLRequest xmlns=''> was not recognized.. Setting message to status failed.
2011-06-02 16:31:44 Error The message status was set to FAIL.
and response message id (SOAP: continuing to response message fbfb5e40-8ce1-11e0-8e51-066296e84702) where can I find it?
Any clues?
Tried searching in message monitoring for above id but no luck.
Ta,
Jas -
Using a DOM Document in Graphical Mapping
Hi,
I have the following scenario:
A string stream is received from a SOAP adapter. From this I extract a part that is in essence a XML document.
I then parse this into a DOM Document object.
I want to pass this XML structure on to other graphical mapping functions so that I can map parts of this document to other structures. I cannot add it to the 'result' object in an 'Advanced user defined function'
Do I have to add it to some component of the 'container' object passed to the function ?. If not - any ideas of how I would do this ?.
Thanks
AndreHi Andre,
It looks to me like you have an XML document with another XML document embedded (and encoded) inside some element. Something like:
<outerDoc>
<element>
<innerDoc> ...more embedded XML... </innerDoc>
</element>
</outerDoc>
It is not possible to both "unwrap" the inner document and continue to work on it in a graphical mapping. The simplest approach is to have 2 mapping steps in your interface mapping:
1. A pure Java mapping in which you get the complete outer document as input, parse your way through and extract the inner document, which is the output of this first mapping step.
2. A graphical mapping which has your inner document as input and your final result as output.
Hope that clarifies it somewhat
Best regards,
Thorsten -
Graphical Mapping Vs XSLT mapping Vs Java Mapping Vs ABAP Mapping
Hi Experts,
I have a question regarding different message mapping options available in XI namely
Graphical Mapping
XSLT mapping
Java Mapping
ABAP Mapping
Q1: Which amoung the above mappings is the best and why?
Q2: On what cases Graphical, XSLT, Java and ABAP Mapping should be used?
Q3: Is it true that graphical and XSLT mappings are converted into Java class internally?
Kindly help!
Thanks
Gopal
Message was edited by:
gopalkrishna baligaHi,
There is no hard and fast rule for using the mapping techniques.
Graphical Mapping is used for simple mapping cases. When, the logic for your mapping is simple and straight forward and it does not involve mult hiearchical mapping requirement. and context handling.
Java and XSLT mapping are used when graphical mapping cannot help you.
When the choice is between Java And XSLT, XSLT is simpler than java mapping and easier. But, it has its drawbacks. XSLT can lead to a bad perfrormance if the Source XML is huge.
Java Mapping uses 2 types of parsers. DOM and SAX. DOM is easier to use with lots of classes to help you create nodes and elements, but , DOM is very processor intensive.
SAX parser is something that parses your XML one after the other, and so is not processor intensive. But, it is not exaclty easy to develop either.
For further info on each of the mapping, refer to these links,
Graphical Mapping,
http://help.sap.com/saphelp_nw04/helpdata/en/6d/aadd3e6ecb1f39e10000000a114084/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
XSLT Mapping
http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/content.htm
http://www.w3.org/TR/xslt20/
Java Mapping
http://help.sap.com/saphelp_nw04/helpdata/en/e2/e13fcd80fe47768df001a558ed10b6/content.htm
DOM parser API
http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/package-frame.html
Also, check this thread for more info,
Different types of Mapping in XI
Am not sure about XSLT , but , yes graphical mapping is converted into java classes internally and these classes use SAX parsing as well.
Regards,
Bhavesh -
How to use Advance java function in graphical mapping in XI 2.0?
Hi,
currently I am using a simple java function to make an RFC call to R3 system.
I want to avoid making connection for each lookup. Instead I want to make a single connection for whole message queue and get the corresponding values in some array or container object.
please suggest a solution.
I think this is possible using Advance java function, but I am not able to find any example on using Advance java function at help.sap.com.
thaks in advance.Hi!!!
I'm not sure if I understood you well.
Do you want to preload some data into your structures in the memory and keep them there so you don't need to make a new connection during processing the whole message or every message?
In my opinion you can cache some data during processing a message, but it's impossible to cache some data between processing messages.
If you write your java mapping or you use graphical mapping (even with user-defined function), then you have a java class. The problem is that XI 2.0 reloads this class during processing every message, so even if you load some data from your data source into your structures in the memory, this data will be lost after reloading your mapping class.
Regards,
Andrzej Filusz -
Mapping Split using the Graphical Mapping Tool
Hello,
I am a little confused right now... so I turn to you for help!
I found this excellent blog:
/people/claus.wallacher/blog/2006/06/29/message-splitting-using-the-graphical-mapping-tool
It details how to do a message split using the Graphical Mapping Tool. WHich is exactly what I want!
But then I found this on help.sap.com:
http://help.sap.com/saphelp_nw04/helpdata/en/42/ed364cf8593eebe10000000a1553f7/frameset.htm
Which states that:
Messages cannot be sent by using different Adapter Engines in a mapping-based message split. This affects configuration thus: All receiver agreements that have a receiver interface from the mapping entered in the key must only be assigned communication channels with the following adapter types:
- RFC Adapter
- SAP Business Connector Adapter
- File/FTP Adapter
- JDBC Adapter
- JMS Adapter
- SOAP adapter
- Marketplace adapter
- Mail Adapter
- RNIF adapter
- CIDX Adapter
I have a simple mappling split where I want to take a file containing multiple materials and send them one by one to a PROXY into SRM. To send to proxy I want to use the HTTP adapter which is not listed above. BUT if I read it correctly it will work, as long as I dont try to do the interface determination based on the mapping.
Is this correct, that it will work I mean? I think so but not sure about the wording in the sentence above, and wanted to check before I go destroy my mapping.
Thanks!
NamHi,
If your scenario is simple and straight fwd like from one source to one target then you can split message without BPM. As Priyanka said in the message mapping go to Message Tab and set the target message occurance to unbounded. Then in the Interface Mapping in the target interface section you will find the occurance in the last column, change occurance to unbounded.
While doing configuration you have to go for Enhanced Interface Determination thats it.
Provided you are above sp14, incase of any lowere SP'a you will not even able to activate your mapping program as it will expect ABSTRACT interface to do multimapping.
Thanks,
Prakash
Thanks,
Prakash -
Urgent - How to pass value to Multiline container element in workflow
Hi,
I hav a requirement as below...
1) In a Bus. Object, there is a method with a parameter which is Multiline.
2) When I execute it directly from Bus. Object, I am able to populate any no. of lines to the multiline parameter & execute it. It is working correctly.
3) Now I have created a task for the same Method & used it in my workflow.
4) I want to pass multiline values to the parameter from workflow.
5) I dont have any internal table being filled in the previous steps. I directly want to assign variables or constants to it.
How can I do it????
Thanks,
Sivagamihi sivagami,
Please help me. I am also facing same type of problem. i am new to workflow. i am using using FM sap_wapi_write_container. to write into the container. but here my problem is i don know wat is the element name to refer to the value. if i give any element naem its taking as separate element & not as the same multiline container. i hope u will be able to assist me since u have worked on the same type of problem.
If u help i will be highly thankful to u.
Thanks & Regards
Nigesh -
Accessing container element in the User Defined Function
Hi All,
I am accessing a container element in the user defined function.
But it is not working. Actually i want to split a message(1800 records) into a batch of 200.
But it goes in a infinite loop.
Please can you tell me where i am wrong.
Smita
The code is :
public void SplitMsg(String[] a,ResultList result,Container container){
Object container1;
String counter;
int i,j=0;
container1 = container.getParameter("value");
if( container1 == null){
counter = "0";
else {
counter = container.toString();
j = Integer.valueOf(counter).intValue();
for ( i = j ; i <= j + 199 ; i++){
if ( i >= a.length){
container.setParameter("value","9999999");
break;
result.addValue(a<i>);
j += 200;
counter = Integer.toString(j);
container.setParameter("value", counter);Here is another way to accomplish what you wanted.
For the target mapping, use this sequence for mapping
Source element -> removeContext -> Your User-defined Function -> Target Element
When defining User-Defined Function, select "Cache Queue" option.
Since you are using removeContext before calling the UserDefined function, your input to the user defined function will be a String array without ResultList.CC.
Now manipulate the array the way you want it, and build the ResultList result.
After every 200 records, use method
void addContextChange().
This will insert the ResultList.CC at the appropriate places.
Use Display Queue in the Mapping Editor to see the debug values. -
Container element is not being displayed in email
Hi Experts,
I inserted an element from container into email text as below
The task has been pending in inbox for more than &ins_num& days.
The value of &ins_num& in container is 9
In output I get
The task has been pending in inbox for more than days.
Please let me know what is wrong. The binding works fine. No error in workflow.
Thanks.Hi Miak,
Greetings..:-)
> I inserted an element from container into email text as below
> The task has been pending in inbox for more than &ins_num& days.
> The value of &ins_num& in container is 9
> In output I get
> The task has been pending in inbox for more than days.
> Please let me know what is wrong. The binding works fine. No error in workflow.
Check on the Following things:->
1> The Container Element has Initial Value defined, If Yes - it should symbolise in Green Colour.
If 'Not', then check the WF Log and see whether this Container Element is fetching the Values orr not.
2> If the Values are not being Fetched, then the Problem lies with the Binding of these WF Containers.
Let me know if you are still facing Issues.
Regards,
Kanika
Maybe you are looking for
-
I'm using a 2012 Intel-based iMac with Mt. Lion and Windows 7 with Boot Camp. I used to be able to access the internet on both sides. Now, my only internet access is through Boot Camp. At one point, access was unable on both sides but IE in Windows 7
-
FMS Audio (MP3) Glitches - Hosting Issue or Not
I've got several webinars that an associate of mine helped me build several years ago in Flash MX 2004. They are about 40 minutes long, but have been broken into about 8 chapters (seperate .swf files). The .swf files connect to audio (mp3) streams ru
-
Loss of Music and Video and 3rd party apps not working on 3G
I've had to restore my 3G iphone about 10x now. The phone keeps "losing" my music and video, and then the 3rd party apps don't work. A reset does not help, I have to restore my phone and set it up as a new phone each time. I went to the Genius Bar, t
-
Is there a way to save the wpa profile with the filters currently applied on the view ? For example, i have the computation graph with process as firefox filtered and module name as kernelbase.dll. When ever i open a new etl file and apply my profile
-
Fusion Middlewar Enterprise Manager & RDBMS Security Store
Hello, when using a weblogic soa domain configured with the realm to use RDBMS Security Store or adding a new SQLAuthProvider into the realm, the Fusion Middleware Enterprise manager does not show status of servers and deployed components anymore. Ev