Printer using in Smartforms

Hi,
I have the job to change all old sapscript orders to be printed with co01/02/03 from DIN A4 to DIN A5 and decided to recreate them in smartforms now. The boxes and stuff were created dynamically and to change that big forms and printprograms in sapcript to DIN A5 is like You have to change everything.... The sapscript masters know, what I mean! ;o)
So now I have made the design of the forms in Smartforms. I wanted to use the data-selection of the old print programs. When You print an order in Co01/02/03, You have to choose a list in combination with the printer destination.
In the old programs, I´m getting a structure called PRINT_CO and PRINT_OPT with the list option I have chosen for the print. This structure has a field called "DESTI", but this field is only the size of 4 characters.
The smartforms structures CONTROL_PARAMETERS and OUTPUT_OPTIONS need the full tddestination content, like the printername. And that field is in size 8 char.
How can I get this destination using the field DESTI and pass it to smartforms. Or is there a better way, to use the chosen options of the lists in CO01/02/03?
I hope, You can understand my problem!
Cheers Arne

ok, for example:
TA CO02->choose an order->menu order->settings->list control. Here You can check the lists, You want to be printed and there output device.
In the customizing, You can set the sapscript and the print program for every list, so You can print different forms with only one order in CO01/02/03.
The problem is, that You can´t choose a smartform there. So I have to write my own program and call the actual smartform by the choosen list.
In the print program, I´m calling the function CO_PRINT_GET_INFO_LIST to get the list structures PRINT_CO and PRINT_OPTS. In there, I have the field DESTI, which has the type CHAR 4, buit I need to fill the TDDEST field in the smartform structure, and it´s size is CHAR 8. Here I need the destination, like the printername. In DESTI I get only the short name.
Hope You understand, what I mean!
Cheers

