<?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: Script address in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1544688#M247805</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Again, you need to use the specifiy signature(interface) as describe in the help document above, this is how you will pass your value back and forth.&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>Tue, 29 Aug 2006 18:28:06 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-08-29T18:28:06Z</dc:date>
    <item>
      <title>Script address</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1544680#M247797</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;I need to get domestic and international address fron t001e using company code.How can I write select statements in Scripts.I am using standard print program&lt;/P&gt;&lt;P&gt;YFKORD11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2006 17:01:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1544680#M247797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-29T17:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Script address</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1544681#M247798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can not write select statement directly in the script.  You can write then in the print program, or you can put them in PERFORMs and call the PERFORM from the script.&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>Tue, 29 Aug 2006 17:04:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1544681#M247798</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-29T17:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Script address</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1544682#M247799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;I am using standard print program .How can I call PERFORM from script  for standard program.&lt;/P&gt;&lt;P&gt;please guide me&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2006 17:08:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1544682#M247799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-29T17:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Script address</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1544683#M247800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey u can do one thing here&lt;/P&gt;&lt;P&gt;write an executable program, in that declare the logic in subroutines with form-endform then call this program or routine in scipt with perform statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put the perform statement in the window where u want to execute this select statement navigation&lt;/P&gt;&lt;P&gt;window-edit-elements-goto change mode&lt;/P&gt;&lt;P&gt;after endif write the perform statement&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2006 17:09:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1544683#M247800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-29T17:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Script address</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1544684#M247801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can write exe program.But my out put has been assigned to standard program.In that case how can I do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2006 17:11:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1544684#M247801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-29T17:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Script address</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1544685#M247802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right, all you need to do is create a "Z" program which will house all of your FORM(subroutines),  then you can simple call them from the sapscript.  You specify what program the FORM is in, when you call it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a specific interface for calling FORMs from sapscripts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/d1/803279454211d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/d1/803279454211d189710000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please remember to award points for any helpful answers.  Thanks.&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>Tue, 29 Aug 2006 17:12:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1544685#M247802</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-29T17:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Script address</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1544686#M247803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it does not matter with the print program&lt;/P&gt;&lt;P&gt;just write the logic in executable program seperatly&lt;/P&gt;&lt;P&gt;n then call this routine in script&lt;/P&gt;&lt;P&gt;is it ok for u&lt;/P&gt;&lt;P&gt;if u need any further info let me know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2006 17:18:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1544686#M247803</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-29T17:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Script address</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1544687#M247804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich and naveen,&lt;/P&gt;&lt;P&gt;Thanks for your reply.I am checking it now.Any how I am awarding points for ur help.&lt;/P&gt;&lt;P&gt;I write code in 'Z' as&lt;/P&gt;&lt;P&gt;REPORT  ZE_FI_F0031.&lt;/P&gt;&lt;P&gt;TABLES: T001E, ADRC,BKPF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM GET_ADDRESS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Select single * from t001e where bukrs = BKPF-BUKRS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;    select single * from adrc where addrnumber = t001e-adrid.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.    " FORM GET_ADDRESS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I can this perform.&lt;/P&gt;&lt;P&gt;suggest me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2006 18:24:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1544687#M247804</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-29T18:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Script address</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1544688#M247805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Again, you need to use the specifiy signature(interface) as describe in the help document above, this is how you will pass your value back and forth.&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>Tue, 29 Aug 2006 18:28:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1544688#M247805</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-29T18:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Script address</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1544689#M247806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something more along these lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

*---------------------------------------------------------------------*
*       FORM GET_ADDRESS                                              *
*---------------------------------------------------------------------*
*       ........                                                      *
*---------------------------------------------------------------------*
form get_address tables in_tab structure itcsy
                        out_tab structure itcsy..

  data: bukrs type bkpf-bukrs.

  read table in_tab with key name = 'BKPF-BUKRS'.
  if sy-subrc  = 0.
    bukrs = in_tab-value.
  endif.


  select single * from t001e
              where bukrs = bukrs.
  if sy-subrc eq 0.
    select single * from adrc
             where addrnumber = t001e-adrid.
    if sy-subrc  = 0.

* Get the record for CITY1 in the output and modify the value.
      read table out_tab with key name = 'CITY1'.
      if sy-subrc  = 0.
        out_tab-value = adrc-city1.
        modify out_tab index sy-tabix.
      endif.
    endif.
  endif.

endform. " FORM GET_ADDRESS

&lt;/CODE&gt;&lt;/PRE&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>Tue, 29 Aug 2006 18:33:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1544689#M247806</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-29T18:33:20Z</dc:date>
    </item>
  </channel>
</rss>

