<?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: smartforms help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332247#M169143</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please appreciate the time we have spent in helping you and mark all the helpful answers.&lt;/P&gt;&lt;P&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>Thu, 01 Jun 2006 07:38:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-01T07:38:57Z</dc:date>
    <item>
      <title>smartforms help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332222#M169118</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 am working with lb_bil_invoice,&lt;/P&gt;&lt;P&gt;I want to add the sales organization address into the form.  &lt;/P&gt;&lt;P&gt;vbdkr table is defined in the global interface.&lt;/P&gt;&lt;P&gt;I am using vbdkr table for the sales organisation address.&lt;/P&gt;&lt;P&gt;Please tell me how to read the data.&lt;/P&gt;&lt;P&gt;give me the select statement or read statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please give me how to debug the smartform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 04:12:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332222#M169118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T04:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332223#M169119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VBDKR is a strcuture, you will not get any data from there.&lt;/P&gt;&lt;P&gt;VBAK which holds the header data for the sales order, will have the Sales organization VKORG. Take that as the key and fetch the ADRNR (Address Number) from TVKO (Sales ORg Master Table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can introduce a PROGRAM LINES object and use this select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt; SELECT ADRNR INTO W_ADRNR FROM TVKO WHERE VKROG = VBKA-VKORG &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Crete a Addressobject in SMART Forms and pass this W_ADRNR variable you have fetched.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That will print the address of the sales org.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note :Please mark the helpful answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Ravikumar Allampallam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 04:15:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332223#M169119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T04:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332224#M169120</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;Get the ID address from TVKO table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM TVKO WHERE VKORG = VBDKR-VKORG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you can find the id from field ADRNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use a address node to print the address or use the fm ADDR_GET to get all information about 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>Thu, 01 Jun 2006 04:18:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332224#M169120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T04:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332225#M169121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me vbak has to declare in global interface or form interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 04:21:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332225#M169121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T04:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332226#M169122</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 don't need VBAK table, you can find the organization sales code in VBDKR structure: it's field VKORG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 04:23:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332226#M169122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T04:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332227#M169123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That depends on what data your are currently passing to the SMART Form. If you are passing just the order number, then you can do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare a variable W_VKORG &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE VKORG INTO W_VKORG FROM VBAK &lt;/P&gt;&lt;P&gt;WHERE VBELN = ORDER_NO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOw use the W_VKORG to get the ADRNR as specified above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note :Please mark the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 04:25:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332227#M169123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T04:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332228#M169124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The smartform lb_bil_invoice is std smartform for bill document so all header data are in VBRK table and not in VBAK table (that's for sale order).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway all header data are just in VBDKR structure so it doesn't need to read the VBRK, it's useless.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So all you need is only to declare a variable to store the address id, for example W_ADRNR as Ravi just said.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 04:29:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332228#M169124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T04:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332229#M169125</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;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying the select statement but it is giving syntax error. tvko table is unknown. since it is not declared in the form.  please give me the detial information what to delcare in the delcaration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to Smartforms.  This is my first smart form.  please give the response since I have to complete this form today. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 04:39:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332229#M169125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T04:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332230#M169126</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 have to declare all new global data you need in the global data tab (just under interface section).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here insert a new variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TVKO TYPE TVKO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in INITIALIZATION tab you can read it, but you remember to put it in INPUT/OUTPUT parameter of that tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to Global definition-&amp;gt;Global data tab and insert a new entry like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TVKO TYPE TVKO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to Global definition-&amp;gt;Inizialization tab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Insert VBDKR in input parameter&lt;/P&gt;&lt;P&gt;TVKO in output parameter and write the select statament:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM TVKO INTO TVKO WHERE VKORG = VBDKR-VKORG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 04:43:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332230#M169126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T04:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332231#M169127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain what exactly you are doing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like Max said you will have to specify the INPUT AND OUTPUT parameters for the program lines. In this case VKORG (Which ever strcuture it is coming from) is the input parameter and W_ADRNR will be the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside the code ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT ADRNR INTO W_ADRNR FROM TVKO WHERE VKORG = structure-VKORG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, please make sure that you mark each of the helpful answers that is helping complete your SMART Form.&lt;/P&gt;&lt;P&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>Thu, 01 Jun 2006 04:49:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332231#M169127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T04:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332232#M169128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me wa_adrnr has to declare as a char. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell how to delcare the wa_adrnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 05:32:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332232#M169128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T05:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332233#M169129</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;WA_ADRNR TYPE ADRNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 05:33:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332233#M169129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T05:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332234#M169130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This has to delcare in global interface&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 05:37:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332234#M169130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T05:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332235#M169131</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;Yes it has, because in this way it can used in all sections of smartform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It'd be better to fill it in INITIALIZATION tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 05:41:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332235#M169131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T05:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332236#M169132</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;&lt;/P&gt;&lt;P&gt;we are giving condition as vkorg = vbdkr-vkorg in the select statement from where are getting the vkorg value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the standard form doest contain this field&lt;/P&gt;&lt;P&gt;can u please tell me this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 05:45:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332236#M169132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T05:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332237#M169133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which form?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 05:47:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332237#M169133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T05:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332238#M169134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LB_BIL_INVOICE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 05:49:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332238#M169134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T05:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332239#M169135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You do have the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do this.&lt;/P&gt;&lt;P&gt;Declare a variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : WA_ORG TYPE LBBIL_HD_ORG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your program lines&lt;/P&gt;&lt;P&gt;WA_ORG = LBBIL_INVOICE-HD_ORG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, sales org is WA_ORG-SALESORG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact you don't even have to fetch the adrnr as the same is available here SALESORG_ADR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, all you have to do here is &lt;/P&gt;&lt;P&gt;W_ADRNR = WA_ORG-SALESORG_ADR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note :Please mark all the helpful answers in the thread&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 05:49:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332239#M169135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T05:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332240#M169136</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;All data of bill document are in the IS_BIL_INVOICE parameter of interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data of organization are in HD_ORG structure, so you find the sale org code in IS_BIL_INVOICE-HD_ORG-SALESORG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But just as Ravi said, here you can find the ID address too: SALESORG_ADR field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you don't need to use WA_ADRNR, but you can directly use the field IS_BIL_INVOICE-HD_ORG-SALESORG_ADR. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 05:53:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332240#M169136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T05:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: smartforms help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332241#M169137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I gave a separate variable because as such he is confused which parameters need to be used and with a nested structure he will be more confused.&lt;/P&gt;&lt;P&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>Thu, 01 Jun 2006 06:10:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-help/m-p/1332241#M169137</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-01T06:10:04Z</dc:date>
    </item>
  </channel>
</rss>

