<?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: Question about Data Structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-data-structure/m-p/2430309#M543250</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem solved.&lt;/P&gt;&lt;P&gt;Finally,I understand how it's working RFC structure data.&lt;/P&gt;&lt;P&gt;Thank you for your support.&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jul 2007 09:25:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-04T09:25:31Z</dc:date>
    <item>
      <title>Question about Data Structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-data-structure/m-p/2430308#M543249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello to everybody,&lt;/P&gt;&lt;P&gt;Is my first post on this forum and i wish to apologize from the beginning if is not the right thread for my question but i didn't find a better place.&lt;/P&gt;&lt;P&gt;I try to write a function using RFC API function on C programming language and was working smoothly until when i found this data structure  problem .Now , i am not very sure that my understanding about data structure have the same meaning like on the SAP RFC SDK documentation but i will try to explain better by example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI function = "BAPI_PLANNEDORDER_GET_DET_LIST"&lt;/P&gt;&lt;P&gt;export parameter="SELECTIONCRITERIA"&lt;/P&gt;&lt;P&gt;import paramater="RETURN"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are some fields (in my understanding) which should be in relation with import and export parameter&lt;/P&gt;&lt;P&gt;export("PLANT")="RO1P"&lt;/P&gt;&lt;P&gt;export("MRP_CTRLER")="888"&lt;/P&gt;&lt;P&gt;export("MATERIAL") = "8517501100"&lt;/P&gt;&lt;P&gt;export("PROD_LINE") = "LINE1"&lt;/P&gt;&lt;P&gt;export("END_SEL_DATE") = "2007-06-30"&lt;/P&gt;&lt;P&gt;export("STR_SEL_DATE") = "2007-06-01"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And some data should be retrieve from import parameter fields&lt;/P&gt;&lt;P&gt;import(&amp;#147;Type&amp;#148;)&lt;/P&gt;&lt;P&gt;import(&amp;#147;ID&amp;#148;)&lt;/P&gt;&lt;P&gt;import(&amp;#147;NUMBER&amp;#148;)&lt;/P&gt;&lt;P&gt;import(&amp;#147;MESSAGE&amp;#148;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read on the RFC SDK documentation that to use this kind of data i should use RfcInstallStructure and for export parameter i do it like :&lt;/P&gt;&lt;P&gt;/&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;DEL&gt;&lt;STRONG&gt;-C code&lt;/STRONG&gt;&lt;/DEL&gt;--&lt;/P&gt;&lt;HR originaltext="-------------------------" /&gt;/&lt;P&gt;&lt;/P&gt;&lt;P&gt;RFC_PARAMETER EXPORT_PARAM[1];&lt;/P&gt;&lt;P&gt;RFC_TYPE_ELEMENT rte[4];&lt;/P&gt;&lt;P&gt;char mbuff[255];&lt;/P&gt;&lt;P&gt;RFC_TYPEHANDLE rtehnd=0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rte[0].name="PLANT";&lt;/P&gt;&lt;P&gt;rte[0].length=8;	&lt;/P&gt;&lt;P&gt;rte[0].type=TYPEC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rte[1].name="MRP_CTRLER";&lt;/P&gt;&lt;P&gt;rte[1].length=8;	&lt;/P&gt;&lt;P&gt;rte[1].type=TYPEC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rte[2].name="MATERIAL";&lt;/P&gt;&lt;P&gt;rte[2].length=8;	&lt;/P&gt;&lt;P&gt;rte[2].type=TYPEC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rte[3].name=" PROD_LINE ";&lt;/P&gt;&lt;P&gt;rte[3].length=8;	&lt;/P&gt;&lt;P&gt;rte[3].type=TYPEC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rte[4].name=" END_SEL_DATE";&lt;/P&gt;&lt;P&gt;rte[4].length=8;	&lt;/P&gt;&lt;P&gt;rte[4].type=TYPEC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rte[4].name=" STR_SEL_DATE";&lt;/P&gt;&lt;P&gt;rte[4].length=8;	&lt;/P&gt;&lt;P&gt;rte[4].type=TYPEC;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RfcInstallStructure(&amp;#147;RTEEXP&amp;#148;,rte,ENTRIES(rte),&amp;amp; rtehnd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORT_PARAM[0].name=&amp;#148; SELECTIONCRITERIA&amp;#148;; //the name of the export param&lt;/P&gt;&lt;P&gt;EXPORT_PARAM[0].nlen=strlen(EXPORT_PARAM[0].name);&lt;/P&gt;&lt;P&gt;EXPORT_PARAM[0].addr=(void*)mbuff;  //pointer address for value set &amp;#150; here is my confusion.I have 4 values but only one pointer.&lt;/P&gt;&lt;P&gt;EXPORT_PARAM[0].leng=sizeof(mbuff);&lt;/P&gt;&lt;P&gt;EXPORT_PARAM[0].type=rtehnd;   //type handler returned from RfcInstallStructure&lt;/P&gt;&lt;P&gt;/&lt;STRONG&gt;--&lt;/STRONG&gt;&lt;DEL&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="----" /&gt;END CODE--&lt;HR originaltext="------------------" /&gt;/&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the moment I stop it here because is coming my first question :&lt;/P&gt;&lt;P&gt;How can I set the value for the fields which are already installed by RfcInstallStructure ?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2007 15:40:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-data-structure/m-p/2430308#M543249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-29T15:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Question about Data Structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-data-structure/m-p/2430309#M543250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem solved.&lt;/P&gt;&lt;P&gt;Finally,I understand how it's working RFC structure data.&lt;/P&gt;&lt;P&gt;Thank you for your support.&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 09:25:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-data-structure/m-p/2430309#M543250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-04T09:25:31Z</dc:date>
    </item>
  </channel>
</rss>

