<?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: table relation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-relation/m-p/1482518#M225593</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may want to use a function module to get your characterisitcs instead.  COAS is just a db view over the transpart table AUFK,  take the AUFNR from this table and hit AFPO also,  here you can get the internal object number CUOBJ.  Pass this number to the function module below and you will have the characteristics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

* Internal Table for Characteristic Data
  data: ichar type table of comw with header line.

* Retrieve Characteristics.
  call function 'CUD0_GET_VAL_FROM_INSTANCE'
       exporting
            instance           = afpo-cuobj
       tables
            attributes         = ichar
       exceptions
            instance_not_found = 1.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Aug 2006 14:29:23 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-08-17T14:29:23Z</dc:date>
    <item>
      <title>table relation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-relation/m-p/1482517#M225592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone tell tell me the table which would relate &lt;/P&gt;&lt;P&gt;ausp-atwrt and COAS-AUFNR i.e internal order number&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2006 14:04:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-relation/m-p/1482517#M225592</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-17T14:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: table relation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-relation/m-p/1482518#M225593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may want to use a function module to get your characterisitcs instead.  COAS is just a db view over the transpart table AUFK,  take the AUFNR from this table and hit AFPO also,  here you can get the internal object number CUOBJ.  Pass this number to the function module below and you will have the characteristics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

* Internal Table for Characteristic Data
  data: ichar type table of comw with header line.

* Retrieve Characteristics.
  call function 'CUD0_GET_VAL_FROM_INSTANCE'
       exporting
            instance           = afpo-cuobj
       tables
            attributes         = ichar
       exceptions
            instance_not_found = 1.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2006 14:29:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-relation/m-p/1482518#M225593</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-17T14:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: table relation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-relation/m-p/1482519#M225594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's been a while and my current company doesn't use VC, so I will try to get you started.  COAS is a view on AUFK.  AUFK will get you to AFPO.  AFPO contains a field CUOBJ which is your link into the configuration area.  Another way to get to CUOBJ is to look at table INOB with OBTAB = 'AFPO' and OBJEK = &amp;lt;order number&amp;gt;.  Remember to include the leading zeroes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have CUOBJ, go to AUSP with OBJEK = CUOBJ and you will get the current configuration values.  The following tables are useful:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CABN - Characteristics&lt;/P&gt;&lt;P&gt;CABNT - Characteristic texts&lt;/P&gt;&lt;P&gt;CAWN - Characteristic Values&lt;/P&gt;&lt;P&gt;CAWNT - Value texts&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2006 14:31:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-relation/m-p/1482519#M225594</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-17T14:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: table relation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-relation/m-p/1482520#M225595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich and Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply's.&lt;/P&gt;&lt;P&gt;Now i have an idea what iam heading to.I checked everything as you guys said.&lt;/P&gt;&lt;P&gt;i could not locate afpo-cuobj for my aufk-aufnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i could find a value in ausp my objek.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way those two are related,&lt;/P&gt;&lt;P&gt;aufnr from aufk relates to AFPO-CUOBJ AND THEN&lt;/P&gt;&lt;P&gt;AFPO-CUOBJ RELATES TO AUSP-ATWRT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont any data in TABLE AFPO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I COULD FIND THE VALUE IN AUSP TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objek field is like FMAREA+FUND.&lt;/P&gt;&lt;P&gt;SO YOU GUYS SUGGEST TO CONCANTENATE AND DIRECTLY HIT ausp table rathering than going to AFPO table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;waiting for your valuable replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2006 14:50:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-relation/m-p/1482520#M225595</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-17T14:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: table relation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-relation/m-p/1482521#M225596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I started you down the production order route.  I haven't seen the OBJEK field derived in that fashion.  For me, it has always been a an internally generated number.  But if that's what you are seeing, go for it.  One thing you might want to do is run a performance trace (ST05) as you navigate into the configuration area of your order.  That way you can verify the route SAP takes to get to the characteristic values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2006 15:15:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-relation/m-p/1482521#M225596</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-17T15:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: table relation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-relation/m-p/1482522#M225597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But iam not sure whether OBJEK IAS ALWAYS A COMBINATION OF  FM AREA AND FUND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wHAT IS YOUR SUGGESTIION.iS THIS THE RUGHT WAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i HAVE ONE MORE QUESTION WHEN DOES THE AFPO TABLE GET UPDATED ,DOES IT GET UPDATED AS SOON AS AS YOU CREATE AN INTERNAL ORDER in KO01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i WAS CHECKING THE T CODE FM5S IN WHICH I GIVE FM AREA AND FUND AS MY INPUT AND WHEN I CLICK ENTER AND THE CLASSIFICATION BUTTON ,I CAN THE CHARACTERSTIC VALUE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wHEN I TRIED TO DEBUG SO AS TO KNOW FROM WHERE HE IS GETTING DATA BUT I COULDN'T FIGURE IT OUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lET ME KNOW YOUR SUGGESTIONS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2006 15:32:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-relation/m-p/1482522#M225597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-17T15:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: table relation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-relation/m-p/1482523#M225598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was suggesting performance trace, not debug.  That way you can see the order in which SAP accesses the tables as well as what selection criteria is used.  Either way, I was able to confirm what you were seeing.  You should be able to access the characteristics from AUSP using OBJEK = OR&amp;lt;order number&amp;gt;.  Specifically, my trace should the selection as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM AUSP &lt;/P&gt;&lt;P&gt;  WHERE MAFID = 'O'&lt;/P&gt;&lt;P&gt;    AND KLART = '013'&lt;/P&gt;&lt;P&gt;    AND OBJEK = 'OR000000600000'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2006 15:46:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-relation/m-p/1482523#M225598</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-17T15:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: table relation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-relation/m-p/1482524#M225599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time and valuable advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I HAVE 2 QUESTIONS&lt;/P&gt;&lt;P&gt;QUESTION 1) WHAT DOES KLART 013 REFER TO.&lt;/P&gt;&lt;P&gt;QUESTION 2) MY REQUIREMENT IS TO  DISPLAY AUSP-ATWRT IN THE REPORT GENERATED BY KOK5.&lt;/P&gt;&lt;P&gt;The data from kok5 report is being taken from aufk table.&lt;/P&gt;&lt;P&gt;what i am trying to do is while creating interal order, i would read the ausp-atwrt field and insert it into aufk (user field )field and save it in aufk table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when executing kok5 for report ,it reads aufk table and displays in my report and i would just change the label for user field so that it would with new label.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question the objeck field whick is present in ausp table gets data during creation of internal order or when does the the table ausp gets data ,because if its get data during creation of internal order then its meaning less right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at t code  FM5S ,in which we give the fund and fm area as input and its gives the value of ausp-atwrt in classifcation tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2006 17:40:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-relation/m-p/1482524#M225599</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-17T17:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: table relation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-relation/m-p/1482525#M225600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;Any advice on this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2006 18:33:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-relation/m-p/1482525#M225600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-17T18:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: table relation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-relation/m-p/1482526#M225601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;KLART is the class type which can be found in table TCLA.  The description is "Roll up classes for orders."  This should be standard for what you are looking at.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, AUSP wouldn't be updated until after the order is created, so you may need to go with a custom report based on KOK5.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2006 19:53:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-relation/m-p/1482526#M225601</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-17T19:53:52Z</dc:date>
    </item>
  </channel>
</rss>

