Sapscript and OPEN_FORM

Hallo,
i use the FM OPEN_FORM to send some Sapscriptformular
per email. This works correct. The Formular is an Attachment in PDF. This is also correct.
Now i want to change the email-Header and the email-Text
to give the Receiver some Information.
Is there any Parameter in OPEN_FORM to do this, or
is there a special FM?
I hope anyone has an Idea.
Regards,
Dieter

Hallo,
i solve it.
Thanks for all help.
Regards Dieter
Here my Code-Extract:
REPORT ZTEST.
DATA: BEGIN OF DR_PARAM.
        INCLUDE STRUCTURE ITCPO.
DATA: END   OF DR_PARAM.
DATA: OTFDATA      LIKE SOLI     OCCURS 0 WITH HEADER LINE.
DATA: PDFDATA      LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
DATA: PDF_FILESIZE LIKE SOOD-OBJLEN.
DATA: OBJ_PACK LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE,
      OBJ_HEAD LIKE SOLISTI1   OCCURS 0 WITH HEADER LINE,
      OBJ_BIN  LIKE SOLISTI1   OCCURS 0 WITH HEADER LINE,
      OBJ_TXT  LIKE SOLISTI1   OCCURS 0 WITH HEADER LINE,
      REC_LIST LIKE SOMLRECI1  OCCURS 0 WITH HEADER LINE,
      DOC_DATA LIKE SODOCCHGI1.
DR_PARAM-TDDEST    = 'LOCAL'.        "Ausgabegerät
DR_PARAM-TDIMMED   = ' '.            "Sofort ausgeben
DR_PARAM-TDPREVIEW = 'X'.            "Druckvoschau
DR_PARAM-TDGETOTF  = 'X'.            "Ausgabe in  Tabelle
CALL FUNCTION 'OPEN_FORM'
     EXPORTING
          DEVICE   = 'PRINTER'
          DIALOG   = ' '
          OPTIONS  = DR_PARAM
          FORM     = 'ZTEST'
          LANGUAGE = SY-LANGU
     EXCEPTIONS
          CANCELED = 01
          DEVICE   = 02
          OTHERS   = 03.
IF SY-SUBRC <> 0. WRITE: / SY-SUBRC. EXIT. ENDIF.
CALL FUNCTION 'WRITE_FORM'
     EXPORTING
          WINDOW = 'ADDRESS'
     EXCEPTIONS
          WINDOW = 1.
IF SY-SUBRC <> 0. WRITE: / SY-SUBRC. EXIT. ENDIF.
CALL FUNCTION 'WRITE_FORM'
     EXPORTING
          WINDOW  = 'MAIN'
          ELEMENT = 'ANSCHREIBEN_ANFANG'
     EXCEPTIONS
          WINDOW  = 1.
IF SY-SUBRC <> 0. WRITE: / SY-SUBRC. EXIT. ENDIF.
.... Here are more 'WRITE_FORM'
CALL FUNCTION 'CLOSE_FORM'
     TABLES
          OTFDATA                  = OTFDATA.
exit.
CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
     EXPORTING
          FORMAT_SRC  = 'OTF'
          FORMAT_DST  = 'PDF'
          DEVTYPE     = ''
          LEN_IN      = ''
     IMPORTING
          LEN_OUT     = PDF_FILESIZE
     TABLES
          CONTENT_IN  = OTFDATA
          CONTENT_OUT = PDFDATA.
prepare email (example)
DOC_DATA-OBJ_NAME  = 'Report: ZTEST'.
CONCATENATE SY-SYSID '/' SY-MANDT ':'
            'Übertragung von Testdaten'
            INTO DOC_DATA-OBJ_DESCR SEPARATED BY SPACE.
