AP Cheque Printing Report

Hi All,
Can anybody help me out to do the AP cheque printing report using XML Publisher.
Followings are the steps I did.
1. Create rdf and register in APPS.
Executable is defined in Customization AP application
Concurrent Program is in Payables application.
2. Create Data Definition and Template in XML Publisher administrator in Payables.
3. Attached the Concurrent program in AP Format set up.
4. Make the Payment, The report is calling and showing completed normal but the output is not coming.
5. Then I run the XML report Publisher and pass the request id then the output is coming as PDF.
But the requirement is when we make the payment , The output should come and it will go to the printer for printing..
Please help me where I made the mistake.
or please guide me what approach I should follow.
Thanks in Advance.
Pradipta

Here is my code:
function AfterReport return boolean is
vrequest_id number;
v_success BOOLEAN;
v_printer fnd_concurrent_requests.printer%TYPE;
v_print_style fnd_concurrent_requests.print_style%TYPE;
begin
-- Set up printer for the following reports
-- Get the printer and style for this report for use with the following reports select printer, print_style
into v_printer, v_print_style
from fnd_concurrent_requests
where request_id = :P_CONC_REQUEST_ID;
srw.message(999, 'Print options: ' || v_printer || '/' || v_print_style);
v_success := fnd_request.set_print_options (v_printer
,v_print_style
,1
,TRUE
,'N'
,'SKIP'); IF NOT v_success THEN
srw.message(999, 'Failure to set print options'); ELSE
srw.message(999, 'Print options set'); end if;
-- Submit the XML Report Publisher request to complete the printed Dunning Letters
vrequest_id := FND_REQUEST.SUBMIT_REQUEST('XDO',
'XDOREPPB',
NULL,
NULL,
FALSE,
:P_CONC_REQUEST_ID,
222, -- Receivables
'XX_ARDLPPRT_RPT',
'en', 'N', 'RTF', 'PDF', NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-- commit to submit request
commit;
IF vrequest_id = 0 THEN -- if request id
srw.message(999, 'Failure to submit Concurrent Request to Print Dunning Letters');
ELSE
srw.message(999, 'request id ' || to_char(vrequest_id) || ' submitted');
end if;
-- Original Afterreport trigger stuff
SRW.DO_SQL('alter session set sql_trace false');
return (TRUE);
end;

Similar Messages

  • Cheque printing report in Oracle Apps Payables

    Hi friends.
    I am working on reports development.Initially i worked on R6i,currently i am working on XML Publisher.I have a requirement for cheque printing.Our client deals with many banks and i have to make a separate report for each bank.How is cheque printing usually done?Do we make a separate report for each of the banks?

    I have to print cheques on preprinted stationery.
    I don't have to print invoices and cheques after that.Straightaway I need to print
    cheques only.
    How do i print continous cheques?
    Should i have one cheque per page?In that case,the paper-size should be almost same as that of the size of envelop.
    will the Dot-Matrix printer recognize this for printing the cheques?
    please advise me how to proceed?
    The other problem,I am facing is ,our client deals with many(10-12) banks.
    As the cheque style for each bank differs,I have to make a separate layout for each bank.?
    Should I make layouts for all the banks or is there any other approach?

  • AP Cheque Print(Void Cheque)

    Hi All,
    I am doing the AP Cheque print report.
    I have the requirement like the following.
    If the user will make a payment of 23 invoices(23 lines) per cheque then
    the first page will contain 22 lines(invoices) and the cheque of the first page should be print as VOID cheque.
    The 2nd page will contain 1 line(one invoice) then the cheque of 2nd page will print the cheque details like vendor name. cheque date and total invoice amount of that 23 invoices etc.
    Sample template will be more helpful.
    Appreciate any help.
    Regards
    Pradipta

    HI,
    I have the same problems as i am also developing the Ap check printing.
    Have you been able to find a solution to the problem,pls help
    Thanks deepak

  • Cheque Printing Abap Dumps

    Dear All Gurrus
    i am facing an Abap Dump when user send cheque Printing .other document printing are Ok .please see this error
    Runtime errors         LOAD_PROGRAM_NOT_FOUND       
           Occurred on     04.06.2007 at   16:18:50
    Program " " not found.                                                        
    What happened?
    There are several possible reasons for the error:                                                                               
    or                                                                               
    The current ABAP program had to be terminated because the                                
    ABAP processor detected an internal system error.                                        
    The current ABAP program "SAPLF028" had to be terminated because the ABAP                
    processor discovered an invalid system state.                                                                               
    What can you do?
    Print out the error message (using the "Print" function)                                 
    and make a note of the actions and input that caused the                                 
    error.                                                                               
    To resolve the problem, contact your SAP system administrator.                           
    You can use transaction ST22 (ABAP Dump Analysis) to view and administer                 
    termination messages, especially those beyond their normal deletion                     
    date.                                                                               
    Error analysis
    On account of a branch in the program                                                    
    (CALL FUNCTION/DIALOG, external PERFORM, SUBMIT)                                         
    or a transaction call, another ABAP/4 program                                            
    is to be loaded, namely " ".                                                                               
    However, program " " does not exist in the library.                                                                               
    Possible reasons:                                                                        
    a) Wrong program name specified in an external PERFORM or                                
       SUBMIT or, when defining a new transaction, a new                                     
       dialog module or a new function module.                                               
    b) Transport error                                                                       
    b) Transport error                                                                       
    How to correct the error
    Check the last transports to the R/3 System.                                                                               
    Are changes currently being made to the program "SAPLF028"?                                                                               
    Has the correct program been entered in table TSTC for Transaction "FBZ4 "?              
                                                                                    You may able to find an interim solution to the problem                                  
    in the SAP note system. If you have access to the note system yourself,                  
    use the following search criteria:                                                                               
    "LOAD_PROGRAM_NOT_FOUND" C                                                               
    "SAPLF028" or "LF028U06"                                                                 
    "PAYMENT_FORM_PRINT"                                                                     
    If you cannot solve the problem yourself, please send the                                
    following documents to SAP:                                                                               
    1. A hard copy print describing the problem.                                             
       To obtain this, select the "Print" function on the current screen.                    
                                                                                    2. A suitable hardcopy prinout of the system log.                                        
       To obtain this, call the system log with Transaction SM21                             
       and select the "Print" function to print out the relevant                             
       part.                                                                               
    3. If the programs are your own programs or modified SAP programs,                       
       supply the source code.                                                               
       To do this, you can either use the "PRINT" command in the editor or                   
       print the programs using the report RSINCL00.                                                                               
    4. Details regarding the conditions under which the error occurred                       
       or which actions and input led to the error.                                          
    System environment
    SAP Release.............. "620"                                                                               
    Application server....... "PKSAPT10"                                                     
    Network address.......... "184.208.96.235"                                               
    Operating system......... "Windows NT"                                                   
    Release.................. "5.0"                                                          
    Hardware type............ "4x Intel 801586"                                              
    Character length......... 8 Bits                                                         
    Pointer length........... 32 Bits                                                        
    Work process number...... 0                                                              
    Short dump setting....... "full"                                                                               
    Database server.......... "PKSAPT10"                                                     
    Database type............ "MSSQL"                                                        
    Database name............ "T10"                                                          
    Database owner........... "t10"                                                                               
    Character set............ "English_United State"                                                                               
    SAP kernel............... "640"                                                          
    Created on............... "Oct 29 2006 23:44:46"                                         
    Created in............... "NT 5.0 2195 Service Pack 4 x86 MS VC++ 13.10"                 
    Database version......... "SQL_Server_8.00 "                                                                               
    Patch level.............. "155"                                                          
    Patch text............... " "                                                                               
    Supported environment....                                                                
    Database................. "MSSQL 7.00.699 or higher, MSSQL 8.00.194"                     
    SAP database version..... "640"                                                          
    Operating system......... "Windows NT 5.0, Windows NT 5.1, Windows NT 5.2"               
    User, transaction...
    Client.............. 210                                                                 
    User................ "AGHAZNAVI"                                                         
    Language key........ "E"                                                                 
    Transaction......... "FBZ4 "                                                             
    Program............. "SAPLF028"                                                          
    Screen.............. "SAPMF05A 0700"                                                     
    Screen line......... 43                                                                  
    Information on where terminated
    The termination occurred in the ABAP program "SAPLF028" in                               
    "PAYMENT_FORM_PRINT".                                                                   
    The main program was "SAPMF05A ".                                                                               
    The termination occurred in line 332 of the source code of the (Include)                 
    program "LF028U06"                                                                      
    of the source code of program "LF028U06" (when calling the editor 3320).                 
    Source code extract
    003020     IF sy-subrc NE 0                     "bei nicht in PAYR vorhandenen o.
    003030         AND payr-vblnr EQ reguh-vblnr.   "durch FCH7 (Scheck neu drucken)
    003040       opayf-pstap = 0.                   "in Auftrag gegebene Schecks wird
    003050     ELSE.                                "der Stapel mitgegeben, sonst die
    003060       CLEAR payr.                        "Restart-Schecknummer aus PAYR  
    003070     ENDIF.                                                               
    003080                                                                          
    003090     IF t042z-formi IS INITIAL.           "alte Zahlungsträger (nur Scheck)
    003100       SUBMIT (t042z-progn) WITH zw_laufd = reguh-laufd                   
    003110                            WITH zw_laufi = reguh-laufi                   
    003120                            WITH zw_zbukr = reguh-zbukr                   
    003130                            WITH zw_xvorl = space                         
    003140                            WITH sel_zawe = i_opayf-rzawe                 
    003150                            WITH par_zdru = 'X'                           
    003160                            WITH par_priz = i_opayf-ppriz                 
    003170                            WITH par_zfor = i_opayf-pzfor                 
    003180                            WITH par_avis = i_opayf-pavis                 
    003190                            WITH par_pria = i_opayf-ppria                 
    003200                            WITH par_stap = i_opayf-pstap                 
    003210                            WITH par_rchk = payr-chect                    
    003220                            WITH par_begl = space                         
    003230                            WITH sel_hbki = reguh-hbkid                   
    003240                            WITH sel_hkti = reguh-hktid                   
    003250                            WITH par_anzp = par_anzp                      
    003260                            WITH par_fill = i_opayf-pfill                 
    003270                            WITH par_espr = i_opayf-pespr                 
    003280                            WITH par_isoc = i_opayf-pisoc                 
    003290                            WITH par_sofo = i_opayf-psofo                 
    003300                            WITH par_novo = i_opayf-xnovo                 
    003310                            AND RETURN.                                   
        ELSE.                           "neue Zahlungsträger (z.Zt. nur OFX) 
    003330       CALL FUNCTION 'PAYMENT_MEDIUM_ONLINE'                              
    003340         EXPORTING                                                        
    003350           im_formi = t042z-formi                                         
    003360           im_reguh = reguh                                               
    003370           im_opayf = i_opayf                                             
    003380         TABLES                                                           
    003390           tb_regup = xregup.                                             
    003400     ENDIF.                                                               
    003410                                                                          
    003420   ENDFUNCTION.                                                           
    Contents of system fields
    SY field contents..................... SY field contents.....................
    SY-SUBRC 4                             SY-INDEX 0                            
    SY-TABIX 1                             SY-DBCNT 1                            
    SY-FDPOS 0                             SY-LSIND 0                            
    SY-PAGNO 0                             SY-LINNO 1                            
    SY-COLNO 1                             SY-PFKEY UAN                          
    SY-UCOMM BU                           
    SY-TITLE Payment with Printout: Display Overview                              
    SY-MSGTY I                             SY-MSGID F5                           
    SY-MSGNO 312                           SY-MSGV1 1500000011                   
    SY-MSGV2 KOPK                          SY-MSGV3                              
    SY-MSGV4                              
    Active calls / events
    No.... Type........ Name..........................
           Program                                
           Include                                  Line    
           Class                                  
         4 FUNCTION     PAYMENT_FORM_PRINT                                          
           SAPLF028                               
           LF028U06                                   332
         3 FORM         FCODE_BEARBEITUNG                                           
           SAPMF05A                               
           MF05AFF0_FCODE_BEARBEITUNG                2333
         2 FORM         FUSSZEILE_VERARBEITEN                                       
           SAPMF05A                               
           MF05AFF0_FUSSZEILE_VERARBEITEN             148
         1 MODULE (PAI) FUSSZEILE_BEARBEITEN                                        
           SAPMF05A                               
           MF05AI00_FUSSZEILE_BEARBEITEN               46
    Chosen variables
         4 FUNCTION     PAYMENT_FORM_PRINT                                          
           SAPLF028                               
           LF028U06                                   332
    I_CC_CURR                      PKR                                    
                                   54522                                  
                                   0B200                                  
    I_OPAYF                        KOPKLOCL                     0002  XCCIT
                                   4454444422222222222222222222233332254445
                                   BF0BCF3C00000000000000000000000020083394
    ... +  40                      IH  X           0001000005             
                                   4422522222222222333333333322222222222222
                                   9800800000000000000100000500000000000000
    ... +  80                                                                               
    2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 120                                             00000000000000  
                                   2222222222222222222222233333333333333  
                                   0000000000000000000000000000000000000  
    I_REPRI                                                                               
    2                                      
                                   0                                      
    I_VBLNR                        1500000011                             
                                   3333333333                             
                                   1500000011                             
    I_WWERT                        20070604                               
                                   33333333                               
                                   20070604                               
    REGUH-LAUFI                    00001*                                 
                                   333332                                 
                                   00001A                                 
    <%_TABLE_LFA1>                 ???                                    
    REGUH-ZBUKR                    KOPK                                   
                                   4454                                   
                                   BF0B                                   
    I_OPAYF-RZAWE                  C                                      
                                   4                                      
                                   3                                      
    I_OPAYF-PPRIZ                  LOCL                                   
                                   4444                                   
                                   CF3C                                   
    I_OPAYF-PZFOR                                                                               
    2222222222222222                       
                                   0000000000000000                       
    I_OPAYF-PAVIS                                                                               
    2                                      
                                   0                                      
    I_OPAYF-PPRIA                                                                               
    2222                                   
                                   0000                                   
    I_OPAYF-PSTAP                  0002                                   
                                   3333                                   
                                   0002                                   
    PAYR-CHECT                                                                               
    2222222222222                          
                                   0000000000000                          
    REGUH-HBKID                    CITIH                                  
                                   44544                                  
                                   39498                                  
    REGUH-HKTID                    CTOLH                                  
                                   45444                                  
                                   34FC8                                  
    PAR_ANZP                       0                                      
                                   3                                      
                                   0                                      
    I_OPAYF-PFILL                                                                               
    2                                      
                                   0                                      
    I_OPAYF-PESPR                                                                               
    2                                      
                                   0                                      
    I_OPAYF-PISOC                                                                               
    2                                      
                                   0                                      
    I_OPAYF-PSOFO                  X                                      
                                   5                                      
                                   8                                      
    I_OPAYF-XNOVO                                                                               
    2                                      
                                   0                                      
    %_PRINT                            000                                
                                   2222333222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  40                                                                               
    2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  80                                0 ########                   
                                   2222222222320000000022222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 120                                                                               
    2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 160                                    0                 ####   
                                   222222222222223222222222222222220000   
                                   000000000000000000000000000000000000   
    KNBK-KOINH                                                                               
    2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  40                                                                               
    22222222222222222222                   
                                   00000000000000000000                   
    T042Z-FORMI                                                                               
    222222222222222222222222222222         
                                   000000000000000000000000000000         
    <%_TABLE_T012>                 ???                                    
    REGUH                             2007060400001* KOPK0001000005       
                                   2223333333333333224454333333333322222222
                                   0002007060400001A0BF0B000100000500000000
    ... +  40                                        1500000011 PKR  LHP1Co
                                   2222222222222222223333333333254522445346
                                   000000000000000000150000001100B200C8013F
    ... +  80                      mpany        Supreme Gas Ind. Pvt. Ltd 
                                   6766722222222577766624672466225772247622
                                   D01E90000000035025D5071309E4E0064E0C4400
    ... + 120                                                                               
    2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 160                                                                               
    2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 200                                                                               
    2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 240                         Lahore                              
                                   222466676222222                        
                                   000C18F25000000                        
    SYST-REPID                     SAPLF028                               
                                   5454433322222222222222222222222222222222
                                   310C602800000000000000000000000000000000
    T042I-HBKID                    CITIH                                  
                                   44544                                  
                                   39498                                  
    XREGUP[]                       Table IT_1065[1x1184]                  
         3 FORM         FCODE_BEARBEITUNG                                           
           SAPMF05A                               
           MF05AFF0_FCODE_BEARBEITUNG                2333
    %_SPACE                                                                               
    2                                      
                                   0                                      
    RC                             0                                      
                                   0000                                   
                                   0000                                   
    SYST-REPID                     SAPMF05A                               
                                   5454433422222222222222222222222222222222
                                   310D605100000000000000000000000000000000
    SY-REPID                       SAPMF05A                               
                                   5454433422222222222222222222222222222222
                                   310D605100000000000000000000000000000000
    VORSCHL_GRIRG                                                                               
    222                                    
                                   000                                    
    XBKPF-BELNR                    1500000011                             
                                   3333333333                             
                                   1500000011                             
    %_DUMMY$$                                                                               
    2222                                   
                                   0000                                   
    VAKTAB                                                                               
    222222222222222222222222222222         
                                   000000000000000000000000000000         
    XBKPF-BUKRS                    KOPK                                   
                                   4454                                   
                                   BF0B                                   
    VORSCHL_GITYP                                                                               
    22                                     
                                   00                                     
    XBKPF-GJAHR                    2007                                   
                                   3333                                   
                                   2007                                   
    C_INFO_LINK                    100                                    
                                   333                                    
                                   100                                    
    BKPF                           210KOPK15000000112007KZ20070604200706040
                                   3334454333333333333334533333333333333333
                                   210BF0B15000000112007BA20070604200706040
    ... +  40                      620070604161846000000000000000020070604A
                                   3333333333333333333333333333333333333334
                                   6200706041618460000000000000000200706041
    ... +  80                      GHAZNAVI   FBZ4                        
                                   4445445422244532222222222222222222222222
                                   781AE16900062A40000000000000000000000000
    ... + 120                             12345                           
                                   2222222333332222222222222222222222222222
                                   0000000123450000000000000000000000000000
    ... + 160                         0000                         PKR  ###
                                   2223333222222222222222222222222254522000
                                   000000000000000000000000000000000B200000
    ... + 200                      ##     #####  ####### RFBU             
                                   0022222000002200000002544522222222222222
                                   0C000000000C00000000C0262500000000000000
    ... + 240                                                                               
    222222222222222                        
                                   000000000000000                        
    BSEG                           210KOPK15000000112007002 000000000000000
                                   3334454333333333333333332333333333333333
                                   210BF0B150000001120070020000000000000000
    ... +  40                      0          25K   SLHP1        ##########
                                   3222222222233422254453222222220001000000
                                   0000000000025B0003C80100000000000000C000
    ... +  80                      ##################PKR  #################
                                   1000000000000010005452200000000000000000
                                   000C000000C000000C0B200000000C000000C000
    ... + 120                      #######################################
                                   0000000000000000000000000000000000000002
                                   000C000000C000000C000000C000000C000000C0
    ... + 160                         000   ###############################
                                   2223332220000000000000000000000000000000
                                   000000000000000C0000C000000C000000C00000
    ... + 200                      ##0000000020070427                     
                                   0033333333333333332222222222222222222222
                                   0C00000000200704270000000000000000000000
    ... + 240                                                                               
    222222222222222                        
                                   000000000000000                        
    SY-SUBRC                       4                                      
                                   0000                                   
                                   4000                                   
    %_ARCHIVE                                                                               
    2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  40                                                                               
    2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  80                                                                               
    2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 120                                                                               
    2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 160                                                                               
    2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 200                                                                               
    2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 240                                                                               
    222222222222222                        
                                   000000000000000                        
    SAPOS-GITYP                                                                               
    22                                     
                                   00                                     
    T001-WAERS                     PKR                                    
                                   54522                                  
                                   0B200                                  
    SAPOS-GRICD                                                                               
    22                                     
                                   00                                     
    OPAYF                          KOPKLOCL                     0002  XCCIT
                                   4454444422222222222222222222233332254445
                                   BF0BCF3C00000000000000000000000020083394
    ... +  40                      IH  X           0001000005             
                                   4422522222222222333333333322222222222222
                                   9800800000000000000100000500000000000000
    ... +  80                                                                               
    2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 120                                             00000000000000  
                                   2222222222222222222222233333333333333  
                                   0000000000000000000000000000000000000  
    SAPOS-GRIRG                                                                               
    222                                    
                                   000                                    
    RF05A-KOATX                                                                               
    222222222222                           
                                   000000000000                           
    BKPF-WWERT                     20070604                               
                                   33333333                               
                                   20070604                               
    SY-XFORM                       CONVERSION_EXIT                        
                                   444545544454545222222222222222         
                                   3FE65239FEF5894000000000000000         
    SY-MSGID                       F5                                     
                                   43222222222222222222                   
                                   65000000000000000000                   
    ANL_HKONT                                                                               
    2222222222                             
                                   0000000000                             
    T001W                                                                               
    2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  40                                                                               
    2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... +  80                                                                               
    2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 120                                                                               
    2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 160                                                                               
    2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 200                                                                               
    2222222222222222222222222222222222222222
                                   0000000000000000000000000000000000000000
    ... + 240                                    #                        
                                   222222222222220                        
                                   000000000000000                        
    SPACE                                                                               
    2                                      
                                   0                                      
    SY-MSGNO                       312                                    
                                   333       

    Specification of form is missing in pmnt method C for comp.code KOPK
    In the include program RFFORI01 the query "SELECT * FROM t042z WHERE land1 EQ t001-land1 AND zlsch IN sel_zawe AND progn EQ sy-repid" is returning a null value for progn. This null value is passed to "003100 SUBMIT (t042z-progn) WITH zw_laufd = reguh-laufd" (Refer to the short dump).
    Refer to IMG for adding specification of form.
    Regards,
    Khalid Mustafa
    Development Consultant Netweaver-ABAP

  • Print Report

    Dear guyz,
    How can i print directly to local connected Printer.
    i have develop cheque printing software, and i have Epson LQ-680 ESC/P 2 printer i want to print the report directly to this printer and this is not a default printer.
    i have the below code on forms to calling report even though it showing preview screen which i dont like when user press the button the it will print dirrectly to the above printer without showing anything on screen how can i do this? any help appreciate.
    i'm using oracle 6i
    code on button
    :PARAMETER.IDNO:=:IDNO;
    Run_product(reports,'K:\CHEQUES\Reports\ANB',synchronous,runtime,filesystem,'default',null);
    CLEAR_RECORD;Regards
    Moazam

    thx guyz,
    I Solved the matter.......
    Regards
    Moazam

  • SAP Cheque Printing

    Hi experts,
    i have customized cheque printing template  and when i import into SAP under the layout CHO1 when i preview in SAP B1 nothing comes.
    I customized it using outgoing payment report crystal and added the OCHO table that's for check printing.
    but when i import into SAP under the check printing template CHO1 when i preview nothing shows.
    how can i customize a report so that the outgoing payments details will appear on the check printing report.
    Please urgent help is required.
    Regards
    Justice

    HI,
    You have to create procedure/ correct linking of Tables to pick all the details of Outgoing payments with respect to that cheque details . Then only it will pick information from outgoing payment.
    Thanks

  • Cheque printing only on first page

    Hi,
    Iam a newbie in XML/BI Publisher. I am doing a AP Cheque printing. In the report I have to print the invoice lines and at the bottom of first page I need to print the cheque. I did all necessary stuffs for this in the RTF template.
    But now the cheque is getting printed in the second page if the lines comes to the second page or after printing the lines if there is no space for the cheque then its getting printed in the next page.
    Can anyone guide me how to print the cheque only in the first page bottom alone.
    The sample output which I needs is like this,
    page 1-
    Invoice line number
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    |..............................|
    | cheque print...........|
    page 2
    Invoice line number
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    line.
    thanks a ton in advance.

    Hmm,
    There is no way you can say fix that and show this only in first page.
    but you can achieve it.
    1st method.
    give enough space for the check in the first page, by reducing the no of lines in the first page, so that you can accommodate the cheque .
    for this, you can do like,
    if the position is less than 9 and mod of postion is zero , that means you are in 9 line, then call a sub-template and after that you can put a page-break. this condition is for first page only.
    now put an another if condition here, if the position is > 9 and position mod X is zero, then put a page break. x is no of lines to be displayed in 2nd, 3rd, 4th pages.
    2nd method.
    put the differnet header and footer for first pge.
    and cal the sub-template in footer of first page.
    in tht sub-template you have the check.

  • Numeric value in words (for Cheque printing)

    Hi All,
    To convert numeric value in words (for Cheque printing), I created two functions in Forms and reports 6i.
    1) FUNCTION Spell (val number) RETURN CHAR IS
    sp varchar2(100);
    BEGIN
    if val > 0 then
         return(initcap(to_char(to_date(val, 'SSSSS'), 'SSSSSSP')));
    else
         return('');
    end if;
    END;
    2) function SPELLED_AMOUNTFormula return Char is
    cents number;
    c_str varchar2(80);
    val number;
    begin
    val := :p_instr_amt;
    cents := (val mod 1) * 100;
    if cents > 0 then --creates string for cents
    c_str := ' and ' || spell(TO_CHAR(cents)) || ' fils Only';
    else
    c_str := ' Only';
    end if;
    if val < 1000 and val > 1 then
    return (initcap(spell(floor(val))) || c_str);
    elsif val > 1000 then
    return(initcap(spell(floor(val/1000))) || ' Thousand ' ||
    spell(floor(val mod 1000)) || c_str);
    else
    return('Zero'||c_str);
    end if;
    end;
    This convert value up to thousands. How to convert the value more than 1 lac. please configure this code.
    Thanks in advance

    Hi,
    To spell integers as high as 5,373,484, use 'Jsp' instead of 'ssssssp'.
    TO_CHAR ( TO_DATE ( n     -- n = integer to be spelled
                  , 'J'
         , 'Jsp'          -- Case-sensitive
         )5373484 is the Julian date of December 31, 9999, the latest DATE value in Oracle. In Oracle 10.2, you can actually spell numbers a little bit higher using the expression above, but I'm not sure why, and I wouldn't count on being able to do so in future versions.
    There's no need for INITCAP here. If the 2nd argument to TO_CHAR is initcapped (as above), then the output will be, too.
    To spell even larger numbers, see this page by Tom Kyte, which also includes languages other than English, and lakh-crore-arab-kharab wording.
    Edited by: Frank Kulash on Oct 13, 2012 7:21 AM

  • List of Cheque Printing

    Dear All,
    Business using T-code F-58 to post out going payments to vendors, here posting is done in one place and cheque printing will be done in another country.
    2. Is there any report to see the list of cheques pending for print out.  T-code SP02 here we can list of spool requests.  But requirement is to see the cheque number, vendor details, and amount.
    Is there any solution to view all the pending list of to be printed cheques?
    Regards
    Partha

    No Srikant,
    Here no option to fine list of cheques which or not printed.  That means spool is generated, but printing is not happend.
    Requirement is to see the list of check (printed and not printed view).
    Regards
    Partha

  • Multiple items not dispalying in cheque printing

    Hello All,
    I am using script for cheque printing. I am not able to display multiple items in the main window.I have written the code near the write_form also.But it is not displaying the items. The script used is F110_PRENUM_CHCK. Program Name RFFOUS_C.I am getting the values in regup when i debug for multiple items.
    I have used an internal table and workarea in the report program and used the work area in the script. But i am not getting values.
    Can anybody help me out. I will reward you with points.
    Thanks

    You  said you made changes, dose that mean that you made a Z copy of the program?
    I have used an internal table and workarea in the report program and used the work area in the script. But i am not getting values.
    If so, is your configuration for payment run mapping to the Z program and the SAP script?
    Thanks,
    Francis

  • Junk Characters on first two pages of Cheque Printing SAP Script.

    Hi All
    I implementing cheque printing for one of our client's Oman based subsidiary. I have copied the standard SAP Script F110_PRENUM_CHCK into a Z-Form and maintained its original language as EN. I have commented out all the unnecessary peices of information in all the windows and customised as per my requirement.
    Now the problem that i am facing is that when i execute this script through the standard driver program RFFOUS_C, i am getting junk characters on first two pages of the script. The info displayed comes in the HEADER and MAIN Windows. The desired output is coming in the 3rd, 4th and 5th pages.
    Please let me know how should i get rid of these junk characters.
    Regards
    Harsh
    PS: All info printed is in English only.

    Hi
    Thanks for your response.
    Yes, the remittance advice header info is getting printed in the HEADER Window and its contents in the tabular structure are in the MAIN Window.
    I am passing EN as the language.
    Adding to this, the report RFFOUS_C gets executed and i am checking the spool that is created which has the junk characters on the first two pages.
    Regards
    Harsh

  • Mutiple cheque printing

    Dear all,
    can anyone tell me how to do mutiple cheque printing using crystal reports. I have done setup for single cheque printing. Now i have to print the same data on mutiple cheques how to handle this situation.
    swapnil

    Hi,
    I think multiple printing is just the same in printing a single document instead you must print all the document. In single printing you can see only see only one document, in multiple printing you can click the next button to see all the document or print them all.
    Hope this help.
    Regards,
    Clint

  • Cancelled POs not appearing in isupplier PO Print Report

    Hi All,
    I am using oracle apps 11.5.10 version.My problem is that PO print report is not printing all the cancelled Purchase Orders.Its printing only the last Purchase Order which is cancelled.
    Steps to reproduce-
    1. create a multi line req in iproc..submit and on approval PO gets created.
    2.from isupplier run Printed PO report.You will see all the lines.
    3. Cancel 1st line in iproc-let it revision.run report from isupplier.You'll see all the lines along with one line that is cancelled.
    4.Cancel 2nd lines in iproc.let it revision.run report from isupplier.You will see all the lines and the new cancelled line as well.But the Cancelled line1 will not be seen.
    5.Again cancel 3rd line.When you print PO in isupplier.You will see all lines+3rd cancelled line.But the above two cancelled Lines 1 and 2 will b missing.
    Note- we have modifed the xslfo and po_lines_xml for some other changes.I have reverted the changes made in po_lines_xml but still facing the same issue.
    Please help.

    Hi,
    Please check in transaction  SXMB_MONI can found related information why it not transfer to SRM.
    Also check the purchasing data of the PO.
    Thanks,
    prasad.s

  • Report Generation Toolkit V9.0.0 : Print Report.vi doesnt print

    Hi,
    i have migrated my Labview 8.5 Project with Report Generation Toolkit V1.1.2 to a Labview 2009 System with Report Generation Toolkit V9.0.0.
    In this Project I use the Report Generation Toolkit for printing out a Standard Report with e few Tables and Graphs.
    Now the VI Print Report.vi delivers the Error -41002 with the Text "Invalide Printer Name". I have, of course installed the propper Printer on the machine.
    I don´t connect a string to the "Printer name" input of the VI, because i want to use the default printer.
    In my oppinion, there´s  a bug in the Print Report.vi: if you don´t wire the "Printer name" input, the vi should use the default printer, but in this case the vi connects the empty input string to the input of the method node it calls.
    I fixed this bug, but the method node still returns the same error.
    any ideas?
    Thanks!
    Solved!
    Go to Solution.

    Thank you for the link!
    For some reasons i can´t find this specific article in the knowledge base (my browser is always rerouted to the german version of ni.com, because i am in Austria). I tried to search with the exact title of this article, and the error message string, but no results...
    I have also installed Labview 8.5 and the "old" Toolkits on my new computer in addition to Labview 2009 and the "new" Toolkits and tested my program in 8.5. Here i got an error mentioning the margins and i had to change the margin settings for printing out, then in worked.
    After reading the article, i have applied the same changes for the margins in the 2009-version of my program and it works too!
    Problem solved!
    Thank you very much!
    PS:
    I first wrote, that there´s maybe a bug in the new version of the Print Report.vi, but i´ve compared it with the old version and it seems to be no bug, sorry!
    After all I decided to stay with Labview 8.5 for now, because of another problem:
    it´s not possible to "save for previous version" from LV2009 to LV8.5 directly.
    Laview crashes, when a VI contains an event structure as i found out by searching through the "known issues", and i have a lot of VIs with event structures!
    I have to have the possibility to save my Labview projects for 8.0 and 8.5. The only way is to save for 8.6 and then save from 8.6 to 8.5.
    That´s nasty and time-consuming!
    Maybe a future update will solve this problem (without producing new ones)

  • Printing report that has a parameter with multiple values crashes jvm

    I am using BOE XI 4.0 as an unmanaged RAS.
    I am able to preview a report that has a string discrete parameter that can have multiple values.  If I give it a single value.  It previews fine.  If I give it an empty string it prints all values which is fine.  If I give it two discrete values, it displays just those two.
    However, if I try printing the report to a printer:
    1 parameter value - prints fine.
    2 parameter values - crashes jvm
    empty string parameter value - crashes jvm
    I would appreciate some direction on how to do this.  It works in crystal reports for eclipse.
    The test jsp I am using is based off of the samples.  The print test jsp is the same as the preview test with the exception of the following code differences.:
    preview report.jsp code
    // Create a Viewer object
    CrystalReportViewer viewer = new CrystalReportViewer();
    // Set the report source for the  viewer to the ReportClientDocument's report source
    viewer.setReportSource(clientDoc.getReportSource());
    // Process the http request to view the report
    viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), out);
    // Dispose of the viewer object
    viewer.dispose();
    print report jsp code
      PrintReportOptions printOptions = new PrintReportOptions();
      printOptions.setPrinterName("DELL");
      try {
          clientDoc.getPrintOutputController().printReport(printOptions);
      } catch (ReportSDKException ex1) {
          System.out.println("Message - " + ex1.getLocalizedMessage());
      } catch (Exception ex2) {
          System.out.println("Message - " + ex2.getLocalizedMessage());
      clientDoc.close();

    I am using BOE XI 4.0 as an unmanaged RAS.
    I am able to preview a report that has a string discrete parameter that can have multiple values.  If I give it a single value.  It previews fine.  If I give it an empty string it prints all values which is fine.  If I give it two discrete values, it displays just those two.
    However, if I try printing the report to a printer:
    1 parameter value - prints fine.
    2 parameter values - crashes jvm
    empty string parameter value - crashes jvm
    I would appreciate some direction on how to do this.  It works in crystal reports for eclipse.
    The test jsp I am using is based off of the samples.  The print test jsp is the same as the preview test with the exception of the following code differences.:
    preview report.jsp code
    // Create a Viewer object
    CrystalReportViewer viewer = new CrystalReportViewer();
    // Set the report source for the  viewer to the ReportClientDocument's report source
    viewer.setReportSource(clientDoc.getReportSource());
    // Process the http request to view the report
    viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), out);
    // Dispose of the viewer object
    viewer.dispose();
    print report jsp code
      PrintReportOptions printOptions = new PrintReportOptions();
      printOptions.setPrinterName("DELL");
      try {
          clientDoc.getPrintOutputController().printReport(printOptions);
      } catch (ReportSDKException ex1) {
          System.out.println("Message - " + ex1.getLocalizedMessage());
      } catch (Exception ex2) {
          System.out.println("Message - " + ex2.getLocalizedMessage());
      clientDoc.close();

Maybe you are looking for