<?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: function modules for printing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules-for-printing/m-p/2309458#M505598</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Camila,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just enter the FM name in transaction code SE37, click on display and then on 'function module documentation' and you'll find any information you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nicola&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 May 2007 08:00:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-15T08:00:36Z</dc:date>
    <item>
      <title>function modules for printing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules-for-printing/m-p/2309457#M505597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can anyone explain me the need of thses FMs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. GET_PRINT_PARAMETERS&lt;/P&gt;&lt;P&gt;2. G_SET_GET_ID_FROM_NAME&lt;/P&gt;&lt;P&gt;3.G_SET_SEARCH_FOR_INTERVAL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 14:41:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules-for-printing/m-p/2309457#M505597</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T14:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: function modules for printing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules-for-printing/m-p/2309458#M505598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Camila,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just enter the FM name in transaction code SE37, click on display and then on 'function module documentation' and you'll find any information you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nicola&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 08:00:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules-for-printing/m-p/2309458#M505598</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T08:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: function modules for printing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules-for-printing/m-p/2309459#M505599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi camila,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.GET_PRINT_PARAMETERS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read, determine, change spool print parameters and archive parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Functionality&lt;/P&gt;&lt;P&gt;The function module GET_PRINT_PARAMETERS is used to define, modify and display the print and archive parameters. Using this function module is the only correct way to modify a print or archive parameter record. The print parameters are closely related and contain a check total. This check total becomes invalid if any of the print parameters are changed and causes a runtime error when the print parameters are used later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The required parameters are defined in the structure IN_PARAMETERS or IN_ARCHIVE_PARAMETERS. These input parameters must originate from another call of GET_PRINT_PARAMETERS or must be initial. The resulting print and archive parameters are returned with the function parameters OUT_PARAMETERS or OUT_ARCHIVE_PARAMETERS. The remaining IMPORT parameters, such as DESTINATION, LIST_NAME etc., are used to define the values to be passed to OUT_PARAMETERS or OUT_ARCHIVE_PARAMETERS. The output parameter VALID has the value BLANK in an interactive call if the user canceled the print screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the function module with dialog (parameter NO_DIALOG = SPACE) or without dialog. If you use a dialog, a screen appears on which the user can change the print parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: The "Print from page to page" option on the screen is not suitable for printing from ABAP programs, and is therefore not part of the structure PRI_PARAMS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The module recognizes the following modes (values of parameter MODE):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'PARAM'  Normal case. Define the print parameters for the &lt;/P&gt;&lt;P&gt; current program. The values that are not defined &lt;/P&gt;&lt;P&gt; are specified from the user master record or are &lt;/P&gt;&lt;P&gt; assigned default values. The print parameter screen &lt;/P&gt;&lt;P&gt; displays the PRINT key. This mode is used &lt;/P&gt;&lt;P&gt; if the MODE parameter is not specified. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;'PARAMSEL' Like PARAMS, except that the print parameter screen &lt;/P&gt;&lt;P&gt; includes an option to activate the selection screen. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;'BATCH'  Define the print parameters for a background job. &lt;/P&gt;&lt;P&gt; In this mode, the name of the report to be started &lt;/P&gt;&lt;P&gt; is passed with the REPORT parameter.The REPORT &lt;/P&gt;&lt;P&gt; statement of the specified report is checked for &lt;/P&gt;&lt;P&gt; LINE-SIZE and LINE-COUNT definitions. These &lt;/P&gt;&lt;P&gt; definitions are passed as default specifications. &lt;/P&gt;&lt;P&gt; Furthermore, the SAVE key is offered &lt;/P&gt;&lt;P&gt; instead of the PRINT key in this mode. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;'CURRENT'  Define the current valid print parameters: &lt;/P&gt;&lt;P&gt; These parameters come from the following sources: &lt;/P&gt;&lt;P&gt; 1.) From the user-specific print parameters &lt;/P&gt;&lt;P&gt; 2.) From the LINECOUNT and LINESIZE additions in &lt;/P&gt;&lt;P&gt;     the REPORT statement &lt;/P&gt;&lt;P&gt; 3.) If the report is running in the background or &lt;/P&gt;&lt;P&gt;     with Execute and Print, from the print parameters &lt;/P&gt;&lt;P&gt;     passed from the report. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt; Otherwise it behaves as with PARAMSEL. In general, you should &lt;/P&gt;&lt;P&gt;                                                                     set import parameter NO_DIALOG in this modus, &lt;/P&gt;&lt;P&gt;                                                                   becausethis mode is only pointful, if it is run in the background. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;'DEFVALS'  Display for the default values. &lt;/P&gt;&lt;P&gt; Some of the default values are stored in the user defaults, &lt;/P&gt;&lt;P&gt; others can be maintained specifically for users and reports &lt;/P&gt;&lt;P&gt; using System -&amp;gt; List -&amp;gt; Print -&amp;gt; User-specific print &lt;/P&gt;&lt;P&gt; parameters. &lt;/P&gt;&lt;P&gt; The sytem returns the values for the current user and &lt;/P&gt;&lt;P&gt; report. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;'DISPLAY'  Displays the print parameters passed. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORTANT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In DEFVALS mode, the fields in out_parameters that are not contained in the user defaults are initial (type unknown). This means that the fields are not considered if out_parameters is passed again in a subsequent call of GET_PRINT_PARAMETERS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In all other modes, all fields of out_parameters are filled with values (possibly default values). This means that the fields are considered if out_parameters is passed in a subsequent call of GET_PRINT_PARAMETERS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should normally query the value of VALID. It has the possible values TRUE and FALSE. If it is FALSE, the user has either canceled the print dialog, or the function module has been called with parameters that cannot be used to print properly (for example, printing in the background on a frontend printer).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. G_SET_GET_ID_FROM_NAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this module to derive the internal set Id from the name that appears on the user interface, for example, in order then to import the set (see the function group documentation).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module first determines a candidate list of sets based on the set name and the class that might have been specified that could match the set name. The class can also be masked (e.g. 000+ for all FI-SL sets, including dynamic sets).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case 1: A CO group class has been specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the controlling area has been transferred, then a search is made for groups of the specified class in this controlling area that have the name specified. Otherwise a search is made for groups from all controlling areas. During the search for cost element and account groups the chart of accounts is taken into consideration. If this was not specified it is derived from the controlling area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case 2: A set class is specified but it is not a class from CO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A search is made for all sets belonging ot this class that have the specified name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case 3: No set clas is specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A search is made for all sets that match the name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sets are processed further as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a table field has been specified, a check is made whether the set table fields are compatible with the field specified. That means, a check is whether they have the same representative data element . If this is not the case for any of the sets, the exception TABLE_FIELDS_DONT_MATCH is triggered. If only the table and not the field name was specified, a search is only made for sets created for this table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case 1: G_SET_GET_ID_FROM_NAME found a set that matched exactly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The set ID is returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case 2: G_SET_GET_ID_FROM_NAME found more than one set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If OLD_SETID was transferred and this ID is in the list of sets found, it is returned. Otherwise the function module offers a dialog box to select a set. If the parameter SUPRESS_POPUP has been set to 'X', the exception NO_SET_PICKED_FROM_POPUP is triggered instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case 3: G_SET_GET_ID_FROM_NAME has not found a set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case an exception is triggered. For CO groups the function module also checks whether there is a CO group with the same name in a different controlling area or chart of accounts. If there is, the exception WRONG_SUBCLASS is triggered. Otherwise it checks whether there is a set with the given name in a different class. If there is, the exception WRONG_CLASS is triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the parameter CHECK_SET_EMPTY has been flagged, the set found is imported and checked whether it is empty or contains formulas. If required, information about the set is returned in the parameter SET_INFO (analog to the module G_SET_GET_INFO).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters&lt;/P&gt;&lt;P&gt;CLIENT&lt;/P&gt;&lt;P&gt;SHORTNAME&lt;/P&gt;&lt;P&gt;OLD_SETID&lt;/P&gt;&lt;P&gt;TABNAME&lt;/P&gt;&lt;P&gt;FIELDNAME&lt;/P&gt;&lt;P&gt;KOKRS&lt;/P&gt;&lt;P&gt;KTOPL&lt;/P&gt;&lt;P&gt;LIB&lt;/P&gt;&lt;P&gt;RNAME&lt;/P&gt;&lt;P&gt;SETCLASS&lt;/P&gt;&lt;P&gt;CHECK_SET_EMPTY&lt;/P&gt;&lt;P&gt;SUPRESS_POPUP&lt;/P&gt;&lt;P&gt;NO_DYNAMIC_SETS&lt;/P&gt;&lt;P&gt;NEW_SETID&lt;/P&gt;&lt;P&gt;SET_INFO&lt;/P&gt;&lt;P&gt;T_SETS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exceptions&lt;/P&gt;&lt;P&gt;NO_SET_FOUND&lt;/P&gt;&lt;P&gt;NO_SET_PICKED_FROM_POPUP&lt;/P&gt;&lt;P&gt;WRONG_CLASS&lt;/P&gt;&lt;P&gt;WRONG_SUBCLASS&lt;/P&gt;&lt;P&gt;TABLE_FIELD_NOT_FOUND&lt;/P&gt;&lt;P&gt;FIELDS_DONT_MATCH&lt;/P&gt;&lt;P&gt;SET_IS_EMPTY&lt;/P&gt;&lt;P&gt;FORMULA_IN_SET&lt;/P&gt;&lt;P&gt;SET_IS_DYNAMIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Group&lt;/P&gt;&lt;P&gt;GSAC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.G_SET_SEARCH_FOR_INTERVAL &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Short Text&lt;/P&gt;&lt;P&gt;Check Whether a Set Contains Values in Specified Value Interval&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Functionality&lt;/P&gt;&lt;P&gt;This function module checks whether a value interval (FROM, TO) overlaps with the value intervals in a specified set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If no overlapping is found, the function module triggers the exception "NO_VALUES_FOUND".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters&lt;/P&gt;&lt;P&gt;SET&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;TO&lt;/P&gt;&lt;P&gt;TABELLE&lt;/P&gt;&lt;P&gt;INCLUDE_SUBSETS&lt;/P&gt;&lt;P&gt;INTERNAL_VALUES&lt;/P&gt;&lt;P&gt;VALLIST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exceptions&lt;/P&gt;&lt;P&gt;VALUE_NOT_FOUND&lt;/P&gt;&lt;P&gt;SET_NOT_FOUND&lt;/P&gt;&lt;P&gt;CONVERSION_ERROR&lt;/P&gt;&lt;P&gt;WRONG_SETTYPE&lt;/P&gt;&lt;P&gt;WRONG_INTERVAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Group&lt;/P&gt;&lt;P&gt;GSOV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;suresh babu aluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2007 08:09:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-modules-for-printing/m-p/2309459#M505599</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-15T08:09:24Z</dc:date>
    </item>
  </channel>
</rss>

