<?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: AFVGD structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/afvgd-structure/m-p/895977#M54256</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;I'm afraid you cannot access AFVGD as if it were a table, 'cause it's not: it's a structure! So if you want (for example) to use field AFVGD-IEDD, you'll need to find out what table stores this data.&lt;/P&gt;&lt;P&gt;I have tried it myself ( I don't know anything about service orders, sorry  :,-( ), but I can give you some clues:&lt;/P&gt;&lt;P&gt;- Enter tx SE11 and view structure AFVGD&lt;/P&gt;&lt;P&gt;- Double-click the data element corresponding to field IEDD (that's data element IEDD)&lt;/P&gt;&lt;P&gt;- Look at the cross-references of data element IEDD into tables, and you'll get a few tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found it very interesting, table MCAFVGV, this may help you. But sorry again, I'm just wondering as an ABAPer, not as a Service-Order-expert (as I am not...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I hope it could give you some clues about what you have to do. Please let us know if it helped. BR,&lt;/P&gt;&lt;P&gt;Alvaro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 May 2005 16:33:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-05-26T16:33:57Z</dc:date>
    <item>
      <title>AFVGD structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/afvgd-structure/m-p/895976#M54255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am hoping that someone can help me with this.  I need to identify time spent at different stages in a Service Order.  The time spans that I need, and the data fields that I believe will give me the information, is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.) Goods Receipt date (VBFA-ERDAT) to Sale of Repair date (LIKP-WADAT_IST)&lt;/P&gt;&lt;P&gt;2.) Goods Receipt date (VBFA-ERDAT) to Shipment date (VTTK-DTABF)&lt;/P&gt;&lt;P&gt;3.) Actual Start date (AFVGD-ISDD) to Sale of Repair date (LIKP-WADAT_IST)&lt;/P&gt;&lt;P&gt;4.) Actual Start date (AFVGD-ISDD) to Shipment date (VTTK-DTABF)&lt;/P&gt;&lt;P&gt;5.) Actual Start date (AFVGD-ISDD) to Actual Finish Date (AFVGD-IEDD)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe I understand how to join the tables LIKP, VBFA and VTTK to get most of the data but I do not know how to get the AFVGD data.  Can someone tell me how I would do this, or if there is a better place to get this info.  The following is how I am joining the tables I understand:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM join_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT t0&lt;SUB&gt;vbeln t0&lt;/SUB&gt;ernam t0&lt;SUB&gt;erdat t0&lt;/SUB&gt;vstel t0~lfart&lt;/P&gt;&lt;P&gt;        t0&lt;SUB&gt;wadat t0&lt;/SUB&gt;lfdat t0&lt;SUB&gt;route t0&lt;/SUB&gt;vbtyp t0~kunnr&lt;/P&gt;&lt;P&gt;        t0&lt;SUB&gt;btgew t0&lt;/SUB&gt;gewei t0&lt;SUB&gt;lfuhr t0&lt;/SUB&gt;wadat_ist&lt;/P&gt;&lt;P&gt;        t1&lt;SUB&gt;tknum t1&lt;/SUB&gt;tpnum t1~tprfo&lt;/P&gt;&lt;P&gt;        t2&lt;SUB&gt;vbeln t2&lt;/SUB&gt;erdat AS erdat2&lt;/P&gt;&lt;P&gt;        t3&lt;SUB&gt;tknum t3&lt;/SUB&gt;shtyp t3&lt;SUB&gt;exti1 t3&lt;/SUB&gt;dptbg t3~uptbg&lt;/P&gt;&lt;P&gt;        t3&lt;SUB&gt;tdlnr t3&lt;/SUB&gt;dtabf&lt;/P&gt;&lt;P&gt;        t4~wbstk&lt;/P&gt;&lt;P&gt;   into corresponding fields of table GT_JOINED_INFO&lt;/P&gt;&lt;P&gt;   FROM  ( likp AS t0&lt;/P&gt;&lt;P&gt;           INNER JOIN vttp AS t1 ON t0&lt;SUB&gt;vbeln = t1&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;           INNER JOIN vbfa AS t2 ON t1&lt;SUB&gt;vbeln = t2&lt;/SUB&gt;vbelv&lt;/P&gt;&lt;P&gt;           INNER JOIN vttk AS t3 ON t3&lt;SUB&gt;tknum = t2&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;P&gt;           INNER JOIN vbuk AS t4 ON t0&lt;SUB&gt;vbeln = t4&lt;/SUB&gt;vbeln ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Count of table entries&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; DESCRIBE TABLE GT_JOINED_INFO LINES LVI_JOINED_INFO_TBLSIZE.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt; IF LVI_JOINED_INFO_TBLSIZE &amp;gt; 1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Sort for duplicates.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SORT GT_JOINED_INFO BY vbeln.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Delete duplicates.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   DELETE ADJACENT DUPLICATES FROM GT_JOINED_INFO&lt;/P&gt;&lt;P&gt;    COMPARING vbeln.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Adjust table count&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; DESCRIBE TABLE GT_JOINED_INFO LINES LVI_JOINED_INFO_TBLSIZE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2005 16:06:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/afvgd-structure/m-p/895976#M54255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-26T16:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: AFVGD structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/afvgd-structure/m-p/895977#M54256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;I'm afraid you cannot access AFVGD as if it were a table, 'cause it's not: it's a structure! So if you want (for example) to use field AFVGD-IEDD, you'll need to find out what table stores this data.&lt;/P&gt;&lt;P&gt;I have tried it myself ( I don't know anything about service orders, sorry  :,-( ), but I can give you some clues:&lt;/P&gt;&lt;P&gt;- Enter tx SE11 and view structure AFVGD&lt;/P&gt;&lt;P&gt;- Double-click the data element corresponding to field IEDD (that's data element IEDD)&lt;/P&gt;&lt;P&gt;- Look at the cross-references of data element IEDD into tables, and you'll get a few tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found it very interesting, table MCAFVGV, this may help you. But sorry again, I'm just wondering as an ABAPer, not as a Service-Order-expert (as I am not...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I hope it could give you some clues about what you have to do. Please let us know if it helped. BR,&lt;/P&gt;&lt;P&gt;Alvaro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2005 16:33:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/afvgd-structure/m-p/895977#M54256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-26T16:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: AFVGD structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/afvgd-structure/m-p/895978#M54257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Alvaro.  I will try to track down the actual source of the data in the structure as you suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2005 19:41:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/afvgd-structure/m-p/895978#M54257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-26T19:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: AFVGD structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/afvgd-structure/m-p/895979#M54258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AFRU has the details, but I am not a service expert either, so check how your tables relate to this one. I think your VTTK has a TERNR fieldand you can pass this to AFRU-AUFNR, but again this is just a wild guess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2005 21:02:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/afvgd-structure/m-p/895979#M54258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-26T21:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: AFVGD structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/afvgd-structure/m-p/895980#M54259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Srinivas.  VTTK does have TERNR but in our case the field is empty.  I will look into AFRU some more. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2005 14:32:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/afvgd-structure/m-p/895980#M54259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-27T14:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: AFVGD structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/afvgd-structure/m-p/895981#M54260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to read directly CAUFV with AUFNR = VBAK-AUFNR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2005 15:27:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/afvgd-structure/m-p/895981#M54260</guid>
      <dc:creator>franois_henrotte</dc:creator>
      <dc:date>2005-05-27T15:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: AFVGD structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/afvgd-structure/m-p/895982#M54261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you François - but another dead end. The AUFNR field in VBAK is also empty. I'll keep looking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2005 19:02:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/afvgd-structure/m-p/895982#M54261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-27T19:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: AFVGD structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/afvgd-structure/m-p/895983#M54262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with VBAK&lt;SUB&gt;VBELN = AUFK&lt;/SUB&gt;KDAUF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jun 2010 16:11:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/afvgd-structure/m-p/895983#M54262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-29T16:11:00Z</dc:date>
    </item>
  </channel>
</rss>

