How to print page dynamically in smartforms

Hi All,
Please help on below case...
1. I have developed a smartform which has 5 pages in total . Through driver program passing 4 internal tables...
first page - will print all times... - consuming first internal table data
second page - need to print dynamic - consuming data from second int table
third page     - need to print dynamic - consuming data from second int table
fourth page - need to print dynamic - consuming data from thrid int table
fifth page    -  need to print dynamic - consume data from fourth int table
dynamic condition  is determined in driver program ... but how to implement dynamic determination in smartforms..
sometimes ...based on data ...we need to print first page , and fifth page only ...
as of now all 5 pages are printing ...
Expect the advise from expertist...
Thanks and Regard
Ramasi
Edited by: ramasi on Sep 1, 2011 11:29 AM

Hello,
Plz use this code, may be it will help you as given below:
CALL FUNCTION 'READ_TEXT'
EXPORTING
id                            = '0001'
language                      = sy-langu
name                          = v_name
object                        = 'VBBP'
TABLES
lines                         = dt_lines
EXCEPTIONS
id                            = 1
language                      = 2
name                          = 3
not_found                     = 4
object                        = 5
reference_check               = 6
wrong_access_to_archive       = 7
OTHERS                        = 8.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
But kindly note that plz don't use the exception (code) for the purpose, May be thi will hlp you for the purpose.
Thanks & Regards,
Akg

