<?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: RAP - Operation Augmentation in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/rap-operation-augmentation/qaa-p/14124524#M4916569</link>
    <description>Yes it is editable as well.</description>
    <pubDate>Tue, 10 Jun 2025 18:49:55 GMT</pubDate>
    <dc:creator>Rory_A</dc:creator>
    <dc:date>2025-06-10T18:49:55Z</dc:date>
    <item>
      <title>RAP - Operation Augmentation</title>
      <link>https://community.sap.com/t5/technology-q-a/rap-operation-augmentation/qaq-p/14124317</link>
      <description>&lt;P&gt;I am having a problem trying to get operation augmentation working for my RAP managed scenario project. This is in an on-premise system.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Root View&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;define root view entity ZI_OMSOPPS_PRICING
  as select from zoms_oppspricing
{
  key matnr                 as Material,
  key charg                 as Batch,
  key werks                 as Plant,
      @Semantics.amount.currencyCode: 'Currency'
      kbetr                 as Price,
      konwa                 as Currency,
      validfrom             as ValidFrom,
      validto               as ValidTo,
      @Semantics.user.createdBy: true
      local_created_by      as LocalCreatedBy,
      @Semantics.systemDateTime.createdAt: true
      local_created_at      as LocalCreatedAt,
      @Semantics.user.localInstanceLastChangedBy: true
      local_last_changed_by as LocalLastChangedBy,
      @Semantics.systemDateTime.localInstanceLastChangedAt: true
      local_last_changed_at as LocalLastChangedAt,
      @Semantics.systemDateTime.lastChangedAt: true
      last_changed_at       as LastChangedAt

}&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;Projection View&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;define root view entity ZC_OMSOPPS_PRICING 
  as projection on ZI_OMSOPPS_PRICING
{
  key Material,
  key Batch,
  key Plant,
  Price,
  Currency,
  ValidFrom,
  ValidTo,
  LocalLastChangedAt
  
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;Behavior Definition for Root&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;managed; 
define behavior for ZI_OMSOPPS_PRICING alias Pricing
persistent table zoms_oppspricing
lock master
etag master LocalLastChangedAt
{
  field ( mandatory : create )
  Material,
  Batch,
  Plant;

  field ( readonly )
  LocalCreatedAt,
  LocalCreatedBy,
  LastChangedAt,
  LocalLastChangedAt,
  LocalLastChangedBy;

  field ( readonly : update )
  Material,
  Batch,
  Plant;
  //End this section added

  create;
  update;
  delete;&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;Behavior Definition for Projection&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;projection implementation in class zbp_c_omsopps_pricing unique;
//strict ( 2 );

define behavior for ZC_OMSOPPS_PRICING alias Pricing
{
  use create (augment);
  use update;
  use delete;
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;Class with the augmentation code&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;METHOD augment_create.
    DATA: pricing_create TYPE TABLE FOR CREATE zi_omsopps_pricing.

    pricing_create = CORRESPONDING #( entities ).
    LOOP AT pricing_create ASSIGNING FIELD-SYMBOL(&amp;lt;pricing&amp;gt;).
      &amp;lt;pricing&amp;gt;-currency = 'EUR'.
      &amp;lt;pricing&amp;gt;-%control-currency = if_abap_behv=&amp;gt;mk-on.
    ENDLOOP.

    MODIFY AUGMENTING ENTITIES OF zi_omsopps_pricing ENTITY Pricing CREATE FROM pricing_create.

  ENDMETHOD.&lt;/LI-CODE&gt;&lt;P&gt;So the augment_create method gets called but it never modifies my "Currency" field so Im not sure if my Entity names are incorrect or referenced incorrectly.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2025 18:50:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rap-operation-augmentation/qaq-p/14124317</guid>
      <dc:creator>Rory_A</dc:creator>
      <dc:date>2025-06-10T18:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: RAP - Operation Augmentation</title>
      <link>https://community.sap.com/t5/technology-q-a/rap-operation-augmentation/qaa-p/14124522#M4916568</link>
      <description>&lt;P&gt;can you check the amount field associated with that currency filed is editable or not?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2025 18:42:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rap-operation-augmentation/qaa-p/14124522#M4916568</guid>
      <dc:creator>junwu</dc:creator>
      <dc:date>2025-06-10T18:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: RAP - Operation Augmentation</title>
      <link>https://community.sap.com/t5/technology-q-a/rap-operation-augmentation/qaa-p/14124524#M4916569</link>
      <description>Yes it is editable as well.</description>
      <pubDate>Tue, 10 Jun 2025 18:49:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rap-operation-augmentation/qaa-p/14124524#M4916569</guid>
      <dc:creator>Rory_A</dc:creator>
      <dc:date>2025-06-10T18:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: RAP - Operation Augmentation</title>
      <link>https://community.sap.com/t5/technology-q-a/rap-operation-augmentation/qaa-p/14124526#M4916570</link>
      <description>And I have tried other fields like the Price field and that did not work either.</description>
      <pubDate>Tue, 10 Jun 2025 18:51:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/rap-operation-augmentation/qaa-p/14124526#M4916570</guid>
      <dc:creator>Rory_A</dc:creator>
      <dc:date>2025-06-10T18:51:44Z</dc:date>
    </item>
  </channel>
</rss>

