Multiple Invoice Printing in SF

Dear Experts,
I have a problem printing SMARTFORM. I have created a driver program in which i am doint the whole logic. I am not doing any coding in the Smartform. I have passed my header and item level details into 2 Internal tables which i am passing to smartform as shown below
FORM CALL_FORM .
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
  EXPORTING
    FORMNAME                 = formname
IMPORTING
   FM_NAME                  = fm_name
IF SY-SUBRC <> 0.
ENDIF.
CALL FUNCTION FM_NAME
  TABLES
    TTAB                       = TTAB
    ATAB                       = ATAB
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.
ENDFORM.
In the smartform i have passed the above Tables in FORM INTERFACE.
In GLOBAL INTERFACE i have defined a work area for my item details table.
In the Smartform i am looping only my ITEM DETAIL DATA in the MAIN WINDOW.
The problem is in SELECTION-SCREEN i give document number from say 001 to 005.
Normally when you give a print preview for multiple documents you get all the documents one below the other in the Preview. It will show you like "PAGE 001 of 005".
but in my case it is showing first page. After that when i click BACK ARROW it goes to the second document and then again click on BACK ARROW it goes to third document and so on...
Also when i print it only prints the document which is there on the page instead of all the 5 documents.
I hope i have been successful in presenting my case to you. Can anyone please suggest how to get through this problem??? It is very critical requirement.
Please note that the program was earlier created in SAPSCRIPT for preprinted stationery. now they are discontinuing it and hence we recreated it in SmartForm.
Regards,
JMN
Edited by: jiteshmnair on Jul 28, 2009 12:52 PM

Hi,
Dont use these FMs like SSF_OPEN and SSF_CLOSE and dont call CALL FM_NAME in LOOP.
This concept works only in sapscript. In smartforms you need to call only two FMs in this way.
1. Call FM. SSF_FUNCTION_MODULE_NAME.
    it will generate the function module name for the created smartform and store that into FM_NAME.
2. Then call the generated function module name and replace that with FM_NAME. and pass the internal tables in the appropriate paramenters.
and remain other things unchanged.
Hope it will help you.
Regards

