<?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: RFC to read CACL Data Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-to-read-cacl-data-problem/m-p/3786460#M910963</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;it would be nice if you could verify my code. It shall write the first, 2nd and 3rd Dataset in the corresponding values from the IMPORT Part.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*"  IMPORTING
*"     VALUE(ATWRT0) TYPE  AUSP-ATWRT OPTIONAL
*"     VALUE(ATWRT1) TYPE  AUSP-ATWRT OPTIONAL
*"     VALUE(ATWRT2) TYPE  AUSP-ATWRT OPTIONAL
*"     VALUE(ATINN0) TYPE  AUSP-ATINN OPTIONAL
*"     VALUE(ATINN1) TYPE  AUSP-ATINN OPTIONAL
*"     VALUE(ATINN2) TYPE  AUSP-ATINN OPTIONAL
*"  EXPORTING
*"     VALUE(RC) TYPE  SY-SUBRC
*"     VALUE(ERRTXT) TYPE  SYNTA-LINE

integer = 0.
* Write to screen and update IMPORT values
LOOP AT itab INTO line.
IF integer = 0.
  WRITE: / line-ATINN, line-atwrt.
  ATWRT0  = line-atwrt.
  ATINN0  = line-ATINN.
ENDIF.
IF integer = 1.
  WRITE: / line-ATINN, line-atwrt.
  ATWRT1  = line-atwrt.
  ATINN1  = line-ATINN.
ENDIF.
IF integer = 2.
  WRITE: / line-ATINN, line-atwrt.
  ATWRT2  = line-atwrt.
  ATINN2  = line-ATINN.
ENDIF.
integer = integer + 1.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: Another Question: I am using this rfc with Exchange Infrastructure, which means the values in IMPORT will be sent to the Integration Server. My Question is: Will the data in IMPORT be sent after the sourcecode was working or before that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Daniel Gerne on Apr 28, 2008 11:33 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Apr 2008 09:32:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-28T09:32:47Z</dc:date>
    <item>
      <title>RFC to read CACL Data Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-to-read-cacl-data-problem/m-p/3786459#M910962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;last week I wrote a ABAP report to read all the classification data from ausp and mara. It is working well now.&lt;/P&gt;&lt;P&gt;The next step is to have a RFC doing the same. But copy&amp;amp;paste won't fit here. My Problem is:&lt;/P&gt;&lt;P&gt;Let's say I have a fix number of attributes defined via cacl (e.g. 3 attributes). Then I want the RFC to get data like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Materialdata1; Materialdata2; Attribute1;Attribute2;Attribute3;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Problem is that in AUSP each Attribute of each material is saved in a new Dataset. Like this:&lt;/P&gt;&lt;P&gt;Objectnumber; Attribute1&lt;/P&gt;&lt;P&gt;Objectnumber; Attribute2&lt;/P&gt;&lt;P&gt;Objectnumber; Attribute3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my idea was to write in the sourcecode part of se37 something like read from ausp and mara and then update 3 attribute fields I defined in IMPORT as a global Datatype (String 40 chars). The problem is that I am not allowed to use generic datatypes like c. I don't have privileges tocreate my own Datatypes in se11 either. So I want to ask if you know another idea to solve the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get the cacl data is not the problem. I have a programm here that is working. The Question here is how to define a datatype in IMPORT (SE37) to update the fields via the source code part?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: I think I found a solution myself. I just gave ATWRT the fitting types from the tables. The in the code I made a counter saying when counter=0 change the value of Attribut1 I hope this will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Daniel Gerne on Apr 28, 2008 11:15 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 08:48:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-to-read-cacl-data-problem/m-p/3786459#M910962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T08:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: RFC to read CACL Data Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-to-read-cacl-data-problem/m-p/3786460#M910963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;it would be nice if you could verify my code. It shall write the first, 2nd and 3rd Dataset in the corresponding values from the IMPORT Part.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*"  IMPORTING
*"     VALUE(ATWRT0) TYPE  AUSP-ATWRT OPTIONAL
*"     VALUE(ATWRT1) TYPE  AUSP-ATWRT OPTIONAL
*"     VALUE(ATWRT2) TYPE  AUSP-ATWRT OPTIONAL
*"     VALUE(ATINN0) TYPE  AUSP-ATINN OPTIONAL
*"     VALUE(ATINN1) TYPE  AUSP-ATINN OPTIONAL
*"     VALUE(ATINN2) TYPE  AUSP-ATINN OPTIONAL
*"  EXPORTING
*"     VALUE(RC) TYPE  SY-SUBRC
*"     VALUE(ERRTXT) TYPE  SYNTA-LINE

