<?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: Adding table t005x to program rlb_invoice in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-table-t005x-to-program-rlb-invoice/m-p/7688404#M1576684</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct.  However, you must declare the variable or work area in the global definitions area in order to use it in the rest of the smartform.  If you declare it in the initialization section or a code node, it's local and won't be usable outside of its area.  Your code won't compile though - you need to use a single variable for the DATFM field value or use * to select into your declared work area.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Feb 2011 14:01:35 GMT</pubDate>
    <dc:creator>brad_bohn</dc:creator>
    <dc:date>2011-02-03T14:01:35Z</dc:date>
    <item>
      <title>Adding table t005x to program rlb_invoice</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-table-t005x-to-program-rlb-invoice/m-p/7688401#M1576681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to get my invoice to format the date by country using table t005x. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already have the code to change the date around depending on the value of t005x-datfm within the smartform &lt;/P&gt;&lt;P&gt;and now I'm trying to get the data from the table. &lt;/P&gt;&lt;P&gt;First i went to NACE to find the program RLB_INVOICE now I've copied it to a Zprogram,  But I'm not sure what to do next. &lt;/P&gt;&lt;P&gt;I'm going to try added the line &lt;/P&gt;&lt;P&gt;DATA: wa_t005x TYPE t005x. &lt;/P&gt;&lt;P&gt;to the program then add that to the FORM INTERFACE in the smartform. &lt;/P&gt;&lt;P&gt;first is this correct or is there something else I need to do? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if this is correct how does the program know what to pull out of t005x to I need to assign some type &lt;/P&gt;&lt;P&gt;of value to t005x-land so that the table knows what data to retrieve?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm just starting to play with ABAP so please bear with me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2011 22:08:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-table-t005x-to-program-rlb-invoice/m-p/7688401#M1576681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-02T22:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Adding table t005x to program rlb_invoice</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-table-t005x-to-program-rlb-invoice/m-p/7688402#M1576682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't need to copy the driver program though.  You can perform that logic within the form processing in the global definitions-initialization area by getting the T005X record corresponding to the payer's country (the address is a component of the IS_BIL_INVOICE structure in the interface).  Get the value from T005X and assign it to a global variable (defined in the global data area), then you can perform the logic you require based on that value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2011 22:40:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-table-t005x-to-program-rlb-invoice/m-p/7688402#M1576682</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2011-02-02T22:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Adding table t005x to program rlb_invoice</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-table-t005x-to-program-rlb-invoice/m-p/7688403#M1576683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry I'm not an abaper so this might be a silly question.&lt;/P&gt;&lt;P&gt;I found this inside the smartform under one of the program line nodes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could I do something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa_t005t type t005t&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from t005t into wa_t005t where spras = sy-langu&lt;/P&gt;&lt;P&gt;                                          and  land1 = l_ship_adrc-COUNTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and change it up to this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa_t005x type t005x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single DATFM from t005x into wa_t005x where land = l_ship_adrc-COUNTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then maybe pass DATFM to the rest of my code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 00:00:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-table-t005x-to-program-rlb-invoice/m-p/7688403#M1576683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-03T00:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Adding table t005x to program rlb_invoice</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-table-t005x-to-program-rlb-invoice/m-p/7688404#M1576684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct.  However, you must declare the variable or work area in the global definitions area in order to use it in the rest of the smartform.  If you declare it in the initialization section or a code node, it's local and won't be usable outside of its area.  Your code won't compile though - you need to use a single variable for the DATFM field value or use * to select into your declared work area.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 14:01:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-table-t005x-to-program-rlb-invoice/m-p/7688404#M1576684</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2011-02-03T14:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Adding table t005x to program rlb_invoice</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-table-t005x-to-program-rlb-invoice/m-p/7688405#M1576685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok I think its working but my date came out crazy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my program node &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*this is to replace l_date1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: wa_t00tx type t005x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select single * from t005x into wa_t005x where land = l_ship_adrc-COUNTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ZTEMP(9), ZDD(2), ZMMM(3), ZYYYY(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR: ZTEMP, ZDD, ZMMM, ZYYYY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_IDATE_OUTPUT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;INPUT = IS_BIL_INVOICE-HD_GEN-BIL_DATE&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;OUTPUT = ZTEMP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZDD = ZTEMP+3(2).&lt;/P&gt;&lt;P&gt;ZMMM = ZTEMP+0(3).&lt;/P&gt;&lt;P&gt;ZYYYY = ZTEMP+5(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case wa_t005x-datfm.&lt;/P&gt;&lt;P&gt;*DD.MM.YYYY&lt;/P&gt;&lt;P&gt;when '1'.&lt;/P&gt;&lt;P&gt;Concatenate zdd  zmmm  zyyyy into zdate SEPARATED BY '.'.&lt;/P&gt;&lt;P&gt;*MM/DD/YYYY&lt;/P&gt;&lt;P&gt;when '2'.&lt;/P&gt;&lt;P&gt;Concatenate zmmm  zdd  zyyyy into zdate SEPARATED BY '/'.&lt;/P&gt;&lt;P&gt;*MM-DD-YYYY&lt;/P&gt;&lt;P&gt;when '3'.&lt;/P&gt;&lt;P&gt;Concatenate zmmm zdd  zyyyy into zdate SEPARATED BY '-'.&lt;/P&gt;&lt;P&gt;*YYYY.MM.DD&lt;/P&gt;&lt;P&gt;when '4'.&lt;/P&gt;&lt;P&gt;Concatenate zyyyy  zmmm  zdd into zdate SEPARATED BY '.'.&lt;/P&gt;&lt;P&gt;*YYYY/MM/DD&lt;/P&gt;&lt;P&gt;when '5'.&lt;/P&gt;&lt;P&gt;Concatenate zyyyy  zmmm  zdd into zdate SEPARATED BY '/'.&lt;/P&gt;&lt;P&gt;*YYYY-MM-DD&lt;/P&gt;&lt;P&gt;when '6'.&lt;/P&gt;&lt;P&gt;Concatenate zyyyy  zmmm  zdd  into zdate SEPARATED BY '-'.&lt;/P&gt;&lt;P&gt;*YYYY/MM/DD JAPAN IS CURRENTLY SET UP AS FORMAT 5&lt;/P&gt;&lt;P&gt;when '7'.&lt;/P&gt;&lt;P&gt;Concatenate zyyyy  zmmm  zdd into zdate SEPARATED BY '/'.&lt;/P&gt;&lt;P&gt;*YYYY/MM/DD JAPAN IS CURRENTLY SET UP AS FORMAT 5&lt;/P&gt;&lt;P&gt;when '8'.&lt;/P&gt;&lt;P&gt;Concatenate zyyyy  zmmm  zdd into zdate SEPARATED BY '/'.&lt;/P&gt;&lt;P&gt;*YYYY/MM/DD JAPAN IS CURRENTLY SET UP AS FORMAT 5&lt;/P&gt;&lt;P&gt;when '9'.&lt;/P&gt;&lt;P&gt;Concatenate zyyyy  zmmm  zdd into zdate SEPARATED BY '/'.&lt;/P&gt;&lt;P&gt;*DD.MM.YYYY ISLAMIC DATES ARE CURRENTELY SET UP AS FORMAT 1&lt;/P&gt;&lt;P&gt;when 'A'.&lt;/P&gt;&lt;P&gt;Concatenate zdd  zmmm  zyyyy into zdate SEPARATED BY '.'.&lt;/P&gt;&lt;P&gt;*DD.MM.YYYY ISLAMIC DATES ARE CURRENTELY SET UP AS FORMAT 1&lt;/P&gt;&lt;P&gt;when 'B'.&lt;/P&gt;&lt;P&gt;Concatenate zdd  zmmm  zyyyy into zdate SEPARATED BY '.'.&lt;/P&gt;&lt;P&gt;*DD.MM.YYYY IRAN IS CURRENTLY SET UP AS FORMAT 1&lt;/P&gt;&lt;P&gt;when 'C'.&lt;/P&gt;&lt;P&gt;Concatenate zdd  zmmm  zyyyy into zdate SEPARATED BY '.'.&lt;/P&gt;&lt;P&gt;when ' '.&lt;/P&gt;&lt;P&gt;Concatenate zmmm zdd zyyyy into zdate SEPARATED BY '/'.&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;this was my output&lt;/P&gt;&lt;P&gt;CT.130.2010 (I'm using a old invoice so the year is correct)&lt;/P&gt;&lt;P&gt;the country is spain which we have set to format 1 so the format came out correctly now i just need to know why these values where pased to my ZTEMP? did i use the wrong FM?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 15:40:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-table-t005x-to-program-rlb-invoice/m-p/7688405#M1576685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-03T15:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Adding table t005x to program rlb_invoice</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-table-t005x-to-program-rlb-invoice/m-p/7688406#M1576686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nevermind I fixed the date I took out the fm and just went with this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ZMMM = is_bil_invoice-hd_gen-bil_date+4(2).&lt;/P&gt;&lt;P&gt;ZDD = is_bil_invoice-hd_gen-bil_date+6(2).&lt;/P&gt;&lt;P&gt;ZYYYY = is_bil_invoice-hd_gen-bil_date+0(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the date came out correctly as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;13.10.2010&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 16:16:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-table-t005x-to-program-rlb-invoice/m-p/7688406#M1576686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-03T16:16:58Z</dc:date>
    </item>
  </channel>
</rss>

