Print Line items twice in Check F110_Prenum

Hi Experts,
I need to print the Line items of the Payemnt advice, twice on the same page...
Type   Window Content
[Main] 1-10 Lines
[Var]  Voided/Actual Check
[Var]  <b>1-10 Lines</b> (Not printing)
[Main] 11-20 Lines
[Var]  Voided/Actual Check
[Var]  <b>11-20 Lines</b>(Not printing)...........
and so on....
The problem is only that i am not able to print the lower (duplicate)line items...
Pls suggest some technique....
I have tried modifying the RFFOUS_C also... but the values  can be seen in debug mode only (not on Print Preview)
I have already written this problem, sut still havent recieved any legible solution... Is this problem really so tough.. i wonder...
Pls ask me if u need some more details....
Thanks all in advance... all the helpful posts would be awarded points accordingly..
Regards,
Abhishek

Yup ! There is a blank space at bottom which needs to be filled up with the content of main window on the same page...
The last window name is 'FILE' and in this window we have a element called 'COPY'. Now what i did is i modified RFFOUS_C        to get all the itemlines in a particular itab say I_REGUP. In the Prog itself.. after the formular prints all the check contents and the loop for all the elements in main is done, i copy the REGUP to my I_REGUP.
Now after this i Open a new form as
  CALL FUNCTION 'OPEN_FORM'
       EXPORTING
            ARCHIVE_INDEX  = TOA_DARA
            ARCHIVE_PARAMS = ARC_PARAMS
            FORM           = T042E-ZFORN
            DEVICE         = 'PRINTER'
            LANGUAGE       = T001-SPRAS
            OPTIONS        = ITCPO
            DIALOG         = FLG_DIALOG
       IMPORTING
            RESULT         = ITCPP
       EXCEPTIONS
            FORM           = 1.
  IF SY-SUBRC EQ 1.              "abend:
    IF SY-BATCH EQ SPACE.        "form is not active
      MESSAGE A069 WITH T042E-ZFORN.
    ELSE.
      MESSAGE S069 WITH T042E-ZFORN.
      MESSAGE S094.
      STOP.
    ENDIF.
  ENDIF.
  LOOP AT I_REGUP.
    W_REGUP = I_REGUP.
    CALL FUNCTION 'WRITE_FORM'
         EXPORTING
              WINDOW   = 'FILE'
              ELEMENT  = 'COPY'
              FUNCTION = 'APPEND'
         EXCEPTIONS
              WINDOW   = 1
              ELEMENT  = 2.
  ENDLOOP.
  CALL FUNCTION 'CLOSE_FORM'.
After Executing what i find is, when i activate the debugger for the layout form... i can see all the values coming at that instance.. but id doent appear in the print preview...
Hope u mast have got the scenario... else i can mail u the code copy and print preview for ur better view...
Thanks for ur help !!
Regards,
Abhishek

