<?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 Re: How to write to SAP R/3 Table using SAS/ACCESS or Data Surveyor in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-write-to-SAP-R-3-Table-using-SAS-ACCESS-or-Data-Surveyor/m-p/576608#M17678</link>
    <description>&lt;P&gt;Ahmed,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Writing data back to r/3 is not the same as writing to a database because r/3 is an ERP system.&amp;nbsp; I recommend working with your SAP team to determine if the table you want to write to can be updated.&amp;nbsp; If the table can be updated do you have permission to write to that table?&amp;nbsp; Based on the table you will also have to find an appropriate BAPI that will allow you to write to the table you want to update.&amp;nbsp; Once you have this information you can create a job in SAS Data Integration Studio (part of SAS Data Surveyor for SAP) using the SAP Transformation to call the BAPI and pass the updated data to the desired table.&amp;nbsp; In the properties of the of the SAP Transformation you will name the appropriate BAPI.&amp;nbsp; The transformation can have inputs and outputs based on the BAPI named in the SAP Transformation.&amp;nbsp; For example, the BAPI "BAPI_PBSRVAPS_CHANGEKEYFIGVAL2 " can be used to update planning data in a planning book in SAP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using the SAP Tranformation uses the PROC CALLRFC in code.&amp;nbsp; Here are some details about PROC CALLRFC&amp;nbsp;&lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=accr3&amp;amp;docsetTarget=n0xlumuutlj19rn1vhrbxhhrnnig.htm&amp;amp;locale=en"&gt;https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=accr3&amp;amp;docsetTarget=n0xlumuutlj19rn1vhrbxhhrnnig.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps you.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lou Galway&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jul 2019 14:21:10 GMT</pubDate>
    <dc:creator>LouGalway_sas</dc:creator>
    <dc:date>2019-07-25T14:21:10Z</dc:date>
    <item>
      <title>How to write to SAP R/3 Table using SAS/ACCESS or Data Surveyor</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-write-to-SAP-R-3-Table-using-SAS-ACCESS-or-Data-Surveyor/m-p/576592#M17677</link>
      <description>&lt;P&gt;How to write to SAP R/3 Table using SAS/ACCESS or Data Surveyor?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using data&amp;nbsp;surveyor, and I was able to access SAP R/3 tables, import the metadata, and create SAS datasets to host the SAS tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I need to write back to SAP, any ideas how to perform so?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW, using simple table loader transformer giving errors like:&lt;/P&gt;&lt;P&gt;ERROR: SQL Passthru is not supported&lt;BR /&gt;ERROR: Update access is not supported for file ECCLIB.MSEG.DATA.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 13:53:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-write-to-SAP-R-3-Table-using-SAS-ACCESS-or-Data-Surveyor/m-p/576592#M17677</guid>
      <dc:creator>AhmedAccordBGro</dc:creator>
      <dc:date>2019-07-25T13:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to write to SAP R/3 Table using SAS/ACCESS or Data Surveyor</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-write-to-SAP-R-3-Table-using-SAS-ACCESS-or-Data-Surveyor/m-p/576608#M17678</link>
      <description>&lt;P&gt;Ahmed,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Writing data back to r/3 is not the same as writing to a database because r/3 is an ERP system.&amp;nbsp; I recommend working with your SAP team to determine if the table you want to write to can be updated.&amp;nbsp; If the table can be updated do you have permission to write to that table?&amp;nbsp; Based on the table you will also have to find an appropriate BAPI that will allow you to write to the table you want to update.&amp;nbsp; Once you have this information you can create a job in SAS Data Integration Studio (part of SAS Data Surveyor for SAP) using the SAP Transformation to call the BAPI and pass the updated data to the desired table.&amp;nbsp; In the properties of the of the SAP Transformation you will name the appropriate BAPI.&amp;nbsp; The transformation can have inputs and outputs based on the BAPI named in the SAP Transformation.&amp;nbsp; For example, the BAPI "BAPI_PBSRVAPS_CHANGEKEYFIGVAL2 " can be used to update planning data in a planning book in SAP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using the SAP Tranformation uses the PROC CALLRFC in code.&amp;nbsp; Here are some details about PROC CALLRFC&amp;nbsp;&lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=accr3&amp;amp;docsetTarget=n0xlumuutlj19rn1vhrbxhhrnnig.htm&amp;amp;locale=en"&gt;https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=accr3&amp;amp;docsetTarget=n0xlumuutlj19rn1vhrbxhhrnnig.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps you.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Lou Galway&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 14:21:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-write-to-SAP-R-3-Table-using-SAS-ACCESS-or-Data-Surveyor/m-p/576608#M17678</guid>
      <dc:creator>LouGalway_sas</dc:creator>
      <dc:date>2019-07-25T14:21:10Z</dc:date>
    </item>
  </channel>
</rss>

