<?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: standard text in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/standard-text/m-p/2377942#M527460</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Textelemet of the window, Insert-&amp;gt;Standard text-&amp;gt; give the text name and give enter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jun 2007 10:12:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-13T10:12:31Z</dc:date>
    <item>
      <title>standard text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/standard-text/m-p/2377940#M527458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi to all abap Gurus &lt;/P&gt;&lt;P&gt;what is standard text in script ?how to use it &amp;gt; where  do we use it ? we know that the use is reusability . how it is reusable . and it is used to support for multiple languages . pls tell in detail . pls dont give any link . points will bre rewarded defintilely for good answers . pls urgent.  pls give som esample coding on this .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 10:08:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/standard-text/m-p/2377940#M527458</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T10:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: standard text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/standard-text/m-p/2377941#M527459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Standrad text is a text which u can display in sapscript&lt;/P&gt;&lt;P&gt;u can create it thru SO10&lt;/P&gt;&lt;P&gt;In Sapscript include the standard text in the textelement.&lt;/P&gt;&lt;P&gt;Its reusable.coz u are creating once and an use in many sapscripts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 10:09:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/standard-text/m-p/2377941#M527459</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T10:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: standard text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/standard-text/m-p/2377942#M527460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Textelemet of the window, Insert-&amp;gt;Standard text-&amp;gt; give the text name and give enter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 10:12:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/standard-text/m-p/2377942#M527460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T10:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: standard text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/standard-text/m-p/2377943#M527461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Standard Text is nothing but Global Text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose you have to display footer/header info. whenever you create a s cript for ur org.your caompany details,logo etx. instead of writing them everytime, if you careta a global text u can include them wherevr u want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mainly we are using standard texts to avoid hardcoding in scripts or smartforms.&lt;/P&gt;&lt;P&gt;If you need to include the name of your company and address in the form you&lt;/P&gt;&lt;P&gt;just include a standard text in your form by include statement(script) and by&lt;/P&gt;&lt;P&gt;include text dropdown in forms. If in later part of time your company address&lt;/P&gt;&lt;P&gt;change you need to change the standard text not to touch the form. This is the&lt;/P&gt;&lt;P&gt;way standard text helps us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in Tcode SO10, u create a text and give a name activate it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the sample code to send script through E mail..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  ZRICHA_OTF_PDF&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;*&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;report  zricha_otf_pdf&lt;/P&gt;&lt;P&gt;    message-id zz.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; CONSTANTS                                                           *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;constants : c_x(1)      type c value 'X',      " For constant value&lt;/P&gt;&lt;P&gt;            c_otf(3)    type c value 'OTF',    " For format&lt;/P&gt;&lt;P&gt;            c_u(1)      type c value 'U'.      " Mail Option&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; VARIABLES                                                           *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data : v_rqident  type tsp01-rqident,  " For Spool Number&lt;/P&gt;&lt;P&gt;       v_rqclient type tsp01-rqclient, " For Client&lt;/P&gt;&lt;P&gt;       v_rqo1name type tsp01-rqo1name, " For Object name&lt;/P&gt;&lt;P&gt;       v_spool    type tsp01-rqident,  " For Spool Number&lt;/P&gt;&lt;P&gt;       v_spool1   type tsp01-rqident.  " For Spool Number&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; FLAGS                                                               *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data : f_spool type c.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INTERNAL TABLES                                                    *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal table for sending mails&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: it_pdf          like tline      occurs 10 with header line,&lt;/P&gt;&lt;P&gt;      it_xi_pdf       like tline      occurs 0  with header line,&lt;/P&gt;&lt;P&gt;      it_html         like solisti1   occurs 0  with header line,&lt;/P&gt;&lt;P&gt;      it_xi_temp      like bapiqcmime occurs 0  with header line,&lt;/P&gt;&lt;P&gt;      it_xi_mime(255) type c          occurs 0  with header line.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For sending mail&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: it_objpack like sopcklsti1 occurs 2 with header line.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal table for Single List with Column Length 255&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data : it_objbin like solisti1 occurs 10 with header line.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal table for Single List with Column Length 255&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data : it_objtxt like solisti1 occurs 10 with header line.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal table for Structure of the API Recipient List&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data : it_reclist like somlreci1 occurs 5 with header line.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Structure of the API Recipient List&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: x_doc_chng like sodocchgi1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal table for storing the variants&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data : begin of it_variant1 occurs 0,&lt;/P&gt;&lt;P&gt;        variant like varid-variant,&lt;/P&gt;&lt;P&gt;       end   of it_variant1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal table to store variants for the programs&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: it_variant2 like it_variant1 occurs 0 with header line.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal table for storing the selected values&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data it_return type ddshretval occurs 0 with header line.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal table for storing the mail-ids&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data : begin of it_mailid occurs 0,&lt;/P&gt;&lt;P&gt;        kokrs like csks-kokrs,&lt;/P&gt;&lt;P&gt;        kostl like csks-kostl,&lt;/P&gt;&lt;P&gt;        datbi like csks-datbi,&lt;/P&gt;&lt;P&gt;        telx1 like csks-telx1,&lt;/P&gt;&lt;P&gt;       end   of it_mailid.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal table for storing the mail-ids&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data : it_mailid1 like it_mailid occurs 0 with header line.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SELECTION SCREEN                                                   *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : v_char type char50.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame title text-001.&lt;/P&gt;&lt;P&gt;select-options: s_email for v_char  no intervals&lt;/P&gt;&lt;P&gt;                lower case&lt;/P&gt;&lt;P&gt;                no-display.&lt;/P&gt;&lt;P&gt;select-options: s_email1 for v_char  no intervals&lt;/P&gt;&lt;P&gt;                lower case&lt;/P&gt;&lt;P&gt;                no-display.&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;selection-screen begin of block a1 with frame title text-028.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;selection-screen begin of line.&lt;/P&gt;&lt;P&gt;parameters : p_c1 as checkbox.&lt;/P&gt;&lt;P&gt;selection-screen comment 3(66) text-026 for field p_c1.&lt;/P&gt;&lt;P&gt;selection-screen end of line.&lt;/P&gt;&lt;P&gt;parameters : p_set like tsp1d-papart matchcode object zh_tsp1d.&lt;/P&gt;&lt;P&gt;selection-screen skip 1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;parameters : p_vara1 type rs38m-selset.&lt;/P&gt;&lt;P&gt;selection-screen end of block a1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;selection-screen begin of block a2 with frame title text-029.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;selection-screen begin of line.&lt;/P&gt;&lt;P&gt;parameters : p_c2 as checkbox.&lt;/P&gt;&lt;P&gt;selection-screen comment 3(56) text-027 for field p_c1.&lt;/P&gt;&lt;P&gt;selection-screen end of line.&lt;/P&gt;&lt;P&gt;parameters : p_set1 like tsp1d-papart matchcode object zh_tsp1d.&lt;/P&gt;&lt;P&gt;selection-screen skip 1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;parameters : p_vara2 type rs38m-selset.&lt;/P&gt;&lt;P&gt;selection-screen end of block a2.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;AT SELECTION SCREEN ON VALUE REQUEST&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for p_vara1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For fetching the variants available for the program&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  perform fetch_variants.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;at selection-screen on value-request for p_vara2.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For fetching the variants available for the program&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  perform fetch_variants1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;AT SELECTION SCREEN&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For Validation&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  perform validation.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; START OF SELECTION                                                  *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To get the output data and mail&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  perform fetch_data.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; END OF SELECTION                                                    *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end-of-selection.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  if f_spool = c_x.&lt;/P&gt;&lt;P&gt;    message e000 with 'Spool Not Generated'(060).&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  fetch_data&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      To get the output data and mail&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form fetch_data .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To send the output to spool&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  perform generate_spool.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endform.                    " fetch_data&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  generate_spool&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      To send the output to spool&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form generate_spool .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  data: l_params like pri_params,&lt;/P&gt;&lt;P&gt;        l_days(1)  type n value 2,&lt;/P&gt;&lt;P&gt;        l_count(3) type n value 1,&lt;/P&gt;&lt;P&gt;        l_valid    type c,&lt;/P&gt;&lt;P&gt;        l_valid1   type c,&lt;/P&gt;&lt;P&gt;        l_params1  like pri_params.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  data: l_device type usr01-spld.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*Get the printer name for the user&lt;/P&gt;&lt;P&gt;  select single spld into l_device from usr01 where bname = sy-uname.&lt;/P&gt;&lt;P&gt;  if l_device is initial.&lt;/P&gt;&lt;P&gt;    l_device = 'LOCL'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For report-1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if p_c1 = 'X'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Setting the print parameters&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    call function 'GET_PRINT_PARAMETERS'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        destination    = l_device&lt;/P&gt;&lt;P&gt;        copies         = l_count&lt;/P&gt;&lt;P&gt;        list_name      = sy-uname&lt;/P&gt;&lt;P&gt;        list_text      = 'SUBMIT ... TO SAP-SPOOL'(008)&lt;/P&gt;&lt;P&gt;        release        = c_x&lt;/P&gt;&lt;P&gt;        new_list_id    = c_x&lt;/P&gt;&lt;P&gt;        expiration     = l_days&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       LINE_SIZE      = 255&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       LINE_COUNT     = 65&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        layout         = p_set&lt;/P&gt;&lt;P&gt;        sap_cover_page = space&lt;/P&gt;&lt;P&gt;        cover_page     = space&lt;/P&gt;&lt;P&gt;        receiver       = 'SAP*'(010)&lt;/P&gt;&lt;P&gt;        department     = 'System'(011)&lt;/P&gt;&lt;P&gt;        no_dialog      = c_x&lt;/P&gt;&lt;P&gt;      importing&lt;/P&gt;&lt;P&gt;        out_parameters = l_params&lt;/P&gt;&lt;P&gt;        valid          = l_valid.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    if l_valid &amp;lt;&amp;gt; space.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;      clear v_spool.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fetch the spool number b4 submit&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      perform fetch_recent_spool using v_spool.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Submitting the program to spool&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      submit rkaep000 to sap-spool&lt;/P&gt;&lt;P&gt;        using selection-set p_vara1&lt;/P&gt;&lt;P&gt;        spool parameters l_params&lt;/P&gt;&lt;P&gt;        without spool dynpro&lt;/P&gt;&lt;P&gt;        and return.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;      clear v_spool1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fetch the spool number after submit&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      perform fetch_recent_spool using v_spool1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;      if v_spool = v_spool1.&lt;/P&gt;&lt;P&gt;        f_spool = c_x.&lt;/P&gt;&lt;P&gt;        if p_c2 is initial.&lt;/P&gt;&lt;P&gt;          stop.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Checking the format ( ABAP/OTF)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        perform format_check tables s_email.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      message e000 with 'Problem in print settings'(003).&lt;/P&gt;&lt;P&gt;      stop.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For Report-2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if p_c2 = 'X'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Setting the print parameters&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    call function 'GET_PRINT_PARAMETERS'&lt;/P&gt;&lt;P&gt;      exporting&lt;/P&gt;&lt;P&gt;        destination    = l_device&lt;/P&gt;&lt;P&gt;        copies         = l_count&lt;/P&gt;&lt;P&gt;        list_name      = sy-uname&lt;/P&gt;&lt;P&gt;        list_text      = 'SUBMIT ... TO SAP-SPOOL'(008)&lt;/P&gt;&lt;P&gt;        release        = c_x&lt;/P&gt;&lt;P&gt;        new_list_id    = c_x&lt;/P&gt;&lt;P&gt;        expiration     = l_days&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       LINE_SIZE      = 200&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       LINE_COUNT     = 65&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        layout         = p_set1&lt;/P&gt;&lt;P&gt;        sap_cover_page = space&lt;/P&gt;&lt;P&gt;        cover_page     = space&lt;/P&gt;&lt;P&gt;        receiver       = 'SAP*'(010)&lt;/P&gt;&lt;P&gt;        department     = 'System'(011)&lt;/P&gt;&lt;P&gt;        no_dialog      = c_x&lt;/P&gt;&lt;P&gt;      importing&lt;/P&gt;&lt;P&gt;        out_parameters = l_params1&lt;/P&gt;&lt;P&gt;        valid          = l_valid1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    if l_valid1 &amp;lt;&amp;gt; space.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;      clear v_spool.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fetch the spool number b4 submit&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      perform fetch_recent_spool using v_spool.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Submitting the program to spool&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      submit gp3diehxy88snfj0391v7kf9ek7050 to sap-spool&lt;/P&gt;&lt;P&gt;        using selection-set p_vara2&lt;/P&gt;&lt;P&gt;        spool parameters l_params1&lt;/P&gt;&lt;P&gt;        without spool dynpro&lt;/P&gt;&lt;P&gt;        and return.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;      clear v_spool1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fetch the spool number after submit&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      perform fetch_recent_spool using v_spool1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;      if v_spool = v_spool1.&lt;/P&gt;&lt;P&gt;        message e000 with 'Spool Not Generated'(060).&lt;/P&gt;&lt;P&gt;        stop.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Checking the format ( ABAP/OTF)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      perform format_check tables s_email1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      message e000 with 'Problem in print settings'(003).&lt;/P&gt;&lt;P&gt;      stop.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endform.                    " generate_spool&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  fetch_recent_spool&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Fetch the recent spool number generated&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form fetch_recent_spool using p_v_spool type tsp01-rqident .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  data:  l_user like tsp01-rq2name.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  clear : v_rqident,&lt;/P&gt;&lt;P&gt;          v_rqclient,&lt;/P&gt;&lt;P&gt;          v_rqo1name.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  l_user = sy-uname.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get latest Spool No&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  select single rqident&lt;/P&gt;&lt;P&gt;                rqclient&lt;/P&gt;&lt;P&gt;                rqo1name&lt;/P&gt;&lt;P&gt;         into (v_rqident , v_rqclient , v_rqo1name)&lt;/P&gt;&lt;P&gt;    from tsp01&lt;/P&gt;&lt;P&gt;   where rqcretime =   ( select max( rqcretime )&lt;/P&gt;&lt;P&gt;                                from tsp01&lt;/P&gt;&lt;P&gt;                               where rq2name eq l_user&lt;/P&gt;&lt;P&gt;                                 and rqfinal eq '.' ).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  if sy-subrc = 0 .&lt;/P&gt;&lt;P&gt;    p_v_spool = v_rqident.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endform.                    " fetch_recent_spool&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  format_check&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Checking the format ( ABAP/OTF)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form format_check tables p_s_email structure s_email.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  data : l_objtype    like rststype-type.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  call function 'RSTS_GET_ATTRIBUTES'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      authority     = 'SP01'(019)&lt;/P&gt;&lt;P&gt;      client        = v_rqclient&lt;/P&gt;&lt;P&gt;      name          = v_rqo1name&lt;/P&gt;&lt;P&gt;      part          = 1&lt;/P&gt;&lt;P&gt;    importing&lt;/P&gt;&lt;P&gt;      objtype       = l_objtype&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      fb_error      = 1&lt;/P&gt;&lt;P&gt;      fb_rsts_other = 2&lt;/P&gt;&lt;P&gt;      no_object     = 3&lt;/P&gt;&lt;P&gt;      no_permission = 4.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  if l_objtype(3) = c_otf.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Convert OTF Spool to PDF&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    perform convert_otf2pdf tables p_s_email.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Convert ABAP Spool to PDF&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    perform convert_abap2pdf tables p_s_email.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endform.                    " format_check&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  convert_otf2pdf&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Convert OTF Spool to PDF&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form convert_otf2pdf tables p_p_s_email structure s_email .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  clear   it_pdf.&lt;/P&gt;&lt;P&gt;  refresh it_pdf.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  data : l_bytecount  type i.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fn. to get the PDF format&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call function 'CONVERT_OTFSPOOLJOB_2_PDF'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      src_spoolid              = v_rqident&lt;/P&gt;&lt;P&gt;      no_dialog                = 'X'&lt;/P&gt;&lt;P&gt;    importing&lt;/P&gt;&lt;P&gt;      pdf_bytecount            = l_bytecount&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      pdf                      = it_pdf&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      err_no_otf_spooljob      = 1&lt;/P&gt;&lt;P&gt;      err_no_spooljob          = 2&lt;/P&gt;&lt;P&gt;      err_no_permission        = 3&lt;/P&gt;&lt;P&gt;      err_conv_not_possible    = 4&lt;/P&gt;&lt;P&gt;      err_bad_dstdevice        = 5&lt;/P&gt;&lt;P&gt;      user_cancelled           = 6&lt;/P&gt;&lt;P&gt;      err_spoolerror           = 7&lt;/P&gt;&lt;P&gt;      err_temseerror           = 8&lt;/P&gt;&lt;P&gt;      err_btcjob_open_failed   = 9&lt;/P&gt;&lt;P&gt;      err_btcjob_submit_failed = 10&lt;/P&gt;&lt;P&gt;      err_btcjob_close_failed  = 11.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For page format&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    perform page_format tables p_p_s_email.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endform.                    " convert_otf2pdf&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  convert_abap2pdf&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       Convert ABAP Spool to PDF&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form convert_abap2pdf tables p_p_s_email structure s_email.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  clear   it_pdf.&lt;/P&gt;&lt;P&gt;  refresh it_pdf.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  data : l_bytecount  type i.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fn. to convert to PDF format&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call function 'CONVERT_ABAPSPOOLJOB_2_PDF'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      src_spoolid              = v_rqident&lt;/P&gt;&lt;P&gt;      no_dialog                = 'X'&lt;/P&gt;&lt;P&gt;    importing&lt;/P&gt;&lt;P&gt;      pdf_bytecount            = l_bytecount&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      pdf                      = it_pdf&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      err_no_abap_spooljob     = 1&lt;/P&gt;&lt;P&gt;      err_no_spooljob          = 2&lt;/P&gt;&lt;P&gt;      err_no_permission        = 3&lt;/P&gt;&lt;P&gt;      err_conv_not_possible    = 4&lt;/P&gt;&lt;P&gt;      err_bad_destdevice       = 5&lt;/P&gt;&lt;P&gt;      user_cancelled           = 6&lt;/P&gt;&lt;P&gt;      err_spoolerror           = 7&lt;/P&gt;&lt;P&gt;      err_temseerror           = 8&lt;/P&gt;&lt;P&gt;      err_btcjob_open_failed   = 9&lt;/P&gt;&lt;P&gt;      err_btcjob_submit_failed = 10&lt;/P&gt;&lt;P&gt;      err_btcjob_close_failed  = 11.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For page formatting&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    perform page_format tables p_p_s_email.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endform.                    " convert_abap2pdf&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  send_mail&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      For sending mail&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form send_mail tables mail structure s_email .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Structures and internal tables for the send data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  data: objpack like sopcklsti1 occurs 2  with header line,&lt;/P&gt;&lt;P&gt;        objhead like solisti1   occurs 1  with header line,&lt;/P&gt;&lt;P&gt;        objbin  like solisti1   occurs 0  with header line,&lt;/P&gt;&lt;P&gt;        objtxt  like solisti1   occurs 10 with header line,&lt;/P&gt;&lt;P&gt;        reclist like somlreci1  occurs 5  with header line.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  data: doc_chng like sodocchgi1,&lt;/P&gt;&lt;P&gt;        tab_lines like sy-tabix.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Data for the status output after sending&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  data: sent_to_all like sonv-flag.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  clear: it_reclist, it_reclist[],&lt;/P&gt;&lt;P&gt;         it_objtxt , it_objtxt[],&lt;/P&gt;&lt;P&gt;         it_objpack, it_objpack[],&lt;/P&gt;&lt;P&gt;         it_objbin , it_objbin[],x_doc_chng.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  loop at it_html.&lt;/P&gt;&lt;P&gt;    objbin-line = it_html-line.&lt;/P&gt;&lt;P&gt;    append objbin.&lt;/P&gt;&lt;P&gt;    clear objbin.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create the document which is to be sent&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  doc_chng-obj_name  = 'List'(012).&lt;/P&gt;&lt;P&gt;  doc_chng-obj_descr = 'Mail'(013).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Heading&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  objtxt-line = 'Mail with pdf attachment'(014).&lt;/P&gt;&lt;P&gt;  append objtxt.&lt;/P&gt;&lt;P&gt;  clear objtxt.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Size&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  describe table objtxt lines tab_lines.&lt;/P&gt;&lt;P&gt;  read table objtxt index tab_lines.&lt;/P&gt;&lt;P&gt;  doc_chng-doc_size = ( tab_lines - 1 ) * 255 + strlen( objtxt ).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill the fields of the packing_list for the main document:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  clear objpack-transf_bin.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The document needs no header (head_num = 0)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  objpack-head_start = 1.&lt;/P&gt;&lt;P&gt;  objpack-head_num = 0.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Body&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  objpack-body_start = 1.&lt;/P&gt;&lt;P&gt;  objpack-body_num = tab_lines.&lt;/P&gt;&lt;P&gt;  objpack-doc_type = 'RAW'(015).&lt;/P&gt;&lt;P&gt;  append objpack.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create the attachment (the list itself)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  describe table objbin lines tab_lines.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fill the fields of the packing_list for the attachment:&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  objpack-transf_bin = 'X'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Header&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  objpack-head_start = 1.&lt;/P&gt;&lt;P&gt;  objpack-head_num = 0.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Body&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  objpack-body_start = 1.&lt;/P&gt;&lt;P&gt;  objpack-body_num = tab_lines.&lt;/P&gt;&lt;P&gt;  objpack-doc_type = 'PDF'(016).&lt;/P&gt;&lt;P&gt;  objpack-obj_name = 'Attachment'(017).&lt;/P&gt;&lt;P&gt;  objpack-obj_descr = 'Mail with pdf Attachment'(018).&lt;/P&gt;&lt;P&gt;  objpack-doc_size = tab_lines * 255.&lt;/P&gt;&lt;P&gt;  append objpack.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*-Fill the mail recipient list&lt;/P&gt;&lt;P&gt;  loop at mail.&lt;/P&gt;&lt;P&gt;    reclist-receiver = mail-low.&lt;/P&gt;&lt;P&gt;    reclist-rec_type = c_u.&lt;/P&gt;&lt;P&gt;    append reclist.&lt;/P&gt;&lt;P&gt;    clear: reclist,&lt;/P&gt;&lt;P&gt;           mail.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*-Send the document by calling the SAPoffice API1 module for sending&lt;/P&gt;&lt;P&gt;*-documents with attachments&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      document_data              = doc_chng&lt;/P&gt;&lt;P&gt;      put_in_outbox              = c_x&lt;/P&gt;&lt;P&gt;      commit_work                = c_x&lt;/P&gt;&lt;P&gt;    importing&lt;/P&gt;&lt;P&gt;      sent_to_all                = sent_to_all&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      packing_list               = objpack&lt;/P&gt;&lt;P&gt;      object_header              = objhead&lt;/P&gt;&lt;P&gt;      contents_bin               = objbin&lt;/P&gt;&lt;P&gt;      contents_txt               = objtxt&lt;/P&gt;&lt;P&gt;      receivers                  = reclist&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      too_many_receivers         = 1&lt;/P&gt;&lt;P&gt;      document_not_sent          = 2&lt;/P&gt;&lt;P&gt;      operation_no_authorization = 4&lt;/P&gt;&lt;P&gt;      others                     = 99.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  case sy-subrc .&lt;/P&gt;&lt;P&gt;    when 0.&lt;/P&gt;&lt;P&gt;      message i000 with 'Mail has been sent successfully'(006).&lt;/P&gt;&lt;P&gt;    when others.&lt;/P&gt;&lt;P&gt;      message e000 with 'Problem in sending the mail'(023).&lt;/P&gt;&lt;P&gt;  endcase.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endform.                    " send_mail&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  page_format&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       For page foramtting&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form page_format tables email structure s_email .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  data : l_lines       type i,&lt;/P&gt;&lt;P&gt;         l_temp(500)   type c,&lt;/P&gt;&lt;P&gt;         l_offset      type p,&lt;/P&gt;&lt;P&gt;         l_lineslen(2) type p,&lt;/P&gt;&lt;P&gt;         l_mimelen(2)  type p,&lt;/P&gt;&lt;P&gt;         l_tabix       like sy-tabix.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  clear : it_xi_pdf,&lt;/P&gt;&lt;P&gt;          it_xi_temp.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  refresh : it_xi_pdf,&lt;/P&gt;&lt;P&gt;            it_xi_temp.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  it_xi_pdf[] = it_pdf[].&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Reformat the line to 255 characters wide (&lt;DEL&gt;code from SAP&lt;/DEL&gt;)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  clear: l_temp, l_offset, it_xi_temp.&lt;/P&gt;&lt;P&gt;  describe table it_xi_pdf   lines  l_lines.&lt;/P&gt;&lt;P&gt;  describe field it_xi_pdf   length l_lineslen in character mode.&lt;/P&gt;&lt;P&gt;  describe field it_xi_temp  length l_mimelen in character mode.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  loop at it_xi_pdf.&lt;/P&gt;&lt;P&gt;    l_tabix = sy-tabix.&lt;/P&gt;&lt;P&gt;    move it_xi_pdf to l_temp+l_offset.&lt;/P&gt;&lt;P&gt;    if l_tabix = l_lines.&lt;/P&gt;&lt;P&gt;      l_lineslen = strlen( it_xi_pdf ).&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    l_offset = l_offset + l_lineslen.&lt;/P&gt;&lt;P&gt;    if l_offset ge l_mimelen.&lt;/P&gt;&lt;P&gt;      clear it_xi_temp.&lt;/P&gt;&lt;P&gt;      it_xi_temp = l_temp(l_mimelen).&lt;/P&gt;&lt;P&gt;      append it_xi_temp.&lt;/P&gt;&lt;P&gt;      shift l_temp by l_mimelen places.&lt;/P&gt;&lt;P&gt;      l_offset = l_offset - l_mimelen.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    if l_tabix = l_lines.&lt;/P&gt;&lt;P&gt;      if l_offset gt 0.&lt;/P&gt;&lt;P&gt;        clear it_xi_temp.&lt;/P&gt;&lt;P&gt;        it_xi_temp = l_temp(l_offset).&lt;/P&gt;&lt;P&gt;        append it_xi_temp.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  clear : it_xi_mime,&lt;/P&gt;&lt;P&gt;          it_xi_mime[].&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  loop at it_xi_temp.&lt;/P&gt;&lt;P&gt;    it_xi_mime(255) = it_xi_temp-line.&lt;/P&gt;&lt;P&gt;    append it_xi_mime.&lt;/P&gt;&lt;P&gt;    clear  it_xi_mime.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Final Data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  clear : it_html,&lt;/P&gt;&lt;P&gt;          it_html[].&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  it_html[] = it_xi_mime[].&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For sending mail&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  perform send_mail tables email.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endform.                    " page_format&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  fetch_variants&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      For fetching the variants available for the program&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form fetch_variants .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  data : l_program like rs38m-programm value 'RKAEP000',&lt;/P&gt;&lt;P&gt;         l_vara1 type dfies-fieldname value 'P_VARA1'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  clear : it_variant1,&lt;/P&gt;&lt;P&gt;          it_variant1[].&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get variants&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  perform get_variants tables it_variant1&lt;/P&gt;&lt;P&gt;                       using l_program.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;F4 Help&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if not it_variant1[] is initial.&lt;/P&gt;&lt;P&gt;    perform get_f4_help tables it_variant1&lt;/P&gt;&lt;P&gt;                         using l_vara1&lt;/P&gt;&lt;P&gt;                        changing p_vara1.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    message e000 with 'No variants available for report1'(054).&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endform.                    " fetch_variants&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  validation&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      For Validation&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form validation .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  data : l_pro1 like rs38m-programm value 'RKAEP000',&lt;/P&gt;&lt;P&gt;         l_pro2 like rs38m-programm value 'GP3DIEHXY88SNFJ0391V7KF9EK7050',&lt;/P&gt;&lt;P&gt;         l_c1,&lt;/P&gt;&lt;P&gt;         l_c2.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If both check-box are unchecked&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if p_c1 is initial&lt;/P&gt;&lt;P&gt; and p_c2 is initial.&lt;/P&gt;&lt;P&gt;    message e000 with 'Check any one check-box'(049).&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If checked without varaint&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if not p_c1 is initial and p_vara1 is initial.&lt;/P&gt;&lt;P&gt;    message e000 with 'Please give any one of the variant for report1'(055).&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If checked without varaint&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if not p_c2 is initial and p_vara2 is initial.&lt;/P&gt;&lt;P&gt;    message e000 with 'Please give any one of the variant for report2'(061).&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Reading the variant and fetching the mail-ids&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if p_c1 = c_x.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    l_c1 = '1'.&lt;/P&gt;&lt;P&gt;    clear : s_email,&lt;/P&gt;&lt;P&gt;            s_email[].&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    perform read_variants tables it_mailid&lt;/P&gt;&lt;P&gt;                                 s_email&lt;/P&gt;&lt;P&gt;                           using p_vara1&lt;/P&gt;&lt;P&gt;                                 l_pro1&lt;/P&gt;&lt;P&gt;                                 l_c1.&lt;/P&gt;&lt;P&gt;    if s_email[] is initial.&lt;/P&gt;&lt;P&gt;      message e000 with 'No Id available for given Cost report1'(066).&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      sort s_email by low.&lt;/P&gt;&lt;P&gt;      delete adjacent duplicates from s_email comparing low.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Reading the variant and fetching the mail-ids&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if p_c2 = c_x.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    clear : s_email1,&lt;/P&gt;&lt;P&gt;            s_email1[].&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    l_c2 = '2'.&lt;/P&gt;&lt;P&gt;    perform read_variants tables it_mailid1&lt;/P&gt;&lt;P&gt;                                 s_email1&lt;/P&gt;&lt;P&gt;                           using p_vara2&lt;/P&gt;&lt;P&gt;                                 l_pro2&lt;/P&gt;&lt;P&gt;                                 l_c2.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    if s_email1[] is initial.&lt;/P&gt;&lt;P&gt;      message e000 with 'No Id available for given Cost report2'(067).&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      sort s_email1 by low.&lt;/P&gt;&lt;P&gt;      delete adjacent duplicates from s_email1 comparing low.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endform.                    " validation&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  GET_VARIANTS&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      Fetching Variants&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form get_variants  tables   p_it_variant structure it_variant1&lt;/P&gt;&lt;P&gt;                   using    p_v_program  type rs38m-programm.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  select variant&lt;/P&gt;&lt;P&gt;         from varid&lt;/P&gt;&lt;P&gt;         into table p_it_variant&lt;/P&gt;&lt;P&gt;         where report = p_v_program.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endform.                    " GET_VARIANTS&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  GET_F4_HELP&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form get_f4_help  tables   p_it_variant1 structure it_variant1&lt;/P&gt;&lt;P&gt;                   using   p_l_vara1 like dfies-fieldname&lt;/P&gt;&lt;P&gt;                  changing p_p_vara like p_vara1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Fn. for Pop-Up&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call function 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      retfield        = p_l_vara1&lt;/P&gt;&lt;P&gt;      value_org       = 'S'&lt;/P&gt;&lt;P&gt;      display         = ' '&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      value_tab       = p_it_variant1&lt;/P&gt;&lt;P&gt;      return_tab      = it_return&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      parameter_error = 1&lt;/P&gt;&lt;P&gt;      no_values_found = 2&lt;/P&gt;&lt;P&gt;      others          = 3.&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    p_p_vara = it_return-fieldval.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endform.                    " GET_F4_HELP&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  FETCH_VARIANTS1&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form fetch_variants1 .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  data : v_program1 like rs38m-programm value 'GP3DIEHXY88SNFJ0391V7KF9EK7050',&lt;/P&gt;&lt;P&gt;         l_vara2  type dfies-fieldname value 'P_VARA2'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  clear : it_variant2,&lt;/P&gt;&lt;P&gt;          it_variant2[].&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get Variants&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  perform get_variants tables it_variant2&lt;/P&gt;&lt;P&gt;                       using v_program1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;F4 Help&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if not it_variant2[] is initial.&lt;/P&gt;&lt;P&gt;    perform get_f4_help tables it_variant2&lt;/P&gt;&lt;P&gt;                        using  l_vara2&lt;/P&gt;&lt;P&gt;                      changing p_vara2.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    message e000 with 'No variants available for report2'(050).&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endform.                    " FETCH_VARIANTS1&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  read_variants&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       Reading the variant and fetching the mail-ids&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form read_variants tables p_it_mailid structure it_mailid&lt;/P&gt;&lt;P&gt;                          p_s_email   structure s_email&lt;/P&gt;&lt;P&gt;                   using  p_p_vara1   like p_vara1&lt;/P&gt;&lt;P&gt;                          p_l_pro1    like rs38m-programm&lt;/P&gt;&lt;P&gt;                          p_l_c1      type c.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  data : l_temp(44),&lt;/P&gt;&lt;P&gt;         it_valutab like rsparams occurs 0 with header line.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  ranges : r_cocen for csks-kostl.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Function Module to get the variant contents&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call function 'RS_VARIANT_CONTENTS'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      report               = p_l_pro1&lt;/P&gt;&lt;P&gt;      variant              = p_p_vara1&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      valutab              = it_valutab&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      variant_non_existent = 1&lt;/P&gt;&lt;P&gt;      variant_obsolete     = 2&lt;/P&gt;&lt;P&gt;      others               = 3.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  clear : r_cocen,&lt;/P&gt;&lt;P&gt;          r_cocen[].&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  loop at it_valutab where selname = 'KOSTL'&lt;/P&gt;&lt;P&gt;                        or selname = '_C-CCTR'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Getting the range of cost centers&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    if it_valutab-option = 'BT'.&lt;/P&gt;&lt;P&gt;      r_cocen-low    = it_valutab-low.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For Conversion Routine&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      perform conversion using r_cocen-low.&lt;/P&gt;&lt;P&gt;      r_cocen-high   = it_valutab-high.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For Conversion Routine&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      perform conversion using r_cocen-high.&lt;/P&gt;&lt;P&gt;      r_cocen-option = 'BT'.&lt;/P&gt;&lt;P&gt;      r_cocen-sign   = 'I'.&lt;/P&gt;&lt;P&gt;      append r_cocen.&lt;/P&gt;&lt;P&gt;      clear  r_cocen.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Getting the single cost centers&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    if it_valutab-option = 'EQ'.&lt;/P&gt;&lt;P&gt;      r_cocen-low    = it_valutab-low.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For Conversion Routine&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      perform conversion using r_cocen-low.&lt;/P&gt;&lt;P&gt;      r_cocen-option = 'EQ'.&lt;/P&gt;&lt;P&gt;      r_cocen-sign   = 'I'.&lt;/P&gt;&lt;P&gt;      append r_cocen.&lt;/P&gt;&lt;P&gt;      clear  r_cocen.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;If no cost centers&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if not r_cocen[] is initial.&lt;/P&gt;&lt;P&gt;    select kokrs&lt;/P&gt;&lt;P&gt;           kostl&lt;/P&gt;&lt;P&gt;           datbi&lt;/P&gt;&lt;P&gt;           telx1&lt;/P&gt;&lt;P&gt;      from csks&lt;/P&gt;&lt;P&gt;           into table p_it_mailid&lt;/P&gt;&lt;P&gt;     where kostl in r_cocen.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    if p_it_mailid[] is initial.&lt;/P&gt;&lt;P&gt;      if p_l_c1 = '1'.&lt;/P&gt;&lt;P&gt;        message e000 with 'No IDs available for report1'(059).&lt;/P&gt;&lt;P&gt;      elseif p_l_c1 = '2'.&lt;/P&gt;&lt;P&gt;        message e000 with 'No IDs available for report2'(062).&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Deleting the blank entries&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    delete p_it_mailid where telx1 = space.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    clear l_temp.&lt;/P&gt;&lt;P&gt;    read table p_it_mailid index 1.&lt;/P&gt;&lt;P&gt;    l_temp = p_it_mailid-telx1.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    data : l_check.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    loop at p_it_mailid where telx1 &amp;lt;&amp;gt; l_temp.&lt;/P&gt;&lt;P&gt;      l_check = c_x.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For checking the unique ids&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    if l_check = c_x.&lt;/P&gt;&lt;P&gt;      if p_l_c1 = '1'.&lt;/P&gt;&lt;P&gt;        message e000 with 'No unique mail-ids for  report1'(058).&lt;/P&gt;&lt;P&gt;      elseif p_l_c1 = '2'.&lt;/P&gt;&lt;P&gt;        message e000 with 'No unique mail-ids for  report2'(065).&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Populating the IDs for the cost centers&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    loop at p_it_mailid.&lt;/P&gt;&lt;P&gt;      set locale language sy-langu.&lt;/P&gt;&lt;P&gt;      translate p_it_mailid-telx1 to lower case.&lt;/P&gt;&lt;P&gt;      set locale language space .&lt;/P&gt;&lt;P&gt;      concatenate p_it_mailid-telx1 '@allergan.com' into l_temp.&lt;/P&gt;&lt;P&gt;      p_s_email-low = l_temp.&lt;/P&gt;&lt;P&gt;      p_s_email-sign = 'I'.&lt;/P&gt;&lt;P&gt;      p_s_email-option = 'EQ'.&lt;/P&gt;&lt;P&gt;      append p_s_email.&lt;/P&gt;&lt;P&gt;      clear  p_s_email.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    if p_l_c1 = '1'.&lt;/P&gt;&lt;P&gt;      message e000 with 'No Cost Center Available for report1'(057).&lt;/P&gt;&lt;P&gt;    elseif p_l_c1 = '2'.&lt;/P&gt;&lt;P&gt;      message e000 with 'No Cost Center Available for report2'(063).&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endform.                    " read_variants&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  CONVERSION&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      For Conversion Routine&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form conversion  using    p_it_valutab_low type c.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  call function 'CONVERSION_EXIT_ALPHA_INPUT'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      input  = p_it_valutab_low&lt;/P&gt;&lt;P&gt;    importing&lt;/P&gt;&lt;P&gt;      output = p_it_valutab_low.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endform.                    " CONVERSION&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chk this one to send script to pdf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plzz refer to this link..it will solve ur problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="650072"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="975814"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/62ae7fcd-0b01-0010-3e9d-a54f26944450" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/62ae7fcd-0b01-0010-3e9d-a54f26944450&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 10:13:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/standard-text/m-p/2377943#M527461</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2007-06-13T10:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: standard text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/standard-text/m-p/2377944#M527462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;We create Std texts in the Transaction SO10&lt;/P&gt;&lt;P&gt;Give some Text ID  and Language and create the text.&lt;/P&gt;&lt;P&gt;Yes you can create in different languages&lt;/P&gt;&lt;P&gt;And these texts are client specific and you have to transport to each client explicitely&lt;/P&gt;&lt;P&gt;Using the Program RSTXTRAN you can transport this texts to other clients&lt;/P&gt;&lt;P&gt;These texts are printed in SCript using the INCLUDE command&lt;/P&gt;&lt;P&gt;/: INCLUDE TEXT&amp;lt;id&amp;gt; OBJECT&amp;lt; name&amp;gt; LANGuage &amp;lt;EN&amp;gt; Paragraph &amp;lt;name&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points for useful Answers&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 10:13:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/standard-text/m-p/2377944#M527462</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T10:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: standard text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/standard-text/m-p/2377945#M527463</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;Standard texts are nothing but 'fix texts' e.g. PO terms &amp;amp; conditions which are fixed irrespective of the PO contents. They are maintained viz SO10. Advantage of standard texts is they can be directly 'included' in SAP scripts  without doing any coding. e..g if you want to print the terms &amp;amp; conditions on PO just define an element say FOOTER in the main window of your SAP script which will contain  only 2 statements viz: /: NEW-PAGE ( For strat printing on new page ) &amp;amp;&lt;/P&gt;&lt;P&gt;/:   INCLUDE ZPO_TERMS_AND_CONDITIONS OBJECT TEXT ID ST LANGUAGE EN&lt;/P&gt;&lt;P&gt;&amp;amp; use write_form to write the element in the footer. If there is any change/addition in PO terms &amp;amp; conditions just maintain them via SO10, no need to tuch the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raju Chitale&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 10:16:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/standard-text/m-p/2377945#M527463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T10:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: standard text</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/standard-text/m-p/2377946#M527464</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;Standard Text is created in SO10. Create the required text over here n include them in script. U can use them any where needed. Transport the text from one client to other if u want to use in other client&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priyanka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 10:19:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/standard-text/m-p/2377946#M527464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T10:19:16Z</dc:date>
    </item>
  </channel>
</rss>

