<?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: Outbound ABAP Proxy - default values not populated in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/outbound-abap-proxy-default-values-not-populated/qaa-p/10982136#M4034423</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can see default value in proxy structure: see screenshot&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/689039" width="450" /&gt;&lt;/P&gt;&lt;P&gt;The attribute is optional for I cannot make it required and set default val at the same time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I test in sproxy with F8 i see something like &lt;STRONG&gt;&lt;EM&gt;srcId="String 4"&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;I send my example with abap code and check results with SXI_MONITOR.&lt;/P&gt;&lt;P&gt;Also tried SPROXY+F8 but with no success yet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Apr 2015 07:15:15 GMT</pubDate>
    <dc:creator>alexandr_razinkin</dc:creator>
    <dc:date>2015-04-21T07:15:15Z</dc:date>
    <item>
      <title>Outbound ABAP Proxy - default values not populated</title>
      <link>https://community.sap.com/t5/technology-q-a/outbound-abap-proxy-default-values-not-populated/qaq-p/10982133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Structure RRC has default values set up in Enterprise Services Builder (the "Default" column in "Type Definition" view).&lt;/P&gt;&lt;P&gt;RRC is used in an ABAP Outbound Proxy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to &lt;A href="http://help.sap.com/saphelp_nw74/helpdata/en/48/591b845e024bb9e10000000a42189b/content.htm"&gt;http://help.sap.com/saphelp_nw74/helpdata/en/48/591b845e024bb9e10000000a42189b/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;initial values must be replaced with default values when we send data to PI (Consumer Proxy section).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to make it work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 13:54:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/outbound-abap-proxy-default-values-not-populated/qaq-p/10982133</guid>
      <dc:creator>alexandr_razinkin</dc:creator>
      <dc:date>2015-04-20T13:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Outbound ABAP Proxy - default values not populated</title>
      <link>https://community.sap.com/t5/technology-q-a/outbound-abap-proxy-default-values-not-populated/qaa-p/10982134#M4034421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexandr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you able to see the default value in proxy structure (domain of the element)? When you click on test (F8) from proxy did the default value is populated?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Harish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 14:17:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/outbound-abap-proxy-default-values-not-populated/qaa-p/10982134#M4034421</guid>
      <dc:creator>Harish</dc:creator>
      <dc:date>2015-04-20T14:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Outbound ABAP Proxy - default values not populated</title>
      <link>https://community.sap.com/t5/technology-q-a/outbound-abap-proxy-default-values-not-populated/qaa-p/10982135#M4034422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexandr,&lt;/P&gt;&lt;P&gt;The attribute is optional, may be is not populating the default values because the attribute is not being created, where are you getting the problem?, in the abap code or when you try to send an example from the sproxy transaction?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2015 14:21:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/outbound-abap-proxy-default-values-not-populated/qaa-p/10982135#M4034422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-20T14:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Outbound ABAP Proxy - default values not populated</title>
      <link>https://community.sap.com/t5/technology-q-a/outbound-abap-proxy-default-values-not-populated/qaa-p/10982136#M4034423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can see default value in proxy structure: see screenshot&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/689039" width="450" /&gt;&lt;/P&gt;&lt;P&gt;The attribute is optional for I cannot make it required and set default val at the same time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I test in sproxy with F8 i see something like &lt;STRONG&gt;&lt;EM&gt;srcId="String 4"&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;I send my example with abap code and check results with SXI_MONITOR.&lt;/P&gt;&lt;P&gt;Also tried SPROXY+F8 but with no success yet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 07:15:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/outbound-abap-proxy-default-values-not-populated/qaa-p/10982136#M4034423</guid>
      <dc:creator>alexandr_razinkin</dc:creator>
      <dc:date>2015-04-21T07:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Outbound ABAP Proxy - default values not populated</title>
      <link>https://community.sap.com/t5/technology-q-a/outbound-abap-proxy-default-values-not-populated/qaa-p/10982137#M4034424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexandr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try by changing the type of element/attribute to Decimal from string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Harish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 08:17:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/outbound-abap-proxy-default-values-not-populated/qaa-p/10982137#M4034424</guid>
      <dc:creator>Harish</dc:creator>
      <dc:date>2015-04-21T08:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Outbound ABAP Proxy - default values not populated</title>
      <link>https://community.sap.com/t5/technology-q-a/outbound-abap-proxy-default-values-not-populated/qaa-p/10982138#M4034425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexandr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By default if the field is optional and if the field contains initial values then the field will be removed from the xml, if you want to override this behavior you can use Extended XML Handling by setting the below values to the CONTROLLER for the complex type.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;sai_ctrl_initial -&amp;nbsp; Send &lt;SPAN class="L0S52"&gt;initial &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;value&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;sai_ctrl_nil&amp;nbsp; -&amp;nbsp; Send xsi&lt;SPAN class="L0S55"&gt;:&lt;/SPAN&gt;nil=&lt;SPAN class="L0S33"&gt;'true'&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;sai_ctrl_none - &lt;SPAN class="L0S52"&gt;Suppress &lt;/SPAN&gt;Element&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To enable extended XML handling in proxy program you need to call method SET_EXTENDED_XML_HANDLING of interface&amp;nbsp; IF_WSPROTOCOL_PAYLOAD before calling proxy like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN class="L0S31"&gt;*...get payload protocol to enable extended XML handling&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lr_payload_protocol ?= lr_client_proxy&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;get_protocol&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;if_wsprotocol&lt;SPAN class="L0S70"&gt;=&amp;gt;&lt;/SPAN&gt;payload &lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;call &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;method &lt;/SPAN&gt;lr_payload_protocol&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;set_extended_xml_handling&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;abap_true &lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To set which fields you need to activate this by using below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt; ls_prxctrl&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;field &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'FIELD1'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt; ls_prxctrl&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;value &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;sai_ctrl_initial&lt;SPAN class="L0S55"&gt;. " This will send initial value&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt; &lt;SPAN class="L0S52"&gt;append &lt;/SPAN&gt;ls_prxctrl &lt;SPAN class="L0S52"&gt;to &lt;/SPAN&gt;ls_output&lt;SPAN class="L0S70"&gt;-message_type&lt;/SPAN&gt;&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;item&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;controller&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When proxy program convert the ABAP structure to XML in transformation program it reads these values and assign the values like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/689241" height="283" width="335" /&gt;&lt;/P&gt;&lt;P&gt;So it will not assign default values we set in XSD definition, it only sets the default values based on the data type. I hope it clarifies the question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Praveen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 10:25:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/outbound-abap-proxy-default-values-not-populated/qaa-p/10982138#M4034425</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-04-21T10:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Outbound ABAP Proxy - default values not populated</title>
      <link>https://community.sap.com/t5/technology-q-a/outbound-abap-proxy-default-values-not-populated/qaa-p/10982139#M4034426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexandr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that this thread is a few months old now, but anyway. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1291/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt; It works in our sproxy but not in an actual abap code. As you can see, there is also a default value for VHART field in message type.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/732018" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Here is an sproxy screenshot with/without extended xml handling.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/732019" width="450" /&gt;&lt;/P&gt;&lt;P&gt;click Original Request&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/732026" width="450" /&gt;&lt;/P&gt;&lt;P&gt;The screenshot above is what is sent to our PI system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 07:35:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/outbound-abap-proxy-default-values-not-populated/qaa-p/10982139#M4034426</guid>
      <dc:creator>markangelo_dihiansan</dc:creator>
      <dc:date>2015-06-24T07:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Outbound ABAP Proxy - default values not populated</title>
      <link>https://community.sap.com/t5/technology-q-a/outbound-abap-proxy-default-values-not-populated/qaa-p/10982140#M4034427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praveen,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have apply your &lt;/SPAN&gt;recommendation&lt;SPAN style="font-size: 10pt;"&gt; and it fix my issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My requirement was to force initial value when calling the ABAP PROXY, and it was not working cause I have miss to &lt;SPAN style="color: #333333; font-size: 12px;"&gt;enable extended XML handling in proxy program .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for this information.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Samuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Feb 2016 19:00:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/outbound-abap-proxy-default-values-not-populated/qaa-p/10982140#M4034427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-02-15T19:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Outbound ABAP Proxy - default values not populated</title>
      <link>https://community.sap.com/t5/technology-q-a/outbound-abap-proxy-default-values-not-populated/qaa-p/10982141#M4034428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Samuel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glad to hear that problem is resolved, can you please close the thread as per this blog &lt;A __default_attr="82566" __jive_macro_name="blogpost" class="jive_macro jive_macro_blogpost" data-orig-content="How to close a discussion and why" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Praveen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 10:03:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/outbound-abap-proxy-default-values-not-populated/qaa-p/10982141#M4034428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-02-17T10:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Outbound ABAP Proxy - default values not populated</title>
      <link>https://community.sap.com/t5/technology-q-a/outbound-abap-proxy-default-values-not-populated/qaa-p/10982142#M4034429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praveen,&lt;/P&gt;&lt;P&gt;Unfortunately I am not the one who create this thread, so I am not authorized to close it &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;even if for my issue, your answer was the good one &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Samuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Feb 2016 23:23:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/outbound-abap-proxy-default-values-not-populated/qaa-p/10982142#M4034429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-02-21T23:23:51Z</dc:date>
    </item>
  </channel>
</rss>

