Printing Duplicate in Smartform

Hi All,
I have created a new smartform with driver program for Delivery document. My requirement is that if user prints it for the second time then it should prind duplicate on it. User have denied to use the different output type to print the duplicate form.
Regards,
Raman.

Maintain a Zstructure with field -say - print_itrn. set it's value as '0'
Whenever the form is executed, check the value of this variable. if it's 0, print the doc and increment the value.
update in the structure.
now it becomes 1.
next time when you execute the form, you get 1, add duplicate logo based on this condition.
increment the number again.
Regards,
Sumit

Similar Messages

  • 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

  • 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 print " Duplicate " in FORM ( either Sap Script or Smart Forms )

    hi,
       How to print  " Duplicate " in FORM ( either Sap Script or Smart Forms ) if trying to take second Print Out and the FORM is already Printed.
    Please let me know the condition that we should go for.If possible let me know the SAMPLE code since this will be used in most of the FORMS.
    Regards
    Avi

    Hi
    It depends on which print you're working.
    If it's a print of standard document you can check the NAST (VSTAT field) table in order to know if the document was printed.
    If a message is created you can find the hit in NAST table:
    VSTAT = 0, document not printed;
    VSTAT = 1, documment printed
    VSTAT = 2, print is failed
    If you mean a custom print I believe you need to create a log like NAST table.
    Max

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

  • 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

  • Urgent!! Printing Barcode using smartforms

    req: need to print barcode using smartforms.
    【Settings】
    The following settings are made already
    1.  Style ( paragraph, character type(Syatem Barcode ) )is created and activated (T-code:Smartforms)
    2.  In the smartform I used the above style to print barcode  .
    ※TEXTTYPE = TEXT ELEMENT.
    【Execution】
    1.  I run the smartform in test mode with setting any print parameters
    2.  Trigger print preview
    【Problem】
    1. I am getting only BAR's no barcodes.
    The bracodes are not displayed properly.
    If I test the same system barcode in SE73 it displayed properly.
    Is there anyother settings are necessory?
    Plz help me in solving the peoblem

    Hi
    To Create a Bar code prefix:
    1) Go to T-code - SPAD -> Full Administration -> Click on Device Type -> Double click the device for which you wish to create the print control -> Click on Print Control tab ->Click on change mode -> Click the plus sign to add a row or prefix say SBP99 (Prefix must start with SBP) -> save you changes , it will ask for request -> create request and save
    2) Now when you go to SE73 if you enter SBP00 for you device it will add the newly created Prefix
    Create a character format C1.Assign a barcode to the character format.Check the check box for the barcode.
    The place where you are using the field value use like this
    <C1> &itab-field& </C1>.
    You will get the field value in the form of barcode.
    Which barcode printer are you using ? Can you download this file and see.
    http://www.servopack.de/Files/HB/ZPLcommands.pdf.
    It will give an idea about barcode commands.
    Check this link:
    http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
    Check this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94c851ea11d189570000e829fbbd/content.htm
    Hope this link ll be useful..
    http://help.sap.com/saphelp_nw04/helpdata/en/66/1b45c136639542a83663072a74a21c/content.htm
    Detailed information about SAP Barcodes
    A barcode solution consists of the following:
    - a barcode printer
    - a barcode reader
    - a mobile data collection application/program
    A barcode label is a special symbology to represent human readable information such as a material number or batch number
    in machine readable format.
    There are different symbologies for different applications and different industries. Luckily, you need not worry to much about that as the logistics supply chain has mostly standardized on 3 of 9 and 128 barcode symbologies - which all barcode readers support and which SAP support natively in it's printing protocols.
    You can print barcodes from SAP by modifying an existing output form.
    Behind every output form is a print program that collects all the data and then pass it to the form. The form contains the layout as well as the font, line and paragraph formats. These forms are designed using SAPScript (a very easy but frustratingly simplistic form format language) or SmartForms that is more of a graphical form design tool.
    Barcodes are nothing more than a font definition and is part of the style sheet associated with a particular SAPScript form. The most important aspect is to place a parameter in the line of the form that points to the data element that you want to represent as barcode on the form, i.e. material number. Next you need to set the font for that parameter value to one of the supported barcode symbologies.
    Reward points for useful Answers
    Regards
    Anji

  • Using addresses, can you print duplicate mailing labels for the same address

    using my address book, can I print duplicate mailing labels for the same name and address. 

    I checked the Address Book Print Dialog and I did not see the option to duplicate a single label.
    The only thing you could try is to select the name in your list. Then do Command-P to print which should get you to this dialog box:
    Try changing the # of copies and see if that does what you want. Otherwise I'm not sure and your answer may best be found in the Address Book forum on here.
    You may not want to incue the expense but Microsoft Word will do what you want.

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

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

  • Smartform : I s it possible to do pretty printer setting in Smartform codin

    Hi
    Is it possible to do pretty printer setting in Smartform so that coding can be ligned as we do in se38.
    Thanks

    HI,
    I basically created a 'Z' prog in dev env and copied all code to this did pretty print then copied 'as-is' back into smartform.
    long way around but did the trick..
    Thanks
    SB

  • 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

  • Create a new SAPEVENT  for CIC

    Hello, i have a problem with my search help folder in the CIC. I want to start the customer search help with my own criteria. My own criteria i can code in a Search help exit ( i create - no Problem ). But i have to have two kinds of Views ( normal a

  • How do I manually cleans the garbage of FF?

    How do I manually cleans the garbage of FF? Hi I know FF has built-in functionality to clean history, cache, cookies I know there are programs such as CCleaner that do the same I want to learn ok? When I want to clean (index.dat, Temp, Cookies, Histo

  • Display names of BPs

    Hello gurus! Is there a way to change to display names of Business Partner names like this: first must be "Surname", second - "Name", without initials. Example. Now is displayed like this: Konstantin K. V. Melnik We want like this: Melnik Konstantin.

  • Site works in exception.sites but not DeploymentRuleSet?

    Has anyone seen where a site will work when added to exception.sites but doesn't work in the DeploymentRuleSet.jar?  Same url   "https://host.mydomain.com:123/" or even if I use "*.mydomain.com" in DeploymentRuleSet, it still fails with a manifest er

  • Upgraded to Yosemite, lost YouTube

    While I'm enjoying the new Yosemite update, I've run into one problem. Whenever I try to watch something on YouTube, most of the time the video plays with only sound and a black screen.  I've had to completely close out of Safari and reopen the windo