<?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: ISU Print workbench in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/isu-print-workbench/m-p/1376909#M184677</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anshumita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer the code which I have already sent in the previous post. You can use the function module 'POPUP_GET_VALUES' to display your screen and this code you can write in the exit of your application form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass the selection field information to this function module. Say you want to display the Partner_No field on the selection screen then pass the information in this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Add Contact partner field&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CLEAR wa_scrfields.&lt;/P&gt;&lt;P&gt;  wa_scrfields-tabname = 'BUT000'.&lt;/P&gt;&lt;P&gt;  wa_scrfields-fieldname = 'Partner'.&lt;/P&gt;&lt;P&gt;  wa_scrfields-fieldtext = 'Partner_No'.&lt;/P&gt;&lt;P&gt;  APPEND wa_scrfields TO git_scrfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Repeat this for all the fields that you want to display and pass it to the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the user enters the values in the selection screen, the input values will be available in the same internal table that you pass to the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this internal table as you want. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points if it helps.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit Mishra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 May 2006 17:49:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-30T17:49:13Z</dc:date>
    <item>
      <title>ISU Print workbench</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/isu-print-workbench/m-p/1376905#M184673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone pls tell how to create a selection screen for providing inputs to a print workbench application form?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 13:07:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/isu-print-workbench/m-p/1376905#M184673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T13:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: ISU Print workbench</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/isu-print-workbench/m-p/1376906#M184674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think u can create a selection screen for print workbench. Print workbench are attached thro' SPRO, which are called automatically with appropriate data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 13:53:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/isu-print-workbench/m-p/1376906#M184674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T13:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: ISU Print workbench</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/isu-print-workbench/m-p/1376907#M184675</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;In the start or end exit of the application form write the following code to get the user input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM f1000_get_user_input.

  DATA: wa_scrfields TYPE sval.

  CONSTANTS : lc_but050(10) TYPE c VALUE 'BUT050',
              lc_but000(10) TYPE c VALUE 'BUT000',
              lc_dfkkcoh(7) TYPE c VALUE 'DFKKCOH',
              lc_servcont(10) TYPE c VALUE 'SOBJECTFVD',
              lc_service(20) TYPE c VALUE 'Service Contract No',
              lc_ztcorr_sign(15) TYPE c VALUE 'ZTCORR_SIGN',
              lc_ztcorr_code(15) TYPE c VALUE 'ZTCORR_CODE',
              lc_ztcrm_addrtyp(15) TYPE c VALUE 'ZTCRM_ADDRTYP',
              lc_5                        VALUE '5',
              lc_title_welcome(20) TYPE c VALUE 'WELCOME LETTER',
              lc_contact(20)  TYPE c VALUE 'Contact Partner',
              lc_department(20) TYPE c VALUE 'Department',
              lc_address_type(20) TYPE c VALUE 'Address Type',
              lc_partner2(10) TYPE c VALUE 'PARTNER2',
              lc_partner(10) TYPE c VALUE 'PARTNER',
              lc_signcode(10) TYPE c VALUE 'SIGNCODE',
              lc_addr_typ(10) TYPE c VALUE 'ADDR_TYP',
              lc_letrvar(10) TYPE c VALUE 'LETRVAR',
              lc_cm33 TYPE dfkkcoh-cotyp VALUE 'CM33'.

* Add Contact partner field
  CLEAR wa_scrfields.
  wa_scrfields-tabname = lc_but050.
  wa_scrfields-fieldname = lc_partner2.
  wa_scrfields-fieldtext = lc_contact.
  APPEND wa_scrfields TO git_scrfields.

* Add Service Contract field
  CLEAR wa_scrfields.
  wa_scrfields-tabname = lc_dfkkcoh.
  wa_scrfields-fieldname = lc_servcont.
  wa_scrfields-fieldtext = lc_service.
  APPEND wa_scrfields TO git_scrfields.

*Add Address Type field
  CLEAR wa_scrfields.
  wa_scrfields-tabname = lc_ztcrm_addrtyp.
  wa_scrfields-fieldname = lc_addr_typ.
  wa_scrfields-fieldtext = lc_address_type.
  APPEND wa_scrfields TO git_scrfields.

* Add Letter Variant field
  CLEAR wa_scrfields.
  wa_scrfields-tabname = lc_ztcorr_code.
  wa_scrfields-fieldname = lc_letrvar.
  APPEND wa_scrfields TO git_scrfields.

  CALL FUNCTION 'POPUP_GET_VALUES'
    EXPORTING
      popup_title     = lc_title_welcome
      start_column    = lc_5
      start_row       = lc_5
    TABLES
      fields          = git_scrfields
    EXCEPTIONS
      error_in_fields = 0
      OTHERS          = 0.
  IF sy-subrc NE 0.
    EXIT.
  ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points if it helps.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 13:59:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/isu-print-workbench/m-p/1376907#M184675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T13:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: ISU Print workbench</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/isu-print-workbench/m-p/1376908#M184676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;Thanks for ur response!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a selection screen containing 2 fields BP and Contract acc no. while executing Appln form. Where should I write the code for that?&lt;/P&gt;&lt;P&gt;Is it inside the exit, which I have created while creating the form class? But,I cannot define selection screen block inside an user-exit.&lt;/P&gt;&lt;P&gt;In that case, how should I proceed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moreover, I want to know, where should I put the conditions (logic) for data selection for my smartform ?Is it inside the smartform or in the PWB?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It'll be a great help if u can explain the process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lastly, could u pls provide me some material / documentation on Smartform preparation using PWB, as I 'm quite new to this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is urgent!&lt;/P&gt;&lt;P&gt;Awaiting help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 17:37:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/isu-print-workbench/m-p/1376908#M184676</guid>
      <dc:creator>anshumita_baksi</dc:creator>
      <dc:date>2006-05-30T17:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: ISU Print workbench</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/isu-print-workbench/m-p/1376909#M184677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anshumita,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer the code which I have already sent in the previous post. You can use the function module 'POPUP_GET_VALUES' to display your screen and this code you can write in the exit of your application form.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass the selection field information to this function module. Say you want to display the Partner_No field on the selection screen then pass the information in this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Add Contact partner field&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CLEAR wa_scrfields.&lt;/P&gt;&lt;P&gt;  wa_scrfields-tabname = 'BUT000'.&lt;/P&gt;&lt;P&gt;  wa_scrfields-fieldname = 'Partner'.&lt;/P&gt;&lt;P&gt;  wa_scrfields-fieldtext = 'Partner_No'.&lt;/P&gt;&lt;P&gt;  APPEND wa_scrfields TO git_scrfields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Repeat this for all the fields that you want to display and pass it to the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the user enters the values in the selection screen, the input values will be available in the same internal table that you pass to the FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this internal table as you want. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points if it helps.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit Mishra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 May 2006 17:49:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/isu-print-workbench/m-p/1376909#M184677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-30T17:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: ISU Print workbench</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/isu-print-workbench/m-p/1376910#M184678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;But ,What should I provide as an input in the value table which comes when I execute the application form?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for testing purpose I have put a message in the user exit, but while executing the application form (I dont know what to put in the value table 0, value table 1,value table 2 and so on)as I am not giving any input to the value tables it is giving error as:&lt;/P&gt;&lt;P&gt;"Program error during data procurement for printing!"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do u have any idea about the same error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2006 04:20:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/isu-print-workbench/m-p/1376910#M184678</guid>
      <dc:creator>anshumita_baksi</dc:creator>
      <dc:date>2006-05-31T04:20:55Z</dc:date>
    </item>
  </channel>
</rss>