email-User (U)
CLEAR REC_LIST.
CLEAR REC_LIST.
REC_LIST-RECEIVER = '[email protected]'.
REC_LIST-REC_TYPE = 'U'.
APPEND REC_LIST.
PACKING_LIST
CLEAR OBJ_PACK.
OBJ_PACK-TRANSF_BIN = ' '.
OBJ_PACK-BODY_START = 01.
OBJ_PACK-BODY_NUM   = 02.
OBJ_PACK-DOC_TYPE   = 'RAW'.
APPEND OBJ_PACK.
CLEAR OBJ_PACK.
OBJ_PACK-TRANSF_BIN = 'X'.
OBJ_PACK-BODY_START = 01.
DESCRIBE TABLE PDFDATA LINES OBJ_PACK-BODY_NUM.
OBJ_PACK-DOC_TYPE   = 'PDF'.
OBJ_PACK-DOC_SIZE   = PDF_FILESIZE.
OBJ_PACK-OBJ_NAME   = 'Attachment'.
OBJ_PACK-OBJ_DESCR  = 'Test'.
APPEND OBJ_PACK.
OBJ_TXT-LINE = '1. Line of email'.
APPEND OBJ_TXT.
OBJ_TXT-LINE = '2. Line of email'.
APPEND OBJ_TXT.
LOOP AT PDFDATA.
  OBJ_BIN-LINE = PDFDATA-LINE.
  APPEND OBJ_BIN.
ENDLOOP.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
     EXPORTING
          DOCUMENT_DATA              = DOC_DATA
          PUT_IN_OUTBOX              = 'X'
          COMMIT_WORK                = 'X'
     TABLES
          PACKING_LIST               = OBJ_PACK
          CONTENTS_TXT               = OBJ_TXT
          CONTENTS_BIN               = OBJ_BIN
          RECEIVERS                  = REC_LIST
     EXCEPTIONS
          TOO_MANY_RECEIVERS         = 1
          DOCUMENT_NOT_SENT          = 2
          DOCUMENT_TYPE_NOT_EXIST    = 3
          OPERATION_NO_AUTHORIZATION = 4
          PARAMETER_ERROR            = 5
          X_ERROR                    = 6
          ENQUEUE_ERROR              = 7
          OTHERS                     = 8.
CASE SY-SUBRC.
ENDCASE.
Programmende
Message was edited by: Dieter Gröhn