Similar Messages

  • How to print page numbers in adobe form

    Hi,
    Can anybody tell me how to print page numbers in adobe form.
    Thanks in advance
    Chaitanya

    Hi,
    Yes the field page n of m is used normally for printing page numbers. But it won't display the current page of total pages by itself. You have to set the run time property to n (current page ) and m (Total number of pages). Carefully select the # (current page ) and ## (Total number of pages). Hope this works for you.
    My requirement is to have the user control on current page. For Example:
    Example for a Invoice with 5 PO items (stands on 2 pages) :
    1st  page is the letter : no page number
    2nd page is the 1st page of the 1st copy of the invoice : we should read u201C1 / 2u201D
    3rd page is the 2nd page of the 1st copy of the invoice : we should read u201C2 / 2u201D
    4th page is the 1st page of the 2nd copy of the invoice : we should read u201C1 / 2u201D
    5th page is the 2nd page of the 2nd copy of the invoice : we should read u201C2 / 2u201D
    Presently i cam getting the current page number for page 4th as 3 / 2 and for 5th page 4 / 2. I could able to control the total number of pages from print program. But when i am printing the second copy (4th and 5th pages), I couldn't able to control the current page number. I need to initialize the Current page count (4th page ) as 1.
    I have used the follwing java scripting:
    this.rawValue = wv_pages - xfa.layout.page(this)
    where wv_pages is total no of pages calculated from print program.
    Please help me in this regard with some formcal or java scripting conditions.
    Thank You,
    Regards,
    Naresh.

  • How to print horizantal lines in smartforms?

    hi friends,
                       how to print horizantal lines in smartforms.
    waiting for ur valuble replies.
    Thanks,
    Kiran

    HI,
    If u use templates or table,then use borders to print the horizontal lines.
    Eg : Create template-->Table painter->click select pattern button->Display framed pattern->select 3rd one.it will display only horizantal lines.
    if want to print horizantal line under the text, then create one paragraph or character formate with Underline in smartstyles.Use that paragraph or character to u r text element

  • How to print a bullet in smartforms?

    Hi All,
    How to print a bullet in smartforms?
    I need it urgently.
    Any help would be appeciated.
    Regards,
    Mahesh.

    Hi,
    if i remember correct <600> is the value for bullets.
    you can insert this using sap system symbols ---> select bullets (before this place your cursor where ever you want the bullets.
    eg:
    P1  <600> test.
    Thanks,
    Sree.

  • How to print Check Box in smartform

    HI,
      How to print check box in smartforms. I am using Include Sap Symbol but in the print it is coming as #. Do we need to do any setting like we do for barcode?
    Thanks
    Raghavendra

    hi,
    u can print a check box in different ways.. by inserting symbols and making window as check box..
    once go through the thread u will get to k now differnt ways
    putting checkboxes in smartform?
    Please Close this thread.. when u r problem is solved. Reward all Helpful answers
    Regards
    Naresh Reddy K

  • How to put page break in SMARTFORMS

    Hi Guys,
              Can anyone please let me know How to put page break in SMARTFORMS
    Regards
    Avi

    Hi,
    Look at the below thread, you will get the answer
    https://www.sdn.sap.com/irj/sdn/profile?userid=2522810
    Regards
    Sudheer

  • How to print page no/total pges in report programing?

    how to print page no/total pges in report programing?

    Hi
    This is an example:
    In TOP-OF-PAGE you can write:
    WRITE: SY-PAGNO, '/', '-----'.
    When the program has finished to print all data, run a routine like this:
    Declare a variable
    DATA: L_PAGE_COUNT(5) TYPE C,
          V_LINE TYPE I. "The line where page number is written
    * In my example I suppose the page number is always
    * written in the first row of the page.
    V_LINE = 1.
    *  Copy this code to the end of program
    *  Page count will be printed on each page here
      WRITE sy-pagno TO l_page_count LEFT-JUSTIFIED.
      DO sy-pagno TIMES.
        READ LINE V_LINE OF PAGE sy-index.
        REPLACE '-----' WITH l_page_count INTO sy-lisel.
        MODIFY CURRENT LINE.
        ADD 1 TO sy-index.
      ENDDO.
    Max

  • How to print the superscript in smartform

    Hi gurus,
    Please tell me the procedure how to print the superscript in middle of the text displaying?
    when we are displaying the smartform its converted to some special character like & .
    please let me know procedure at the earliest
    Regards
    Raj

    Hi thanks for ur patience.
    see my requirment was to print TM as superscript for HLL ,already smartstyle is there, and also a character format with superscript is also defined.
    then aftet HLL how it prints as superscript.
    for HLL we are using another character format and for superscript we are using the another character format.
    If posiible send me the code to write in smartforms
    Regards
    RAj
    Points are awarded for useful answers.

  • How to print page numbers on physical pages conditionally?

    Hi,
    my report has a single logical page comprising of 3 reapeating frames , each getting printed on 3 different physical pages. I need to print page number at the bottom of the page in the case of two repeating frames while on the side of the page in the third case. How do I do this?
    TIA
    Ranjit

    i think u only need to say page break before on ur third repeating frame and ur problem is solve.
    repeating frame 1 and 2 on the firstpage getting page 1 and repeating 3 on page 2.
    cheers.

  • How to print page in front and back in scripts

    hi,
    I want to know to know the how to print a page in front and back.

    HI Ragavendra
    set this
    <b>Print mode is D</b>
    With Print mode, you can specify single- or double-sided printing for a page. You can choose from the following values:
    <b>D </b>The page is printed on the first side of a sheet in duplex mode. If another mode was previously active, then the printer is switched to duplex mode with the start of the pageand continues in this mode.
    and other Print mode options are
    <b>Print mode</b>
    With Print mode, you can specify single- or double-sided printing for a page. You can choose from the following values:
    <b>' '</b> Currently active printing mode continues unchanged.
    <b>S </b>The page is printed in simplex mode. That is, the printer should print on only one side of the paper. If another mode was previously active, then the printer is switched to simplex mode with the start of the page.
    <b>D</b> The page is printed on the first side of a sheet in duplex mode. If another mode was previously active, then the printer is switched to duplex mode with the start of the pageand continues in this mode.
    <b>T </b>The page is printed on the first side of a sheet in tumble duplex mode. That is, the printer prints on both sides. The page on the second side is always inverted, so that the footer of the second page is printed opposite the header of the first page.
    If another mode was previously active, then the printer is switched to tumble duplex mode with the start of the page and continues printing in this mode.
    Print modes are currently supported for printers that use the PCL-5 language. These are printers that are defined with the following SAP device types: HPLJ_II, HPLJIIID, HPLJ4, LX4039, SNI20XX8.
    See the spool system (transaction SPAD) to check on how your printers are defined.
    The print controls for these functions are SPMSI (begin simplex printing); SPMDU (begin duplex printing); SPMTU (begin tumble duplex printing); SPMFS (print on first side of sheet in duplex or tumble duplex mode); and SPMBS (print on second side of sheet in duplex or tumble duplex mode).
    Regards Rk

  • How to print page no in standard sap report..

    Hi All,
    I am taking print out of standard reports but page no. is not showing.
    How to set page no. ? Which transaction ?
    Through SPAD we can set page no. ?
    Yusuf

    Hi!
    It depends on the standard program. Maybe it can be set with one of its checkboxes on the selection screen.
    If it cannot be set, then the standard list does not provide the page numbers.
    Youhave to copy into a Z-program if it is really neccessary.
    Regards
    Tamá

  • Printing page numbers in smartform

    Hello all,
    we need to print page numbers as Page 1 of 10 etc..
    But I can not use SFSY-FORMPAGES because I print multiple documents.
    I need to know how many pages will be printed in advance.
    Every time a new document comes we have to start the count again.
    Have anyone come across this and solved it. Pls help.
    Useful answers are rewarded.
    thanks.

    hi
    try this
    Page&SFSY-PAGE& of &SFSY-FORMPAGES(3ZC)&
    don't forgot to write 3zc otherwise it will show '*' ones the page no will exceed 10.
    regards
    vijay
    reward points if helpfull

  • How to print page numbers like 'Page 2 of 10' on an ALV report

    Hi,
    I've seen a few threads regarding this, but haven't seen any code that actually works. 
    What I'd like to do is print page x of y (i.e. Page 2 of 10) on an ALV report once the report is printed.
    Is this actually possible?  If so, what are the steps and coding required? 
    I greatly appreciate your help experts!
    Mark

    Hi Mark,
    I think there is no better way than calculate it before doing the output. If you do not have extra-new-page, the total number of pages may be calculated as the number of lines displayed divided by lines on one page - this will depend on the lines used for top-of-page and end-of-page. Also filters and subtotals could not be used.
    An other approach could be to read the current page number in end-of-list event and then scan the whole list using READ LIST and MODIFY LIST in each page top accordingly.
    Because it is decades ago I printed a list last time I will never have the chance to try.
    Regards,
    Clemens

  • How to Print Employee Photo using Smartform

    Dear All,
    I have requirement to print Employee photo using Smartform.
    Here I want to give breif backgorund to uploading employee image procedure,we are uploading employee Image using transaction code OAOH by providing Business Object PREL and Document Type HRICOLFOTO. Click on create button on second screen by providing employee Code XXXXXXX and infotype 0002  after click on enter button system ask path for uploading image file.After storing image we can see the employee image by using transaction code PA30 after passing employee code.
    These employee image  I want to print in Smartform layout.If any body have done this type of the requirement.Pl.explain me .
    Thanks ,
    Regards

    Hi ABAP Programmer,
    Refer this link
    i  want to retrieve a photo image of an Employee to display in smartforms
    Regards,
    Sravanthi

  • How to print the values in smartforms

    Hello Abapgurus,
    This is my problem which i explained below.
    IF the text has 11 rows and you can only print 8 rows in the
    current page, THEN go to next page print all 11 rows at the fresh page.
    How can i achieve this.I need to achieve it in smartforms.Not on scripts.
    Waiting for your favourable replies
    Regards
    Maruthi

    Hi Maruthi,
    In smartforms create a loop. And inside loop create a Folder. In "Output Options" tab of folder there is a check box "Page Protection". Select this check box.
    The above option will work only in man windows. If created window is not not a main window then make it as main window from its General Attributs tab.
    Ashven

Maybe you are looking for