Output Example

To generate an output example in XDF format, execute the following steps:

  1. Copy the example report SF_EXAMPLE_01 .
  2. Enhance the copy of the report with the following statements before calling the Smart Form:

    data: output_options type ssfcompop.
    output_options-xdfcmode = 'X'.
    output_options-xdf = 'X'.
    output_options-xdfoutmode = 'S'.
    output_options-xdfoutdev = 'LOCM'.

    The output device LOCM has device type PLAIN and uses the host spool coupling type 'F' .

  3. With the call of the Smart Form pass structure OUTPUT_OPTIONS :

    * now call the generated function module
      call function fm_name
           exporting
    *                 archive_index =
    *                 archive_parameters =
    *                 control_parameters =
    *                 mail_appl_obj =
    *                 mail_recipient =
    *                 mail_sender =
                      output_options = output_options
    *                 user_settings = 'X'
                      customer = customer
                      bookings = bookings
                      connections = connections
    *      importing  document_output_info =
    *                 job_output_info =
    *                 job_output_options =
           exceptions formatting_error = 1
                      internal_error = 2
                      send_error = 3
                      user_canceled = 4
                      others = 5.

  4. Start the report. In our example we specified the following selection criteria on the selection screen:
    • Customer Number: 1
    • Airline: LH to LH
    • Form: SF_EXAMPLE_01
  1. Press F8. The report generates a spool entry. You can use SP01 to print it.

See also: Output of XML Documents.

XDF Output

XDF output is stored in the spool in binary format. To improve the readability, we sorted the tags in this example hierarchically and deleted entries of tables BOOKINGS and CONNTECTIONS .

<?xml version="1.0"?>
<XDF>
<ARCHIVE_INDEX TYPE="TOA_DARA" OBJECT="TABL" TIMESTAMP="19981124001523">
 <DEL_DATE>0000-00-00</DEL_DATE>
</ARCHIVE_INDEX>
<ARCHIVE_INDEX_TAB TYPE="TSFDARA" OBJECT="TTYP" TIMESTAMP="20000308233455"/>
<ARCHIVE_PARAMETERS TYPE="ARC_PARAMS" OBJECT="TABL" TIMESTAMP="19981124002028">
 <ACHECK>0</ACHECK>
</ARCHIVE_PARAMETERS>
<CONTROL_PARAMETERS TYPE="SSFCTRLOP" OBJECT="TABL" TIMESTAMP="19991202002236"/>
<MAIL_APPL_OBJ TYPE="SWOTOBJID" OBJECT="TABL" TIMESTAMP="19961008184347"/>
<MAIL_RECIPIENT TYPE="SWOTOBJID" OBJECT="TABL" TIMESTAMP="19961008184347"/>
<MAIL_SENDER TYPE="SWOTOBJID" OBJECT="TABL" TIMESTAMP="19961008184347"/>
<OUTPUT_OPTIONS TYPE="SSFCOMPOP" OBJECT="TABL" TIMESTAMP="20010403014022">
 <TDSENDDATE>0000-00-00</TDSENDDATE>
 <TDSENDTIME>00:00:00</TDSENDTIME>
 <TDLIFETIME>0</TDLIFETIME>
 <TDCOPIES>000</TDCOPIES>
 <XDFCMODE>X</XDFCMODE>
 <XDF>X</XDF>
 <XDFOUTMODE>S</XDFOUTMODE>
 <XDFOUTDEV>LOCM</XDFOUTDEV>
</OUTPUT_OPTIONS>
<USER_SETTINGS TYPE="TDBOOL" OBJECT="DTEL"
TIMESTAMP="20000107233557">X</USER_SETTINGS>
<CUSTOMER TYPE="SCUSTOM" OBJECT="TABL" TIMESTAMP="20010209022629">
 <MANDT>000</MANDT>
 <ID>00000001</ID>
 <NAME>SAP AG</NAME>
 <FORM>Firma</FORM>
 <STREET>Neurottstr. 16</STREET>
 <POSTCODE>69190</POSTCODE>
 <CITY>Walldorf</CITY>
 <COUNTRY>DE</COUNTRY>
 <TELEPHONE>069-6227-34-0</TELEPHONE>
 <CUSTTYPE>B</CUSTTYPE>
 <DISCOUNT>010</DISCOUNT>
 <LANGU>D</LANGU>