Similar Messages

  • Sapscript and Standard Text - Polish Characters not printing

    Hi,
    I have created an English Sapscript and translated it to Polish via transaction SE76.
    Changing my PC Region and Language settings to Polish allowed me to enter Polish Characters into Hardcoded text in the Sapscript and Standard Text via s010.
    I have two problems:
    1) With my PC Region and Language settings set to Polish, when I create my sapscript output some of the polish characters that I have entered via SE76 and SO10 do not appear and are replaced by others e.g.
    ę is dispalyed as ê
    ć is displayed as æ
    ń is displazed as #
    2) I have a business requirement to be in England Logged with PC Region and Language set to English but to print a sapscript output in Polish. Is this possible.
    We are currently on non unicode SAP system.
    Please can anyone advise.
    Regards

    Hello,
    SAP discourages mixed code page or MDMP systems and with good reason. If there is any possibility of you upgrading to a Unicode system in the near future you should try to wait for it. Supporting multiple languages in Unicode is easy, in MDMP it can be quite tricky. And MDMP makes the move to Unicode more difficult.
    That said, your BASIS team can enable Polish and you can print in Polish while your PC is set for English. The SAPScript/Form must be in Polish or using an INCLUDE that is LANGUAGE 'PL' to let SAP know which code page to use when printing.
    Seriously, look at moving to Unicode, you need to do it eventually anyways.
    Michael

  • About SAPscripts and smartforms

    Hi all,
             I am working on SAPscripts and i have one doubt.
    I want to know the concepts how data is communicated between SAP scripts and print program.Suppose I am writing one subroutine. Can i write the form statements in the print program of the script or I have to write it in another program.
             I want whether SAPscript is calling the print program or vice versa.
             Please tell me the same concepts regarding smartforms.
             Please experts provide me a vivid idea so that I can get the concepts clear.
        With regards,
          Abir.

    HI
    GOOD
    AS PER YOUR REQUIREMENT HERE I AM GIVING SOME POINTS RELATING TO SAP SCRIPT AND DRIVER PROGRAM
    WHEN YOU R CREATING A SAPSCRIPT FORM IT CANT ABLE TO EXECUTE OF ITSELF, FOR EXECUTION IT NEEDS HELP .THAT IS THE REASON YOU R CREATING A DRIVER PROGRAM.
    IF YOU GO THROUGH A DRIVER PROGRAM YOU CAN FIND OUT THAT YOU R PASSING THE SAP SCRIPT NAME AS A PARAMTER.SO YOUR DRIVER PROGRAM IS CALLING YOUR SAP SCRIPT FORM.
    USING THE DRIVER PROGRAM YOU ARE PASSING THE APPROPRIATE VALUE FOR THE VARIBALE THAT YOU R GOING TO PRINT IN THE SAP SCRIPT FORM.
    =============================
    SMARTFORM CONCEPT=>
    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).
    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).
    1. Create a new smartforms
    Transaction code SMARTFORMS
    Create new smartforms call ZSMART
    2. Define looping process for internal table
    Pages and windows
    First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
    Here, you can specify your title and page numbering
    &SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
    Main windows -> TABLE -> DATA
    In the Loop section, tick Internal table and fill in
    ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
    3. Define table in smartforms
    Global settings :
    Form interface
    Variable name    Type assignment   Reference type
    ITAB1               TYPE                  Table Structure
    Global definitions
    Variable name    Type assignment   Reference type
    ITAB2               TYPE                  Table Structure
    4. To display the data in the form
    Make used of the Table Painter and declare the Line Type in Tabstrips Table
    e.g.  HD_GEN for printing header details,
            IT_GEN  for printing data details.
    You have to specify the Line Type in your Text elements in the Tabstrips Output options.
    Tick the New Line and specify the Line Type for outputting the data.
    Declare your output fields in Text elements
    Tabstrips - Output Options
    For different fonts use this Style : IDWTCERTSTYLE
    For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
    THANKS
    MRUTYUN

  • Sapscripts and smartforms

    Hi,
    Please tell me how to do language translations in sapscripts and smartforms.
    I want to to each form in 12 languages.
    Please help me.
    Thanks,
    Ravi

    Hi
    You can assign the language directly by trx SE71 fot sapscript and SMARTFORMS for sm.
    In both trx you can see the section LANGUAGE ATTRIBUTES
    Here you can create a version of your form for all language you need.
    But all these versions'll be as original, so you need to change all texts you've inserted, i.e you have to translate all texts.
    For SAPSCRIPT you can do it by SE71 because you can choose the language (so the version) of the sapscript you want to translate, but for the SAMRTFORMS I believe you can only use trx SE63.
    Max

  • Sapscripts and smart forms

    how many main  windows can be created in sapscripts and smartforms? and how mnay sub windows can be created in sapscripts and smartforms?

    Main Window in one page can be only One.
    regards,
    Rajesh Banka
    Reward suitable points.
    How to give points: Mark your thread as a question while creating it. In the answers you get, you can assign the points by clicking on the stars to the left. You also get a point yourself for rewarding (one per thread).

  • Generate Sapscript and convert to DOC

    Hello everyone,
    I need to generate a. DOC through SAPscript and then save this file in C: \ of the machine.
    Can anyone help me?

    It may depend on how you did the OCR. On AA 9, I generally use the Searchable Image for setting up the conversion to DOC. I do not remember there being a selection of font types in AA 9 for ClearScan and the result is not a standard font, but a created font that does not convert to DOC (newer versions offer font choices with ClearScan I think). Also, the ability to do the OCR depends on the quality of the copy (or a lot of editing will be needed). There are several things that can be happening in the process and it is not clear what you have done, or the quality of your original. OCR has tended to improve with each version of Acrobat. I was fairly impressed with XI when I got it.

  • SAPscript and Smart Forms - Going to be phased out?

    Thus far, are SAPscript and/or Smart Forms going to eventually be retired?  Is there an official document, or Note that says so?  I've exhaustively searched through these forums, and the SMP for the PAM and Notes, but I can't find a reference anywhere that will tell me.
    I did find where it says:
    "Customers can continue to use existing SAP forms solutions such as Smart Forms and SAPscript.
    Both solutions will continue to be supported in their current functional scope."
    Just want to make sure with my clients.
    Thanks!

    Hello,
    We recently rolled out an SAP's Strategy as far as forms development is concerned.
    Here is the official statement:
    "The SAP forms strategy is based on SAP Interactive Forms by Adobe (IFbA). This applies to both print and interactive forms. In this context, most Business Suite solutions have already been converted to the IFbA technology (more than 2300 forms), and new standard SAP forms will be created using IFbA instead of Smart Forms or SAPscript.
    SAPscript and Smart Forms shall continue to be supported inline with SAP's maintenance strategy, thereby ensuring the ability to protect existing customer investment."
    You can also find this on the Smart Forms page in SDN: Smart Forms Overview
    Regards,
    Nikhil

  • Differnce between SapScript And Smartform

    hi All,
    Can anyone tell me the difference between sapscript and smartforms.Which we have to use
    Points rewarded for answer
    Harpreet

    Hi harpreet,
    1. Can anyone tell me the difference between sapscript and smartforms
    some practical differences are :
    <b>*----
    One main difference which is
    visibility in the report is TABLES
    (in sapscript we cannot design MATRIX like tables,
    having grid lines,
    but in smartforms, it is much possible to
    design tables, having grid lines, color just
    like excel table)</b>
    a) sapscript requires
        - driver program (se38 program)
        - layout (se71 layout)
       smartforms just require
       smartform,
      (and a program is just required for
       selection screen purpose)
    b) the logic of printing (ie. sequence, flow)
        is CONTROLLED BY drier program,
       in case of sapscript.
      where as in smartform, it is inbuilt using TABLES element.
    c) In sapscript we cannot write our own logic for printing.
       where as in smartform,
      we can write our own logic for pritning.
      (we can even write SELECT Statements, DATA statements,
       and many program lines + logic to suit our requirements)
    2 Which we have to use
    If we are copying some standard sapscript,
      then we have to go for sapscript only.
    We can use both. but practically smartforms is easier to
      develop.
    regards,
    amit m.

  • How do we debug a sapscript and a smartform

    how do we debug a sapscript and a smartform.

    hi,
    1) DEBUG Smartform:
    One way to debug smartform is to debug the Function Module of that smartforms. If you want to debug particular smartform node that the solution would be, insert a "Program Line" just above the node you want to debug and this program line write a normal abap breakpoint. So whenever you call the smartforms, it will stop at this breakpoint and you can debug onwards.
    2). DEBUG SAPScript
    They are two ways to debug the SAPScript.
    1). Use Tools - Word Processing - Layout Set (SE71). Enter name of layout set and then Utilities - Activate Debugger.
    It is of no consequence which layoutset you enter when selecting the SAPscript debugger. (Menu path: Tools-Wordprocessing - Forms, Utilities - Activate Debugger) The next layoutset called will invoke the debugger.
    2). Another way to set the SAPScript debugger is to run program RSTXDBUG.
    When you debug Print program it is same as you debug any other ABAP program.
    While when you debug SAPScript, you actually debug the code ( scripting) you have written SAPScript Form.
    rgds
    anver
    pls mark points if hlped

  • Difference between sapscripts and BDCs

    what is the difference between sapscripts and BDCs

    BDC for data communication between sap to non sap(vice-versa)
    where scripts is a business layout(we create)
    <b>bdc help</b>
    They are the only 3 methods mostly we use in BDC.
    Call _Dialog is outdated. it is there in the intial stages of SAP.
    BDC:
    Batch Data Communication (BDC) is the process of transferring data from one SAP System to another SAP system or from a non-SAP system to SAP System.
    Features :
    BDC is an automatic procedure.
    This method is used to transfer large amount of data that is available in electronic medium.
    BDC can be used primarily when installing the SAP system and when transferring data from a legacy system (external system).
    BDC uses normal transaction codes to transfer data.
    Types of BDC :
    CLASSICAL BATCH INPUT (Session Method)
    CALL TRANSACTION
    BATCH INPUT METHOD:
    This method is also called as ‘CLASSICAL METHOD’.
    Features:
    Asynchronous processing.
    Synchronous Processing in database update.
    Transfer data for more than one transaction.
    Batch input processing log will be generated.
    During processing, no transaction is started until the previous transaction has been written to the database.
    CALL TRANSACTION METHOD :
    This is another method to transfer data from the legacy system.
    Features:
    Synchronous processing. The system performs a database commit immediately before and after the CALL TRANSACTION USING statement.
    Updating the database can be either synchronous or asynchronous. The program specifies the update type.
    Transfer data for a single transaction.
    Transfers data for a sequence of dialog screens.
    No batch input processing log is generated.
    For BDC:
    http://myweb.dal.ca/hchinni/sap/bdc_home.htm
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/bdc&
    http://www.sap-img.com/abap/learning-bdc-programming.htm
    http://www.sapdevelopment.co.uk/bdc/bdchome.htm
    http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/69/c250684ba111d189750000e8322d00/frameset.htm
    http://www.sapbrain.com/TUTORIALS/TECHNICAL/BDC_tutorial.html
    Check these link:
    http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm
    http://www.sap-img.com/abap/question-about-bdc-program.htm
    http://www.itcserver.com/blog/2006/06/30/batch-input-vs-call-transaction/
    http://www.planetsap.com/bdc_main_page.htm
    call Transaction or session method ?
    These are the Function modules used for the Session Method.
    BDC_OPEN_GROUP
    BDC_INSERT
    BDC_CLOSE_GROUP
    BDC_DELETE_SESSION to create a session
    You can schedule the execution of BDC session using the program RSBDCSUB.
    another one call transaction
    open dataset
    close dataset
    reward if it helps u
    vijay pawar

  • Difference between HR Forms Smartforms sapscript and PE51

    Hai all,
      Could anyone give me the exact difference between HR Forms Smartforms sapscript and PE51.
    Thanks in advance,
    S.Jenibalet.

    HR Forms
    The Layout Editor can be used is Adobe Designing tool or Smart form Tool.
    The HR Forms Workplace (which will be called the Forms Workplace from now
    on) will enable you in future to create flexible reports with an attractive layout for HR master data,
    personnel time data, and payroll results.
    Smartforms
    SMARTFORMS as the SAPScript successor tool is also used to generate formatted documents which can contain logos, tables and other formatting objects. And this documents can look like a pre-printed documents that normal ABAP codes cannot possible.The SAP SmartForms replace the SAPscript forms. SAP SmartForms offer the following advantages: 1)Creating and maintaining forms requiring half the time 2) Adapting forms without any programming knowledge due to entirely graphical user interface 3) Web Publishing using the generated XML output Here you will get some SAP SMARTFORMS tutorials and PDF guides to download.
    You use SAP Smart Forms to create and maintain forms for mass printing in SAP Systems. As
    output medium SAP Smart Forms support a printer, a fax, e-mail, or the Internet (by using the
    generated XML output).
    sapscript
    SAPSCRIPTS are used to generate formatted documents which can contain logos, tables and other formatting objects. And this documents can look like a pre printed documents that normal ABAP codes cannot possible. SAPscript comprises these five components: 1)an editor for entering and editing the lines of a text. 2)styles and forms for print layout. 3)the composer as central output module. 4)a programming interface 5)several database tables for storing texts, styles and forms. Here you will get some SAPSCRIPTS tutorials and Pdf guides to download.
    PE51
    There are Limitataions for PE51.You can use only for HR module specifically for Payroll.

  • Difference between SAPScript and Smartforms

    Hi all,
    Can any body tell me, which of these SAPScript and Smartforms are client independent or client dependent and why?
    Thanks in advance....
    Sri.

    Hi Sri,
    SAPScript is client dependent and Smartform is client independent.
    So you need to transport the SAPScript from the development client to test client if both are in the same system.
    Because Smartform is client independent it will behave like report program.
    Thanks
    Vinod

  • What is the usage of START_FORM and OPEN_FORM

    Hi,
    In sap script,exactly what is the usage of START_FORM,OPEN_FORM,CLOSE_FORM and END_FORM.Could you please help out.
    Thanks,
    Madhu

    Hai Madhu
    For START_FORM
    SAPscript: Start a form
    The layout set can be changed in the current print procedure with START_FORM. It is therefore possible to combine several different layout sets in one printer output. Before a new layout set is opened with START_FORM, an open layout set must be closed with END_FORM.
    Parameters
    ARCHIVE_INDEX
    FORM
    LANGUAGE
    STARTPAGE
    PROGRAM
    MAIL_APPL_OBJECT
    LANGUAGE
    Exceptions
    FORM
    FORMAT
    UNENDED
    UNOPENED
    UNUSED
    SPOOL_ERROR
    CODEPAGE
    For OPEN_FORM
    SAPscript: Open form printing
    The module OPEN_FORM opens layout set printing. This function must be called up before you can work with other layout set functions (WRITE_FORM, ...).
    It is not obligatory to enter a layout set name to open it. If a layout set is not specified, one must be opened with START_FORM.
    For information on DEVICE MAIL see function module SO_NEW_DOCUMENT_SEND_API1
    Parameters
    APPLICATION
    ARCHIVE_INDEX
    ARCHIVE_PARAMS
    DEVICE
    DIALOG
    FORM
    LANGUAGE
    OPTIONS
    MAIL_SENDER
    MAIL_RECIPIENT
    MAIL_APPL_OBJECT
    RAW_DATA_INTERFACE
    SPONUMIV
    LANGUAGE
    NEW_ARCHIVE_PARAMS
    RESULT
    Exceptions
    CANCELED
    DEVICE
    FORM
    OPTIONS
    UNCLOSED
    MAIL_OPTIONS
    ARCHIVE_ERROR
    INVALID_FAX_NUMBER
    MORE_PARAMS_NEEDED_IN_BATCH
    SPOOL_ERROR
    CODEPAGE
    For CLOSE_FORM
    SAPscript: End layout set printing
    Form printing started with OPEN_FORM is completed. Possible closing operations on the form last opened are carried out.
    Form printing must be completed by this function module. If this is not carried out, nothing is printed or displayed on the screen.
    Parameters
    RESULT
    RDI_RESULT
    OTFDATA
    Exceptions
    UNOPENED
    BAD_PAGEFORMAT_FOR_PRINT
    SEND_ERROR
    SPOOL_ERROR
    CODEPAGE
    For END_FORM
    SAPscript: Terminate a form
    Closes the current layout set. Final operations required on this layout set are carried out.
    CAUTION: END_FORM is not a replacement for CLOSE_FORM.
    Parameters
    RESULT
    Exceptions
    UNOPENED
    BAD_PAGEFORMAT_FOR_PRINT
    SPOOL_ERROR
    CODEPAGE
    Thanks & regards
    Sreenivasulu P

  • SAPScript and dynamic tray selection

    Hi,
    A customer of mine has 2 identical SAPScript layout sets defined with 1 minor difference - within the page attributes a different printer tray has been defined (attribute called resource name) in order to choose a different printer tray ...
    I was wondering wether this value could not be dynamically set by the SAPScript output program (when opening the layout set or using a specific command) ?
    I didn't really find any special function or parameter in the open_form function module ... I find it a shame that only for the tray functionality we have to maintain 2 layout sets ...
    Or can this be achieved in a total different way?
    Thanks,
    Steven

    I am not sure if you can change Tray attribute on a page dynamically from print program.
    But I have a suggestion, Why don't you create two pages identical in one single SAPScript just with the Tray different on each one. And call appropriate page while printing dynamically from your program using Function "CONTROL_FORM".
    Advantage in this approach is, you do not need to maintain two different SAPScripts. And all code maintenance in SAPScript is common to both the pages, so do not need to make changes twice.
    Limitation is if you resize any window in one page need to do the same on the other page too. This is still OK because usually you do not resize as often as you make changes in the code.
    Shashi Reddy

  • How to get SapScript and Smartform printed in one spool request?

    Hello experts,
    I want to print the production order package in one spool request.
    Print program consists of Smartform and SapScript.
    First page is in landscape format with barcode(Smartform) and the rest is in portrait format(Sapscript).
    In SAP documentation is written that it is possible for several Smartforms to be printed in one spool request.
    Is it possible for 1 Smartform and 1 SapScript called from a single program to be printed in one spool request?
    I have tested it with calling first the Smartform control-no_close= 'X' without success.
    Can anyone tell me if this is possible and how?
    Thank you.
    Kind regards,
    Danijela

    Hi
    In the driver program .
    *"Selection screen elements............................................
    SELECTION-SCREEN BEGIN OF BLOCK block  WITH FRAME.
    PARAMETERS:
    p_script   RADIOBUTTON GROUP rad1,
    p_smartform RADIOBUTTON GROUP rad1,
    SELECTION-SCREEN END OF BLOCK block.
    *"Selection screen elements............................................
    SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME.
    PARAMETERS:
    p_single RADIOBUTTON GROUP rad2,      " All the spool request
    p_ind    RADIOBUTTON GROUP rad2.
    SELECTION-SCREEN END OF BLOCK block1. " Single spool request
    If p_script EQ 'x'.
    w_form = 'Y_SCRIPT'.
      Elseif p_smartfom EQ 'X'.
       w_form = 'Y_SMARTFORM'.
    ENDIF.
    call function 'SSF_FUNCTION_MODULE_NAME'.
    Call function 'SSFCOMP_OPEN'.
    w_control-no_open   = ' '.
        w_control-no_close  = ' '.
    *"Single spool request..................................................
        IF p_single EQ 'X'.
          w_control-no_open   = 'X'.
          w_control-no_close  = 'X'.
        ELSE.
    *"Individual spool request.............................................
          IF w_flag NE '1'.
            w_control-no_open  = 'X'.
            w_control-no_close = ' '.
            w_flag = 1.
    CALL FUNCTION '    '-----> smartform function module.
    CALL FUNCTION 'SSFCOMP_CLOSE'.
    Regards,
    Sravanthi

Maybe you are looking for

  • Cannot select from dropdown list

    This is very weird. I am a long-time FF user. Suddenly, I find that I cannot select from a dropdown list. Clicking on the list shows all the options but moving the mouse doesn't change the highlighted option. Safe Mode - Didn't help New profile - Did

  • N97 (and general S60 v5 - 5800, etc) iphone style ...

    Howdy all! k, this post has two purposes. first of all, i'm wondering if anyone knows a good iphone-style conversation app (c'mon, you know it's the only thing they have over us, we all want one) that integrates well with the built in "new message" p

  • Establish jdbc connection in WSAD 5.2

    I want to establish jdbc connection in WSAD. I have SQL Server 2000 installed in my system, is it required for me to download the sql drivers to establish the connection or will it be in my system as i have installed sql server 2000. can anybody of y

  • VF01 - Change billing qty

    Hi, can anyone advise how we can change the billing qty directly during VF01?  We are setting up as order related billing and would like to change the qty at the point of billing. Thanks Peter

  • Object width and height

    I realize this isn't exactly the way that Flex works, but I need some help here: I have a UIComponent class that has graphics drawn inside of it (using graphics api and sprites). I need to be able to detect the width and height of this component. Sin