<?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 Printing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/address-printing/m-p/4790994#M1122135</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;I have already done this before . the best way to do it is to have each and every field in SEPERATE text in your smartforms. and in the CONDITION tab give ITAB-NAME1 NE INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is not value in NAME1, there wont be any space shown up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikki.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Dec 2008 11:24:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-03T11:24:07Z</dc:date>
    <item>
      <title>Address Printing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/address-printing/m-p/4790989#M1122130</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;I'm printing address field in smartform header.&lt;/P&gt;&lt;P&gt;i'm using lfa1 table n fields like&lt;/P&gt;&lt;P&gt;name1, name2, nmae3, stras, ort01, ort02,pstlz,&lt;/P&gt;&lt;P&gt;land1, regio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if some field is blank means in output i shouldn't get the blank space.&lt;/P&gt;&lt;P&gt;how to handle this condtion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm coding in Smartform screen only..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Suprith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2008 11:11:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/address-printing/m-p/4790989#M1122130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-03T11:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Address Printing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/address-printing/m-p/4790990#M1122131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suprith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you would be using one TEXT to write all these fields. In this case, i dont think it is possible to avoid the blank lines if the value is not populated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try using the syntax: &amp;amp;field(C)&amp;amp;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(C) - This would help to condense any blank space available for that particular field.&lt;/P&gt;&lt;P&gt;Try this and see if it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2008 11:15:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/address-printing/m-p/4790990#M1122131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-03T11:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Address Printing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/address-printing/m-p/4790991#M1122132</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;For all the fields like name1 ,name2 have u defined the text seperately then in the condition tab put the condition that if lfa1-name1 is not initial.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the condition satisfies then only the value will display and if not then it wont give the blank space in the output also..and for every field use the condense option also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rohan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rohan on Dec 3, 2008 12:17 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2008 11:16:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/address-printing/m-p/4790991#M1122132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-03T11:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Address Printing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/address-printing/m-p/4790992#M1122133</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;I have done something like this before. Plz have a look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA: L_V_ADRNR TYPE ADRNR,
      L_V_LEN   TYPE I.

CLEAR: L_V_ADRNR,
       V_STCEG,
       V_VAT,
       V_NAME,
       V_CITY,
       V_CODE,
       V_STREET.

CONSTANTS:L_C_NATION TYPE AD_NATION VALUE 'I'.


*Get the details of the receiving company.
SELECT SINGLE ADRNR
              STCEG
FROM T001
INTO (L_V_ADRNR,V_STCEG)
WHERE BUKRS = IS_VPHEADER-BUKRS.

IF SY-SUBRC IS INITIAL.

  V_VAT = V_STCEG+2(18).

  SELECT NAME1
         CITY1
         POST_CODE1
         STREET
  UP TO 1 ROWS
  FROM ADRC
  INTO (V_NAME,V_CITY,V_CODE,V_STREET)
  WHERE ADDRNUMBER = L_V_ADRNR
  AND   NATION     = L_C_NATION.
  ENDSELECT.
ENDIF.

IF V_CITY   IS NOT INITIAL OR
   V_CODE   IS NOT INITIAL OR
   V_STREET IS NOT INITIAL.
  CONCATENATE V_CITY V_CODE V_STREET INTO V_ADDRESS SEPARATED BY ','.

  CONDENSE V_ADDRESS.

  DO 2 TIMES.
    IF V_ADDRESS+0(1) = ','.
      V_ADDRESS = V_ADDRESS+1.
    ENDIF.
  ENDDO.

ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please modify your code according to your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2008 11:17:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/address-printing/m-p/4790992#M1122133</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2008-12-03T11:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Address Printing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/address-printing/m-p/4790993#M1122134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI &lt;/P&gt;&lt;P&gt;I hope if u use address window insted of normail window u can solve ur problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2008 11:17:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/address-printing/m-p/4790993#M1122134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-03T11:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Address Printing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/address-printing/m-p/4790994#M1122135</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;I have already done this before . the best way to do it is to have each and every field in SEPERATE text in your smartforms. and in the CONDITION tab give ITAB-NAME1 NE INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is not value in NAME1, there wont be any space shown up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikki.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2008 11:24:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/address-printing/m-p/4790994#M1122135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-03T11:24:07Z</dc:date>
    </item>
  </channel>
</rss>

