<?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: address for differnt company code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/address-for-differnt-company-code/m-p/1912093#M379616</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;U need only the use the statament INCLUDE in your sapscript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if, for example, the variable with the name of standard text is TEXT_NAME:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: INCLUDE &amp;amp;TEXT_ NAME&amp;amp; OBJECT TEXT ID ST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way the system writes automatically the address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Feb 2007 10:49:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-06T10:49:25Z</dc:date>
    <item>
      <title>address for differnt company code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/address-for-differnt-company-code/m-p/1912087#M379610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi to all&lt;/P&gt;&lt;P&gt;plz help me in this issue&lt;/P&gt;&lt;P&gt;i need differnt address in script layout according to comapny codes&lt;/P&gt;&lt;P&gt;so i have maintained a field called address in ztable whre company code s also stored and i have created standard text for each comapny code and mained in &lt;/P&gt;&lt;P&gt;address field in ztable now how should i proceed in subrotuine so that in script layout the address should change according to comapny code( can i use read text in subrotuine and capture text).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnaks&amp;amp; regards&lt;/P&gt;&lt;P&gt;kiran reddy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        kiran reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 10:15:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/address-for-differnt-company-code/m-p/1912087#M379610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T10:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: address for differnt company code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/address-for-differnt-company-code/m-p/1912088#M379611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in subroutine you can code in such a way that you read print document's company code. &amp;amp; then select appropriate standard text.then read the text using read_text function in subroutine itself.Collect the data in address in various variables as name1,name2,city,country.etc.&amp;amp; then use these variable in script for printing.&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, 06 Feb 2007 10:19:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/address-for-differnt-company-code/m-p/1912088#M379611</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T10:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: address for differnt company code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/address-for-differnt-company-code/m-p/1912089#M379612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your print program.&lt;/P&gt;&lt;P&gt;Get the company code and the standard text id into the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;call function 'write_form'&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the script: text elements.&lt;/P&gt;&lt;P&gt;do this:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/d1/80318f454211d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/d1/80318f454211d189710000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 10:21:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/address-for-differnt-company-code/m-p/1912089#M379612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T10:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: address for differnt company code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/address-for-differnt-company-code/m-p/1912090#M379613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi rushali ,&lt;/P&gt;&lt;P&gt; i have captured company code and the standard text name in my subroutine  now iam not understand how to pass this to read text for example my standard text name is zdd_111 and company code is 111 i have captured this,ow to pass this into read_text and how to identify this in script layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;kiran reddy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        kiran reddy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        kiran reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 10:25:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/address-for-differnt-company-code/m-p/1912090#M379613</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T10:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: address for differnt company code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/address-for-differnt-company-code/m-p/1912091#M379614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran , &lt;/P&gt;&lt;P&gt;  Are you encountering problem calling the READ_TEXT FM , if that is the case use the parameters you used when you were creating the standrard text and see .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 10:37:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/address-for-differnt-company-code/m-p/1912091#M379614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T10:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: address for differnt company code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/address-for-differnt-company-code/m-p/1912092#M379615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nothing worry abou this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: case 'compnay_code'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if XXX&lt;/P&gt;&lt;P&gt;use the address tags for that address&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if YYY&lt;/P&gt;&lt;P&gt;use the address tags for YY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: endcase&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please try this, this will works&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;arjun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 10:43:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/address-for-differnt-company-code/m-p/1912092#M379615</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T10:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: address for differnt company code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/address-for-differnt-company-code/m-p/1912093#M379616</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;U need only the use the statament INCLUDE in your sapscript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if, for example, the variable with the name of standard text is TEXT_NAME:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: INCLUDE &amp;amp;TEXT_ NAME&amp;amp; OBJECT TEXT ID ST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way the system writes automatically the address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 10:49:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/address-for-differnt-company-code/m-p/1912093#M379616</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T10:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: address for differnt company code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/address-for-differnt-company-code/m-p/1912094#M379617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi max &lt;/P&gt;&lt;P&gt; i captured text in subroutine of the script as below&lt;/P&gt;&lt;P&gt;select single * from zsd&lt;/P&gt;&lt;P&gt;where bukrs eq p_bukrs&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'READ_TEXT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CLIENT                        = SY-MANDT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    ID                            = 'ST'&lt;/P&gt;&lt;P&gt;    LANGUAGE                      = 'EN'&lt;/P&gt;&lt;P&gt;    NAME                          = ZSD-ADDRESS&lt;/P&gt;&lt;P&gt;    OBJECT                        = 'TEXT'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_HANDLE                = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LOCAL_CAT                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADER                        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    LINES                         = L_TEXT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ID                            = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LANGUAGE                      = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NAME                          = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NOT_FOUND                     = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OBJECT                        = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  REFERENCE_CHECK               = 6&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WRONG_ACCESS_TO_ARCHIVE       = 7&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                        = 8&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;this standard text i need to pass to script layout notw it has captured in table as above l_text.&lt;/P&gt;&lt;P&gt;plz help me in this issue&lt;/P&gt;&lt;P&gt; how to pass this l_text to script assdress layout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        kiran reddy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        kiran reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 11:01:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/address-for-differnt-company-code/m-p/1912094#M379617</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T11:01:44Z</dc:date>
    </item>
  </channel>
</rss>

