How to configure print settings in smartforms

Hello friends,
    I was given a task to develop smart forms..everythign is working fine but i am left with following queires,
  so far i ddint maintain any print related parameters,
i understand i need to work on three parameters now
1)CONTROL_PARAMETERS   
2)   OUTPUT_OPTIONS
3) USER_SETTINGS   
now i have seen other forms at our place and seen
in control parameters they pass
  p_control-langu     = 'EN'.
  p_control-no_dialog = 'X'.
in output
  p_output-tddest     = 'LP05'.
  p_output-tdnewid    = 'X'.
  and for user_settings
user_settings =  ' '
but
the same changes are giving me error....
can any one tell me why?
next if i remove them and give them at runtime i get no sort of problem..
so how i do give them with in program?
next what si the role of user_settings...
why is it ' '...
shud it be 'X'..
next when i give print parameters in DEVELOPMENT..
when i move it to QUALITY...(settings will remain same as DEV) will it cause problmes?(like may be in QUA p_output-tddest     = 'LP05'. needs to be modified?)..
any links,material to help me know more abt this issue wil be rewarded..
thnaks

Hi kumar,
     Please find the below thread.....
convert smartform output into pdf
Re: Euro symbol in PO Layout output preview
data: C_FORMNAME TYPE TDSFNAME.
DATA: G_FM_NAME TYPE RS38L_FNAM.
c_formname = 'ZKAR_SF2PDF_EXMPL'.
To get output device type
CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
EXPORTING
I_LANGUAGE = V_LANGUAGE
I_APPLICATION = 'SAPDEFAULT'
IMPORTING
E_DEVTYPE = V_E_DEVTYPE.
ST_OUTPUT_OPTIONS-TDPRINTER = V_E_DEVTYPE.
ST_CONTROL_PARAMETERS-NO_DIALOG = 'X'.
ST_CONTROL_PARAMETERS-GETOTF = 'X'.
Call Function to get the Function Module name for the smart form
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = C_FORMNAME
IMPORTING
FM_NAME = G_FM_NAME.
IF SY-SUBRC 0.
Check for Errors
ENDIF.
Call Smartform function module without hard coding
CALL FUNCTION G_FM_NAME
EXPORTING
CONTROL_PARAMETERS = ST_CONTROL_PARAMETERS
OUTPUT_OPTIONS = ST_OUTPUT_OPTIONS
USER_SETTINGS = 'X'
ADD YOUR DATA STRUCTURES HERE
IMPORTING
DOCUMENT_OUTPUT_INFO = ST_DOCUMENT_OUTPUT_INFO
JOB_OUTPUT_INFO = ST_JOB_OUTPUT_INFO
JOB_OUTPUT_OPTIONS = ST_JOB_OUTPUT_OPTIONS
TABLES
ADD YOUR DATA TABLES
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
IF SY-SUBRC 0.
On Failure display standard Message
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
Also see this related note:
Note 1072424 - Error from SSF_GET_DEVICE_TYPE when lang is not installed.
Reward points.....
Regards,
Sreenivasa Sarma K.
Edited by: sharmashree kashi on Apr 7, 2008 4:03 PM