integer = 0.
* Write to screen and update IMPORT values
LOOP AT itab INTO line.
IF integer = 0.
  WRITE: / line-ATINN, line-atwrt.
  ATWRT0  = line-atwrt.
  ATINN0  = line-ATINN.
ENDIF.
IF integer = 1.
  WRITE: / line-ATINN, line-atwrt.
  ATWRT1  = line-atwrt.
  ATINN1  = line-ATINN.
ENDIF.
IF integer = 2.
  WRITE: / line-ATINN, line-atwrt.
  ATWRT2  = line-atwrt.
  ATINN2  = line-ATINN.
ENDIF.
integer = integer + 1.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: Another Question: I am using this rfc with Exchange Infrastructure, which means the values in IMPORT will be sent to the Integration Server. My Question is: Will the data in IMPORT be sent after the sourcecode was working or before that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Daniel Gerne on Apr 28, 2008 11:33 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 09:32:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-to-read-cacl-data-problem/m-p/3786460#M910963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T09:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: RFC to read CACL Data Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-to-read-cacl-data-problem/m-p/3786461#M910964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;instead of using integer .. use sy-tabix ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Write to screen and update IMPORT values&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LOOP AT itab INTO line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-tabix = 1.&lt;/P&gt;&lt;P&gt;  WRITE: / line-ATINN, line-atwrt.&lt;/P&gt;&lt;P&gt;  ATWRT0  = line-atwrt.&lt;/P&gt;&lt;P&gt;  ATINN0  = line-ATINN.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-tabix = 2.&lt;/P&gt;&lt;P&gt;  WRITE: / line-ATINN, line-atwrt.&lt;/P&gt;&lt;P&gt;  ATWRT1  = line-atwrt.&lt;/P&gt;&lt;P&gt;  ATINN1  = line-ATINN.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-tabix = 3.&lt;/P&gt;&lt;P&gt;  WRITE: / line-ATINN, line-atwrt.&lt;/P&gt;&lt;P&gt;  ATWRT2  = line-atwrt.&lt;/P&gt;&lt;P&gt;  ATINN2  = line-ATINN.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 09:39:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-to-read-cacl-data-problem/m-p/3786461#M910964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T09:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: RFC to read CACL Data Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-to-read-cacl-data-problem/m-p/3786462#M910965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the hint.&lt;/P&gt;&lt;P&gt;Do you know if my knowledge about processing the rfc is correct?&lt;/P&gt;&lt;P&gt;Meaning: First the Source Code is being executed and THEN the IMPORT will give the values to the RFC-Destination.&lt;/P&gt;&lt;P&gt;Is that correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 09:51:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-to-read-cacl-data-problem/m-p/3786462#M910965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T09:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: RFC to read CACL Data Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-to-read-cacl-data-problem/m-p/3786463#M910966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I just found out that I forgot to limit my temporary table to the CACL Attributes of the specific material. So I wanted to add a WHERE clause:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT
ausp~atwrt
ausp~ATINN
into corresponding fields of table itab
FROM ausp
WHERE MATNR = ausp~OBJCT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;MATNR is defined in  IMPORT.&lt;/P&gt;&lt;P&gt;ausp is defined in tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem now is that abap thinks MATNR is a field in the given tables (which is ausp). But I mean the field from IMPORT. How do I say that I mean a field outside of the SELECT statement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 10:12:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-to-read-cacl-data-problem/m-p/3786463#M910966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T10:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: RFC to read CACL Data Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-to-read-cacl-data-problem/m-p/3786464#M910967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Declare V_MATNR LIKE MARA-MATNR in the IMPORT parameters ..&lt;/P&gt;&lt;P&gt;and use V_MATNR in the FM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 10:52:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-to-read-cacl-data-problem/m-p/3786464#M910967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T10:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: RFC to read CACL Data Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-to-read-cacl-data-problem/m-p/3786465#M910968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;thats not possible. It says you can't use references in RFCs. The only options I have about like is type OR type of ref.&lt;/P&gt;&lt;P&gt;When I insert it in the source code. It won't find it either. And when I manually Insert it into IMPORT. It will delete it after checking syntax.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 11:08:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc-to-read-cacl-data-problem/m-p/3786465#M910968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-28T11:08:37Z</dc:date>
    </item>
  </channel>
</rss>

