<?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 LOGIC TO remove wrong hard coding in SAP SCRIPT. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-to-remove-wrong-hard-coding-in-sap-script/m-p/4433412#M1052297</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my below script editor coding the "Payment Due Immediately" is hard coded. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/:   SET DATE MASK = "MM/DD/YYYY"                                                           &lt;/P&gt;&lt;P&gt;/*   -- Invoice Information                                                &lt;/P&gt;&lt;P&gt;/:   IF &amp;amp;BSEG-BSCHL&amp;amp; EQ '01'.                                              &lt;/P&gt;&lt;P&gt;DN   &amp;lt;B&amp;gt;DEBIT MEMO NO. &amp;amp;BKPF-BELNR&amp;amp; &amp;lt;/&amp;gt;                                    &lt;/P&gt;&lt;P&gt;SP                                                                         &lt;/P&gt;&lt;P&gt;IN   ISSUE DATE: &amp;amp;BKPF-BLDAT&amp;amp;                                              &lt;/P&gt;&lt;P&gt;/                                                                         &lt;/P&gt;&lt;P&gt;/                                                                          &lt;/P&gt;&lt;P&gt;/                                                                          &lt;/P&gt;&lt;P&gt;IN   &amp;lt;B&amp;gt;&lt;STRONG&gt;TERMS&lt;/STRONG&gt;:   &lt;STRONG&gt;Payment Due Immediately&lt;/STRONG&gt; &amp;lt;/&amp;gt;                                  &lt;/P&gt;&lt;P&gt;/:   ENDIF.   &lt;/P&gt;&lt;P&gt;                                                             &lt;/P&gt;&lt;P&gt; Now I need build logic to use T052u table or TVZBT to bring text (TEXT1 field) for zterm instead of hard coding which is wrong. &lt;/P&gt;&lt;P&gt;Please correct me if I am wrong  --&amp;gt; I need to write the logic in subroutine pool program to bring TEXT1 field from T052u or TVZBT table say PERFORM GET_TVZBT_TEXT1 IN PROGRAM Z_F_P_LAYOUT_TEXT USING ??? (here what to use).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What to write in SCRIPT editor&lt;/STRONG&gt; and &lt;/P&gt;&lt;P&gt;*WHAT TO WRITE IN PROGRAM Z_F_P_LAYOUT_TEXT .&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I can use in where condition while selecting  TEXT1 field from T052u or TVZBT table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&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>Sun, 07 Sep 2008 05:20:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-07T05:20:04Z</dc:date>
    <item>
      <title>LOGIC TO remove wrong hard coding in SAP SCRIPT.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-to-remove-wrong-hard-coding-in-sap-script/m-p/4433412#M1052297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my below script editor coding the "Payment Due Immediately" is hard coded. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/:   SET DATE MASK = "MM/DD/YYYY"                                                           &lt;/P&gt;&lt;P&gt;/*   -- Invoice Information                                                &lt;/P&gt;&lt;P&gt;/:   IF &amp;amp;BSEG-BSCHL&amp;amp; EQ '01'.                                              &lt;/P&gt;&lt;P&gt;DN   &amp;lt;B&amp;gt;DEBIT MEMO NO. &amp;amp;BKPF-BELNR&amp;amp; &amp;lt;/&amp;gt;                                    &lt;/P&gt;&lt;P&gt;SP                                                                         &lt;/P&gt;&lt;P&gt;IN   ISSUE DATE: &amp;amp;BKPF-BLDAT&amp;amp;                                              &lt;/P&gt;&lt;P&gt;/                                                                         &lt;/P&gt;&lt;P&gt;/                                                                          &lt;/P&gt;&lt;P&gt;/                                                                          &lt;/P&gt;&lt;P&gt;IN   &amp;lt;B&amp;gt;&lt;STRONG&gt;TERMS&lt;/STRONG&gt;:   &lt;STRONG&gt;Payment Due Immediately&lt;/STRONG&gt; &amp;lt;/&amp;gt;                                  &lt;/P&gt;&lt;P&gt;/:   ENDIF.   &lt;/P&gt;&lt;P&gt;                                                             &lt;/P&gt;&lt;P&gt; Now I need build logic to use T052u table or TVZBT to bring text (TEXT1 field) for zterm instead of hard coding which is wrong. &lt;/P&gt;&lt;P&gt;Please correct me if I am wrong  --&amp;gt; I need to write the logic in subroutine pool program to bring TEXT1 field from T052u or TVZBT table say PERFORM GET_TVZBT_TEXT1 IN PROGRAM Z_F_P_LAYOUT_TEXT USING ??? (here what to use).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What to write in SCRIPT editor&lt;/STRONG&gt; and &lt;/P&gt;&lt;P&gt;*WHAT TO WRITE IN PROGRAM Z_F_P_LAYOUT_TEXT .&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I can use in where condition while selecting  TEXT1 field from T052u or TVZBT table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&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>Sun, 07 Sep 2008 05:20:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-to-remove-wrong-hard-coding-in-sap-script/m-p/4433412#M1052297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-07T05:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: LOGIC TO remove wrong hard coding in SAP SCRIPT.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-to-remove-wrong-hard-coding-in-sap-script/m-p/4433413#M1052298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly to get the Text from the table T052U or TVZBT  you need to have field.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ZTERM ---&amp;gt;Terms of Payment Key&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;As you have BELNR field, you need to get teh ZTERM field from table BSEG ---&amp;gt; Accounting Document Segment. and then you need to fetch the text from the table T052U or TVZBT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;raam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Sep 2008 05:39:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-to-remove-wrong-hard-coding-in-sap-script/m-p/4433413#M1052298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-07T05:39:40Z</dc:date>
    </item>
  </channel>
</rss>