Similar Messages

  • Excise Invoice Print problem for multiple Invoices

    HI   All,
    I Have developed a Zprint prog and zsmartform and attached it to standard tcode J1IP .
    when we execute J1IP outputtype J1I10  we get multiple invoices . if we select one check box and execute and press print preview/ print we get the print correctly . But if we check multiple check boxes and press print/preview then we have to press print button multiple times/come  back for every invoice .
    My requirement  is when we execute J1iP for multiple invoices it should not come multiple times pop up window ..ie in one print request we need to send multiple invoices . How to achieve this functionality.

    Hi,
    use NO_OPEN and NO_CLOSE fields of CONTROL_PARAMETERS structure
    in Your call to smart form function module.
    Currently You print every invoice in separate spool request.
    You should print all invoices in one big spool requests.
    Set NO_CLOSE = X to all, except last one, and NO_OPEN = X to all, except first one.
    Regards,
    Przemysław

  • Excise invoice Print for multiple invoices

    Hi All ,
    i have developed a z smartform and attached to standard tcode J1IP o/p type J1I0 . The o/p is comming fine when i select one excise no after excecuting tcode J1IP But if selected multiple invoices by checking the checkbox and press print preview or print
    button each time it is giving print preview/print diaog. i.e i need to execute print for first invoice and again i have to come back and again it will ask print prview/print dialog for second like wise n times for n no of selected documents .
    my requirement is like when i execute tcode J1Ip and when i select multiple invoice i should get only one print preview or print dialog for all documents . how to achieve this

    HI friend,
    Its simple.
    Put all the invoices in a single loop. I think you will be calling the smartform function module for each and every invoice. Don't do like that. Just collect all the invoices in the final table first and after that display the invoices.
    I think you can understand what i am saying.
    Please try and let me know if you have any queries i will help you.
    Thanks,
    Sri Hari

  • Generate Multiple Invoices in One PDF

    Hi,
    I have requirement whereby I need to generate multiple invoices in one PDF file. I am using Oracle BI Publisher with Oracle APEX 4.0.2
    If there is only one invoice that needs to be generated in one PDF file then I already have the solution whereby I print the APEX page item session state values on Invoice Header and get the invoice line items from a SQL Query in my RTF template.
    However how to the do the same when multiple invoice needs to be generated in one single PDF file ?
    Any pointers will highly appreciated.
    Thanks & Regards,
    Ashish

    asagarwal wrote:
    However how to the do the same when multiple invoice needs to be generated in one single PDF file ?It should be pretty straight forward.
    Once you've got the query returning multiple rows, then just add a repeating group to your report (if an existing report, just select the section of the document that will repeat -> add-ins menu -> insert repeating group...; or right click selection -> BI Publisher -> Create group...), wherein the column values exist. You can even specify a page break at the end.
    By the way, this question is probably more suited for the {forum:id=245} forum.
    Ta,
    Trent

  • Invoice Print Selected Invoices program is failing when language is not US

    Hi All,
    I am trying to run "Invoice Print Selected Invoices" for multiple languages.
    When language in customer setup under "Account Site Information" is 'US' then EN-US: (Invoice Print Selected Invoices) is completing successfully.
    But when I am changing the language from US to some other language let’s say "F”, then "FR-FR: (Invoice Print Selected Invoices)" getting submitted and it is completing in error.
    These are the log messages which I am getting:-
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    p_order_by='TRX_NUMBER'
    p_customer_id='10044'
    p_open_invoice='N'
    p_check_for_taxyn='N'
    p_choice='SEL'
    p_header_pages='1'
    p_debug_flag='N'
    p_message_level='10'
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    FRENCH_FRANCE.AL32UTF8
    Entrer mot de passe :
    MSG-00100: DEBUG: AfterPForm_Trigger +
    MSG-00100: DEBUG: Multi Org established.
    MSG-00100: DEBUG: AfterParam_Procs.Get_Country_Details
    MSG-00100: DEBUG: AfterParam_Procs.Switch_On_Debug
    MSG-00100: DEBUG: AfterParam_Procs.Get_Trx_Number_Low
    MSG-00100: DEBUG: AfterParam_Procs.Get_Trx_Number_High
    MSG-00100: DEBUG: AfterParam_Procs.Get_Tax_Option
    MSG-00103: lp_trx_date_clause = and a.trx_date = a.trx_date
    MSG-00100: DEBUG: BeforeReport_Trigger.Build_Where_Clause
    MSG-00100: DEBUG: P_Choice: SEL
    MSG-00100: Oracle Error in call to Before Report Trigger -6502
    REP-1419: 'afterpform': Abandon du programme PL/SQL.
    Report Builder: Release 10.1.2.3.0 - Production on Ma Avr 2 05:59:27 2013
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Can anyone please tell me what is the problem or is there any mistake in my approach?
    Regards
    Akash

    Please see the following docs.
    R12: Invoice Print Errors With REP-0069, REP-57054, REP-1419 [ID 557171.1]
    Invoice Print Error: Printing Selected Invoices (Multiple Languages) Is Erroring Out With REP-0069: Internal error [ID 731171.1]
    Thanks,
    Hussein

  • Multiple Report print out on Check box click

    Hi,
    I am using version apex_3.2.
    I have created Report and define check box in report. i want to give print functionality on check box. As i tick multiple invoices from report and click on print link defined below to the report, Selected Invoices should be printed. How i can do this?
    Thanks & regards
    Vedant

    Hello Vedant,
    <li> Do you already have a report that will accept multiple invoice numbers as input and generate required "Invoice Report" for you?
    <li> If Yes - Are you looking to generate URL based on user check-box selection? If so, please provide sample URL format which will accept multiple invoice numbers.
    <li> If No - I think first you should create such report (I have limited knowledge on Oracle Reports though)
    Regards,
    Hari

  • AR Invoice Print - Print on Preprinted stationary with Line comments & more

    Hi All,
    I have a requirement to print a report in XMLP for AR Invoice Print.
    Requirement
    For Template Body - Line Items
    Line 1-------------------------------------------------------------------------------------
    Line 2-------------------------------------------------------------------------------------
    Line 3-------------------------------------------------------------------------------------
    ----------------------<LINE COMMENT>----------------------This will be line :4
    Line 5-------------------------------------------------------------------------------------
    Line 6-------------------------------------------------------------------------------------
    Line 7-------------------------------------------------------------------------------------
    ----------------------<LINE COMMENT WITH 2 LINES - So the 2nd line will wrap >-----This will be line :8 and 9
    Line 10-------------------------------------------------------------------------------------
    1. Display 10 lines per page
    2. If there are Line comments for the particular line description then print the line comment in the next line as shown above - So it starts from the begin of the first column and prints till the last column of that particular row
    3. If there are more than say 100-200 characters of text then the Line comments will wrap to the next line
    4. Maintain the size of the frame size (or display 10 lines per page)
    I have already implemented 10 lines per page, which is not at all any issue, but in case there are line comments then it does not count that row. Also if the line comments wrap to 2 or more lines then it is still more complicated.
    Does anyone have a solution to this issue. Also, if any of you have implemented this earlier, kindly let me know if you can share the template for reference.
    Thanks and appreciate all your suggestions.

    Hi,
    Was anybody able to an answer to this issue? I have the same requirement where I have multiple subgroups under main group. To print a fixed number of lines in the template is causing an issue.
    Thanks,
    Sandeep

  • Multiple invoices(spool jobs) download to multiple PDF files or 1 PDF file

    Hello techies:
    Has anyone written a program that takes the spool jobs of multiple Invoices from table TSP01 and then download these multiple invoices to multiple PDF files or to
    One PDF file depending on selection screen?
    This is an urgent request from client for archiving.  Any help is highly appreciated !
    Thanks so much
    SilviaB

    Hi Chris
    Try printing from another browser, such as Firefox. There have been issues between eBay's coding practices and how Safari interprets them.

  • How to debug using RSNAST00 and jdbg for multiple invoice number

    Hi everyone,
    I want to debug multiple invoice's print preview.
    could anybody tell me the step by step process how to do this using RSNAST00 and JDBG.
    Thanks
    Lisa

    Hi Ali,
        I faced the same problem. Thing is the break point is not getting triggered when i ran tha IDOC through WE19.
    What i have done is i created a project for my exit in CMOD and kept some junk code in the exit and executed it through BD21. Then the Break point got triggered. See if it works.
    Regards,
    Uday S.

  • Direct Invoice Printing

    Hi Gurus,
      I Have got a problem in Invoice Printing.I had attached a Pgm Name say <b>Z_PGM_NAME</b>, Form Name <b>Z_ROUT_NAME1</b> And Smartform say SF_NAME1.The Invoice No I used to pick from NAST-OBJKY.Also the NAST Table entries were used to get the NO OF MESSAGES , PROCESSING STATUS to print multiple copies.Everything was fine when I was taking the printout from VF02,VF03. But now we have set that the printouts will be automatically created once the Invoice is saved.
      Now the problem is I save the invoice but no printout comes.Then in VF02 when I check the Header-Output, In processing Log , I get the error message <b>The Routine Z_ROUT_NAME in program Z_PGM_NAME does not exist</b>'for that output type.
      What scan be the problem.I checked the Program Name And Routine.In VF02 if I use the same output Type it gives the Print.

    Hello Moses,
    Please check the attributes of the output type.
    There will be a option like this :
    Print immediately while saving
    Send to spool
    Choose the relevant options for the output type.
    Hope this will help you.
    Reward points if helps.
    Best Regards,
    krishnakumar

  • Mutilple invoice printing

    Hi,
         We are printing multiple RE invoices from transaction RECPA520. I have developed a custom smartform for this purpose. The printer setting for the end user is set to dual priniting, However the user requirement is such that when they select multiple invoices to print each new invoice should start on a new front page and not on the back side of an existing invoice.
    Pls can you let me know how I can achieve this.

    Hi Nandini,
    You could Use Events in smartforms on 'Event on End of Sort' for field 'Invoice Number'  and use Command Node to 'Go  to Page' new page.
    Hope this helps.
    BR
    Dep

  • Invoice Print Report Add. Layout needs to be displayed after Last Page

    Hi,
    I am working on Invoice Print Report multiple layout Customization with RDF as Query model and created RTF using BI Publisher DEsktop and have requirement of Repeating Header on all pages, Print Page Total on all pages and Grand Total, Total Payable , Payment Options on last page. This was acheived by <?start@last-page-first:body?><?end body?>. But in one of the layout there is requirement to start new page and display some usage report for the invoice. I tried several options like using splt page break then display the custom usage report. But since I have given start last page body anything after this page is not getting picked up.
    Can you please help in resolving this issue.
    Regards,
    Amit Kulwal

    Hi SAMI Mohammed ,
    I have same issue like your, but i have to diplay a window like footer with some information. i have done like above details .
    But when there are one page its displaying at page 1 only If there are 2 pages then its not at all diplaying in any pages.So kindly guide me regarding this.
    Thanks in Advance,
    Regards,
    Neelima

  • In BI Publisher RTF table layout issue for invoice printing

    Hi,
    I am working on check printing and invoice printing project on bi publisher and i am facing one issue. That is i have used section break on check priting so because of that if the the records are more than 20 then check will print on second page and on first page there would be void printed othervise it should print on first page only. In this case the preprinted stationary is not having invoice table form. we are using blank preprinted stationary to print this .
    Now i have done with invoice and cheque layout but in output if the number of records are more than 20 then its going to second page but the problem is that invoice table break into two parts and and the end lineof table layout is not coming on first page .even on second page i am not getting start layout line to make complete table outline.
    I want that full table layouton both the pages of the table. i have tried to to create table skeleton and used it as a watermark to print all the records on it but it is coming in to the middle of the page .so it not working.
    Please anyone knows the solution on this problem please let me know or share your thoughts on this issue.
    As i have tried many options but still stuck into this issue .Kindly help me.
    Regards,
    Prachi G.

    Hmmm ... sounds like a regression bug.
    I would contact support, provide, the version you are using, layout template, sample XML data, 2000 RTF output and 2003 RTF output and ask them to investigate.
    Tim

  • How to generat multiple invoices based on per employee/contractor/services?

    Hello Experts / Dina,
    I am in situation where customer is in business of body shopping and charges to his final customer based on individual invoice / per employee /contracor & customer services. This was happening in legacy system but after the implementation of Oracle Project costing and Oracle Project billing, customer is not able to generate invoices per employee services. Rather consolidated invoices are getting generated.
    How to achieve this functionality in oracle project billing?
    Lets take example - On Project P1 for customer ABC, 3 below employees are working on different task for 3 months.
    Now after one month employees have been billed as shown below.
    Emp 1 - 1000 USD - for 100 Hrs
    Emp 2 - 2000 USD - for 200 Hrs
    Emp 3 - 1000 USD - for 50 hrs
    Now @ end of the month when invoice is getting generated is 1 invoice including 3 lines of amount total 4000 USD. There is problem; customer wants that there should be 3 different invoices per employee shoud generated based on above mentiond 3 diff lines for customer ABC.
    I guess with oracle projects billing - You can split the invoice based on Accrue through date ( which is not possible in this case ) and agreement ( which is also not possible in this case ) and different currency ( which is again not possible in this case) - I may be wrong when saying it is not possible. plz correct me if I am wrong.
    even I guess billing extension wont work. So is there any way to achive this?
    Right now only option i am thinking is let single invoice of 4000 USD with 3 different lines should pass to AR and while priniting the invoice customer can create 3 diff prints which includes individual lines. and while applying receipts on the single invoice in the system, customer can apply the receipts to indivual lines.
    but I am not sure about AUDIT issues.. Can some one think about any AUDIT issues comes to this approch or issues with TAX rounding amount issues ?
    Infact I would like to solve this issue with the help of Oracle Projects billing and not with custom invoice print program. I guess someone from you experts can figure it out to generate muiltple invoice based on employees / suppliers / contractors / materials etc.
    A suggestion on Extension / customization / seeded functionality of Oracle Project billing on thi issue would be gr8 help.
    Please help.
    Thanks
    Edited by: oracle_samba on Jan 7, 2013 1:06 AM
    Edited by: oracle_samba on Jan 7, 2013 1:07 AM

    Hi Dina,
    First of all thanks for your update :-) Your solution looks much promising.
    I thought of using billing extension but rejected on the ground that I would end up in generating events based on employee for their corsponding billig amounts so finally generating a consolidated invoice only in One GDI run. But what i was missing was pre-processing extension and running the extention in loop based on employee count.
    I am fully sure business would not have any issues of auto approving and releasing invoice upon generation. But my question is "is it possible to just approve the invoice & not release it using auto approve and release extension?" The reason is I think when GDI runs it only deletes Unapproved invoice & spare Approve invoices. - So please suggest.
    Also please validate my understanding about your solution with an existing example -
    As with the current example, there are 3 EMP presents so need to run GDI 3 times and develop pre-processing ext in a such a way that at each time it will put on hold on all the billable items except EMP1, and EMP2 and EMP3 on each consecutive run respectivly. And ensure that Auto Approve and release extension should be used in order to avoid overriding previously generated invoice? Am I right ?
    Many Many thanks for solution !!!
    Regards,
    :-)

  • Report for MSR Invoice Print is to meet Russian and ukairaine Local Legal

    is there any standard report for Misslenious sales report(MSR)Invoice Print is to meet Russian and ukairaine Local Legal needs.

    hdfhdfh

Maybe you are looking for

  • Can I install the 64-bit version of Windows 7?

    My computer > 17-inch MacBook Pro, Mid 2009 Processor:  3.06 GHz Intel Core 2 Duo Memory:  8 GB  1067 MHz DDR3 I have ordered Windows 7 so I can install the operating system using Boot Camp. Now that I've ordered it, I am wondering if it will even wo

  • Photoshop Cs5 Crash On Launch

    Last night it was working fine. I set my computer to update and restart, left, came back this morning and now none of my Cs5 programs work. This is the crash report specific to Photoshop. Hopefully someone can help me find the problem and fix them al

  • PO number and Finance doc number connection

    Hi Experts, In our project we got a requirement like we need to show fields from fs10n, fields are, GL account number, FI document number, PO number, Amount in local currency and PO description. I didnt see any datasource which bring PO number, FI GL

  • Graphic Converter and Leopard

    Since I installed Leopard on my iMac Aluminum 24" , Graphic Converter is unable to save anything, showing an "error code -43". I've already contacted Lemke Software and they can't find anything wrong, I even emailed them the .plist (which I've trashe

  • How can i Play a sound in iPhone?

    in the application to play a sound file,use which API?who can tell me.