Similar Messages

  • [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 display line items twice in a single page in sap script

    HI,
      I am working on check printing. I copied the standard driver program and form to Zprogram and ZForm. Which are RFFOUS_C(print program) and F110_PRENUM_CHECK(Form Name).
    I want to display the line items twice in the same page and sub sequent pages.
    Currently I am able to display line items only once.
    Example:
    PAGE1.
    line item1
    line item2
    line item3
    line item4
    line item5
    line item1
    line item2
    line item3
    line item4
    line item5
    line items 1 to 5 which are in main window.
    How to achive this problem.
    Regards,
    vinod

    Hi
    I had the same request for a check form in Canada. I solved it by writing the line item output into variables and print these variables in a second window. It was ~10 hours of effort, not a real nice technical solution but it worked.
    If you require I can send you a PDF of the sap script form definition. You can contact me at [email protected] Answers can take 1 week or more. 
    Best regards
    JD

  • 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

  • To print line item number in workflow message

    Hi Experts ,
    I want to print line item numbers of a sales order in a single workflow message .
    Can this be achieved ?
    I am generating WORKFLOW item , for a sales order , and want certain line item numbers to appear on the WORKFLOW message .
    Something like Sales Order XXXX  has line item 20  30 50 .
    Regards,
    Sunitha

    1. Enhance appropriate custom BOR Object.
    2. Create one Attribute which will gives you String output - Write program to this attribute to fill the string will all relevant texts for example : Line Items 10, 30, 54, 89.
    3.  Place this string in your work item description. So that your work item / email will carry this string under certain conditions.
    you many need to handled exception.
    Example -
    Dear User.
    Please Check the Sales Order 23456. The below line items went for Delivery block.
    Line Items 10, 30, 54, 89.
    Regards,
    Admin
    All the best,
    Vamsi

  • 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

  • Print line items on next page if does not fir onto current page

    Hello Experts,
    I have a query related with Smartform.
    For every Line item, I have 4 lines. Means, if there are 4 line itmes in Internal table then it means, on form 16 lines should be printed.
    My Requirement - If any of the Line item does not fin onto a single page then shift the whole line item onto next page. Means, If Line item 1 and 2 are printing on 1st page completely, but line item 3 is not able to print completely on 1st page then shift all the 4 lines of line item 3 onto next page.
    I tried - Put the main table of main area in a Folder and checked the PAGE PROTECTION of that folder. And in the Foder itself, use a command with checked GO TO NEW PAGE. But it is not printing. Form goes into shortdump.
    Please help me to resolve this issue.
    Regards
    Kuldeep M.

    Hi,
    U try to fix the no of lines per page. If the no of lines in ur table are more than the lines per page then u call the COMMAND 'Go to New Page' and give the Page name.
    Eg:
    data : lv_lines TYPE i,
              lv_lines_per_page TYPE i value 12.    (Try to design the Window height to fit 12 lines or ur wish)
              lv_count TYPE i.
    describe table itab lines lv_lines.
    Now, u loop the itab table and put a condition in the LOOP:
    LOOP AT itab.
      lv_count = lv_count + 1.
    IF lv_count GT lv_lines_per_page.
       clear lv_count.
       create command 'Go to New Page'.             --->In COMMAND put condition lv_count GT 12
    endif.
    ENDLOOP.
    Hope it helps!!
    Rgds,
    Pavan

  • Printing Line Items in Script without using driver program

    How to print the line items of a internal table in sap script without using driver program? I am not supposed to edit anything in the driver program. Pls help me to solve this problem...

    Hi,
    You can try by creating a new driver program and a new FORM ENDFORM inside that for this purpose.
    Regards,
    Gaurav

  • Unable to print line item 1 and line item 2 into one box iin SMARTFORMS

    helo,
    i have printed in the folowing  way.
    but i want these two things to come ion one box....like page protection..
    <b>Item Details
    Item   material     term     qty    uom    unit price    total</b>
    1        ..................................................................
    2        ..................................................................
    <b>Item Quality Specifications
    characteristic    basis    limit    oper    value    base unit    per </b>
    a                        ..............................................................
    b                        ............................................................
    Till the above part i have printed.
    now i want to make those two items together in a group.
    i have tried page protection but i dint get .
    those two should together with a rectangular box around it.
    if the those two will not fit in the box then it should go to second page.
    kindly help me .
    Regards,
    deepthi.

    Hi
    Which SRM version are you using ?
    Please go through this ->
    If you are using extended classic scenario you can simply delete the line items in the PO within SRM. This will replicate the appropriate changes in the backend.
    You won't be able to change the PO in the backend as this is standard functionality.
    You can also archive SRM PO incase you don't want to delete the same
    PO Archiving
    Once the purchase order is ordered and issued, it is a legal document between your company and the vendor. Only PO line items can be deleted and you can not delete PO header.
    Deleting line item of PO is not enough. Make sure that PR or SC history does not contain any follow on document else system will interpret this a close PR or SC.
    Because the PO was already printed or output exist... You cannot delete PO header.
    Once the PO has been issued to vendor in any form, deletion is not possible at the header level, only possibility is deleting line items of the PO (deletion indicator marked for all the line items of PO). Only when the PO is rejected by the approver (in case any, which will be in the 'release rejected' status) or in held state (before issued to vendor), PO can be deleted at the header level, as the data still exists in SRM and not get transferred to R3 backend. If you want to forcibly delete the PO at the header level, flag DOC_CLOSED field in the table BBP_PDHGP (header tabe) through BBP_PD for the respective PO.
    Try using the Function Modules "BBP_PD_PO_DB_DELETE".
    BP_PD_PO_ITEM_DELETE_LOCAL
    Some other relevant Function modules ->
    BP_PD_PO_DB_DELETE_MULTI
    BP_PD_PO_ITEM_DELETE_LOCAL
    BBP_BS_POD : Spooler, delete PO
    SPOOL_PO_DELETE :Spooler function to delete a po in core
    SPOOL_PO_DELETE_DO :Spooler function to delete a po in core
    Related links ->
    Re: Cannot delete Limit Shopping Cart line item
    Re: How to delete a PO in SRM
    Re: SRM PO Deletion
    Re: Delete item in the PO
    Do let me know. Hope this will help.
    Regards
    - Atul

  • How to get PO number and line item in he check item method of MB_MIGO_BADI

    Hi All,
    First time I am using BADI and I am stuck in one issue.
    I am using CHECK_ITEM method of MB_MIGO_BADI.
    While pressing CHECK button MIGO for a GR(wrt to a PO),a warning message has to displayed.This warning message has to displayed according to the line item in the purchase order.
    In the CHECK_ITEM method, how I will get the PO number and the line item imported into that method.?
    Thanks.

    HI  ,
    in Check_item method 
    DATA: ls_extdata TYPE zqsscrap_screen_field .
    LOOP AT gt_extdata INTO ls_extdata .
    endloop.
    Check what you are getting  .
    regards
    Deepak.

  • PO printing, line item duplication

    Dear Gurus,
    We have created a PO with reference to a PR, while prining the PO, one of the line item is being duplicated, but the value of this line item is not considered in the total value of the PO. It is a Standard PO.
    Kindly advice how to rectify this error.
    Regards,
    LUX

    Hi,
    I found the reason for this behaviour, the Order price unit is different from the base unit of measure.
    LUX

  • Print line detail remarks on check stub

    Is there any way to print the line detail remarks (CHO1, lineDitails) on the check stub?  I can print the Journal Remarks field through the OCHO table, but cannot figure out how to get the line details.
    Thank you.

    Hi, Tberry
    Could you please tell me how to print the Journal Remarks field through the OCHO table on check stub?
    Thanks,
    Angela

  • PO print line items

    hie guys
    i have copied standard PO script MEDRUCK into custom script and made my adjustments..however the form is failing to activate issuing the error that A text element in window MAIN has no name
    how can i resolve this?

    Hi
    I think in the adjustments u made, U might have made some mistakes.
    Just check with the standard script if the text element names are intact.
    Regards,
    Vishwa.

  • Line items not printed in check printing payment advice

    Hi, this is the first time i am implementing check printing module so need some help.
    I have used standard print program RFFOUS_C and sapscript form F110_PRENUM_CHEK
    when I create an invoice from FB60 and make payments through F-58, on printing it prints the check properly but no line items are displayed.
    Please tell me a step by step procedure on how to print the payment advice,i.e, the line items. Is it already in the standard program or do i need to code it. I am interested in the learning also, if anyone can give me details it would be helpful fr me to implement it easily understanding what I am actually doing...
    Any help soon is appreciated .

    Already everything(line items) exists in the program, if you want to add additional fileds to be displayed that are not existing in your program then you need to sub-routines instead of modifying the standard print program.
    Now, you say that your line items are not displayed in your output. For check printing there is some configurations and settings to be done by your functional consultant.. I guess some configuration is missing in your case, that lack the display of line items...check with your functional team on this....(they have to set the lines)
    Note: For more info on config check FBZP where form config will be done basing on company code.
    Regards,
    Sairam

  • How to ristrict 10 line items in Check Printing Form F110_PRENUM_CHCK

    Hi,
    I have requirement in Check Printing form F110_PRENUM_CHCK. I have to print only 10 invoices (line items) for the corresponding Document number. If there are more than 10 invoices (line items), 11th invoice onwards should print in another printer in plain papaer. But upto 10th invoice should print in actual Check form. 
    How can we handle 10 no of invoices restriction in actual Check Form ? If more than 10, 11th invoice should print in plain paper.
    I copied F110_PRENUM_CHCK into Zform.
    Pls suggest me.
    Thanks in advance.
    Regards,

    Hi,
    Thank u for u r reply.
    I assigned in custumization, Still I am not able to display when we have morethan 10 line items. If we have 20 line items, It should display 10 line items in Actual check form and 11th line item onwards should print in another plain paper or 1st line to 20th line in another form.
    Regards,

Maybe you are looking for

  • Can't remove my credit card from account.

    Why i can't remove my credit card from my account. when i remove credit card (select none)already after abt 5-10 min i check my account again my creditcardd will be appear. I try to remove from PC and on my iphone.

  • Issue with indirect Quotation Exchange rates...

    Hi All, I am using FM 'POSTING_INTERFACE_CLEARING'  to clear the customer open items. While  posting with indirect quotation exchange rates i.e BKPF-KURSF is in negative.It is throwing below error "The Exchange rate may not be transferred if negative

  • File not found - opening files from appXplorer

    Quite strange this one. Bear in mind, I've just started my first JSP project. So if I get some terminology wrong, please be gentle. :) OK; start up NitroX and open the three files I have (two in web/ one in pages/). index.jsp includes two of the othe

  • Trade in - didnt receive points or 10% bonus

    I completed a trade in last week and didnt notice until I got home that the cashier didnt use my gamers unlocked membership.  So I wont get credit for the trade in.  I tried going back to the store and no one knew how to adjust it and told me to call

  • Difference between 1.0.1 and 1.0.1_1

    What the difference between 1.0.1 and 1.0.1_1 webstart releases? Thx, Max