Tuesday, April 7, 2009

Combining three different aspects of PI in one shot

Combining three different aspects of PI in one shot

 

This web log describes how to combine three different aspects of PI (ASMA, AF Module and variable substitution) in one shot.

 

Requirement:

Set Receiver File Name as Payload Attribute Value:

Receiver file name should be “ORDERS.xml” where will be having the value of an attribute named “order_no” from Payload.

 

Brief Solution:

1. Using dynamic configuration, set the attribute value of payload dynamically to ASMA

2. Using AF module, write the value of ASMA in a variable

3. Using the variable substitution, set the receiver file name schema

 

Step 1: Dynamic Configuration

In message mapping, create a UDF that will store the value of the attribute “order_no” dynamically in the adapter specific message attributes named “FileName”

 

Java Code for UDF is below.

 

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

 

DynamicConfigurationKey FileName = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File","FileName");

 

conf.put(FileName, a);

 

return "";

 

 


Step 2: AF Modules

Now as we have set the value of an attribute from payload in ASMA so we will write its value in a variable “message.interface”

In the receiver CC, under Modules tab, we will call an AF module “AF_Modules/DynamicConfigurationBean” before the “Call SAP Adapter”.

 

In the module configuration, we will set the following information.

key.0 = write http://sap.com/xi/XI/System/File FileName

value.0 = message.interface

 

Step 3: Variable Substitution

We have the value in “message.interface” so we will assign it to variable substitution.

 


The value of this variable substitution will be used in the receiver file name schema.

 


Receiver File Name Schema = + % + + %.xml

For example: ORDERS%order_no%.xml

 

Since we are not going to use ASMA in our receiver File name schema rather we are using the variable substitution so make sure that the ASMA is unchecked in your receiver CC.

 


 

Another Simple way

There is a simple way to achieve the above requirement “Set Receiver File Name as Payload Attribute Value” and the way is to write the UDF to store the value dynamically in ASMA.

 

UDF code will be as below.

 

String str = “ORDERS” + a +  “.xml”

 

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

 

DynamicConfigurationKey FileName = DynamicConfigurationKey.create("http:/"+"/sap.com/xi/XI/System/File","FileName");

 

conf.put(FileName, str);

 

return "";

  


But in this web log I have just described the possible ways to combine three different aspects of PI (ASMA, AF Module and Variable substitution) in one single shot.

