Posts

Showing posts from May, 2024

accessing crendtials in sap cpi

 import com.sap.gateway.ip.core.customdev.util.Message; import java.util.HashMap; import com.sap.it.api.ITApiFactory; import com.sap.it.api.securestore.SecureStoreService; import com.sap.it.api.securestore.UserCredential; import com.sap.it.api.securestore.exception.SecureStoreException; def Message processData(Message message) {     // Define the alias for the user credentials     def credentialAlias = "SAP_BTP_Team_test";          // Get the SecureStoreService instance     def secureStorageService = ITApiFactory.getService(SecureStoreService.class, null);          try {         // Retrieve the user credentials using the alias         def userCredential = secureStorageService.getUserCredential(credentialAlias);                  // Get the username and password from the credentials         def usernam...

Bangalore metro

Image
 

VALUE MAPPING: EXCEPTION HANDLING FROM GROOVY SCRIPT,

  https://community.sap.com/t5/technology-q-a/hci-groovy-try-catch-not-working/qaq-p/12176181 ------- import com.sap.gateway.ip.core.customdev.util.Message import com.sap.it.api.ITApiFactory import com.sap.it.api.mapping.ValueMappingApi def Message processData(Message message) {     // Properties     def map = message.getProperties()     def sourceValue = map.get("sourceValue")     def senderAgency = map.get("senderAgency")     def senderId = map.get("senderId")     def receiverAgency = map.get("receiverAgency")     def receiverId = map.get("receiverId")     // Get ValueMappingApi service     def valueMapApi = ITApiFactory.getService(ValueMappingApi.class, null)          if (valueMapApi == null) {         message.setHeader("Error1", "ValueMappingApi service is not available.")         throw new RuntimeException("ValueMappingApi s...

srini jms retry logic:

  https://community.sap.com/t5/technology-blogs-by-members/sap-cpi-retry-jms-and-open-incident-servicenow/ba-p/13453328 in SAP Integration suite ; for error case like message is not delivered to target with iflow; JMS sender ...can we schedule in such a way that it needs to be retry 3 times for every 1 hour and after 3 retires is it possible to retry again after 12 hours? ChatGPT In the SAP Integration Suite, you can achieve the desired retry mechanism using JMS (Java Message Service) queues combined with specific retry strategies. Here's how you can set up the required retry mechanism: Initial Setup: Ensure that your iFlow has a JMS sender that reads messages from a JMS queue. Configure Retry Logic: Use the retry settings available in the JMS sender adapter configuration. For the initial retries (3 times every 1 hour), configure the retry intervals and the maximum retries in the JMS adapter settings. Implement Extended Retry Logic: To retry after 12 hours if the initial retries...

alternative chatGPT

  Here are 20 alternatives to ChatGPT, both free and paid, that you can explore: Claude 3 - Offers a free version with the Sonnet model and a paid Pro version with the Opus model for $23.60/month. It's known for its large context window and multilingual capabilities​ ( Beebom ) ​. Microsoft Copilot - Free tool integrated with Microsoft 365 apps, offering capabilities similar to ChatGPT for tasks within the Microsoft ecosystem​ ( Beebom ) ​. Meta AI - Uses Llama 3 models and is available on WhatsApp, Instagram, and Messenger. It's free and excels in conversational tasks​ ( Beebom ) ​​ ( Semrush ) ​. Pi by Inflection AI - A free chatbot that focuses on personalized, step-by-step conversations and emotional support​ ( Semrush ) ​​ ( Intellipaat ) ​. Otter.ai - Offers real-time transcription and meeting summarization. Free basic plan, with Pro at $16.99/month and Business at $30/month​ ( Semrush ) ​. Perplexity AI - A versatile search and conversational AI tool. Free b...

value mapping test code. still modify

Image
  import com.sap.gateway.ip.core.customdev.util.Message import com.sap.it.api.ITApiFactory import com.sap.it.api.mapping.ValueMappingApi def Message processData(Message message) {     // Properties    def map = message.getProperties()     //def senderAgency = 'CompanyA'     //def senderId = 'ID'     //def receiverAgency = 'CompanyB'     //def receiverId = 'ProductCode'     def productId = map.get("id")           def senderAgency = map.get("senderAgency")     def senderId = map.get("senderId")     def receiverAgency =map.get("receiverAgency")     def receiverId = map.get("receiverId")     // Get ValueMappingApi service     def valueMapApi = ITApiFactory.getService(ValueMappingApi.class, null)     // Get mapped value     def productCode = valueMapApi.getMappedValue(senderAgency, senderId, productId, receiverAgency, r...

pss book : దీపావళి part2

దీపావళి. ప్రపంచంలో ఇంతవరకు ఎవరి చేత గుర్తింపబడనిది, ఎవరూ కనుగొననిది, ఎవరికీ తెలియనిది పరమాత్మ. పరమాత్మనే దేవుడు అనికూడా అనవచ్చును. దేవుడు అనినా ఎవరికీ తెలియనివాడేనని అర్థము. వివరముగా చెప్పుకొంటే దేవుడు అనగా, దేవులాడబడేవాడు లేక వెతకబడే వాడు అని అర్ధము. వెతకబడేవాడు అని అంటే కనిపించనివాడని అర్ధము. దేవుడు అనబడేవాడు ఎవడో, ఎట్లుంటాడో, అతని పేరేదో, అతని స్థానమేదో, ఆయన పనేమిటో ఎవరికీ తెలియదు. అటువంటి వానితో మనకేమి పనిss అనుటకు వీలులేదు. భూమిమీద బ్రతికే ప్రతి జీవరాశికీ, ప్రతి మనిషికీ శక్తి అవసరము. శరీరములో శ్వాస పీల్చుటకు శక్తి కావాలి. ఆహారము జీర్ణమగుటకు శక్తి కావాలి. శరీరములోని ప్రతి కదలికకూ, ప్రతి భాగమునకు శక్తి అవసరము. శరీరములో ఎక్కడ శక్తి లేకపోతే అక్క వ్యాధి ఏర్పడుతుంది. వ్యాధి ఏర్పడినప్పుడు శక్తి ఉండదనీ, బలహీనముగా ఉండునను విషయము అందరికీ తెలుసు. శరీరములో ఎక్కడైనా వ్యాధి లేకుండా పోవాలంటే, శరీరమునకు శక్తి అవసరము. ఎప్పుడు శక్తి ఉందో, అప్పుడు వ్యాధి ఉండదు. మనిషి శరీరమునకు శక్తి ఎక్కడనుండి లభించుచున్నది? అని ప్రశ్నించుకొని చూస్తే, ప్రపంచములోనున్న ఏ జీవరాశికిగానీ, శక్తి అనునది ప్రకృతినుండి లభిం...