<?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 s.forms in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/s-forms/m-p/4110755#M982852</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi everybody,&lt;/P&gt;&lt;P&gt;can anybody explain me how to retreive dat from database and put it into form(smartform).&lt;/P&gt;&lt;P&gt;i mean,&lt;/P&gt;&lt;P&gt;where exactly is place to  provide output tables,select statement logic,input,output parameters etc.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thankyou.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yateendra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jul 2008 06:20:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-07T06:20:21Z</dc:date>
    <item>
      <title>s.forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/s-forms/m-p/4110755#M982852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi everybody,&lt;/P&gt;&lt;P&gt;can anybody explain me how to retreive dat from database and put it into form(smartform).&lt;/P&gt;&lt;P&gt;i mean,&lt;/P&gt;&lt;P&gt;where exactly is place to  provide output tables,select statement logic,input,output parameters etc.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thankyou.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yateendra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 06:20:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/s-forms/m-p/4110755#M982852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T06:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: s.forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/s-forms/m-p/4110756#M982853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;retrive the data from the database in the print program...keep that in an internal table...send the same to smartform..There u can display the same....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 06:21:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/s-forms/m-p/4110756#M982853</guid>
      <dc:creator>former_member195383</dc:creator>
      <dc:date>2008-07-07T06:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: s.forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/s-forms/m-p/4110757#M982854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can make a print program and there you can write your select statements and can call out various functions in which you can pass the name of smartform and varoius other input and output parameters.. And in the smart form you have to declare varables in form interface to receive the respective values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: nitin sikka on Jul 7, 2008 11:46 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 09:39:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/s-forms/m-p/4110757#M982854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T09:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: s.forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/s-forms/m-p/4110758#M982855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Yateendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To print a form, you need a program for data retrieval and a Smart Form that contains the entire from logic. As data retrieval and form logic are separated, you must only adapt the Smart Form if changes to the form logic are necessary. The application program passes the data via a function module interface to the Smart Form. When activating the Smart Form, the system automatically generates a function module. At runtime, the system processes this function module. &lt;/P&gt;&lt;P&gt;You can insert static and dynamic tables. This includes line feeds in individual table cells, triggering events for table headings and subtotals, and sorting data before output. &lt;/P&gt;&lt;P&gt;You can check individual nodes as well as the entire form and find any existing errors in the tree structure. The data flow analysis checks whether all fields (variables) have a defined value at the moment they are displayed. &lt;/P&gt;&lt;P&gt;SAP Smart Forms allow you to include graphics, which you can display either as part of the form or as background graphics. You use background graphics to copy the layout of an existing (scanned) form or to lend forms a company-specific look. During printout, you can suppress the background graphic, if desired. &lt;/P&gt;&lt;P&gt;SAP Smart Forms also support postage optimizing. &lt;/P&gt;&lt;P&gt;Also read SAP Note No. 168368 - Smart Forms: New form tool in Release 4.6C &lt;/P&gt;&lt;P&gt;What Transaction to start SAP Smart Forms? &lt;/P&gt;&lt;P&gt;Execute transaction SMARTFORMS to start SAP Smart Forms. &lt;/P&gt;&lt;P&gt;Key Benefits of SAP Smart Forms: &lt;/P&gt;&lt;P&gt;SAP Smart Forms allows you to reduce considerably the implementation costs of mySAP.com solutions since forms can be adjusted in minimum time.  &lt;/P&gt;&lt;P&gt;You design a form using the graphical Form Painter and the graphical Table Painter. The form logic is represented by a hierarchy structure (tree structure) that consists of individual nodes, such as nodes for global settings, nodes for texts, nodes for output tables, or nodes for graphics. &lt;/P&gt;&lt;P&gt;To make changes, use Drag &amp;amp; Drop, Copy &amp;amp; Paste, and select different attributes. &lt;/P&gt;&lt;P&gt;These actions do not include writing of coding lines or using a Script language. &lt;/P&gt;&lt;P&gt;Using your form description maintained in the Form Builder, Smart Forms generates a function module that encapsulates layout, content and form logic. So you do not need a group of function modules to print a form, but only one.  &lt;/P&gt;&lt;P&gt;For Web publishing, the system provides a generated XML output of the processed form. &lt;/P&gt;&lt;P&gt;Smart Forms provides a data stream called XML for Smart Forms (XSF) to allow the use of 3rd party printing tools. XSF passes form content from R/3 to an external product without passing any layout information about the Smart Form.  &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP Smartforms can be used for creating and maintaining forms for mass printing in SAP Systems. The output medium for Smartforms support printer, fax, e-mail, or the Internet (by using the generated XML output).  &lt;/P&gt;&lt;P&gt;According to SAP, you need neither have any programming knowledge nor use a Script language to adapt standard forms. However, basic ABAP programming skills are required only in special cases (for example, to call a function module you created or for complex and extensive conditions).  &lt;/P&gt;&lt;P&gt;1. Create a new smartforms &lt;/P&gt;&lt;P&gt;Transaction code SMARTFORMS &lt;/P&gt;&lt;P&gt;Create new smartforms call ZSMART&lt;/P&gt;&lt;P&gt;2. Define looping process for internal table  &lt;/P&gt;&lt;P&gt;          Pages and windows &lt;/P&gt;&lt;P&gt;u2022	First Page -&amp;gt; Header Window (Cursor at First Page then click Edit -&amp;gt; Node -&amp;gt; Create) &lt;/P&gt;&lt;P&gt;Here, you can specify your title and page numbering &lt;/P&gt;&lt;P&gt;&amp;amp;SFSY-PAGE&amp;amp; (Page 1) of &amp;amp;SFSY-FORMPAGES(Z4.0)&amp;amp; (Total Page)  &lt;/P&gt;&lt;P&gt;u2022	Main windows -&amp;gt; TABLE -&amp;gt; DATA  &lt;/P&gt;&lt;P&gt;u2022	In the Loop section, tick Internal table and fill in  &lt;/P&gt;&lt;P&gt;u2022	ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2 &lt;/P&gt;&lt;P&gt;3. Define table in smartforms &lt;/P&gt;&lt;P&gt;           Global settings : &lt;/P&gt;&lt;P&gt;           Form interface &lt;/P&gt;&lt;P&gt;           Variable name    Type assignment   Reference type &lt;/P&gt;&lt;P&gt;           ITAB1               TYPE                  Table Structure &lt;/P&gt;&lt;P&gt;           Global definitions &lt;/P&gt;&lt;P&gt;           Variable name    Type assignment   Reference type &lt;/P&gt;&lt;P&gt;           ITAB2               TYPE                  Table Structure  &lt;/P&gt;&lt;P&gt;4. To display the data in the form  &lt;/P&gt;&lt;P&gt;    Make used of the Table Painter and declare the Line Type in Tabstrips Table &lt;/P&gt;&lt;P&gt;     e.g.  HD_GEN for printing header details, &lt;/P&gt;&lt;P&gt;             IT_GEN  for printing data details.  &lt;/P&gt;&lt;P&gt;     You have to specify the Line Type in your Text elements in the Tabstrips Output options. &lt;/P&gt;&lt;P&gt;      Tick the New Line and specify the Line Type for outputting the data. &lt;/P&gt;&lt;P&gt;      Declare your output fields in Text elements  &lt;/P&gt;&lt;P&gt;      Tabstrips - Output Options &lt;/P&gt;&lt;P&gt;      For different fonts use this Style : IDWTCERTSTYLE &lt;/P&gt;&lt;P&gt;      For Quantity or Amout you can used this variable &amp;amp;GS_ITAB-AMOUNT(12.2)&amp;amp; &lt;/P&gt;&lt;P&gt;5. Calling SMARTFORMS from your ABAP program  &lt;/P&gt;&lt;P&gt;REPORT ZSMARTFORM.  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Calling SMARTFORMS from your ABAP program. &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Collecting all the table data in your program, and pass once to SMARTFORMS &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SMARTFORMS &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Declare your table type in :- &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Global Settings -&amp;gt; Form Interface &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Global Definintions -&amp;gt; Global Data &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Main Window -&amp;gt; Table -&amp;gt; DATA &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Written by :  SAP Hints and Tips on Configuration and ABAP/4 Programming &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                    &lt;A href="http://sapr3.tripod.com" target="test_blank"&gt;http://sapr3.tripod.com&lt;/A&gt; &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TABLES: MKPF.  &lt;/P&gt;&lt;P&gt;DATA: FM_NAME TYPE RS38L_FNAM.  &lt;/P&gt;&lt;P&gt;DATA: BEGIN OF INT_MKPF OCCURS 0. &lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE MKPF. &lt;/P&gt;&lt;P&gt;DATA: END OF INT_MKPF.  &lt;/P&gt;&lt;P&gt;SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.  &lt;/P&gt;&lt;P&gt;SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR. &lt;/P&gt;&lt;P&gt;   MOVE-CORRESPONDING MKPF TO INT_MKPF. &lt;/P&gt;&lt;P&gt;   APPEND INT_MKPF.  &lt;/P&gt;&lt;P&gt;ENDSELECT.  &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;At the end of your program. &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Passing data to SMARTFORMS  &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;call function 'SSF_FUNCTION_MODULE_NAME' &lt;/P&gt;&lt;P&gt;  exporting &lt;/P&gt;&lt;P&gt;    formname                 = 'ZSMARTFORM' &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VARIANT                  = ' ' &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DIRECT_CALL              = ' ' &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IMPORTING &lt;/P&gt;&lt;P&gt;    FM_NAME                  = FM_NAME &lt;/P&gt;&lt;P&gt;  EXCEPTIONS &lt;/P&gt;&lt;P&gt;    NO_FORM                  = 1 &lt;/P&gt;&lt;P&gt;    NO_FUNCTION_MODULE       = 2 &lt;/P&gt;&lt;P&gt;    OTHERS                   = 3.  &lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0. &lt;/P&gt;&lt;P&gt;   WRITE: / 'ERROR 1'. &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.  &lt;/P&gt;&lt;P&gt;call function FM_NAME &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_INDEX              = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_INDEX_TAB          = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_PARAMETERS         = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CONTROL_PARAMETERS         = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAIL_APPL_OBJ              = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAIL_RECIPIENT             = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MAIL_SENDER                = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OUTPUT_OPTIONS             = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  USER_SETTINGS              = 'X' &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DOCUMENT_OUTPUT_INFO       = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  JOB_OUTPUT_INFO            = &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  JOB_OUTPUT_OPTIONS         = &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES &lt;/P&gt;&lt;P&gt;    GS_MKPF                    = INT_MKPF &lt;/P&gt;&lt;P&gt;  EXCEPTIONS &lt;/P&gt;&lt;P&gt;    FORMATTING_ERROR           = 1 &lt;/P&gt;&lt;P&gt;    INTERNAL_ERROR             = 2 &lt;/P&gt;&lt;P&gt;    SEND_ERROR                 = 3 &lt;/P&gt;&lt;P&gt;    USER_CANCELED              = 4 &lt;/P&gt;&lt;P&gt;    OTHERS                     = 5.  &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;Additional Fonts for your SMARTFORMS  &lt;/P&gt;&lt;P&gt;You can create additional fonts and style with transaction SMARTSTYLES &lt;/P&gt;&lt;P&gt;This can then be define in the paragraph and character formats, which you can then be assign to texts and fields in the Smart Form.  &lt;/P&gt;&lt;P&gt;The character formats includes effects such as superscript, subscript, barcode and font attributes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpfull,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUDHIR MANJAREKAR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 10:12:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/s-forms/m-p/4110758#M982855</guid>
      <dc:creator>Sidh_M</dc:creator>
      <dc:date>2008-07-07T10:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: s.forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/s-forms/m-p/4110759#M982856</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;Go through the link given below:&lt;/P&gt;&lt;P&gt;&lt;A href="http://saptechnical.com/Tutorials/Smartforms/PassingData/SF.htm" target="test_blank"&gt;http://saptechnical.com/Tutorials/Smartforms/PassingData/SF.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nikunj shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 11:11:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/s-forms/m-p/4110759#M982856</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T11:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: s.forms</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/s-forms/m-p/4110760#M982857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;you can take help from this program.&lt;/P&gt;&lt;P&gt;&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  ZSMARTFORM_ASSIGN2                                          *&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  zsmartform_assign2                      .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: adrc,vbrk,vbrp.&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;selection-screen skip 1.&lt;/P&gt;&lt;P&gt;select-options: vbeln for vbrk-vbeln.&lt;/P&gt;&lt;P&gt;selection-screen: end of block b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;      vbeln like vbrk-vbeln,&lt;/P&gt;&lt;P&gt;      kunrg like vbrk-kunrg,&lt;/P&gt;&lt;P&gt;      fkdat like vbrk-fkdat,&lt;/P&gt;&lt;P&gt;      xblnr like vbrk-xblnr,&lt;/P&gt;&lt;P&gt;      name1 like adrc-name1,&lt;/P&gt;&lt;P&gt;      street like adrc-street,&lt;/P&gt;&lt;P&gt;      city1 like adrc-city1,&lt;/P&gt;&lt;P&gt;      post_code1 like adrc-post_code1,&lt;/P&gt;&lt;P&gt;      country like adrc-country,&lt;/P&gt;&lt;P&gt;      tel_number like adrc-tel_number,&lt;/P&gt;&lt;P&gt;      end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      data:begin of itab2 occurs 0,&lt;/P&gt;&lt;P&gt;      vbeln like vbrp-vbeln,&lt;/P&gt;&lt;P&gt;      matnr like vbrp-matnr,&lt;/P&gt;&lt;P&gt;      arktx like vbrp-arktx,&lt;/P&gt;&lt;P&gt;      fkimg like vbrp-fkimg ,&lt;/P&gt;&lt;P&gt;      vrkme like vbrp-vrkme,&lt;/P&gt;&lt;P&gt;      netwr like vbrp-netwr ,&lt;/P&gt;&lt;P&gt;      waerk like vbrk-waerk,&lt;/P&gt;&lt;P&gt;      end of itab2.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * into corresponding fields of itab from  adrc where&lt;/P&gt;&lt;P&gt;adrc&lt;SUB&gt;addrnumber in ( select adrnr from kna1 join  vbrk on kna1&lt;/SUB&gt;kunnr =&lt;/P&gt;&lt;P&gt;vbrk&lt;SUB&gt;kunrg where vbrk&lt;/SUB&gt;vbeln in vbeln ).&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*SELECT * INTO CORRESPONDING FIELDS OF ITAB FROM vbrk&lt;/P&gt;&lt;P&gt;*join vbrp on vbrk&lt;SUB&gt;vbeln = vbrp&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;where vbrk~vbeln in vbeln .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*append itab.&lt;/P&gt;&lt;P&gt;*endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * into corresponding fields of itab from vbrk&lt;/P&gt;&lt;P&gt; where vbrk~vbeln in vbeln .&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * into corresponding fields of itab2 from  vbrp&lt;/P&gt;&lt;P&gt; where vbrp~vbeln in vbeln .&lt;/P&gt;&lt;P&gt;append itab2.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*loop at itab.&lt;/P&gt;&lt;P&gt;*loop at itab2 where vbeln = itab-vbeln.&lt;/P&gt;&lt;P&gt;*write: / itab2-vbeln,itab2-VRKME.&lt;/P&gt;&lt;P&gt;*endloop.&lt;/P&gt;&lt;P&gt;*endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'OPEN_FORM'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;         device                      = 'PRINTER'&lt;/P&gt;&lt;P&gt;         dialog                      = 'X'&lt;/P&gt;&lt;P&gt;         form                        = 'ZRAK_LAYOUT3'&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*concatenate itAB-name1 itAB-name1 into name separated by space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'START_FORM'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        ELEMENT                  = 'ADDRESS'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         function                 = 'SET'&lt;/P&gt;&lt;P&gt;         type                     = 'BODY'&lt;/P&gt;&lt;P&gt;         window                   = 'WINDOW1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        ELEMENT                  = 'ADDRESS'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         function                 = 'SET'&lt;/P&gt;&lt;P&gt;         type                     = 'BODY'&lt;/P&gt;&lt;P&gt;         window                   = 'WINDOW2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        ELEMENT                  = 'ADDRESS'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         function                 = 'SET'&lt;/P&gt;&lt;P&gt;         type                     = 'BODY'&lt;/P&gt;&lt;P&gt;         window                   = 'WINDOW3'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab2 where vbeln = itab-vbeln.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*CALL FUNCTION 'START_FORM'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'WRITE_FORM'&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        ELEMENT                  = 'DATA'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         function                 = 'SET'&lt;/P&gt;&lt;P&gt;         type                     = 'BODY'&lt;/P&gt;&lt;P&gt;         window                   = 'MAIN'.&lt;/P&gt;&lt;P&gt;*CALL FUNCTION 'END_FORM'.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'WRITE_FORM'&lt;/P&gt;&lt;P&gt; exporting&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ELEMENT                        = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FUNCTION                       = 'SET'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TYPE                           = 'BODY'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   window                         = 'FOOTER'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PENDING_LINES                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ELEMENT                        = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FUNCTION                       = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TYPE                           = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UNOPENED                       = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UNSTARTED                      = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  WINDOW                         = 6&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  BAD_PAGEFORMAT_FOR_PRINT       = 7&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SPOOL_ERROR                    = 8&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CODEPAGE                       = 9&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                         = 10&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'END_FORM'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;call function 'CLOSE_FORM'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if it is useful.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 12:05:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/s-forms/m-p/4110760#M982857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T12:05:38Z</dc:date>
    </item>
  </channel>
</rss>

