Selecting Printer defined in VV22 Transaction for Smartform printout

Hi All,
Can any one help me. My requirement is to print a picking list output using smartform automatically when ever a transfer order is generated.
The main problem is i have to select the printer which is defined in VV22 Transaction for that particular output type but when the smartform is called it is taking the printer defined in SU3 transaction.
I have developed the smartform and now done the setting for automatic printing also by passing NO_DIALOG = 'X' when the function module is called but unable to set the printer defined in VV22 Transaction.
Please let me know if you know the solution.
Regards
Ravi

I think u can directly pass the printer name in ur driver program.
eg:
data: l_t_out TYPE ssfcompop.
l_t_out-tddest    = 'LOCL'.
      CALL FUNCTION l_f_fname   -
> Smartform Function Module Name 
      EXPORTING
            archive_index =  toa_dara
     ARCHIVE_INDEX_TAB =   TSFDARA
      archive_parameters =  arc_params
          control_parameters         = l_t_control
          output_options             = l_t_out
          user_settings              = space
          p_langu                    = p_langu
        TABLES
          g_t_item               = g_t_final
   EXCEPTIONS
     formatting_error           = 1
     internal_error             = 2
     send_error                 = 3
     user_canceled              = 4
     OTHERS                     = 5.
Rgds,
Pavan