35 comments:

  1. Hi Madan,
    Nice to know this.
    I guess you have write a blog on SDN as well for the same.
    Keep it Up!

    Divyesh Vasani

    ReplyDelete
  2. Well, Thanks for your article.
    Its impressive to know something about your note on SAP HANA Course. Please do share your articles like this your articles for our awareness. Mostly we do also provide Online Training on SAP HANA Course. for more info Contact-Us at@ Tectist.com.

    ReplyDelete
  3. Thanks for sharing these information. Sap pi xi is very nice topic. We are providing online training classes. This is just the kind of information.

    online sap pixi training in usa
    online sap pi xi training in hyderabad and India

    ReplyDelete
  4. Good post.time just passed away by reading the blog.you have put good efforts. Best software Training institute in Bangalore

    ReplyDelete
  5. Thanks for sharing these information. Sap pi xi is very nice topic. We are providing online training classes. This is just the kind of information.
    Mysql Online Training

    Office 365 Online Training

    Oracle ADF Online Training

    ReplyDelete
  6. QuickBooks has made payroll management quite definitely easier for accounting professionals. QuickBooks Payroll Support Phone Number so many individuals who are giving positive feedback if they process payroll either QB desktop and online options.

    ReplyDelete
  7. QuickBooks Enterprise Tech Support Number And Decision Making Are you facing the problem with decision making The quantity of are you able to earn in per month You ought to predict this before. Lots of people are not familiar with this

    ReplyDelete
  8. You're going to be ready to understand the best approach to get your hands on the customer support team. QuickBooks Payroll Tech Support Number welcome you 24*7 to access the various support services of Intuit products asking for help.

    ReplyDelete
  9. QuickBooks Support Number For Business All of the above has a specific use. People working together with accounts, transaction, banking transaction need our service. Some people are employing excel sheets for a few calculations.

    ReplyDelete
  10. QuickBooks is present for users across the world since the best tool to offer creative and innovative features for business account management to small and medium-sized business organizations. If you’re encountering any type of QuickBooks’ related problem, you will get all of that problems solved just by using the QuickBooks Technical Support Number.

    ReplyDelete
  11. To have an amount of expertise in payroll management through QuickBooks, all of us tries to boost your understanding of the payroll updates occurring in QuickBooks Payroll Service Phone Number, desktop, pro, premier 2019 versions. Intuit Payroll Online exports all the transactions to QuickBooks Desktop App along with QuickBooks Online Support as standalone software.

    ReplyDelete
  12. Yes, our QuickBooks Enterprise help number may be a magic bullet to fix any QuickBooks Enterprise tech issue. Our QuickBooks EnterprIse Technical Support Number team is made from QuickBooks Experts who can solve your problems instantly as soon as they get a call on QuickBooks Enterprise number.

    ReplyDelete
  13. QuickBooks Support Number have a team of professionals that have extensive QB expertise and knowledge on how to tailor this software to any industry. Having performed many QB data conversions and other QB engagements, we have the experience that you can rely on.

    ReplyDelete
  14. QuickBooks Enterprise Support Number Provides Necessary Features In Real Time For The Enterprises. Since The Software Runs On Desktop And Laptop Devices, It Is Prone To Get Errors And Technical Glitches.

    ReplyDelete
  15. It is possible to dial the QuickBooks Support telephone number to possess a spoken language because of the QuickBooks Support Phone Number Specialists or else you can even talk to them by victimization the chat choice on our internet site.

    ReplyDelete
  16. Should your software encounters the issue, you will probably start feeling the few hiccups in QuickBooks Tech Support Number system like getting booted out from the system often or strange improvement in data.

    ReplyDelete
  17. Just dial QuickBooks telephone number and tell us the QuickBooks product name that you need QuickBooks help by our experts. Our QuickBooks customer support team will guide you for every product of QuickBooks Tech Support Phone Number Accountant, Pro, and Premier.

    ReplyDelete
  18. The difference that individuals make amongst our competitors is that our services can be found 24*7. But we now have made certain which our services are there any not only for namesake. We actually deliver top quality, quality technical support services to all the our Support For QuickBooks.

    ReplyDelete
  19. Troubleshooting the technical issues in QuickBooks by yourself might result in loss in data along with other software glitches. It will always be convenient to attain our QuickBooks Tech Support Phone Number team channel available on just a call at.Being a client

    ReplyDelete
  20. You are able to choose for any QuickBooks Tech Support Number looking on the desires. QuickBooks are often generally split into 2 categories: QuickBooks online version and QuickBooks Desktop version.

    ReplyDelete
  21. QuickBooks is amongst the great accounting software to easily manage all those things. And when you use this great accounting software and in case you might be struggling with any errors or issues linked to QuickBooks like undo reconciliation in QuickBooks online and a lot more. Simply contact our QuickBooks support team through toll-free QuickBooks Support Phone Number.

    ReplyDelete
  22. QuickBooks Enterprise features its own awesome features which will make it more reliable and efficient. Let’s see some awesome features that could have caused it really is so popular. If you're also a QuickBooks user and would like to learn more concerning this software you may read the QuickBooks Enterprise Phone Support.

    ReplyDelete
  23. Our research team at QuickBooks Support contact number +1 800-417-9538 is dependable for most other reasons as well. We have customer care executives which are exceptionally supportive and pay complete awareness of the demand of technical assistance made by QuickBooks customer Support Phone Number users.

    ReplyDelete
  24. QuickBooks Support Phone Number accounting software is the most effective accounting software commonly abbreviated by the name QB used to manage and organize all finance-related information properly. Reliability, accuracy, and certainly increase its demand among businessmen and entrepreneurs. It really is a great money management system for numerous companies all over the world.

    ReplyDelete
  25. Any QuickBooks user faces any sort of identified errors in their daily accounting routine; these errors can differ in one another to a sizable degree, so our dedicated QuickBooks Payroll Support Number Pro-Advisors are very well designed with their tools and expertise to produce most effective resolutions very quickly to the customers. You are always able to relate with us at our QuickBooks Support Phone Number to extract the very best support services from our highly dedicated and supportive QuickBooks Support executives at any point of the time as most of us is oftentimes prepared to work with you. A lot of us is responsible and makes sure to deliver hundred percent assistance by working 24*7 to meet your requirements. Go ahead and mail us at our quickbooks support email id whenever you are in need. You might reach us via call at our toll-free number.

    ReplyDelete
  26. It gives you the entire image of business insights in order that you’ll strategize for future prospective consequently for your business. Your options of QuickBooks Payroll Tech Support Phone Number would be the last word mix thanks to that it stands apart of this queue of alternative accounting code.

    ReplyDelete
  27. Get prominent options for QuickBooks Support Phone Number near you right away! Without any doubts, QuickBooks has revolutionized the process of doing accounting this is the core strength for small in addition to large-sized businesses.

    ReplyDelete
  28. QuickBooks via QuickBooks Support Phone Number at any time and from anywhere. It signifies that one can access our tech support for QuickBooks at any moment.

    ReplyDelete
  29. if you facing any isse with QuickBooks software the dial toll free QuickBooks Support Phone Number program is developed in such a manner that it'll give you the very best account management mention of this era. However, you might face the issue along with your QuickBooks software and begin looking for the clear answer.

    ReplyDelete
  30. This article features error number Code 9999, commonly known as Quickbooks Error 9999 described as Error 9999: QuickBooks has encountered a problem and needs to close. We are sorry for the inconvenience. If you would like to learn how to Fix QuickBooks Error 9999, you can continue reading this blog.

    ReplyDelete