Similar Messages

  • How to transfer printer settings from one Mac to another (both OSX)?

    Hello, I have not found a detailed description on how to transfer printer settings from one Mac to another.
    My issue is that I have a Mac G5 with 3 different settings saved as "presets" for the same printer. This works great, since the posters I print (on the large format printer) need different margins and different paper at times.
    This G5 is basically retired and only used for printing. G5 has OSX 10.3.9
    I have a MacPro as its replacement (OSX 10.4.11).
    The MacPro has all my apps and other settings setup to my liking.
    I found several links via Google saying copy this folder or directory, but I am not sure I did it correctly. I don't see the "presets".
    I tried launching the Migration Assistant (I hope that's the correct name), but was concerned the settings on the new MacPro would be overwritten with ALL the old stuff on the older G5. I did not start the transfer process because of this.
    If someone would list the steps needed to accomplish the transfer of printer settings or advise if this is possible, then I would be very grateful! The previous user of the G5 I am using was a "Genius" and I don't know how he created these "preset" choices.
    Thanks!

    Hi SCChelpdesk, and a warm welcome to the forums!
    I found several links via Google saying copy this folder or directory, but I am not sure I did it correctly. I don't see the "presets".
    This is the File that holds that info on Tiger, not certain on Panther...
    /Users/YourUserName/Library/Preferences/com.apple.print.custompresets.plist
    After moving, you very well might have to change the Owner's Permissions within Get Info window, then log out/in.
    I tried launching the Migration Assistant (I hope that's the correct name), but was concerned the settings on the new MacPro would be overwritten with ALL the old stuff on the older G5. I did not start the transfer process because of this.
    MA would transfer the info, but/and, if the user that had that info had the same Shortname as on the new one, it'll demand you give it a new Shortname to use... but then those settings would be transferred to that new user on the new machine. I think the 1st one will work though.
    The previous user of the G5 I am using was a "Genius" and I don't know how he created these "preset" choices.
    We can go through that way if you like... not all that hard.

  • How to write print program for smartforms

    Hi all
    I need to develop new smartform and its print program.
    But Im not experience in writing print program for smartform.
    Ive gone through the simple print program sample that use only one table as input and one table for output.
    But my smartforms require few tables for input and output.
    How should I define the Data?
    Can anyone guide me on how to write it.
    Thanks & Regards
    az

    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)&
    5. Calling SMARTFORMS from your ABAP program
    REPORT ZSMARTFORM.
    Calling SMARTFORMS from your ABAP program.
    Collecting all the table data in your program, and pass once to SMARTFORMS
    SMARTFORMS
    Declare your table type in :-
    Global Settings -> Form Interface
    Global Definintions -> Global Data
    Main Window -> Table -> DATA
    Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
    http://sapr3.tripod.com
    TABLES: MKPF.
    DATA: FM_NAME TYPE RS38L_FNAM.
    DATA: BEGIN OF INT_MKPF OCCURS 0.
    INCLUDE STRUCTURE MKPF.
    DATA: END OF INT_MKPF.
    SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
    SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
    MOVE-CORRESPONDING MKPF TO INT_MKPF.
    APPEND INT_MKPF.
    ENDSELECT.
    At the end of your program.
    Passing data to SMARTFORMS
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
    formname = 'ZSMARTFORM'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = FM_NAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    if sy-subrc 0.
    WRITE: / 'ERROR 1'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function FM_NAME
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    GS_MKPF = INT_MKPF
    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.
    Reward points...

  • How can i print data in smartforms from ABAP program.

    Dear gurus:
    in my abap program i process require data, and saved in a internal table.
    how can l print the data in smartforms.?
    who can give me a code sample is better:)
    reward all helpful advise.

    Try this....
    1) Tcode --> SmartForms
    2) Form name --> Z_SF_TEST Create
    3) Under Global settings
    a) Form Interface  
        Table Tab
       ITAB LIKE EKPO
    b) GLOBAL Definitions
    WA_NETPR LIKE EKPO-NETPR
    In smart forms if we want to display quantity and currency fields. We can't directly display currency field and quantity fields
    For that we have to create an extra variable in global definitions
    Ex: netpr FIELD of EKPO
    CREATE program lines and specify WA_NETWR = itab-netpr.
    4) RT CLick on main Window
       CREATE --> TABLE
      Click Table painter
    DEFAULT %LTYPE will be Created
    a) If you want more like Header footer etc add by rt click on %LTYPE1
    Table (Tab)
    %LTYPE  Radio(SELECT) 5 CM 5 CM 6 CM
    CLICK on DATA (Tab)
    INTERNAL TABLE ITAB LIKE ITAB
    5)RT click on table control and create --> program lines
    General attribute (Tab)
    INPUT PARAMETER               OUTPUT PARAMETER
    itab                               WA_NETPR
    Code Area
    WA_NETWR = ITAB-NETPR.
    6) RT CLcick on table ctl and create 3 text to display the fields
    a) % text1 +button(insert field)
       FIELD name &itab-ebeln&
    Output options (tab)
    Check New line   LINETYPE   %Ltype1
    check new cell
    b) % text2
       & itab-ebelp&
    output options
    check new cell
    c) % text2
       & wa_netpr&
    output options
    check new cell
    <b>Report ac
    Tables ekpo.
    Data: itab1 like ekpo occurs 0 with header line.
    select * into table itab1 from ekpo.
    Call function module --> smart form function module and pass your internal table</b>
    Regards,
    SaiRam

  • How to get Print settings dialogue?

    I have a Mac and a canon P9000 Mark 2 printer with Photoshop CS5.  I can find no way to change the size or type of paper I am using.  I know the print settings box has been removed from the file menu.  I go to Print Settings at the color management menu and I get no choices, just a click to print or to PDF.  No paper size, no paper choice etc.  I have the most recent Canon Driver (dated 9/09, but according to Canon's download menu the most recent).  This is really frustrating.  How do I get the dialogue running correctly?

    Look at FM 'SSF_FUNCTION_MODULE_NAMECALL used to interface smartforms into abap
    FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      FORMNAME = '<form name>'
    IMPORTING
      FM_NAME = fm_name
    EXCEPTIONS
      NO_FORM = 1
      NO_FUNCTION_MODULE = 2
      OTHERS = 3.
    IF SY-SUBRC <> 0.
    <error handling>
    ENDIF.
    Regards

  • How to retrieve print settings from .rpt file?

    I have crystal reports 10 report file, in which I edited the printer settings... collate and number of copies(2) and saved it.
    now i want to print it from VB6. I am using a customized print dialog form (not using the common dialog control)
    I want to get the collate and number of copies settings from the rpt file. how can I get those details. any API available?

    Hi Samkar,
    It will look something like this:
    crReport.SelectPrinter "pscript5.dll", "HP LaserJet 8150 Series PS", "LPT1"
    crReport.PaperOrientation = crPO
    crReport.PaperSize = crPSS
    crReport.PaperSource = crPSR
    crReport.PrinterDuplex = crPRDPDefault
    crReport.PaperSource = crPRBinEnvelope
    Depending on the version you have depends on if the function is available. It may be that 10 did not h ave the Papersource member.
    Thanks again
    Don

  • How to configure Internet settings on Iphone 4, os 4.3

    Hey I got replacement handset from apple store...But the problem is I lost my internet and mms settings ....How to configure internet and mms in os 4.3??Hey I got replacement handset from apple store...But the problem is I lost my internet and mms settings ....How to configure internet and mms in os 4.3??

    There are none unless it's built in to the Skype app.

  • How to configure SIP settings on Nokia E51

    Hello to all.
    I need help. I have
    Username
    Authentication Username
    SIP address
    SIP Password
    Domain
    Outbound Proxy
    in one of big SIPs provider but i cant configure my phone work with it. Please help me. I allready installed SIP Voip settings from nokia store.

    Have you checked out this post upon forum http://discussions.nokia.com/t5/Connectivity/Nokia​-E51-SIP-Settings/m-p/481535/highlight/true#M24073 or this resource?http://www.voip-connections.com/wp-content/uploads​/2011/06/How-to-configure-Nokia-E51-and-E71-to-con​...
    Happy to have helped forum in a small way with a Support Ratio = 37.0

  • Installed new wireless router; don't know how to change printer settings

    I just changed the wireless router which has created a problem with printing. I don't know what I need to do to change the printer settings to accommodate the new wireless router. Would greatly appreciate any help with how to do so. I'm on Windows XP, SP3 with a HP all in one on a wireless laptop (don't have wired connection). Wireless router is a linksys. Security AVG 8 trial version. Thank you!
    This question was solved.
    View Solution.

    What is the model of your printer? Did you install the printer via a USB previously?
    Please click on KUDOS if you find my solution helpful.

  • How to set print settings

    I have an Epson R260 printer and previously printed using photoshop Elements, with Elements managing the color. I am trying to figure out how to print using iPhoto.
    When I choose a photo and click the print button, I get a box that has 4 presets: "Photo on Photo paper", "Photo on Photo Paper - Fine", and 2 more for matte paper. I pick the Photo on Photo Paper - Fine preset and click the Print button. This gives me another print dialog, again with a Presets drop-down, but now with "Standard" available and preselected. Should I re-select the "Photo on Photo Paper - Fine" option here? Or leave it at Standard? There also is an "Advanced" button, which allows me to choose Print Settings -- once more allowing me to select a paper type and print quality, as well as color management, where I can set what looks like parameters for the Epson print driver -- Mode (Epson Vivid is preselected, but Standard and Adobe RGB are other selections) and Gamma (1.8 is preselected, but 1.5 and 2.2 are available).
    I've gone through 3 or 4 different tries at combinations and either get something rather garish, or too dark. Can someone help out?

    Jim:
    What I do is create a special setting for the printer while in PSE with the settings for the paper quailty and other items that you use for best prints and save with a custom name. Then go thru the print process in iPhoto selecting the printer and print size. Then in the last window you can select the custom setting that you developed earlier.
    You'll be able to use those settings from any application.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • How to change printer settings from serverside?

    Hello
    I have an ActiveX component which when loaded from client side browser changes its printer settings that is orientation from portrait to landscape. But when user clicks on this "print this page" link, download ActiveX component message is displayed. If anybody can help, how to do from serverside (IBM WebSphere) so that these messages are not displayed & printer dialog box settings change to A4, Landscape.
    Looking forward for an early reply.
    Thanks

    Though server is not connected to client side printer but when serverside script which is embeded in "Jsp" & when client(user) clicks on "print this page" link, script changes user browser settings to "portrait, a4" so there is no need to download ActiveX control which is sometimes diasbled in client browser or message is display to download that component.
    I heard there is serverside script which removes all these disadvantages?
    Looking forward for an early reply.

  • How to configure print server in UNIX?

    Hi everyone,
    Can someone guide me about how to configure a print server when EPM products are installed on a Linux server?
    Thanks,
    Sayantan

    Hi,
    Additionall, you may need to check the configuration of radius server on server 2012.
    And you must make sure that the shared-key must be the same on both server and client side.
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/8e9e3d1b-70c2-4350-af8b-a83284b37c0f/install-a-radius-server-on-windows-server-2012?forum=winserverNAP
    Best Regards
    Quan Gu

  • How to configure printer...

    How can I configure a printer in Oracle Apps ?? What is the document that one can follow for configuring a printer in oracle apps??
    Regards,

    Hi,
    Refer to the following notes, it should be helpful:
    Note: 269129.1 - How to Implement Printing for Oracle Applications: Getting Started
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=269129.1
    Note: 297522.1 - How to investigate printing issues and work towards its resolution?
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=297522.1
    Note: 200359.1 - Oracle Application Object Library Printer Setup Test
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=200359.1
    Regards,
    Hussein

  • How to fix printer settings-only prints left side of page?

    how do i straighten out printer settings as printer only prints left side of page.i have a 2008 imac.   thank you 

    Have you contacted Canon Support? 

  • Pixma mg3222 how to change printer settings

    I have the pixma MG 3222 printer need help changing the printer settings to print a template by Avery #5931 (cd label)

    Hi,
    using SPAD transaction you can change printer setting. although you can change device setting, character setting etc,
    Regards,
    Kunjan

Maybe you are looking for

  • Assigning value to a UDF

    Hi, I created 2 UDF's in PO header. When I assign values to the UDF's only one UDF gets the value. Below is my code: Dim UDF1 As SAPbouiCOM.EditText = frmUDF.Items.Item("U_UDF1 ").Specific Dim UDF2 As SAPbouiCOM.EditText = frmUDF.Items.Item("U_UDF2")

  • Photo Stream Sharing Difficulties

    My daughter is currently travelling in China and has shared a dedicated photo stream with me. She's on a 5C running 7 and I'm on a 4S running 7. I have been able to add photos to her stream which she can see, but I can't see any of her photos. She's 

  • Connecting to my Desktop

    I have been trying to connect to my PC at work. I can connect virtually from any PC to my work PC, changing any computer into the desktop of my work computer. I cannot do this with my Powerbook in either Safari or Firefox because they don't have acti

  • Just replaced iphone battery!! Please help!! Ear speaker does not work.

    I just replaced my iphone 3g battery. It seemed to go smooth. Everything works normally except the ear speaker doesnt work. When i try to make an outgoing call i cant here it ring, but my phone will actually call another phone. Does anyone know what

  • I would like to cancel my order, order no: AD001440537EU. Products ordered: Adobe Export PDF, Annual.

    I would like to cancel my order, order no: AD00144537EU. Products ordered: Adobe Export PDF, Annual. What do I have to do? Regards, Lányi Péter Pálné (Mrs)