Load Form Screen Printer in C#

Hi all,
How load a form created in screen printer in language c# ?
Exemple:
I use this function to load a form in SAP business one with language VB:
Private Sub LoadForm()
        Dim oxmldoc As New Xml.XmlDocument
        oxmldoc.Load("Form Name.srf")
        SBO_Application.LoadBatchActions(oxmldoc.InnerXml)
        oForm = SBO_Application.Forms.Item("FormID")
        oForm.Visible = True
    End Sub
But, in C# this code not is valid.
Im need a code valid in C#.
Somebody could help?

Welcome Fabio
i use this c# procedure to load a XML:
    private static void LoadFromXML(string FileName)
        System.Xml.XmlDocument oXmlDoc = null;
        try
            oXmlDoc = new System.Xml.XmlDocument();
            // load the content of the XML File
            string sPath = null;
            sPath = System.IO.Directory.GetParent(Application.ExecutablePath).ToString();
            oXmlDoc.Load(sPath + "\\" + FileName);
            // load the form to the SBO application in one batch
            string sXML = oXmlDoc.InnerXml.ToString();
            globals.SBO_Application.LoadBatchActions(ref sXML);
        catch (Exception er)
        finally
            oXmlDoc = null;
            GC.Collect();
lg David

Similar Messages

  • Loaded Forms on the screen and the underline link between the forms-Callee

    Hi Dear Experts,
    I am wondering wehter you would be able to shed some lights on the follwoing and on how SAP handles below situations:
    In SAP when loading up two documnts and try to add items to each using 'List of Items' screen, the systme is clever enough to return back the item code to the relevant screen.
    I need to know that how SAP is holding this trail of formids when returning the select item code to fill in the document lines on the origianl caller doc.
    Is it some kind of  internal array structures or it could be a table in the database which contains the list of loaded forms on the screen and the revelant callee and caller ids.
    Many thanks in advance.
    Maryam Gharib.

    Hi Maryam Gharib,
    You may check this first: how to work with multiple forms
    Thanks,
    Gordon

  • Load form created by screen painter

    hello every one,
    i've a problem. What are the steps to be followed to load a form created by screen painter?  might i have any  sample code In order to understand the various phases? thank a lot

    hi
    lorenzo pelati
      first u   create  a  form in   screen painter , nd after save this form , when  u save this form than this fom  extation is  .srf file,   after that  convert this file  to  .xml
      file ,  and after call  this form to   our application ,
    follow this code.........................................
    in this code  newpa.xml     is a one form xml file.
    in this code   SBOFormEditor_13  is a screen painter  form id,
      private void LoadFromXML( ref string FileName ) {
            System.Xml.XmlDocument oXmlDoc = null;
            oXmlDoc = new System.Xml.XmlDocument();
            // load the content of the XML File
            string sPath = null;
            sPath = System.IO.Directory.GetParent( Application.StartupPath ).ToString();     
              sPath = System.IO.Directory.GetParent( sPath ).ToString();
              oXmlDoc.Load( sPath + "
    " + FileName );
            // load the form to the SBO application in one batch
              string sXML = oXmlDoc.InnerXml.ToString();
            SBO_Application.LoadBatchActions(ref sXML);
        private void SaveAsXML( ref SAPbouiCOM.Form Form ) {
            System.Xml.XmlDocument oXmlDoc = null;
            string sXmlString = null;
            oXmlDoc = new System.Xml.XmlDocument();
            // get the form as an XML string
            sXmlString = Form.GetAsXML();
            // load the form's XML string to the
            // XML document object
            oXmlDoc.LoadXml( sXmlString );
            string sPath = null;
            sPath = System.IO.Directory.GetParent( Application.StartupPath ).ToString();
            SBO_Application.MessageBox("sahe ha " + sPath, 1, "OK", "", "");
            // save the XML Document
            oXmlDoc.Save( ( sPath + @"\newpa.xml" ) );
      public   call form() {
            SetApplication();
            string transTemp0 = "newpa.xml";
            LoadFromXML( ref transTemp0 );
                    oForm = SBO_Application.Forms.Item("SBOFormEditor_13");
            // Show the loaded Form
            oForm.Visible = true;
            SaveAsXML( ref oForm );
       fallow this code .

  • Form is displayed while printed, but not displayed on screen (print preview)

    Dear all,
    We use an Adobe Form to visualise our invoices ... When we print an invoice directly to the printer, everything looks ok and all forms are displayed correctly ... But when we try to watch the same invoice on screen (print preview), we do not see the subform ...
    The property "presence" of the specified subform is "visible", so this is probably not the problem ?
    Does anyone have an idea what the problem could be ?
    Thanks in advance !
    Greetz,
    Kurt.

    Hi,
    please insure your local machine issue.
    use a "CC Cleaner" S/W to your local machine , and then check again .
    Regards
    Puneet

  • Help reqd to display the form without print preview call

    Hi all,
    I did one gate pass form and i want to view the form in my selection screen or output screen(just in monitor) as a display by giving one Z-code.
    i.e, we can view the form thru Print preview...the same preview, i want to display after i give my parameter in the selection screen.
    For example.ZGPOUT if i enter as a t-code.
    it should ask my Gate Pass number in the Selection screen...if its right then my Form will come out to the display screen. (instead of going by Print method).,
    Pls post ur comment and reply me with examples of code,if possible.
    thanks & regards
    sankar.

    the following code are suitable for SMARTFORMS print,please refer to the BOLD section:
    call function 'SSF_FUNCTION_MODULE_NAME'
        exporting
          formname                 = v_form_name
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
        importing
          fm_name                  = v_fm_name
       exceptions
         no_form                  = 1
         no_function_module       = 2
         others                   = 3.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
               with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    *Call Smart form
      <b>data: t_control like ssfctrlop.</b>
      if not p_fax is initial.
        t_control-device = 'TELEFAX'.
      endif.
    <b>  t_control-PREVIEW = ' '.    "space means no print preview.</b>
      call function v_fm_name
      exporting
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
        <b>control_parameters          = t_control</b>
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
      OUTPUT_OPTIONS             =
      USER_SETTINGS              = 'X'
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
        tables
          l_xcredit                = icredit
    EXCEPTIONS
      FORMATTING_ERROR           = 1
      INTERNAL_ERROR             = 2
      SEND_ERROR                 = 3
      USER_CANCELED              = 4
      OTHERS                     = 5
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.

  • Help reqd to display the FORM without Print method.

    Hi all,
    I did one gate pass form and i want to view the form in my selection screen or output screen(just in monitor) as  a display by giving one Z-code.
    i.e, we can view the form thru Print preview...the same preview, i want to display after i give my parameter in the selection screen.
    For example.ZGPOUT if i enter as a t-code.
    it should ask my Gate Pass number in the Selection screen...if its right then my Form will come out to the display screen. (instead of going by Print method).,
    Pls post ur comment and reply me with examples,if possible.
    thanks & regards
    sankar.

    Hi Sankar,
    Its bit ambigious......but logic is very simple...........
    1. Create a Z.....report
    2. Inside this create your selection parameters
    3. Do your logic for the selection screen(use list box option or F4 help) to ask for the gate pass number.
    4. Call the required form. (For print preveiw assign 'X' to tdpreview of ITCPO)
    5. Finally assign your print program to the tcode which will finally do rest of the coding.
    Thanks,
    Mark

  • What are the security settings to lock down a form with fillable fields and yet allow someone with Reader to fill in the fields as will as save the form and print it?

    What are the security settings to lock down a form with fillable fields and yet allow someone with Reader to fill in the fields as will as save the form and print it?

    You want to allow someone to open your document and fill out the form (in the fields you have created), but not change or edit the form, right? Here's the answer - assuming you are using Acrobat Pro and someone will be opening the PDF using at least Acrobat Reader 9 and up:
    Tools > Protection > Encrypt < Encrypt with Password
    Answer YES to change the security.
    A new window opens:
         Do NOT select Document Open (or that will require a password to open the document.)
         Select: Permissions (Check the box next to "Restrict editing and printing of the document.")
         Change the following 2 settings from the drop-down box:
              Printing Allowed: Select High Resolution
              Changes Allowed: Select Commenting, filling in form fields, and signing signature fields
              Leave selected: "Enable text access for screen reader devices for the visually impaired"
              Change Permissions Password (insert a strong password)
              Leave all other settings alone in "Options"
              OK - OK
              Re-enter the Permissions Password (the one you entered above)
              OK - OK
              Save the PDF to apply the security [notice that (SECURED0 will appear after the document title]

  • How do you make sure the form data prints (commercial offset printing)?

    We are commercial printers and have been using a PDF workflow for quite a while now. We recently received a PDF form to print but any information filled in the form just dropped out (all non-data printed fine). When we send it to a laser printer, everything is there but when it goes through the RIP and imposition software (both Heidelberg), all the data is missing.
    When I open the PDF from the client, I am not able to change or even highlight the data. There is a message saying the information is locked.
    We were able to get around the problem by importing the PDF into InDesign and making a new PDF from that but that seems to be an extra step that coulb be avoided.
    Anyone else with a similar problem (and solution)?

    How can you tell that it is an XFA form? If I can identify the form type from when I get jobs like this, I can use the workaround from the beginning.
    Here are a few more screen shots of things that are happening:
    When I try to Print to a PDF:
    When I use the Mac "Save to Adobe PDF" in the print dialog:
    I get this message often:
    and when I try to embed the missing font (PitStop), I get this:
    The only thing that has worked so far is placing the PDF in InDesign and Exporting to a new PDF from there. I guess this is making the flattened PDF that you talked about.

  • Forms 6i prints ugly when using the Forms print command from the menu

    When we use the Oracle Forms print built-in to print the screen-shots, the print-out turns out to be ugly with lots of dots all over.
    We are using Forms 6i (6.0.8.11.3) running on 9iAS on Windows 2000. The version of JInitiator we are using is 1.1.7.31. The forms open up in a separate frame.
    The interesting thing is when we print from a Windows 2000 machine, the screen-prints are OK. But they are messed up when we use a windows 98/95 machine.
    Any suggestions folks? Thanks

    Craig Bagley1 wrote:
    Any clues? I don't find anything in the Finder Help files to explain the Print command's use.
    If in the Finder I pull down the "Help" menu and type "Print" in the "Search" box, I see one "Menu Items" entry and five "Help Topics". If I click on the one for "Printing a closed document", it shows information that discusses printing one document at a time. I don't know if it's possible to print more than one document that way.
    Try this: Open the "Print & Fax" panel of System Preferences. Drag the printer's icon from the list on the left onto your Desktop. The result will be an icon that is an alias for the printer. Now try dragging several documents onto that icon.

  • Develop a form and print program using VBAP, VBAK, MRKT.

    I have 2 tables VBAK [fields: VBELN, ERDAT, ERNAM, AUDAT, VBTYP, VKORG] and VBAP [Fields: POSNR, MATNR, CHARG, WAERK] and In output(form) i need the following fields,
    Output table:
    -VBELN
    -ERDAT
    -VKORG
    -POSNR
    -MATNR
    -MAKTX <- this field is from table MAKT. (I need the Material descriptions too for all the materials.)
    Form Layout should have Header, Logo (SAP ENJOY), Main, Footer.
    Problem is that i need footer only after the End of Complete data in Main Window, thats is footer should be placed only in last window. How should i do that ?
    Logic which i thot to make the print program is : First declare an internal table itab1 with VBAP, VBAP using the above fields from two tables and fetch the product based on matnr.
    declare one internal table itab2 and select the records from the table makt by checking the condition itab1 is not initial.
    sample code.
    IF ITAB1 IS NOT INITIAL.
    SELECT FIELD LIST FROM MAKT INTO TABLE ITAB2 WHERE MATNR EQ ITAB1-MATNR.
    ENDIF.
    hope this shuld work. ?????

    Hi
    see the sample script program and do accordingly
    *& Report  ZTEST12121
    *& SAPScripts Example 1
    REPORT  ztest12121.
    *DATABASE TABLES
    TABLES: ekko,ekpo,lfa1.
    *INTERNAL TABLES AND STRUCTURES
    DATA i_ekko LIKE ekko.
    DATA i_ekpo LIKE ekpo OCCURS 0 WITH HEADER LINE.
    DATA i_lfa1 LIKE lfa1.
    *PARAMETERS
    PARAMETERS: p_ebeln LIKE ekko-ebeln.
    *VARIABLES
    DATA MAT TYPE STRING VALUE 'MAT NO'.
    DATA iTe TYPE STRING VALUE 'ITEM NO'.
    DATA QTY TYPE STRING VALUE 'QTY'.
    DATA UOM TYPE STRING VALUE 'UOM'.
    DATA NET TYPE STRING VALUE 'NET PRICE'.
    Data var type integer value 0.
    *DATABASE SELECTS
    *Header data
    SELECT SINGLE * FROM ekko INTO i_ekko WHERE ekko~ebeln = p_ebeln.
    IF sy-subrc = 0.
    *Item Data
      SELECT * FROM ekpo INTO  TABLE i_ekpo WHERE ekpo~ebeln = p_ebeln.
      IF sy-subrc NE 0.
        WRITE 'PURCHASE DOCUMENT ITEM DATA ERROR'.
      ELSE.
    *Vendor Details
        SELECT SINGLE * FROM lfa1 INTO i_lfa1 WHERE lfa1~lifnr = i_ekko-lifnr.
        IF sy-subrc NE 0.
          WRITE 'VENDOR DOCUMENT ITEM DATA ERROR'.
        ENDIF.
      ENDIF.
    ELSE.
      WRITE 'THIS PURCHASE DOCUMENT NUMBER DOESNOT EXISTS'.
    ENDIF.
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
      APPLICATION                       = 'TX'
      ARCHIVE_INDEX                     =
      ARCHIVE_PARAMS                    =
      DEVICE                            = 'PRINTER'
      DIALOG                            = 'X'
        form                              = 'ZSCRIPT_1'
        language                          = sy-langu
      OPTIONS                           =
      MAIL_SENDER                       =
      MAIL_RECIPIENT                    =
      MAIL_APPL_OBJECT                  =
      RAW_DATA_INTERFACE                = '*'
      SPONUMIV                          =
    IMPORTING
      LANGUAGE                          =
      NEW_ARCHIVE_PARAMS                =
      RESULT                            =
    EXCEPTIONS
      CANCELED                          = 1
      DEVICE                            = 2
      FORM                              = 3
      OPTIONS                           = 4
      UNCLOSED                          = 5
      MAIL_OPTIONS                      = 6
      ARCHIVE_ERROR                     = 7
      INVALID_FAX_NUMBER                = 8
      MORE_PARAMS_NEEDED_IN_BATCH       = 9
      SPOOL_ERROR                       = 10
      CODEPAGE                          = 11
      OTHERS                            = 12
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'OFFICEAD'
       FUNCTION                       = 'SET'
       TYPE                           = 'BODY'
       WINDOW                         = 'OFFICEAD'
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'PODET'
       FUNCTION                       = 'SET'
       TYPE                           = 'BODY'
       WINDOW                         = 'PODET'
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'TOP'
       FUNCTION                       = 'SET'
       TYPE                           = 'TOP'
       WINDOW                         = 'MAIN'
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT I_EKPO.
    var = i_ekpo-netpr * i_ekpo-menge.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'BODY'
       FUNCTION                       = 'SET'
       TYPE                           = 'BODY'
       WINDOW                         = 'MAIN'
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDLOOP.
    CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
      RESULT                         =
      RDI_RESULT                     =
    TABLES
      OTFDATA                        =
    EXCEPTIONS
      UNOPENED                       = 1
      BAD_PAGEFORMAT_FOR_PRINT       = 2
      SEND_ERROR                     = 3
      SPOOL_ERROR                    = 4
      CODEPAGE                       = 5
      OTHERS                         = 6
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Structure of a print program
    OPEN_FORM function
    CLOSE_FORM function
    WRITE_FORM
    START_FORM function
    END_FORM function
    CONTROL_FORM function
    The print program is used to print forms. The program retieves the necesary data from datbase tables, defines the order of in which text elements are printed, chooses a form for printing and selects an output device and print options.
    Function modules in a printprogram:
    • When you print a form you must used the staments OPEN_FORM and CLOSE_FORM. To combine forms into a single spool request use START_FORM and END_FORM.
    • To print textelements in a form use WRITE_FORM. The order in which the textelements are printed, is determined by the order of the WRITE_FORM statements. Note: for printing lines in the body, you can also use the WRITE_FORM_LINES function module.
    • To transfer control command to a form use CONTROL_FORM.
    Structure of a print program
    Read data
    Tables: xxx.
    SELECT *
    FROM xxx.
    Open form printing - Must be called before working with any of the other form function modules.
    Must be ended with function module CLOSE FORM
    call function 'OPEN_FORM'.....
    To begin several indentical forms containing different data within a single spool request, begin each form using START_FORM, and end it using END_FORM
    call funtion 'START_FORM'.....
    Write text elements to a window of the form
    call function 'WRITE_FORM'.....
    Ends spool request started with START_FORM
    call funtion 'END_FORM'.....
    Closes form printing
    call function 'CLOSE_FORM'...
    OPEN_FORM function
    Syntax:
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
    APPLICATION = 'TX'
    ARCHIVE_INDEX =
    ARCHIVE_PARAMS =
    DEVICE = 'PRINTER'
    DIALOG = 'X'
    FORM = ' '
    LANGUAGE = SY-LANGU
    OPTIONS =
    MAIL_SENDER =
    MAIL_RECIPIENT =
    MAIL_APPL_OBJECT =
    RAW_DATA_INTERFACE = '*'
    IMPORTING
    LANGUAGE =
    NEW_ARCHIVE_PARAMS =
    RESULT =
    EXCEPTIONS
    CANCELED = 1
    DEVICE = 2
    FORM = 3
    OPTIONS = 4
    UNCLOSED = 5
    MAIL_OPTIONS = 6
    ARCHIVE_ERROR = 7
    INVALID_FAX_NUMBER = 8
    MORE_PARAMS_NEEDED_IN_BATCH = 9
    SPOOL_ERROR = 10
    OTHERS = 11
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Some important parameters:
    FORM Name of the form
    DEVICE • PRINTER : Print output using spool
    • TELEFAX: Fax output
    • SCREEN: Output to screen
    OPTIONS Used to control attrubutes for printing or faxing (Number of copies, immediate output....
    The input for the parameter is structure ITCPO.
    CLOSE_FORM function
    CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
    RESULT =
    RDI_RESULT =
    TABLES
    OTFDATA =
    EXCEPTIONS
    UNOPENED = 1
    BAD_PAGEFORMAT_FOR_PRINT = 2
    SEND_ERROR = 3
    SPOOL_ERROR = 4
    OTHERS = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Paramerters:
    RESULT Returns status information and print/fax parameters after the form has been printed. RESULT is of structure ITCPP.
    WRITE_FORM function
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = ' '
    FUNCTION = 'SET'
    TYPE = 'BODY'
    WINDOW = 'MAIN'
    IMPORTING
    PENDING_LINES =
    EXCEPTIONS
    ELEMENT = 1
    FUNCTION = 2
    TYPE = 3
    UNOPENED = 4
    UNSTARTED = 5
    WINDOW = 6
    BAD_PAGEFORMAT_FOR_PRINT = 7
    SPOOL_ERROR = 8
    OTHERS = 9
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Some important parameters:
    ELEMENT Specifies which textelement is printed
    WINDOW Specifies which window is printed
    TYPE Specifies the output area of the main window. This can be:
    • TOP - Used for headers
    • BODY
    • BOTTOM - Used for footers
    FUNCTION Specifies whether text is to be appended, replaced or added
    Example of how to use the WRITE_FORM function module together with a script.
    Form layout of the MAIN window
    /E INTRODUCTION
    Dear Customer
    /E ITEM_HEADER
    IH Carrier, Departure
    /E ITEM_LINE
    IL &SBOOK-CARRID&, &SPFLI-DEPTIME&
    /E CLOSING_REMARK
    The print program
    Writing INTRODUCTION
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'INTRODUCTION'
    FUNCTION = 'SET'
    TYPE = 'BODY'
    WINDOW = 'MAIN'
    EXCEPTIONS
    OTHERS = 8
    Writing ITEM_HEADER
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'ITEM_HEADER'
    FUNCTION = 'SET'
    TYPE = 'BODY'
    WINDOW = 'MAIN'
    EXCEPTIONS
    OTHERS = 8
    Set ITEM_HEADER into TOP area of main window for subsequent pages
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'ITEM_HEADER'
    FUNCTION = 'SET'
    TYPE = 'TOP'
    WINDOW = 'MAIN'
    EXCEPTIONS
    OTHERS = 8
    Write ITEM_LINE
    LOOP AT .....
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'ITEM_LINE'
    FUNCTION = 'SET'
    TYPE = 'BODY'
    WINDOW = 'MAIN'
    EXCEPTIONS
    OTHERS = 8.
    ENDLOOP.
    Delete ITEM_HEADER from TOP area of main window
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'ITEM_HEADER'
    FUNCTION = 'DELETE'
    TYPE = 'TOP'
    WINDOW = 'MAIN'
    EXCEPTIONS
    OTHERS = 8
    Print CLOSING_REMARK
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT = 'CLOSING_REMARK'
    FUNCTION = 'SET'
    TYPE = 'BODY'
    WINDOW = 'MAIN'
    EXCEPTIONS
    OTHERS = 8
    START_FORM function
    CALL FUNCTION 'START_FORM'
    EXPORTING
    ARCHIVE_INDEX =
    FORM = ' '
    LANGUAGE = ' '
    STARTPAGE = ' '
    PROGRAM = ' '
    MAIL_APPL_OBJECT =
    IMPORTING
    LANGUAGE =
    EXCEPTIONS
    FORM = 1
    FORMAT = 2
    UNENDED = 3
    UNOPENED = 4
    UNUSED = 5
    SPOOL_ERROR = 6
    OTHERS = 7
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    END_FORM function
    CALL FUNCTION 'END_FORM'
    IMPORTING
    RESULT =
    EXCEPTIONS
    UNOPENED = 1
    BAD_PAGEFORMAT_FOR_PRINT = 2
    SPOOL_ERROR = 3
    OTHERS = 4
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CONTROL_FORM function
    The CONTROL_FORM function module alows you to create SapScript control statements from within an APAB program.
    Syntax:
    CALL FUNCTION 'CONTROL_FORM'
    EXPORTING
    command =
    EXCEPTIONS
    UNOPENED = 1
    UNSTARTED = 2
    OTHERS = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Example:
    Protecting the text element ITEM_LINE
    CALL FUNCTION 'CONTROL_FORM'
    EXPORTING
    COMMAND = 'PROTECT'.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    TEXELEMENT = 'ITEM_LINE'.
    CALL FUNCTION 'CONTROL_FORM'
    EXPORTING
    COMMAND = 'ENDPROTECT'.
    Regards
    Anji

  • Mail does not load mail screen

    I upgraded as MBP form 10.6.8 ro 10.7.4 via image(I have done this many times).  When you open mail for the 1st time, it does a conversion of all the mail boxes.  At that point mail typically, loads the screen with all of your mail boxes, etc.  That screen never loads.  Mail Preferences do not load when you choose them.  I can create a new mail message but then can not see the screen. 
    Where are the mailboxes and pslists kept for a users mail account in Lion???

    You might also ask this in the MobileMe forum https://discussions.apple.com/community/mobileme/mobileme_on_my_mac since not all of us here use MobileMe.

  • Display form & simultaneously PRINT in background

    We have a custom application, where a program is used to generate an adobe print form designed for some legal purposes. When we execute the program, the form gets displayed, after which the user prints it. Can this print function be made automatic without any user intervention? That is, when the program is executed, the legal form is displayed on screen, and also the form gets printed in background?
    We have done quite a few reports, spool_2_pdf and then e-mailing the PDF. But I believe the requirement above is different.
    I have searched and read the different posts, and did not find anything to my requirement described above, so please excuse me and help me out if I have missed reading something.
    Thank you,

    Hello
    Frontend printing from a batch process cannot work, as there is no GUI connection.  
    Kindly refer to SAP note -
    519059 - FAQ: Background processing system
    Regards.

  • Quick View Forms not Printing

    Hello,
    I can't find anything on this subject anywhere so I thought I'd bring it up here.
    I have a custom entity form that contains 2 quick view forms. It works great on the screen, but when the sales reps print them out the quick view forms do not print the info that shows on the screen. Frustrating!  Anyone know how to fix this? 
    I don't want to build out relationships to use subgrids, I simply want my quick view forms to print as they should.
    Thank you

    Quick Look was missing from my Finder as well. I resolved it by;
    Open Finder.
    Select View --> *Customize Toolbar...* from the menu bar.
    Drag the *Quick View* icon to the button bar above. I placed it between the View and Action buttons.
    love,
    shmoo

  • Follow-up - Loading forms

    Listed below are details on my original problem.
    One solution I am trying has been to in the connection settings of my browser is to set the proxy to (local, 27.0.0.1) then direct form builder to my browser (firefox) using preferences and selecting run-time tab and selecting the firefox.exe file. Unfortunately I am being told by the browser that it requires to load additional software to solve the problem. Are there other setting that I need to create with in Oracle to allow it to run a form??
    I am a student doing course in Oracle and have been setting up Oracle on my home computer, could I ask that response provide a reasonable amount of detail/steps that may help lead a novice through the process, thanks.
    All assistance would be kindly appreciated
    Regards
    James
    The problem is that I get into Oracle, start SQLPlus, create some tables, start-up sJ... start-up/initialisation and then load form builder and open form file. If I try to run the form, I am first asked to log into the database that allows my tables to be read/write in the form. Then a html window appears but there is no form instead I get the following:
    Run Form -
    Explorer window appears
    Address field is: c:\documents and settings\james\local settings\temp\s3gs.3htm
    In the window the following appears:
    <html> <head> ORACLE FORMS.</head>
    <body onload="document.pform.submit();">
    <form name="pform" action=http://thomson:8889/forms90/f90servlet method="POST">
    <input type="hidden" name="form"          value="c:\Oracle_TutData\Results\CustomerDemo.fmx">
    <input type="hidden" name="userid"          value="SCOTT/AMAZON@">
    <input type="hidden" name="obr"          value="yes">
    <input type="hidden" name="array"          value="YES">
    </form> </body></html>
    Run Form Debug -
    Explorer window appears
    Address field is: c:\documents and settings\james\local settings\temp\s3gs.4htm
    In the window the following appears:
    <html> <head> ORACLE FORMS.</head>
    <body onload="document.pform.submit();">
    <form name="pform" action=http://thomson:8889/forms90/f90servlet method="POST">
    <input type="hidden" name="form"          value="c:\Oracle_TutData\Results\CustomerDemo.fmx">
    <input type="hidden" name="userid"          value="SCOTT/AMAZON@">
    <input type="hidden" name="obr"          value="yes">
    <input type="hidden" name="array"          value="YES">
    <input type="hidden" name="debug"          value="YES>
    <input type="hidden" name="HOST"          value="thomson">
    <input type="hidden" name="PORT"          value="2146">
    </form> </body></html>

    James,
    add the following variable in the Oracle Home entry in the registry as a new String value
    FORMS90_HIDE_OBR_PARAMS
    The value of this variable should be set to 0 (zero).
    The problem you face is caused by a feature that is supposed to hide the username/password details from the request URL when starting Forms from the development environment. At least on XP there are known issues with this. Using teh variable above switches this feature off.
    Frank

  • How to Screen Print from Windows 7 in Bootcamp Without "Fn" Key ?

    Dear Friends,
    For GIS software, I have Windows 7 on my Imac 7, which uses Mac OS X 10.6.8. All of the information which I have found on the Internet about doing a screen print for Windows 7 in Bootcamp on this operating system state that 1. pressing Fn + F11 prints the screen and 2. Option+Fn+F11 prints the active window. Unfortunately, the two Mac keyboards, which I have, do not have a "Fn" key.
    Is there anyway to do a screen print without a "fn" key on a person's keyboard?  If so, how does a person do it?
    Any answers that can be provided for the above questions will be greatly appreciated.

    You should ask Windows questions in the Windows forums. But here is an answer: In Windows using these keystrokes, Start > All Programs > Snipping tool.

Maybe you are looking for

  • Creating '3D-Crosswords' in Photoshop CS4/5

    How does one create 3D-crosswords similiar to those seen in the link below? A complete step-by-step isn't expected, but rather the main steps involved in the creating images such as those. I haven't had any luck searching for tutorials on this subjec

  • OIM Design Console startup error

    Trying to run the Design Console, but it gives following error. This is a new install 11.1.1.5 install and Admin,User console is working fine (on Windows environment) But Design console gives following error. Exception in thread "main" java.lang.NoCl

  • Oracle jdbc driver with debug capability

    I have been using MagicDraw UML to reverse engineer DDL and UML classes from Oracle databases. I recently loaded some public domain hydrology data using FEM, a geophysical data translation tool. After doing this, I get: Parsing failed (Oracle - sampl

  • Setting image resolution default to pixels/cm?

    Hi all, A small question:  is there a way to set PS CS5's default for image resolution to pxels/cm? In Preferences (with no file open), I've set rulers to mms, and whatever I can I've changed from pixels/inch to pixels/cm.  But when I open an image,

  • HTML e-mail

    Hi guys, I use Apple Mail on an Intel Mac running OS X 10.6.8 and I am getting HTML emails come through as just the code. I've tried adding the sender to safe senders on Mail but it's still happening. Does anyone have any tips? Is there something I n