<?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: Sapscripts in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/2439574#M545928</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hitesh, your question is not specific enough. But maybe you can use dynamic subroutine calling from sapscript and get the value from database instead from structure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jul 2007 06:10:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-04T06:10:42Z</dc:date>
    <item>
      <title>Sapscripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/2439573#M545927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiii experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement to get the values from structure GOHEAD-BUYER but this structure is not there in Original print program . please suggest me something how to get the values or if u have any demo code for this please send&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx and Regards&lt;/P&gt;&lt;P&gt;Hitesh Batra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 05:33:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/2439573#M545927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-04T05:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/2439574#M545928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hitesh, your question is not specific enough. But maybe you can use dynamic subroutine calling from sapscript and get the value from database instead from structure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 06:10:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/2439574#M545928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-04T06:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sapscripts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/2439575#M545929</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 need to adapt the standard PRINT PROGRAM, for that one you work with FORM ROUTINES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for creating FORM ROUTINE follow this sample code...&lt;/P&gt;&lt;P&gt;1) goto SE38&lt;/P&gt;&lt;P&gt;2) provide name for PROGRAM&lt;/P&gt;&lt;P&gt;3) provide tables work area&lt;/P&gt;&lt;P&gt;    TABLES: GOHEAD-BUYER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) maintain SUBROUTINE&lt;/P&gt;&lt;P&gt;   FORM  &amp;lt;name&amp;gt; TABLES input   STRUCTURE ITCSY&lt;/P&gt;&lt;P&gt;                                         output STRUCTURE ITCSY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;here declare varibles if required&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;provide logic for getting the data &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;LOOP AT input.&lt;/P&gt;&lt;P&gt;    CASE input-name.&lt;/P&gt;&lt;P&gt;   WHEN '    ' " here condition based on your extracting data&lt;/P&gt;&lt;P&gt;    X = input-value.  " here store you required data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****based on input value extracting your required data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****logic for print output&lt;/P&gt;&lt;P&gt;    output-name = '    ' "field which you was extracting&lt;/P&gt;&lt;P&gt;    output-value  =            " specifes the field for holding the value&lt;/P&gt;&lt;P&gt;   APPEND output.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in print program you call this subroutine, for that one you use PERFORM and ENDPERFORM control command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/: PERFORM &amp;lt;name&amp;gt; IN PROGRAM &amp;lt;program-name&amp;gt; &lt;/P&gt;&lt;P&gt;****here pass the parameter on which you extracting the data from table&lt;/P&gt;&lt;P&gt;/: USING &amp;amp;parameter&amp;amp;   " based on this variable you extracting data&lt;/P&gt;&lt;P&gt;/: CHANGING &amp;amp;        &amp;amp;   " this value for print output&lt;/P&gt;&lt;P&gt;/: ENDPERFORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/ .................................. " here you print the extracted data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while working with FORM ROUTINES you must define formal parameters of type ITCSY structure. this structure has two fields NAME and VALUE.&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;regards,&lt;/P&gt;&lt;P&gt;Ashok Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 06:49:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sapscripts/m-p/2439575#M545929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-04T06:49:36Z</dc:date>
    </item>
  </channel>
</rss>