</CUSTOMER>
<BOOKINGS TYPE="TY_BOOKINGS" OBJECT="TTYP" TIMESTAMP="20010213231150">
 <item>
  <MANDT>000</MANDT>
  <CARRID>LH</CARRID>
  <CONNID>0400</CONNID>
  <FLDATE>2000-06-03</FLDATE>
  <BOOKID>00007328</BOOKID>
  <CUSTOMID>00000001</CUSTOMID>
  <CUSTTYPE>B</CUSTTYPE>
  <LUGGWEIGHT>11.1000</LUGGWEIGHT>
  <WUNIT>KG</WUNIT>
  <INVOICE>X</INVOICE>
  <CLASS>C</CLASS>
  <FORCURAM>0.00</FORCURAM>
  <LOCCURAM>1198.80</LOCCURAM>
  <LOCCURKEY>DEM</LOCCURKEY>
  <ORDER_DATE>1999-06-27</ORDER_DATE>
  <COUNTER>00000000</COUNTER>
  <AGENCYNUM>00000118</AGENCYNUM>
  <CANCELLED>X</CANCELLED>
  <PASSBIRTH>0000-00-00</PASSBIRTH>
 </item>
 <item>
  <MANDT>000</MANDT>
  <CARRID>LH</CARRID>
  <CONNID>0400</CONNID>
  <FLDATE>2000-07-15</FLDATE>
  <BOOKID>00006205</BOOKID>
  <CUSTOMID>00000001</CUSTOMID>
  <CUSTTYPE>B</CUSTTYPE>
  <LUGGWEIGHT>0.0000</LUGGWEIGHT>
  <WUNIT>KG</WUNIT>
  <INVOICE>X</INVOICE>
  <CLASS>C</CLASS>
  <FORCURAM>0.00</FORCURAM>
  <LOCCURAM>1198.80</LOCCURAM>
  <LOCCURKEY>DEM</LOCCURKEY>
  <ORDER_DATE>1999-08-19</ORDER_DATE>
  <COUNTER>00000000</COUNTER>
  <AGENCYNUM>00000116</AGENCYNUM>
  <PASSBIRTH>0000-00-00</PASSBIRTH>
 </item>
</BOOKINGS>
<CONNECTIONS TYPE="TY_CONNECTIONS" OBJECT="TTYP" TIMESTAMP="20010213231150">
 <item>
  <MANDT>000</MANDT>
  <CARRID>LH</CARRID>
  <CONNID>0402</CONNID>
  <COUNTRYFR>DE</COUNTRYFR>
  <CITYFROM>FRANKFURT</CITYFROM>
  <AIRPFROM>FRA</AIRPFROM>
  <COUNTRYTO>US</COUNTRYTO>
  <CITYTO>NEW YORK</CITYTO>
  <AIRPTO>JFK</AIRPTO>
  <FLTIME>504</FLTIME>
  <DEPTIME>13:30:00</DEPTIME>
  <ARRTIME>15:05:00</ARRTIME>
  <DISTANCE>6162.0000</DISTANCE>
  <DISTID>KM</DISTID>
  <FLTYPE>X</FLTYPE>
  <PERIOD>0</PERIOD>
 </item>
 <item>
  <MANDT>000</MANDT>
  <CARRID>LH</CARRID>
  <CONNID>2402</CONNID>
  <COUNTRYFR>DE</COUNTRYFR>
  <CITYFROM>FRANKFURT</CITYFROM>
  <AIRPFROM>FRA</AIRPFROM>
  <COUNTRYTO>DE</COUNTRYTO>
  <CITYTO>BERLIN</CITYTO>
  <AIRPTO>SXF</AIRPTO>
  <FLTIME>65</FLTIME>
  <DEPTIME>10:30:00</DEPTIME>
  <ARRTIME>11:35:00</ARRTIME>
  <DISTANCE>555.0000</DISTANCE>
  <DISTID>KM</DISTID>
  <PERIOD>0</PERIOD>
 </item>
 <item>
  <MANDT>000</MANDT>
  <CARRID>LH</CARRID>
  <CONNID>2407</CONNID>
  <COUNTRYFR>DE</COUNTRYFR>
  <CITYFROM>BERLIN</CITYFROM>
  <AIRPFROM>TXL</AIRPFROM>
  <COUNTRYTO>DE</COUNTRYTO>
  <CITYTO>FRANKFURT</CITYTO>
  <AIRPTO>FRA</AIRPTO>
  <FLTIME>65</FLTIME>
  <DEPTIME>07:10:00</DEPTIME>
  <ARRTIME>08:15:00</ARRTIME>
  <DISTANCE>555.0000</DISTANCE>
  <DISTID>KM</DISTID>
  <FLTYPE>X</FLTYPE>
  <PERIOD>0</PERIOD>
 </item>
 <item>
  <MANDT>000</MANDT>
  <CARRID>LH</CARRID>
  <CONNID>2415</CONNID>
  <COUNTRYFR>DE</COUNTRYFR>
  <CITYFROM>BERLIN</CITYFROM>
  <AIRPFROM>SXF</AIRPFROM>
  <COUNTRYTO>DE</COUNTRYTO>
  <CITYTO>FRANKFURT</CITYTO>
  <AIRPTO>FRA</AIRPTO>
  <FLTIME>65</FLTIME>
  <DEPTIME>09:25:00</DEPTIME>
  <ARRTIME>10:30:00</ARRTIME>
  <DISTANCE>555.0000</DISTANCE>
  <DISTID>KM</DISTID>
  <PERIOD>0</PERIOD>
 </item>
 <item>
  <MANDT>000</MANDT>
  <CARRID>LH</CARRID>
  <CONNID>3577</CONNID>
  <COUNTRYFR>IT</COUNTRYFR>
  <CITYFROM>ROME</CITYFROM>
  <AIRPFROM>FCO</AIRPFROM>
  <COUNTRYTO>DE</COUNTRYTO>
  <CITYTO>FRANKFURT</CITYTO>
  <AIRPTO>FRA</AIRPTO>
  <FLTIME>120</FLTIME>
  <DEPTIME>07:05:00</DEPTIME>
  <ARRTIME>09:05:00</ARRTIME>
  <DISTANCE>1351.0000</DISTANCE>
  <DISTID>KM</DISTID>
  <PERIOD>0</PERIOD>
 </item>
</CONNECTIONS>
</XDF>