<?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: Anyone know what this code is doing? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/anyone-know-what-this-code-is-doing/m-p/886283#M52551</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be you are right or may be I didn't amke myself clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think my program will be connected to the output type via transaction NACE. Then whenever the user saves a debit memo it will trigger the output type and this should then trigger my program to produce the BDC based on the billing document number in the debit memo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought this would be passed into nast-objkey and I thought I would write an entry routine that could be placed in NACE that access my program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AM I correct in thinking that this would work????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Feb 2005 15:58:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-02-03T15:58:28Z</dc:date>
    <item>
      <title>Anyone know what this code is doing?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/anyone-know-what-this-code-is-doing/m-p/886281#M52549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Howdy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't suppose ya know what this code could be doing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES:  nast,&lt;/P&gt;&lt;P&gt;        *nast.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * FROM  *nast&lt;/P&gt;&lt;P&gt;         WHERE  kappl       = nast-kappl&lt;/P&gt;&lt;P&gt;         AND    objky       = nast-objky&lt;/P&gt;&lt;P&gt;         AND    kschl       = nast-kschl&lt;/P&gt;&lt;P&gt;         AND    spras       = nast-spras&lt;/P&gt;&lt;P&gt;         AND    parnr       = nast-parnr&lt;/P&gt;&lt;P&gt;         AND    parvw       = nast-parvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF *nast-vstat = 1.&lt;/P&gt;&lt;P&gt;      processed = 'X'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CHECK processed NE 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its got me stumped! what on earth is *NAST?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are we simply looping through all the entries in NAST???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I came across this code because I am trying to write a program that gets triggered when the user saves a Debit note.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My program should then take the billing document number that was saved and use it to create a credit memo request, but finding the billing document number was a pain and someone told me that I had to use NAST or something...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ANyhow, I came a cross the following code but it doesn't make sense...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it should be&lt;/P&gt;&lt;P&gt;TABLES:  nast.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa_nast type NAST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT single * FROM  nast into wa_nast&lt;/P&gt;&lt;P&gt;         WHERE  kappl       = nast-kappl&lt;/P&gt;&lt;P&gt;         AND    objky       = nast-objky&lt;/P&gt;&lt;P&gt;         AND    kschl       = nast-kschl&lt;/P&gt;&lt;P&gt;         AND    spras       = nast-spras&lt;/P&gt;&lt;P&gt;         AND    parnr       = nast-parnr&lt;/P&gt;&lt;P&gt;         AND    parvw       = nast-parvw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF nast-vstat = 1.&lt;/P&gt;&lt;P&gt;      processed = 'X'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you all think?????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2005 15:40:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/anyone-know-what-this-code-is-doing/m-p/886281#M52549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-03T15:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone know what this code is doing?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/anyone-know-what-this-code-is-doing/m-p/886282#M52550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NAST is a table that is used for output(printing of documents).  You usually see this in print programs for SAPscripts.   I think someone has led you down the wrong path.&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, 03 Feb 2005 15:43:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/anyone-know-what-this-code-is-doing/m-p/886282#M52550</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-02-03T15:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone know what this code is doing?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/anyone-know-what-this-code-is-doing/m-p/886283#M52551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be you are right or may be I didn't amke myself clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think my program will be connected to the output type via transaction NACE. Then whenever the user saves a debit memo it will trigger the output type and this should then trigger my program to produce the BDC based on the billing document number in the debit memo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought this would be passed into nast-objkey and I thought I would write an entry routine that could be placed in NACE that access my program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AM I correct in thinking that this would work????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2005 15:58:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/anyone-know-what-this-code-is-doing/m-p/886283#M52551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-03T15:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone know what this code is doing?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/anyone-know-what-this-code-is-doing/m-p/886284#M52552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh...ok,  Yep, I think that that would work.  Was your question really more related to the code of the select statement in reqard to *nast.  If so,  the *Nast is really only a work area.  I believe that is was done a lot in R/2.  &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, 03 Feb 2005 16:34:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/anyone-know-what-this-code-is-doing/m-p/886284#M52552</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-02-03T16:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone know what this code is doing?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/anyone-know-what-this-code-is-doing/m-p/886285#M52553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes, I agree: your select single ... should bring same result as this select ... endselect code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But going one step further: isn't NAST read (completly and directly!) before calling this program part? Should be possible to test nast-vstat = 1 without additional select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: Got the feeling to translate word by word, sorry for this grammar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2005 17:49:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/anyone-know-what-this-code-is-doing/m-p/886285#M52553</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2005-02-03T17:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Anyone know what this code is doing?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/anyone-know-what-this-code-is-doing/m-p/886286#M52554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The ability to put an asterisk in front of the name is indeed a feature carried over from R/2.  It solves the problem of allowing you to create a second TABLEs work area based on a dictionary definition.  You could think of it as TABLES: *NAST type NAST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The memory for TABLES is handled differently than the memory for DATA so that is why you might want more than one work area in the TABLES space based on a common structure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2005 19:03:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/anyone-know-what-this-code-is-doing/m-p/886286#M52554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-02-03T19:03:49Z</dc:date>
    </item>
  </channel>
</rss>

