<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Setting Headers and Properties in Message Mapping in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/setting-headers-and-properties-in-message-mapping/qaa-p/12433645#M4655663</link>
    <description>&lt;P&gt;It worked. Thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Jun 2021 10:46:07 GMT</pubDate>
    <dc:creator>aayushaggarwal</dc:creator>
    <dc:date>2021-06-04T10:46:07Z</dc:date>
    <item>
      <title>Setting Headers and Properties in Message Mapping</title>
      <link>https://community.sap.com/t5/technology-q-a/setting-headers-and-properties-in-message-mapping/qaq-p/12433642</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
  &lt;P&gt;As we have the option to &lt;STRONG&gt;get/read&lt;/STRONG&gt; the values of header and properties in the Message Mapping using Groovy Scripting, as mentioned in this &lt;A href="https://blogs.sap.com/2018/03/27/sap-cpi-accessing-header-and-property/"&gt;BLOG&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;Is there any option, using which we can &lt;STRONG&gt;create/set&lt;/STRONG&gt; the headers and properties in Message Mapping in Cloud Integration?&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Aayush Aggarwal&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 16:41:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/setting-headers-and-properties-in-message-mapping/qaq-p/12433642</guid>
      <dc:creator>aayushaggarwal</dc:creator>
      <dc:date>2021-06-03T16:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Headers and Properties in Message Mapping</title>
      <link>https://community.sap.com/t5/technology-q-a/setting-headers-and-properties-in-message-mapping/qaa-p/12433643#M4655661</link>
      <description>&lt;P&gt;Hi Manoj,&lt;/P&gt;&lt;P&gt;Thanks for your response!&lt;/P&gt;&lt;P&gt;But my query is, how can we set header and properties inside the message mapping step (during graphical mapping)?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aayush&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 17:03:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/setting-headers-and-properties-in-message-mapping/qaa-p/12433643#M4655661</guid>
      <dc:creator>aayushaggarwal</dc:creator>
      <dc:date>2021-06-03T17:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Headers and Properties in Message Mapping</title>
      <link>https://community.sap.com/t5/technology-q-a/setting-headers-and-properties-in-message-mapping/qaa-p/12433644#M4655662</link>
      <description>&lt;P&gt;Hi Aayush :&lt;/P&gt;&lt;P&gt;1. Open your mapping and click on create:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1943057-1.png" /&gt;&lt;/P&gt;&lt;P&gt;2. Add the below sample code :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;import com.sap.it.api.mapping.*;
def String customFunc1(String P1,String P2,MappingContext context) {
         String value1 = context.setHeader("Myheader",P1);
         String value2 = context.setProperty("MyProperty",P2);
         return "";
}
&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;3. Add the newly created script in the mapping editor and assign the source/target field.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1943060-4.png" /&gt;&lt;/P&gt;&lt;P&gt;4. Result &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1943061-3.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 17:46:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/setting-headers-and-properties-in-message-mapping/qaa-p/12433644#M4655662</guid>
      <dc:creator>manoj_khavatkopp</dc:creator>
      <dc:date>2021-06-03T17:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Headers and Properties in Message Mapping</title>
      <link>https://community.sap.com/t5/technology-q-a/setting-headers-and-properties-in-message-mapping/qaa-p/12433645#M4655663</link>
      <description>&lt;P&gt;It worked. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 10:46:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/setting-headers-and-properties-in-message-mapping/qaa-p/12433645#M4655663</guid>
      <dc:creator>aayushaggarwal</dc:creator>
      <dc:date>2021-06-04T10:46:07Z</dc:date>
    </item>
  </channel>
</rss>