Similar Messages

  • Material document printing: is program SAPM07DR prepared for smartforms?

    Hi everyone.
    We need to do a smartform to print material documents through a new output type. Do you know if program SAPM07DR is prepared to work with smartforms? I don't think so, I see that it is prepared for sapscripts and PDF-forms, but it seems not to be prepared for smartforms.
    In case that it is not prepared to work with smartforms, do you know any standard program that print smartforms for material documents?
    Thanks in advance.
    Regards.

    These programs doesn't fit with the requirements. I have found program SAPFM07P_SMART, but the problem is that this program is prepared to print an smartform per material document item, and I need to print a smartform for the whole material document information.
    So if you don't know any other program, I suppose we will have to addapt a copy of SAPFM07P_SMART to work with the whole material document, and not with every item.
    Thanks.

  • Printing Material Description in Arabic for Smartform

    Hi All,
    I have created a custom smartform for printing the PO, Sales Invoice.
    The material description is maintained from RTL-Arabic language in Material Master(MM02) - محبس بليه بلاكورين 75م.
    I need to print the above material description alone within the Item window in arabic language as displayed above but it is getting reversed when I see the print preview of PO and Sales Invoice.
    Initially, I got to know from some SDN forum replies that we need to enable Arabic Font in our workstation(PC) so that it can be solved and then some suggested that Arabic font should be installed in SAP system.(Tried both the options, but could not resolve issue).
    Even we tried in SE63 to translate the text but we couldnot.
    SE63->Translation->ABAP Objects->Other Long texts->FS(Forms & Styles)->SSF->Smartform Name->Source/Target Lang->Edit. Window with the english version opens at the top and at the bottom, there is an editable window for translation.
    But I could not further proceed as I didnt know how to do translation for the text elements.
    Correct me if I am wrong in these steps.
    Could anyone suggest me a solution to resolve this issue and explain the steps to do the translation in SE63.
    Earliest reponse will be appreciated.
    Rgds,
    JK

    Jay,
    Yes we tried using the STRING_REVERSE FM. But the thing is the description contain some numerals in between the text, so it get reversed if we use the FM. So it wont suit our purpose.
    Is there any printer configuration to be done to resolve this issue? Or any other settings within the smartform?
    We have to display the text as maintained in Material Master, the variable get populated correctly while debugging but it get reversed when we look at the print preview.
    Rgds,
    JK

  • How to activate Printing option in FBCJ transaction ?

    Dear all,
    How to activate Printing option in FBCJ transaction for cash journal?
    It is in suppress mode.
    Is it through BASIS/ABAP/Configuration ...... ?
    Pl' reply.

    Hi:
    If the Printing option in FBCJ transaction for cash journal is supressed
    excute /nsu53 and you can see the authorization objects.send them to basis administrator. After giving proper authorization, you can print cash journal.
    Please let me know if you need more information.
    Assign points if useful.
    Regards
    Sridhar M

  • 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 not to print all the pages of a smartform? (for tr F150 - Dunning)

    Hi Forum
    We have the follow situation:
      For DUNNING (transaction F150) the user want stamp 3 diferents SMARTFORM.
       For the first time the transaction is executed is required only a list of documents, for the second time (via sample printout, indiv dunn notice or dunn history)  once the legal data of the customer is updated, the user wants the list of documents, a letter for the lawyers and a letter for the client, in the follows executions  (3 and up) the user can require only the list of documents or all smartforms (list and letters)
      Via customizing we can control the normal dunning and the legal dunnig, but once the client is in legal status the transaction create only the legal smarforms.
    We found  an user exit associated  EXIT_SAPF150D_001. in the F150 transaction, but is not complete, in sense that are failed some parameters .
      Another option is create an unique smartform with 3 pages where we can control the case for the print, but here is where we ask: How we can do to print a specific page of the smartform without print all of them (how can we print the 2nd and 3rd page without print the firs one) ??
    To control the 3rd execution, we can create a dictionary table with a flag .
    Thank you for your help

    You could create a report containing all the single reports in one using UNION. This report could be placed on a "hidden" page. The link for downloading that report you can place on your page. That should work.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    https://apex.oracle.com/pls/apex/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494

  • Duplex printing for smartform

    Hi,
    Has anyone worked on Duplex printing for smartform? If yes, please tell me the procedure/steps that need to be taken for the same.
    Thanks
    Regards

    Hi,
    You can select Duplex printing in th epage properties of a page (D = Duplex)
    The printer STARTS duplex printing from that page. This means that the printer triggers a pagefeed on that exact moment and starts printing on a new page. So when you have 1 page that stretches over more that one sheet of paper this means trouble. after every page the flow of the program starts a new Duplex print (thus feeding the current sheet and starts at a new page) this results in a new sheet of paper every page. this is not what you want.
    You can solve this by creating 2 pages and set their respective NEXT PAGE to each other. Page 1 you set to DUplex, pagae 2 you leave blank..
    But notice that when you select duplex printing most (if not all) printers start printing on the backside of the paper. When you use pre-printed (logo) paper, you will find that it prints the front on the back etc.
    This can sometimes be corrected (if needed) by sending prescribe commands to the printer directly.
    Good luck!
    Joris

  • Adding bar codes to printer device for smartforms pdf conversion?

    Hello friends,
    I would like to send a smartform as a pdf to an email recipient. The smartform shows some bar codes. The send process workes fine. But the bar codes doesn't appear on the pdf correctly. Therefore I would like to add bar codes to the printer device type in transaction SE73.
    Does somebody know the device type for smartforms pdf conversion? Or how can I add bar codes to smartforms pdf conversion process?
    greetings
    daniel

    Hello Denial,
    Try these links, this might solve ur problem
    http://www.tec-it.com//documentation/TBarCodeSAPLPD_EN.htm
    http://www.mecsw.com/info/appnote/app_024.html
    if you need any more information send me at [email protected]
    Thanks & Best Regards
    Ankur Jain

  • To find print program for smartforms.

    pls tell me how to find print programs for smartforms.pls tell me with all steps.clearly.i tried with tanpr table but unable to find

    hi,
    Please take a look at the NACE transaction where all the output conditions will be configured. Drill down into you specific application and you should be able to find the print program as well as the smart form name.
    Steps..
    Use NACE and follow procedure as follows
    1)Choose Application from list(eg PO)
    2)Click OP type
    3)Chose one OP type from Right pane.
    4)Click on processing routines
    and you got it
    regards,
    keerthi

  • How to do selection of the Matt Black/ Photo Black in the print setup of Acrobat Pro (for an Epson 7890).

    How to do selection of the Matt Black/ Photo Black in the print setup of Acrobat Pro (for an Epson 7890) ? Selection of the media ?

    Acrobat's print dialog doesn't deal with hardware-specific features, for that you have to click on the "Properties" button next to the dropdown printer selection field.

  • Why doesn't saving a print preset for selection printing work anymore? It previously did up to version 2.

    I regularly like to highlight areas on web-pages, select print/name a print preset as "Print Selection" and check-mark 'Print Selection Only' of Options under the Firefox sub-heading. Then when I wanted to quickly print a selection instead of a whole web-page, I just highlighted an area, activated print, selected "Print Selection" and then checked print preview to view the selection before printing. That worked from version 2 only.
    Now in version 3 +, all above can be done '''except''' the check-marked 'Print Selection Only' option in the Firefox sub-heading keeps resetting itself, even IF you have saved it check-marked as a print preset. Selecting the saved preset "Print Selection" next time will print (preview) the whole web-page, and not what was highlighted (selected) for printing. Why was this feature turned off?

    baileyb1 wrote:
    My skype used to work, and now it doesnt work anymore. I just get an error message now.
    Access violation at address "Skype.exe" Read of address 0000000048.
    Help, it used to work before but no longer. I dont know how to get it working again.
    Baileyb1
    Open Windows Event Viewer -> Custom Views -> Administrative Events. Look for the recent error messages with timestamp corresponding to Skype crash. Copy and paste here the text from the General tab.

  • PDF as default selection for Select printing cotrol (for Web)

    Hi
    Can someone point me to righ direction? What we are trying to do is, in Infoview, set PDF as default selection for "Select printing Control (for Web)", so that each user does not have to do this in preferences in infoview.
    Is it possible to do so? If yes, how?
    Thank you
    Regards
    IMS

    Take a look for a .vbs sample that synchs the ADMINISTRATOR preferences to all users on the BOE platform.
    You can schedule this as a PROGRAM OBJECT in InfoView so that it runs on a regular schedule to apply the change to new users.

  • How to modify & use Printer Defination files for Character Mode Report

    How can use & modify printer defination files for changing formats & orientation in character mode report. I donot know how to use printer defination files I tried to set the system parameter (Desformat) but it doesn't work.

    I m also faced same problem that u face,
    If u want to make character mode report so plz follow these instructions:
    1. Set the properties of Report Name Node in Character Cell is Yes.
    2. Change the mode of the System Parameter Mode is Character.
    3. Goto the Layout---> Main Section Properties and set the Character Report Width and Height like 132 and 66
    4. Create Formula Column and write this code "RETURN(CHR(14));"
    5. Goto Layout Model and map this formula column into Header of the Body Like If ur Company Name is "ABC COMPANY" attached with field and map Formula Column.
    5. Goto Printer Definition File DFLT.prt open in NotePad and set width and hieght that u set in Main Section of Report.
    6. At Last u Run the Report with Some System Parameter or User Parameter and View as Character Mode Report.
    In My Case I used EPSON LQ2180 Printer
    So, U Ask More Qustion and u have more knowledge About character mode report Plz Mail me at this address.
    Shahid Shafi
    [email protected]

  • KP06 - No transactions for cost planning are defined in the Nos range table

    Dear CO Experts,
    I m trying to post Cost Planning using T-Code KP06.
    please help, the Error which pops is :
    *No transactions for cost planning are defined in the number range table*
    *Message no. K8007*
    *Diagnosis*
    *You want plan primary or secondary costs/revenues in controlling area 9000. This is not possible because no entries exist in the number range table for the cost planning transactions you want to perform.*
    *This is an internal system error.*
    *System Response*
    *Processing is terminated.*
    *Procedure*
    *Start program RKTKA04C.*
    *Execute*
    *After the program has run successfully, start planning again.*

    HI,
    the planning subobjetcs to be assigned in KANK to a CO-number range are (maybe you do not need all of them):
    KAZP
    KOAP
    KPPB
    KPPZ
    KSP0
    KSPB
    KZPP
    KZRP
    PAPL
    RKP1
    RKP2
    RKP3
    RKP4
    RKP5
    RKP6
    RKP7
    RKP8
    RKP9
    RKPB
    RKPL
    RKPQ
    RKPS
    RKPU
    RKPV
    RKPW
    RKPX
    RKPZ
    best regrads, Christian

  • Is there any specific Transaction for defining Scale Basis.

    Hi All,
    Is there any specific Transaction for defining Scale Basis?  What is the Table name for the Scales?
    Thanks & Regards,
    Fedor.

    Hi,
    You can maintain scale basis in condition record T.Code"VK11", and table in which scales are stored is "KONM"
    balu

Maybe you are looking for