<?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: Displaying kunnr value problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-kunnr-value-problem/m-p/2009518#M409999</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;By Using Shift it's working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Mar 2007 14:53:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-20T14:53:56Z</dc:date>
    <item>
      <title>Displaying kunnr value problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-kunnr-value-problem/m-p/2009514#M409995</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; im displaying bill to party address in scripts using subroutine.my code is like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM GET_BILL_TO_PARTY_ADDRESS IN PROGRAM ZSP_SD_ORDCM.&lt;/P&gt;&lt;P&gt; USING &amp;amp;VBDKA-VBELN&amp;amp;&lt;/P&gt;&lt;P&gt; CHANGING &amp;amp;V_KUNNR1&amp;amp;&lt;/P&gt;&lt;P&gt; CHANGING &amp;amp;V_ANRED&amp;amp;&lt;/P&gt;&lt;P&gt; CHANGING &amp;amp;V_NAME1&amp;amp;&lt;/P&gt;&lt;P&gt; CHANGING &amp;amp;V_NAME2&amp;amp;&lt;/P&gt;&lt;P&gt; CHANGING &amp;amp;V_PFACH&amp;amp;&lt;/P&gt;&lt;P&gt; CHANGING &amp;amp;V_ORT01&amp;amp;&lt;/P&gt;&lt;P&gt; CHANGING &amp;amp;V_REGIO&amp;amp;&lt;/P&gt;&lt;P&gt; CHANGING &amp;amp;V_STRAS&amp;amp;&lt;/P&gt;&lt;P&gt; CHANGING &amp;amp;V_PSTLZ&amp;amp;&lt;/P&gt;&lt;P&gt;ENDPERFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Displaying the Bill to Party Address in Address Window&lt;/P&gt;&lt;P&gt;&amp;amp;V_KUNNR1(Z)&amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp;V_NAME1&amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp;V_NAME2&amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp;V_STRAS&amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp;V_ORT01&amp;amp; &amp;amp;V_REGIO&amp;amp; &amp;amp;V_PSTLZ&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In se38&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM get_ship_to_party_address TABLES it_input STRUCTURE itcsy it_output STRUCTURE itcsy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR : v_kunnr1,v_anred,v_name1,v_name2,v_pfach,v_ort01,v_regio,v_stras,v_pstlz,v_kunnr.&lt;/P&gt;&lt;P&gt;  REFRESH : it_input,it_output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  READ TABLE it_input INDEX 1.&lt;/P&gt;&lt;P&gt;  MOVE it_input-value TO v_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;read the Sales Document Partner table for Bill to Party Customer&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT SINGLE kunnr INTO v_kunnr FROM vbpa WHERE vbeln = v_vbeln AND parvw = 'WE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    SHIFT v_kunnr RIGHT DELETING TRAILING space.&lt;/P&gt;&lt;P&gt;    OVERLAY v_kunnr WITH '0000000000'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;get the Bill to Party Address Details from Customer Master table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT SINGLE kunnr anred name1 name2 pfach ort01 regio stras pstlz&lt;/P&gt;&lt;P&gt;           INTO (v_kunnr1,v_anred,v_name1,v_name2,v_pfach,v_ort01,v_regio,v_stras,v_pstlz)&lt;/P&gt;&lt;P&gt;           FROM kna1 WHERE kunnr = v_kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*It_output index1  will have the Document Number&lt;/P&gt;&lt;P&gt;    READ TABLE it_output INDEX 1.&lt;/P&gt;&lt;P&gt;    MOVE v_kunnr1 TO it_output-value.&lt;/P&gt;&lt;P&gt;    MODIFY it_output INDEX 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*It_output index2  will have the Title&lt;/P&gt;&lt;P&gt;    READ TABLE it_output INDEX 2.&lt;/P&gt;&lt;P&gt;    MOVE v_anred TO it_output-value.&lt;/P&gt;&lt;P&gt;    MODIFY it_output INDEX 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*It_output index3  will have First Name of the Customer&lt;/P&gt;&lt;P&gt;    READ TABLE it_output INDEX 3.&lt;/P&gt;&lt;P&gt;    MOVE v_name1 TO it_output-value.&lt;/P&gt;&lt;P&gt;    MODIFY it_output INDEX 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*It_output index4  will have Second Name of the Customer&lt;/P&gt;&lt;P&gt;    READ TABLE it_output INDEX 4.&lt;/P&gt;&lt;P&gt;    MOVE v_name2 TO it_output-value.&lt;/P&gt;&lt;P&gt;    MODIFY it_output INDEX 4.&lt;/P&gt;&lt;P&gt;*It_output index5  will have the Post Box Number&lt;/P&gt;&lt;P&gt;    READ TABLE it_output INDEX 5.&lt;/P&gt;&lt;P&gt;    MOVE v_pfach TO it_output-value.&lt;/P&gt;&lt;P&gt;    MODIFY it_output INDEX 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*It_output index6  will have the City&lt;/P&gt;&lt;P&gt;    READ TABLE it_output INDEX 6.&lt;/P&gt;&lt;P&gt;    MOVE v_ort01 TO it_output-value.&lt;/P&gt;&lt;P&gt;    MODIFY it_output INDEX 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*It_output index7  will have the Region&lt;/P&gt;&lt;P&gt;    READ TABLE it_output INDEX 7.&lt;/P&gt;&lt;P&gt;    MOVE v_regio TO it_output-value.&lt;/P&gt;&lt;P&gt;    MODIFY it_output INDEX 7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*It_output index8  will have the PO BOX PostalCode&lt;/P&gt;&lt;P&gt;    READ TABLE it_output INDEX 8.&lt;/P&gt;&lt;P&gt;    MOVE v_stras TO it_output-value.&lt;/P&gt;&lt;P&gt;    MODIFY it_output INDEX 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*It_output index9  will have the PO BOX PostalCode&lt;/P&gt;&lt;P&gt;    READ TABLE it_output INDEX 9.&lt;/P&gt;&lt;P&gt;    MOVE v_pstlz TO it_output-value.&lt;/P&gt;&lt;P&gt;    MODIFY it_output INDEX 9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here my problem is when im displaying kunnr value i.e:v_kunnr1 it's displying like 0000000002&lt;/P&gt;&lt;P&gt;but i want to display it as 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 06:04:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-kunnr-value-problem/m-p/2009514#M409995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T06:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying kunnr value problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-kunnr-value-problem/m-p/2009515#M409996</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;Try using the option &amp;amp;v_kunnr1(Z)&amp;amp;. it is used to omit leading zeros or use the FM&lt;/P&gt;&lt;P&gt;CONVERSION_EXIT_ALPHA_OUTPUT in the Perform to omit them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 06:09:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-kunnr-value-problem/m-p/2009515#M409996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T06:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying kunnr value problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-kunnr-value-problem/m-p/2009516#M409997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using SHIFT LEFT deleting leading zeros before passing KUNNR value to script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Reward if helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 06:09:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-kunnr-value-problem/m-p/2009516#M409997</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2007-03-16T06:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying kunnr value problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-kunnr-value-problem/m-p/2009517#M409998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello in ur code other than display kunnr value &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just check this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;read the Sales Document Partner table for Bill to Party Customer&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE kunnr INTO v_kunnr FROM vbpa WHERE vbeln = v_vbeln AND parvw = 'WE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cause 'WE ' is for ship to party &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here parvw = &amp;lt;b&amp;gt;'RE'&amp;lt;/b&amp;gt;   " for bill to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. comment this ..&lt;/P&gt;&lt;P&gt;*OVERLAY v_kunnr WITH '0000000000'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2007 06:23:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-kunnr-value-problem/m-p/2009517#M409998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-16T06:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying kunnr value problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-kunnr-value-problem/m-p/2009518#M409999</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;By Using Shift it's working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2007 14:53:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/displaying-kunnr-value-problem/m-p/2009518#M409999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-20T14:53:56Z</dc:date>
    </item>
  </channel>
</rss>

