How to print line item 2times in two different main window in Sap Script

Hi,
I am designing check printing form using Sap script. I need to print line items 2times in different 2main window.can yu pls explain  how print like this.
JK

i cud not get ur query..pls elaborate

Similar Messages

  • Printing logo at a specified position in main window in sap script

    Hi,
    I need to print a logo just after the signature which is coming in the main window, So basically i need to call a var(secondary) window inside the main window just after the signature and the position of logo should be towards the right.
    I tried it by insert->graphics but now what I am getting is the image on the left side.How can i define the position(upper margin & left margin) of logo while using the insert->graphics??? Is there any other way to do the same?????
    Ekta

    Hi Ekta,
    For example consider the dimensions
    MAIN  2,00 CM  12,00 CM  17,00 CM   9,00 CM
    Logo   16,00 CM  21,00 CM   3,00 CM   3,00 CM
    This logo(secondary window) Print after the main window ...
    Regards,
    Sravanthi

  • [Urgent] How to print Line items Twice in Check Printing ??

    Hi <b>Experts</b>,
    We have got a requirement of printing the vendor invoice info(Line Items) above and below the actual check.
    Eg.
    Page 1
    1-8 Line Items
    Voided Check
    <b>1-8 Line Items</b>
    Page 2
    9-16 Line Items
    Voided Check
    <b>9-16 Line Items</b>
    Page 3 ..... (last Page)
    17-20 Line Items
    Actual Check
    <b>17-20 Line Items</b>
    Now, All the things are printing fine except dual printing of the Line items at the below of Check.
    Please help me..... i am using Check print program <b>RFFOUS_C</b>.
    If anyone can has done something like this before than please send me the code for it.
    If someone requires more clarification, please ask me.
    Regards,
    <b>Abhishek</b>

    Hi Abhishek,
    we have done check printing here. but can u pl tell me why is the line item required to be printed below the check also??
    u must have observed that in the check sapscript ( F110_PRENUM_CHCK), the main window is situated above the check window.. n the line items are coming within the main window...since the line items are dynamic data( not fixed), u have to create a window below the check n that has to be a MAIN window again for it to display multiple data.. so wen ur last page is getting called ( u need to find that out that wen is the last page getting called ), u can insert a write_form for this new main window along with the other write_form( for the earlier main window).
    it can get very complex though as i dont know if this will certainly work...
    is the requirement reaaly to print the line items below the check or anything else will do?? as it wud greatly reduce ur headache...

  • How to print a window (ex:total)only after end of main window in SAP Script

    How to print a window(ex: total) only after end of main window in SAP Script
    Thank you.

    Create a total window and place it after your main window, get the number of lines in your main window and place counter
    Ex,&SAPSCRIPT-COUNTER_1(+)&,
    IF SAPSCRIPT-COUNTER_1& EQ <number of lines in main window>
    **print total
    ENDIF.
    Regards,
    Sairam

  • How to display the same content in the two different main windows?

    Hi experts,
    How to display the same content in the two different main windows?
    Thanks in advance.
    sarath

    Hi
    Sorry but you can't have two main windows in sapscripts.
    Regards
    Gregory

  • SAPSCript how to print  a comment at the end of main window on first page?

    In SAP Scripts, How do I print a comment at the end of the first page (I have several pages of data) in the main window?
    - Ven

    hi
    good
    yes we can put condition.....to display the footer window get printed after all data in main window gets over.........................assingn u r footer window to next page [ i.e u r second page] ...and write the condition
    In such senario no need to use a window for footer.
    In the Script form:
    -> In the Main Window itself after all the main data create an Element.
    -> Use BOTTOM and END-BOTTOM; write your footer information between them.
    In your Driver Program:
    -> After printing all the data (means after passing to form and before closing the form) call one WRITE-FORM with the footer element.
    I'm sure it will work.
    f u r not interested to change the print program. Then simply insert simple code in the footer wondow.
    now insert this code in ur footer window
    IF &TTXSY-PAGE& = &SAPSCRIPT-FORMPAGES&.
    *all code in footer goes here.
    ENDIF.
    &TTXSY-PAGE& holds the page number of current page.
    &SAPSCRIPT-FORMPAGES& holds total form pages.
    This will work.
    write this code then the footer will be printed in last page itself
    /: IF &NEXTPAGE& EQ 0
    whatever footer you want.
    /: ENDIF
    You need to create an element in the MAIN window. You can do it in two ways:
    1. In SE71, you can create:
    /:E FOOTER
    /:BOTTOM
    Text
    /:ENDBOTTOM
    In the print program, just call this element.
    2. In you print program, populate parameter type = BOTTOM in FM, WRITE_FORM.
    Ex.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    element = 'FOOTER'
    type = 'MAIN'
    window = 'BOTTOM'
    EXCEPTIONS....
    However, if you issue new page having new header data. Thus, new item data. And if it will exceed more than 1 page, the footer will still appear. To solve this, you need to create a new element in MAIN. Ex. INIT_FOOTER. It just contains the following:
    /:E INIT_FOOTER
    /:BOTTOM
    /:ENDBOTTOM
    Call this after passing all item data.
    reward point if helpful.
    thanks
    mrutyun^

  • Printing of boxes in Main window of SAP Script at 2 different locations

    Hi Experts,
      I have an requriement in SAP script, I want to draw two boxes. The first box will be at the beginging of main window with 0.5 cm, which is comming perfectly. After the first box I have to display the entries related to a particular table, after the completion of that table I need to draw another box of lenght 0.5cm and the entries related to another table, needs to be displayed.
    I am able to get the first box with intensity, but for the second box I am not getting exact position where i need to draw a dynamic box by filling intensity.
    For that reason i have drawn two ulines and wrote the text, is there any way to fill internsity in between those lines.
    Thanks
    Ravi.

    Hi Sujeet,
    I already tried with that command, the problem is in between two boxes I dont know how many lines of data will come.
    There is a need of drawing a box dynamically.
    Thanks
    Ravi

  • Two different main windows in one form?

    Hello -
    I have a requirement to print a list at the end of an invoice printout.  The invoice can cover multiple pages, and the secondary list can also cover multiple pages, one page per material.  So essentially I need two different definitions of a main window.  I tried defining my form like this:
    Page...............Next Page.......Main Window
    FIRST..............FIRST.............MAIN
    LIST.................LIST...............MAIN_L
    The first part prints fine, but I can't get the second part to print.  I tried adding a command after the first main window to go to page 'LIST', but nothing in window MAIN_L will print.  All the secondary windows on page LIST print, but nothing from MAIN_L. 
    Then I tried changing MAIN_L to be a secondary window and I can see my data, but in this case it will not allow me to enter the command to start a new LIST page. 
    Help!  Is this even possible?
    Edited by: Susanna Kohlmyer on Aug 20, 2008 2:39 PM

    Try to create two Table Nodes in the Same Main window.
    Like:
    FIRST  ... next is FIRST
    .. MAIN
    .... TABLE1
    .......HEADER (table1)
    .......MAIN (table1)
    .......FOOTER (table1)
    .... TABLE2
    .......HEADER (table2)
    .......MAIN (table2)
    .......FOOTER (table2)
    Regards,
    Naimesh Patel

  • Smart forms--In different pages i require two different main windows

    In one smartform, I am having two pages. and two pages are having different formats
    First page will print repeatedly till the completion of main window1.
    Now i want to add another main window(2) to second page, it will also should print repeatedly till the completeion of main window(2).
    But in first page main window contains 5 coloumns with subtotal
    in second page main window contains 3 columns without subtotal
    Both main windows are using same internal table.
    can anybody help me in this issue.
    If i copy first page main window into second page as main window with diferrent name, then it is showing blank window with out any text why?
    pls hepl me
    Madhavi T

    Try to do it like this, separate the data in internal table to two different tables, since data should be printed on two different formats...
    Design two page in your smartform according to the requirment. now goto first page and set the next page as FIRST
    now goto second page that you have created and set the next page as SECOND.
    loop the first internal table in first page and once all the entries are finished, try to goto second page for doing this place command and tick the check box in command, goto next page and select the page as Second...
    I guess this will solve your issue.
    close the thread once your question is answered.
    Regards,
    SaiRam

  • Getting Dynamic XPOS and YPOS for drawing the line in MAIN window in SAP Script using BOX command

    Hi Experts,
    I am trying to draw a line using the BOX command in the main window.
    /:         BOX HEIGHT 0 TW FRAME 10 TW INTENSITY 100
    I want to draw a line in XPOS and YPOS dynamically..
    Is there any way to find such I can draw a line dynamically after triggering a Text element. or determine the XPOS and YPOS dynamically such that I can draw a line in an intended position dynamically.
    Thanks in Advance
    Regards
    Rajesh Chowdary Velaga

    Any update on this ??

  • Can't see the Vertical line command in the main window of SAP Script.

    Hi,
    I have a peculiar situation where, I am not able to see the command through which vertical line separators are coded in the script within the main window. Can any one help me find this...?
    Regards,
    Owais...

    Hi Ravi Kant,
           What does this mean?
    /E           ITEM_YWERT
    WH           &rwerter-wert(10)&,,&vline&
    /E           ITEM_TAB
    /:           CASE &VARPOSR-YZEILE&
    /:           WHEN '0001'
    /:           DEFINE &TAB& = ',,'
    /:           WHEN '0002'
    /:           DEFINE &TAB& = ',,,,'
    /:           WHEN '0003'
    /:           DEFINE &TAB& = ',,,,,,'
    /:           WHEN '0004'
    /:           DEFINE &TAB& = ',,,,,,,,'
    /:           WHEN '0005'
    /:           DEFINE &TAB& = ',,,,,,,,,,'
    /:           WHEN '0006'
    /:           DEFINE &TAB& = ',,,,,,,,,,,,'
    /:           WHEN '0007'
    /:           DEFINE &TAB& = ',,,,,,,,,,,,,,'
    /:           WHEN OTHERS.
    *           Tab. not defined
    /:           ENDCASE

  • Printing line items in next line smartforms

    how to print line item description in next line...
    suppose
    i have line item description as
    "this is description of line item"
    then i need to print as
    "this is"
    "description of line item"
    in two lines......
                so that no trunkation takes place please reply me ....

    Use offset
    v_text(20)
    in the second line use
    v_text+20(40)
    If this does not work
    then declare two more fileds
    and write the code
    v_text1 =  v_text(20)
    v_text2 = v_text+20(40)
    and print the new fields
    Reward points if useful,
    Regards,
    Nageswar

  • How to transfer Line Items

    Hi
    How to transfer Line Items from One GL account to another GL account.
    We, at the time of changing Non Open Item Manged account to Open Item Manged account, how can we transfer Line items to make this GL account Zero, If suppose line items are more than 200.
    Satish
    Points assured.

    If you are attempting to change the account from Non Open Item managed,  you need to make the account balance zero. The change will be be effective only for future transactions. You need not transfer all line items,  find the balance and  make an  entry to debit or credit to make it zero, to a temporary account. Later, once you have activated, you can reverse that transaction.
    The OSS 606977 refered may be helpful if you are looking for reverse activation. i.e from Open to Non Open. Here is a brief:
    Symptom
    In the G/L account master record, you can activate/deactivate the 'Open item management' indicator if the balance of the account is zero. In this case, the system does not check whether postings exist on the account.
    If postings exist, this could lead to problems, for example, if the clearing is reversed after the change to the indicator is made.
    Other terms
    FS00, FS02, FSS0, FS02, FH190, XOPVW
    Reason and Prerequisites
    The transactions for the maintenance of the G/L account master record did not check whether postings exist on the account. Now the program checks whether postings exist in the current year or previous two fiscal years.
    Solution
    Implement the attached correction or import the corresponding Support Package. Since it could make sense to change an account with balance zero from open item managed to non-open item managed (and vice versa) - despite postings to the account - the message is delivered as customizable (with error as a default setting).
    The check is also carried out, when open-item management is activated, is postings exist on the account.
    If you implement the note you must also carry out the following:
    Use Transaction SE91 to create message 190 in message class FH with the following text:
    Account balance = 0; however, postings exist on the account
    Use Transaction SM30 to insert the following entry into view T100S:
    Application area   FH
    MsgNo              190
    Allowed            EW
    Standard          E
    Afterwards, the message can be customized in View V_T100C. To do this, you can use Transaction OBA5.

  • How to print table items in column in smartform in 4.6c version.

    Hi Experts,
    I want to print the items i have in columns (like name invoice number) in smartforms but when i create table in main window there no options for header footer and main area, i have created the template for header and footer but how i print the items in columns. Pls reply ASAP.
    Thanks in advance,
    Abhishek Pandey.

    Hi
    create a table under main window
    Under the Header create a Row or Line
    Under the Row create a Cell and Under that Cell create a text field
    In that text you can write what ever field name u want to write
    Reward if it is helpful to you
    Thanks
    Krushna

  • Urjent-how to add line items in tcode-FBL3N

    Hi Experts,
      How to add line items customer, customer name,  vendor and vendor name in FBL3N.
    Thanks in advance.
    mahe
    Moderator message - Please do not use words like "urjent". Please ask a specific question. Please search the forum. This question has been asked and answered before. Post locked
    Edited by: Rob Burbank on Apr 29, 2009 11:27 AM
    Edited by: Rob Burbank on Apr 29, 2009 11:28 AM

    Hi,
    Check the BTE's:
    00001020     POST DOCUMENT:       Prior to final checks             SAMPLE_INTERFACE_00001020
    00001025     POST DOCUMENT:       Final checks completed       SAMPLE_INTERFACE_00001025
    00001030     POST DOCUMENT:       Posting of standard data     SAMPLE_INTERFACE_00001030
    00001050     POST DOCUMENT:       Accounting interface           SAMPLE_INTERFACE_00001050
    Thanks & Regards,
    Harish

Maybe you are looking for

  • Itunes killed the internet... HELP!

    Hi, I just updated my Itunes, and when I did all sorts of crazy stuff happened. First of all, it told me I couldn't do it because it shared files with AIM. So I closed that out and updated. When I restarted, I can no longer connect to the internet an

  • Work flow program

    Hello , I am new to workflow.   I have taken a simple task and in ABAP program. I have called function module 'SWE_EVENT_CREATE' , with some data. I have received an email in SAP INBOX and when I clicked on the email it was saying ' Object does not e

  • Muvo TX Prob

    I received a Creative Muvo TX for Christmas as a present. I enjoyed using it, but nearly immediately, I experienced problems. What has been occurring is whenever I use my player, eventually, after an indeterminate amount of time, the player will free

  • Can Edge Reflow handle type on top of background image within a box?

    What I mean is, from code point of view, it's not <img src="">, but <style="background: url()">, then put type on top of the background image.  Can Edge Reflow handle that?  Really appreciate your help.

  • Reference Field to populate automatically when doing manually clearing F-30

    Hi, I have a requirement from my client where we have to get the reference field XBLNR to the clearing document from the document it actually clears when doing the manually clearing through F-30. Is there any standard SAP note for this. Can you pleas