<?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 SCRIPT ADDRESS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1609689#M273502</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;I need to get address from T001E based on company code.I think I have to write perform statement.I need to get adddress number .How can I write perform statement.&lt;/P&gt;&lt;P&gt;Please explain me clearly.I am new to sap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;nithin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Sep 2006 16:24:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-11T16:24:21Z</dc:date>
    <item>
      <title>SCRIPT ADDRESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1609689#M273502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;I need to get address from T001E based on company code.I think I have to write perform statement.I need to get adddress number .How can I write perform statement.&lt;/P&gt;&lt;P&gt;Please explain me clearly.I am new to sap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;nithin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2006 16:24:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1609689#M273502</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-11T16:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: SCRIPT ADDRESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1609690#M273503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the following syntax&lt;/P&gt;&lt;P&gt;/:   PERFORM ZCCADDRESS IN PROGRAM Zxxxxx    &lt;/P&gt;&lt;P&gt;/:   USING &amp;amp;VARIABLE1&amp;amp;                           &lt;/P&gt;&lt;P&gt;/:   CHANGING &amp;amp;VARIABLE2&amp;amp;                      &lt;/P&gt;&lt;P&gt;/:   ENDPERFORM                                &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then create a Z program Zxxxxx  and do your coidng as follows. Below given is a sampel code . Change the syntax as per your requiremnt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form ZCCADDRESS tables input_table structure itcsy&lt;/P&gt;&lt;P&gt;                   output_table structure itcsy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: zztermin(4) type c,&lt;/P&gt;&lt;P&gt;        zzterm like bseg-zterm,&lt;/P&gt;&lt;P&gt;        zvtext like tvzbt-vtext.&lt;/P&gt;&lt;P&gt;  read table input_table index 1.&lt;/P&gt;&lt;P&gt;  zztermin = input_table-value.&lt;/P&gt;&lt;P&gt;  zzterm = zztermin.&lt;/P&gt;&lt;P&gt;  select single vtext into zvtext from tvzbt where zterm = zzterm&lt;/P&gt;&lt;P&gt;                                               and spras = sy-langu.&lt;/P&gt;&lt;P&gt;  read table output_table index 1.&lt;/P&gt;&lt;P&gt;  output_table-value = zvtext.&lt;/P&gt;&lt;P&gt;  modify output_table index 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2006 16:29:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1609690#M273503</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-11T16:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: SCRIPT ADDRESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1609691#M273504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get the address number of the company code and call function Module ADDR_GET. By passing the address number to this Function module you can get the address data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For displaying this data into SAP SCRIPT without doing any changes to print program you can write subroutine to be called from SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2006 16:30:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1609691#M273504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-11T16:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: SCRIPT ADDRESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1609692#M273505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/:PERFORM get_date IN PROGRAM zreport &lt;/P&gt;&lt;P&gt;/:USING &amp;amp;SALESORDER&amp;amp;&lt;/P&gt;&lt;P&gt;/:CHANGING &amp;amp;S_DATE&amp;amp;&lt;/P&gt;&lt;P&gt;/:ENDPERFORM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you are passing salesorder value and getting the date by calling the subroutine get_date in the program zreport. Similary you can write the code that you want to (select teh address) in the form in the report and call this subroutine from the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out the link.&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2309037"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Richa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2006 16:35:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1609692#M273505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-11T16:35: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/1609693#M273506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;/:		ADDRESS PARAGRAPH I2&lt;/P&gt;&lt;P&gt;/:		NAME &amp;amp;X_SHIPTO-NAME1&amp;amp;&lt;/P&gt;&lt;P&gt;/:		STREET &amp;amp;X_SHIPTO-STREET&amp;amp;&lt;/P&gt;&lt;P&gt;/:		POSTCODE &amp;amp;X_SHIPTO-POST_CODE1&amp;amp;&lt;/P&gt;&lt;P&gt;/:		CITY &amp;amp;X_SHIPTO-CITY1&amp;amp;&lt;/P&gt;&lt;P&gt;/:		REGION &amp;amp;X_SHIPTO-REGION&amp;amp;&lt;/P&gt;&lt;P&gt;/:		COUNTRY &amp;amp;X_SHIPTO-COUNTRY&amp;amp;&lt;/P&gt;&lt;P&gt;/:		LANGUAGE &amp;amp;X_SHIPTO-LANGU&amp;amp;&lt;/P&gt;&lt;P&gt;/:      	FROMCOUNTRY &amp;amp;VBDKA-SLAND&amp;amp;&lt;/P&gt;&lt;P&gt;/:		ENDADDRESS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the ADDRESS control command in script. to get the values you have to do like below. if you use this CONTROL command, then the output address format will be based on the country.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have company code value in the script layout,and you need to findout the address for that, then you have to write a FORM routine in a Zprogram &amp;amp; the same you have to call from the layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all the paramters you pass from SCRIPT with USING command will come into ITAB.&lt;/P&gt;&lt;P&gt;all parameters with CHANGING command will comes into OTAB&lt;/P&gt;&lt;P&gt;This form GET_ADRRESS will be in a Z program ZTEST&lt;/P&gt;&lt;P&gt;FORM  GET_ADRRESS TABLES ITAB   STRUCTURE ITCSY&lt;/P&gt;&lt;P&gt;                      OTAB   STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;data: v_ebeln type ekko-ebeln.&lt;/P&gt;&lt;P&gt; *--TO read the values from the ITAB you have to use this logic.&lt;/P&gt;&lt;P&gt;  READ TABLE ITAB WITH KEY NAME = 'EBELN'&lt;/P&gt;&lt;P&gt;         TRANSPORTING VALUE.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;    CONDENSE ITAB-VALUE.&lt;/P&gt;&lt;P&gt;    V_EBELN = ITAB-VALUE.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;*--to modify PACK value&lt;/P&gt;&lt;P&gt;*--write your logic to get the value into V_PACK_VALUE. &lt;/P&gt;&lt;P&gt;   OTAB-VALUE = V_pack_value.&lt;/P&gt;&lt;P&gt;   condense OTAB-VALUE&amp;gt;&lt;/P&gt;&lt;P&gt;   MODIFY OTAB  TRANSPORTING VALUE &lt;/P&gt;&lt;P&gt;             WHERE NAME = 'PACK'.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the SCRIPT layout,&lt;/P&gt;&lt;P&gt;/: PERROM GET_ADRRESS IN PROGRAM ZTEST&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;COMPANY_CODE&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;X_SHIPTO-NAME1&amp;amp;&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;X_SHIPTO-STREET&amp;amp;&lt;/P&gt;&lt;P&gt;/* Like this you have give all the fields here&lt;/P&gt;&lt;P&gt;/: ENDPERFORM&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;Srikanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Kidambi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2006 16:48:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1609693#M273506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-11T16:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: SCRIPT ADDRESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1609694#M273507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nitin,&lt;/P&gt;&lt;P&gt;lets say you have the Address no and Company code with you in the SAP SCRIPT. and say the fields names are like Address no is &amp;lt;b&amp;gt;ADDR_NO&amp;lt;/b&amp;gt; and the Company code is &amp;lt;b&amp;gt;BUKRS&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Use the following syntax&lt;/P&gt;&lt;P&gt;/: PERFORM ADDRESS IN PROGRAM ZGET_ADRESS &lt;/P&gt;&lt;P&gt;/: USING &amp;amp;ADDR_NO&amp;amp; &lt;/P&gt;&lt;P&gt;/: USING &amp;amp;BUKRS&amp;amp; &lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;STREET&amp;amp; &lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;CITY&amp;amp; &lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;PINCODE&amp;amp; &lt;/P&gt;&lt;P&gt;/: ENDPERFORM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then create a Z program ZGET_ADRESS and do your coding as follows. Below given is a sampel code for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form ADDRESS tables input_table structure itcsy&lt;/P&gt;&lt;P&gt;output_table structure itcsy.&lt;/P&gt;&lt;P&gt;data: ADDR_NO(10),&lt;/P&gt;&lt;P&gt;      BUKRK type BUKRS&lt;/P&gt;&lt;P&gt;      STREET(10) type c,&lt;/P&gt;&lt;P&gt;      CITY(10) type c,&lt;/P&gt;&lt;P&gt;      PINCODE(6).&lt;/P&gt;&lt;P&gt;read table input_table index 1.&lt;/P&gt;&lt;P&gt;ADDR_NO = input_table-value.&lt;/P&gt;&lt;P&gt;read table input_table index 2.&lt;/P&gt;&lt;P&gt;BUKRS = input_table-value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single STREET&lt;/P&gt;&lt;P&gt;              CITY&lt;/P&gt;&lt;P&gt;              PINCODE&lt;/P&gt;&lt;P&gt;              into (STREET,CITY,PINCODE) from T001E &lt;/P&gt;&lt;P&gt;             where ADDRESSNO = ADDR_NO and&lt;/P&gt;&lt;P&gt;                   BUKRS = BUKRS.&lt;/P&gt;&lt;P&gt;read table output_table index 1.&lt;/P&gt;&lt;P&gt;output_table-value = STREET.&lt;/P&gt;&lt;P&gt;modify output_table index 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table output_table index 2.&lt;/P&gt;&lt;P&gt;output_table-value = CITY.&lt;/P&gt;&lt;P&gt;modify output_table index 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table output_table index 3.&lt;/P&gt;&lt;P&gt;output_table-value = PINCODE.&lt;/P&gt;&lt;P&gt;modify output_table index 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then in your Script, you will get the values og Street, City and Pincode No's. write whcih fields you want in the Script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you understand &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2006 16:49:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1609694#M273507</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-11T16:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: SCRIPT ADDRESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1609695#M273508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to get address from t001e using bukrs.There are no fields like street ,city ,zcode in t001e table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2006 18:18:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1609695#M273508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-11T18:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: SCRIPT ADDRESS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1609696#M273509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Get T001E-ADRNR then take ADRNR to table ADRC to get the street, city, etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2006 18:33:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/script-address/m-p/1609696#M273509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-11T18:33:30Z</dc:date>
    </item>
  </channel>
</rss>