Similar Messages

  • Using SSF_OPEN and SSF_CLOSE, is it possible to print the next smartform in the same page?

    Hi Experts,
    I'm using SSF_OPEN and SSF_CLOSE, to print multiple smartforms. In between SSF_OPEN and SSF_CLOSE, there is a loop at a smartform. The output prints each smartform in different pages. Is it possible to print the second smartform in the first page since there is still space for printing there?
    Thanks in Advanced,
    Jack

    Hi Jack,
    As per my knowledge,
    you can't print  two smartform in single page because smart form having own page-size.
    If your layout page is A4 size then first layout print in A4 page and next layout will be go-to next print page. but if you have different kind of page size for both layout then you can control from printer side then that case both page will be printed in single print page.
    Regards,
    Prasenjit

  • How to make use of label printing in sap smartforms

    Hi Dear,
    How to make use of label printing in sap smartforms.. I need to print four records from internal table into sap smart forms. It will
    come as four labels.All page should follow the same procedure... How to do...please help me..
    Regards,
    Nikhil

    Hi,
    Please go through below link, would be helpfull for you.
    [http://help.sap.com/saphelp_nw04/helpdata/EN/6b/54b4b8cbfb11d2998c0000e83dd9fc/frameset.htm]

  • Urgent! smartform can't not be print use self-defined format

    hi:
        wo defined a format ZXY in R3 using SPAD,then assign this format to our device type CNSAPWIN and activate it. then create a smartform using this format.
        when we print our smartform using EPSON printer LQ1600KIII, the printer automaticaly choose A4 as default page format but not our pageformat  ZXY in r3 , so the output result is not correct because printer using A4 for page break
       how to solve problem?
       thanks in advance!

    hi,
        once check ur settings whether it is like or not.
    SPAD> OUTPUT DEVICES> give the printer name>double click on output devices>give the device type in device attributes-->in TRAY  information give the ur pageformat name in tray1 check box.
    Thanks and Regards,
    Surya

  • Label printing on ZEBRA printer TLP2844 with smartform

    Hi Gurus,
    Requirement:
    Print label on Zebra printer with smartform
    1. i have created a smartform with desired layout
    2. and trying to print on Zebra printer
    Questions:
    1. smartform is not printing on zebra printer
    2. suggest me if there are any ways to print smartform on zebra printer
    3. does it requires any native programming language for printing labels on zebra printer
    Best Regards,
    Krishna

    hi Krishna,
    This printer does not support ZPL2 so I thnk you cnnot use the device types like LZEB2. It should work to print via windows and a device type like SAPWIN or SWINCF.
    Regards,
    Aidan

  • Not able to print a standard smartform on dot matrix

    Hi
    The standard print program /BEV2/ED_PRINT_SF_LDS_XX and the corresponding smartform /BEV2/ED_SF_LDS are printed using a laser printer. But when I try to print it using a dot matrix printer instead. I get no preview and no printout.
    Can anyone help me on this please ?

    Smita, check if the paper size that is used in the Smartform is assigned to the device type of the dot matrix printer (most likely laser and dot matrix printers are not using the same device type).
    It is strange though that you don't get the printout at all. Have you checked the spool queue (SP01)? If it doesn't even reach the spool then the problem is not with the printer.

  • Print preview of smartform in word format (editable)

    Hi Everybody,
    I have a smartform. I want, when i click on the print priview , it should display in Ms word format and that to editable.
    Plz help.
    Thanks,
    Mohammadi.

    hi,
    1.convert smartform output to a word document using the function module "'RSPO_DOWNLOAD_SPOOLJOB'.
    2.Check the print options for smartform.
    3.Refer This:Re: print priview in smartforms
    Regards,
    Shiva Kumar

  • Enable print button in print preveiw of smartform

    Hi All,
             I have a requirment to display the spool. (print program and smartform).  But while displaying the spool the PRINT option in menu and PRINT button is not active in the output.  Is there any way to enable the print option while displaying a spool.
             I am using the following function module for dispalying the spool.
    'RSPO_RID_SPOOLREQ_DISP'.
    Is there any particular parameter i need to pass while calling the smartform ?
    Please give some suggestions...
    Thanks in Advance
    Jijeesh.P.G

    Hi,
    Check the tcode SPAD
    Click on Full Administration Push Button
    and Check Device Types tab.
    All the Print control options of the spool are maintained.
    Reward if useful....

  • Standard text printing missing on Smartform

    Hi All,
    I am using standard text in Smartform.
    Standard text contains 'terms and conditions' hence it's used for printing in second page.
    For printing standard text one window other than Main window has been created in second page.
    Now when I am taking print preview of smartform only two pages are visible and on second page complete standard text is not displayed. As standard text is of two pages then rest missing text should come on third page as a continuity.
    But missing standard text is not getting diplayed.
    Any suggestion what shall we do to print complete standard text.
    Regards,
    Amit
    Edited by: Amit  Singh on Nov 25, 2010 11:38 AM
    Edited by: Amit  Singh on Nov 25, 2010 11:39 AM
    Edited by: Amit  Singh on Nov 25, 2010 11:39 AM

    I tried to use the 2nd option provided by you but still this prolem is not resolved.
    Missing Standard text is not going in a new page.
    I tried to expand the window size and now entire text is coming in a single page. But by this way page window is not same as in a first page.
    Is there any otherway to print the rest missing text in next page of the smartform.
    Regards,
    Amit

  • Transfer Order Printing using smart forms

    Hi All
    Our requirement is to print Transfer Order  ( WM ) for Goods Receipt & Delivery using Smart forms.
    Can we change the existing standard format (SAP script ) and use our own form(smart form ) to include some other data & print.
    If possible how to replace the SAP script to Smart form.
    Request  someone could guide in detail.
    Thanks in advance.
    Samson

    Hi
    When you create Smartform try to replace it in customizing OMLV. Not sure if it will work as it refers to Sap Scirpt in help description.
    It is also possible to write Z program for TO printing and hardcode SmartForm there.
    Regards
    Mariusz

  • Printing graphics (via SmartForms?)

    Hello,
    I have problem with printing images via SmartForms. I know that I must firstly import graphics using SE78 transction and then use it in SmartForms. We would like to print small jpg images which represents rough preview of product in invoices, offers etc.
    Problem is that we have tens of thousands of materials and each has a preview. All images are stored in DMS (KPro) so I thing that is inefficient to import all images again in SE78.
    Does anybody know how to avoid converting all jpgs to tiffs and importing in SE78. Maybe some other printing solution than SmartForms?
    Thanks a lot,
    Zdenek

    This is a common problem. To accomplish this you may need to resort to new BC-XDC interface which can convert non OTF/ALF output to PS/PCL and then feed to spooler, as spooler is not capable of dealing with other native formats such as images.
    Another option is to use 3rd party OMS tools, or KPro/ArchiveLink mass printing solution "APS".
    Regards,
    Vishal

  • Address printing pb in smartforms

    hi all,
    I have problem in printing address in smartforms
    In customer master if i choose country US, address is printing properly
    If I choose Country IN, it is not printing.
    please guinde me how to solve this issue.

    Hi
    Are you using an Address Node in the Smartform to print Addresses? Use an address node, in the address node pass the Address Number and it will display the address.
    You can retreive the address number from the master table based on customer number and pass that variable to address node. You can use Program Lines to retreive the address number.
    Regards,
    Vishwa.

  • Check printing using dot matrix printing?

    HI all,
    I have developed check printing using smartform for laser printer now the my client requirment has changed they are now using a dot matrix printer for check printing, so what parameter should i consider for developing a check printing for dot matrix printing

    the same smartform and driver program will work for all kind of printer.

  • 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...

  • Regarding passing an internal table from print program to smartform....

    Hi All,
    can any body let me how to pass an internal table to the smartform, i have processed the data in the print program then i want to pass the final internal table from the print program to smartform and with that data in the internal table i have to process it in the smartform (i want to get some more data based on the internal table data from the print program) and then i will display finally.
    for example: i have it_qals which contains all the lot numbers which is processed in teh printprogram, now i want to pass all these (it_qals) lotnumbers to smartform , and in the smartform i will use the lotnumbers in the it_qals table and will process other data accordingly 
    can any body help me plzz.. its very urgent

    Chek this code i am coping my whole program here.
    REPORT ZDP_SMARTFORMS_REPORT3 .
    TABLES: MARA,
    MAKT.
    DATA: FNAME TYPE RS38L_FNAM.
    DATA: BEGIN OF ITJOIN OCCURS 0.
    INCLUDE STRUCTURE ZDP_JOIN__IN_SMARTFORM.
    INCLUDE STRUCTURE MARA.
    INCLUDE STRUCTURE MAKT.
    data: END OF ITJOIN.
    *DATA: BEGIN OF ITJOIN OCCURS 0,
    MATNR LIKE MARA-MATNR,
    END OF ITJOIN.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS: MAT FOR MARA-MATNR.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECT MARA~MATNR MAKTX "UP TO 5 ROWS
    FROM MARA JOIN MAKT ON MARAMATNR = MAKTMATNR
    INTO TABLE ITJOIN
    WHERE MARAMATNR IN MAT and maktspras eq 'EN'.
    into corresponding fields of table it
    *SELECT MATNR UP TO 5 ROWS FROM MARA INTO TABLE ITJOIN
    WHERE MATNR IN MAT.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    FORMNAME = 'ZDP_SMARTFORMS_3'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = FNAME
    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.
    not necessar y above function if u copy function name from
    **- smartforms>environment>function name
    CALL FUNCTION '/1BCDWB/SF00000037'
    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
    ITJ = ITJOIN
    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.
    Also check these links
    Check out this link,
    http://www.erpgenie.com/abap/smartforms.htm
    and also refer these threads,
    Passing table to smartform
    PASSING INTERNAL TABLE IN SMARTFORM
    Hope this helps.
    ashish

Maybe you are looking for

  • Error while Updating the Apps Adapter

    Team, I am getting error while i am updating the Apps Adapter, I have created an new data source and an new connection pool like below, 1. created the Data Source with the following values. Data Source name : DevDataSource JNDI Name : jdbc/Dev/Apps 2

  • Query in Purchasing & reports

    Hello Experts, 1)Requirement is such that system , should automatically generate an alert, if order acknowledgement is not received within 2 weeks from PO issue date. Can this be done in standard SAP or is it a development? 2)Report in SAP required f

  • CPA Cache Probelm PI 7.1

    Hi Experts, Im facing a strange issue which I am totally not able to understand. As the problem is occuring in both systems simulatneously kindly request you to help this out. We are on PI 7.1 In the RWB Im getting this error in CPA cahe monitoring.

  • Yahoo Sync Request that won't go away

    Greetings, Not sure where this question belongs because I'm not sure what is triggering this message. Have you seen it before? Here's a link to capture of the message: http://screenplayhouse.com/temp2/yahoo.jpg In preferences, there is this plist: co

  • Two Email Addresses, One Account

    Hi Folks, I have two email addresses with Outlook.com, one is my personal address and the other is a send and receive custom domain work address both set up in the one outlook account on my iphone. I can send and receive from both addresses, the prob