<?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>topic BOPF - io_modify-&amp;gt;create in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bopf-io-modify-gt-create/m-p/690816#M31070</link>
    <description>&lt;P&gt;Dear BOPF experts.&lt;/P&gt;
  &lt;P&gt;I could not find solution for this issue by searching in this community&lt;/P&gt;
  &lt;P&gt;I am creating a sub-node in the Yard Order application. The record is child of Yard Order root record. Creation is made by means of CREATE method of the /BOBF/IF_FRW_MODIFY class, implemented in the /BOBF/IF_FRW_ACTION~EXECUTE method of my custom BOPF Action.&lt;/P&gt;
  &lt;P&gt;CALL METHOD io_modify-&amp;gt;create&lt;/P&gt;
  &lt;P&gt; EXPORTING iv_node = /sapyl/if_yard_order_c=&amp;gt;sc_node-reference&lt;BR /&gt; iv_key = &amp;lt;lfs_ref_data&amp;gt;-key&lt;BR /&gt; is_data = lo_ref_data&lt;BR /&gt; iv_assoc_key = /sapyl/if_yard_order_c=&amp;gt;sc_association-reference-to_parent &lt;BR /&gt; iv_source_node_key = is_ctx-node_key&lt;BR /&gt; iv_source_key = ls_key-key&lt;BR /&gt; iv_root_key = is_ctx-root_node_key&lt;/P&gt;
  &lt;P&gt; IMPORTING&lt;BR /&gt; ev_key = lv_key.&lt;/P&gt;
  &lt;P&gt;Apparently, the creation works well.&lt;/P&gt;
  &lt;P&gt;However, I can not figure out why the registry is written in read-only (dimmed) mode. When a line is created manually by pressing the "Create" button on the screen, the new line is activated for changes. But when I do this with the implementation, it comes in read only mode. I tried many things, but nothing worked.&lt;/P&gt;
  &lt;P&gt;Please, can someone give me a tip on what could be happening here?&lt;/P&gt;
  &lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Sep 2018 20:23:27 GMT</pubDate>
    <dc:creator>fabio_bellocchio</dc:creator>
    <dc:date>2018-09-27T20:23:27Z</dc:date>
    <item>
      <title>BOPF - io_modify-&gt;create</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bopf-io-modify-gt-create/m-p/690816#M31070</link>
      <description>&lt;P&gt;Dear BOPF experts.&lt;/P&gt;
  &lt;P&gt;I could not find solution for this issue by searching in this community&lt;/P&gt;
  &lt;P&gt;I am creating a sub-node in the Yard Order application. The record is child of Yard Order root record. Creation is made by means of CREATE method of the /BOBF/IF_FRW_MODIFY class, implemented in the /BOBF/IF_FRW_ACTION~EXECUTE method of my custom BOPF Action.&lt;/P&gt;
  &lt;P&gt;CALL METHOD io_modify-&amp;gt;create&lt;/P&gt;
  &lt;P&gt; EXPORTING iv_node = /sapyl/if_yard_order_c=&amp;gt;sc_node-reference&lt;BR /&gt; iv_key = &amp;lt;lfs_ref_data&amp;gt;-key&lt;BR /&gt; is_data = lo_ref_data&lt;BR /&gt; iv_assoc_key = /sapyl/if_yard_order_c=&amp;gt;sc_association-reference-to_parent &lt;BR /&gt; iv_source_node_key = is_ctx-node_key&lt;BR /&gt; iv_source_key = ls_key-key&lt;BR /&gt; iv_root_key = is_ctx-root_node_key&lt;/P&gt;
  &lt;P&gt; IMPORTING&lt;BR /&gt; ev_key = lv_key.&lt;/P&gt;
  &lt;P&gt;Apparently, the creation works well.&lt;/P&gt;
  &lt;P&gt;However, I can not figure out why the registry is written in read-only (dimmed) mode. When a line is created manually by pressing the "Create" button on the screen, the new line is activated for changes. But when I do this with the implementation, it comes in read only mode. I tried many things, but nothing worked.&lt;/P&gt;
  &lt;P&gt;Please, can someone give me a tip on what could be happening here?&lt;/P&gt;
  &lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 20:23:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bopf-io-modify-gt-create/m-p/690816#M31070</guid>
      <dc:creator>fabio_bellocchio</dc:creator>
      <dc:date>2018-09-27T20:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: BOPF - io_modify-&gt;create</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bopf-io-modify-gt-create/m-p/690817#M31071</link>
      <description>&lt;P&gt;Hi Fabio&lt;/P&gt;&lt;P&gt;As i can see in your code sample, you pass the root node key (is_ctx-root_node_key) of your BOPF object model instead of the root key of the corresponding entity you are working on int the action (in your case this probably should be ls_key-root_key instead). Maybe this is the cause of your problem.&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Gabriel&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 15:36:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bopf-io-modify-gt-create/m-p/690817#M31071</guid>
      <dc:creator>gabriel_candrian</dc:creator>
      <dc:date>2018-10-03T15:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: BOPF - io_modify-&gt;create</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bopf-io-modify-gt-create/m-p/690818#M31072</link>
      <description>&lt;P&gt;Thank you Gabriel.&lt;/P&gt;&lt;P&gt;Actually your answer is the closest to the solution it could get.&lt;/P&gt;&lt;P&gt;Based on this post: &lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.sap.com/questions/149370/problem-updating-new-values-to-a-node-in-runtime-i.html" target="test_blank"&gt;https://answers.sap.com/questions/149370/problem-updating-new-values-to-a-node-in-runtime-i.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;"If we set the wrong root_key, the instance is not properly attached to its parent and will be lost in space". This is exactly what happened.&lt;/P&gt;&lt;P&gt;I commented out the parameter, and the issue is fixed.&lt;/P&gt;&lt;P&gt;Thank you very much for your analysis and guidance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 17:52:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bopf-io-modify-gt-create/m-p/690818#M31072</guid>
      <dc:creator>fabio_bellocchio</dc:creator>
      <dc:date>2018-10-03T17:52:29Z</dc:date>
    </item>
  </channel>
</rss>

