Need to take Print out - PL SQL Program / Unix

Hi,
I need to take print out from a file already created in Database Server in a specific path to a printer. Any PL SQL program or any shell script is there to do this??
Thanks,
Neil

Neil_80 wrote:
I need to take print out from a file already created in Database Server in a specific path to a printer. Any PL SQL program or any shell script is there to do this??Not enough information.
{message:id=9360002}
It's perfectly possible, but will depend on where your data is and whether it's already a printer output file etc.
e.g. you could use the dbms_scheduler package to call a command line that sends the file directly to the printer device
However, the specifics of that will depend on your database version and your operating system, and what file you're trying to send.

Similar Messages

  • Need to take Print out using shell script

    Hi,
    My PL/SQL program is creating PDF files extracting the data from attachments (FND_LOBS.FILE_DATA) in DB server. I need to take a print out of the file using shell script.
    Thanks

    My PL/SQL program is creating PDF files extracting the data from attachments (FND_LOBS.FILE_DATA) in DB server. I need to take a print out of the file using shell script.Are you referring to OS shell script? If yes, and you already the PDF file on the server (i.e. have the physical files) then the easiest command to use is lp -- Google "man lp" for details.
    Thanks,
    Hussein

  • How to take print out for "Letter of Credit"

    Hi,
    We have configuration for Letter of Credit and posted some documents for it.Now i need to take print out of Letter of Credit transactions.
    Kindly help me in this regard...
    Thanks
    Suvarna

    Hi,
    SAP does not provide the entire life cycle of L/C. we only maintain the L/c Details in SAP.
    Thre is no standard that can give you the print. You may need to customise if needed.
    Caio
    Raghu

  • Unable to take print out of JPEG image of DMS Document

    Hi Expert,
    I have used below method to print document.
            CALL METHOD cl_gui_frontend_services=>execute
              EXPORTING
                document  = w_string
                operation = 'PRINT'.
    I am able to take print out of all documents except JPEG.
    Could any one help me out to do the same?
    Thanks,
    Jay.

    Hi,
    see three possibles solution:
    First: Solution! (Hopefully) :Print label image in GIF format
    But I also used two different solutions to distinct problems.
    I used SE78 functions dynamically to print an image for SmartForm.
    In another situation I used a DVS Repro solution from SEAL Systems.

  • Can i take print out of report

    hi
       my report has line-size 205 czn i take print out of OUTPUT of this on A4 sheet on landscape.
         my second question is : - - what CIZ refer in SAP script i have seen it like
                                                <b> &J_1IEXCHDR-EXBED(CIZ)& ,</b>  , i think it use to truncate leading space.

    1) yes, you can take print out on A4 paper in landscape format.
    2) There are formatting options...
        C-->  Space compression
        I -->  Surpress output initial value
       Ex: &value&   --> 0.00
             &value(I)  -->  empty space
       Z --> for omitting leading Zero
    Close the thread once your question is answered.
    Regards,
    SaiRam

  • Need to restrict Print out in back Ground Job

    Hi all,
    The T.Code COHVPI  will use for mass processing of Relealse process order. It the same time it will give print out for all process orders which are successfule change status to REALEASE status.Presently it is running forground Job , it is givind print out for process order shopfloor paper.
    NOw Client wants to run in Back gorund for tcode  COHVPI  , But it is running fine. But Clinet does not want print outt when it runs in the back ground. After my analysis , we can restrict print out with SY-batch eq 0 in the print program of Forms.
    But the process order status is changed to with Print out happend in the user status .
    Now i need to restict to change to status of PRINT OUT of process orders.
    Let me know i can i achive this requirement.
    Thanks in Advance,
    Regards,
    JBR

    Hi,
    Thanks for quick reply.
    We need restict this status only if tcode COHVPI runs inn Back gorund.Remaining cases it needs to be working as of now is fine.
    Is there any way to restict through code?
    Thanks& Regards,
    JBR

  • Need suggestions to write a PL/SQL program

    Hi,
    We have some readme documents in different places. we need to keep the docs in specified folders. for example if we have around 100 docs we need to figure out the required docs by giving the just any one word from that doc name.
    now the requirement is need to keep all the docs in one specified folder (check the product name, if the product is there then it will pick all the docs related to that particular product and keeps in separate folder). whenever we need to find out any one of the document from that product we need to give the short word from that doc name then it will show you the required doc.
    So could you please let me know is it possible to write any PL/SQL program for the above requirement else suggest me which one will support to resolve the above requirement.
    Kindly suggest me for the above request.
    thanks in advance.

    You may want to consider loading the documents into blobs or using BFILES.
    BFILE defnition
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/sql_elements001.htm#SQLRF50996
    BLOB definition
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/sql_elements001.htm#SQLRF50997
    Regardless of whether you use BLOB's or BFILE's, you'll have to build a metadata table for each document.
    For example, if you decided upon BLOB's, you would need some kind of metadata table as follows;
    create table doc_table (id number, doc_name varchar2(20), b blob);
    insert into doc_table values (1, 'DOC_A', to_blob('A'));
    insert into doc_table values (2, 'DOC_B', to_blob('B'));
    commit;
    create table doc_metadata (id number, keyword varchar2(20));
    insert into doc_metadata values (1, 'A');
    insert into doc_metadata values (2, 'B');
    commit;You would then search for a document based on a keyword, for example,
    to find document A;
    select dt.doc_Name      
    from   doc_table    dt
          ,doc_metadata dm
    where  dt.id = dm.id
    and    dm.keyword like 'A';You could add more columns (as you like), for example location, size etc.

  • SAP HR-- In form 16 , i am not able take print out for all pages..

    Hi,
           In SAP HR module , i have totally 5 pages, i need to take the printout for all pages.. but i am getting only 1 pages.pls could u solve this problem
    Regards
    senthil

    There is no relation with module to printer settings
    check the printer settings for declared printer in output devices
    otherwise contract basis guy
    regards
    sateesh

  • How can we take print out for challen no. create d by J1INCHLN

    hi,.
    actually i forgot to take print after running J1INCHLN  .
    how can we take printout or display without running J1INCHLN .
    one challen number is created , is there any tcode to view or print.
    regards.
    hari priya

    hi,
    We can use the T.code  J1INMIS. GOTO   Report selection option & select challan Update status.
    Excute the report. you will get a list of all bank challan made so far. Then select the required document & take print.
    The Process is :
    Invoice in FB60/MIRO
    Bank Remittance - J1INCHLN
    Bank Challn Update - J1INBANK
    TDS Print - J1INCERT.
    assign points if found useful
    Regards,
    R.Ramakrishnaraj

  • Need to take monthly report for SQL statements...Is there any possiblity?

    Hi,
    We have a requirement to find out the list of expensive sql statements in our ECC 6.0 system.
    I am aware that we can see expensive sql statements which are being executed online in the TCode ST04 or DB02old.
    But I want the list of statements on a monthly wise.
    Is there any possibility to find out the list of expensive sql statements for the previous 3 to 4 months?If so, how do we do that?
    Any report or Tcode with navigations.
    Please help.
    Regards,
    Sudheer.

    Hi,
    > We have a requirement to find out the list of expensive sql statements in our ECC 6.0 system.
    nice.
    > I am aware that we can see expensive sql statements which are being executed online in the TCode ST04 or DB02old.
    expensive SQL in DB02, really?
    > But I want the list of statements on a monthly wise.
    > Is there any possibility to find out the list of expensive sql statements for the previous 3 to 4 months?
    > If so, how do we do that?
    Up to now there is no transaction available with such information. The databases partially offer solutions.
    These are switched on by default of have to be setup before they could be used. So it depends on the
    database and the database version which are you using.
    On ORACLE 10g for example we have the AWR (Automatic Workload Repository) which should be switched on by default (depends again on the license). On ORACLE 9i statspack is available but has to be activated first.
    On DB6 (latest database and SAP release) we have the so called performance warehouse.
    On other databases there might be solutions too.
    Besides that you can always built your own solution and grab the top 10 SQL statements from the SQL cache and
    persist them in regular intervals. I have seen such solutions as well.
    Kind regards,
    Hermann

  • Need to make function  out of SQL

    It is always taxinig for me to write DDL? I have come up with a method but it requires that I know each fieldname of the table. Here is the DDL I've come up with:
    --------- CREATE  A TABLE
    CREATE TABLE  "MY_INV_MAIN"
          "STOREID" NUMBER NOT NULL
        , "BUSI_DATE" DATE NOT NULL
        , "PRIMARY_KEY" NUMBER NOT NULL
        , "CONF_NUMB1" NUMBER NOT NULL
        , ONF_NUMB2" NUMBER NOT NULL
    --===  INSERT DATA   INV_MAIN
    - -- Dates should be To_date functions
    INSERT INTO MY_INV_MAIN VALUES(141,'27-AUG-08',64143,12599.68,12599.68);
    INSERT INTO MY_INV_MAIN VALUES(141,'28-AUG-08',64160,0,0);
    INSERT INTO MY_INV_MAIN VALUES(141,'29-AUG-08',64222,3691.59,3691.59);
    INSERT INTO MY_INV_MAIN VALUES(141,'30-AUG-08',64224,0,0);
    INSERT INTO MY_INV_MAIN VALUES(141,'31-AUG-08',64273,22103.69,22103.69);
    INSERT INTO MY_INV_MAIN VALUES(141,'01-SEP-08',64322,3836,3836);
    INSERT INTO MY_INV_MAIN VALUES(141,'04-SEP-08',64380,5296.4,5296.4);
    INSERT INTO MY_INV_MAIN VALUES(141,'05-SEP-08',64410,0,0);
    INSERT INTO MY_INV_MAIN VALUES(141,'07-SEP-08',64496,22627.74,22627.74);
    INSERT INTO MY_INV_MAIN VALUES(141,'08-SEP-08',64559,10376.61,10376.61);
    INSERT INTO MY_INV_MAIN VALUES(141,'09-SEP-08',64575,2644.62,2644.62);
    INSERT INTO MY_INV_MAIN VALUES(141,'11-SEP-08',64627,5983.33,5983.33);
    INSERT INTO MY_INV_MAIN VALUES(141,'13-SEP-08',64677,7573.21,7573.21);
    INSERT INTO MY_INV_MAIN VALUES(141,'14-SEP-08',64743,22839.3,22839.3);
    INSERT INTO MY_INV_MAIN VALUES(141,'17-SEP-08',64817,11593.69,11593.69);
    INSERT INTO MY_INV_MAIN VALUES(141,'18-SEP-08',64835,2958.97,2958.97);
    INSERT INTO MY_INV_MAIN VALUES(141,'19-SEP-08',64869,3570.74,3570.74);
    INSERT INTO MY_INV_MAIN VALUES(141,'20-SEP-08',64896,0,0);
    INSERT INTO MY_INV_MAIN VALUES(141,'21-SEP-08',64984,0,0);
    INSERT INTO MY_INV_MAIN VALUES(141,'21-SEP-08',64992,21372.82,21372.82);
    INSERT INTO MY_INV_MAIN VALUES(141,'22-SEP-08',64995,2927.13,2927.13);
    INSERT INTO MY_INV_MAIN VALUES(141,'23-SEP-08',65021,2712.38,2712.38);
    INSERT INTO MY_INV_MAIN VALUES(141,'24-SEP-08',65038,0,0);
    INSERT INTO MY_INV_MAIN VALUES(141,'26-SEP-08',65091,6763.8,6763.8);
    INSERT INTO MY_INV_MAIN VALUES(141,'27-SEP-08',65130,4985.73,4985.73);
    INSERT INTO MY_INV_MAIN VALUES(141,'28-SEP-08',65197,24950.45,24950.45);
    INSERT INTO MY_INV_MAIN VALUES(141,'28-SEP-08',65199,4648.38,4648.38);
    INSERT INTO MY_INV_MAIN VALUES(141,'30-AUG-09',74146,18081.37,18081.37);
    INSERT INTO MY_INV_MAIN VALUES(141,'06-SEP-09',74253,17183.25,17183.25);
    INSERT INTO MY_INV_MAIN VALUES(141,'13-SEP-09',74454,17688.41,17688.41);
    INSERT INTO MY_INV_MAIN VALUES(141,'20-SEP-09',74599,18211.29,18211.29);
    INSERT INTO MY_INV_MAIN VALUES(141,'27-SEP-09',74722,16809.21,16809.21);
    --=== GENERATE INSERT STATEMENTS
    WITH MyTableColumns AS
        SELECT    TNAME  as tablename
               ,  CNAME  as columnname
    FROM COL
    where tNAME in ('MY_INV_MAIN')
    ORDER BY TNAME
    , Pivoted_Table as
    ( select    tablename
           ,  MAX(DECODE(columnname,   'STOREID',       columnname,  0 ))    STOREID
           ,  MAX(DECODE(columnname,   'BUSI_DATE',     columnname,  0 ))    BUSI_DATE
           ,  MAX(DECODE(columnname,   'PRIMARY_KEY',   columnname,  0 ))    PRIMARY_KEY
           ,  MAX(DECODE(columnname,   'CONF_NUMB1',    columnname,  0 ))    CONF_NUMB1
           ,  MAX(DECODE(columnname,   'CONF_NUMB2',    columnname,  0 ))    CONF_NUMB2
        FROM MyTableColumns
        group by tablename
    , MyInsertStatments as
       (SELECT    'INSERT INTO ' ||
              tablename ||
              ' VALUES ('   ||
              STOREID      || ',' ||
              BUSI_DATE    || ',' ||
              PRIMARY_KEY  || ',' ||
              CONF_NUMB1   || ',' ||
              CONF_NUMB2   || ') FROM  ' || tablename || ';'  as INSERT_CLAUSE
    FROM  Pivoted_table;
      END FUNCTION1) How can I write this code as a function
    FUNCTION ReturnInsertStatements(tablename in varchar2,
    delimitedStringOfColumns in varchar2 default null) as varchar2
    -- Reads columns of the table like in above SQL
    -- Generate Inserts
    And return a string of 'Create Table Code " & InsertStatements in a format (INSERT INTO MY_INV_MAIN VALUES(141,'27-SEP-09',74722,16809.21,16809.21);

    TheHTMLDJ wrote:
    Tubby wrote:
    Why would you want pl/sql code to do this? There are much more efficient tools with which to move data between databases.
    1. I was trying to flex my new knowledge of pivots.
    2) I found this one which seems pretty good except line wraps and makes inserts messy:
    http://www.idevelopment.info/data/Oracle/DBA_tips/PL_SQL/PLSQL_5.shtml
    Nothing i tried would prevent the problem. CAn you fix or do you have a suggestion on some other free tool. In the rare occasion i need to move data in this fashion (typically i'd be looking at data pump, imp/exp, database links, etc...) i just use [SQL Developer|http://www.oracle.com/technology/software/products/sql/index.html] which is free and actually pretty good (developer wise).
    >
    >
    Also as a tip, you should always specify the columns you're using in the INSERT.
    I don't see why that's necessary when you are populating all fields with data.Because if you create code to do this, how do you know the order of the columns in the table? At best you get lucky and get an ORA error (like trying to put a date in to a number field), at worst you put the wrong columns data into another column and it goes unnoticed.

  • How to take print out from mobile e63

    i bought a hp 1007 lase printer now i want to connect it using bluetooth using my laptop,how can i send command from mobile to printer using my laptop ,i have tried but unable to print what device settings are missing will i have to update any drivers in my mobile or cannot think.the mobile gets paired with laptop but no print comes out ...pls advise

    Did you set up the printer in menu-> office-> printers?
    ‡Thank you for hitting the Blue/Green Star button‡
    N8-00 RM 596 V:111.030.0609; E71-1(05) RM 346 V: 500.21.009

  • Don't want to take print out for certain condition

    Hi Expert,
    I am taking printout from transaction F.27 for Periodic Statement. Spool request generates for the output. For one particular variable value=0 i want to stop the Periodic Statement printing off. That means it should not appear in the spool.
    Can you please guide me how can i prevent it to appear into the spool?
    Thanks in Advance.

    Hi ,
    You can do that by using userexits for this transaction. there is no BADIS for this transaction .
    the below are the user exits for specified transaction.
    RTR00010                                Exit in report tree (display transactions)
    RTR00020                                Exit in node in report tree (change mode)
    S38MREP1                                Exit at Start report
    Regards,
    Sai

  • Print out of GRN document.

    Dear All ,
                                  Kindly help me as user is in need to take print out of GRN document as collective slip I need to  take out printout of grn.the prinout should contain collective
    slip that is all item in one slip.
    the slip should contain line item no.,material description,material no.,quantity,rate,total amount and sum total amount of all items together in the last page.
    vendor name,p.o. no.,plant,invoice no.,invoice date,posting date,grn no.,date,location,payment terms. Pl guide that what config are to be done in SPRO .
    SAP12

    Hai,
    Run MB02 transaction, enter material document number. Double click one line item and select messages. Separate screen will be opened to configure outputs. Give the required fields and save the document. Now Run MB90, you can take printout. Output Type: WE03 - Collective slip
    Note:
    Check following are some of steps for GR collective printing
    1. Maintain the Printer Name in SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Print Control->Gen Settings->Printer Setting
    2. Ensure that in SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Print Control->Gen Settings->Item Print Indicator, 1 stands for Matl Doc print out
    3. In SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Print Control->Gen Settings->Print Version, maintain Print Version 2
    4. In SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Print Control->Maintain Print Indicator for GI/Transfer Posting Documents
    5. In SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Output Determination->Maintain Output Types, for the Output types WE01, WE02 and WE03, ensure the foll:
    a. Default Values: Dispatch Time is 3 or 4 as per reqmt. and Tr medium is 1
    b. Print Parameter is 7
    6. In SPRO->Matl Mgmt->Inv Mgmt and Phy Inv->Output Determination->Printer Det->Pr Det by Pl/StoLoc, maintain the Output device for all your Plants
    7. Go to MN21, for Tr Type WE, Print Version 3, maintain Print Item as 1.
    Now the settings are ready for Printing Material doc
    8. While doing MIGO, ensure that in General Tab, you get "3 Collective Slip" beside the Print Indicator and you tick mark the field.
    9. Now depending on the setting in 5a, the Matl doc is printed. If it is 3, you have to print it using MB90. If it is 4, it is printed immediately
    the slip should contain line item no.,material description,material no.,quantity,rate,total amount and sum total amount of all items together in the last page.
    vendor name,p.o. no.,plant,invoice no.,invoice date,posting date,grn no.,date,location,payment terms
    You have to add the requirements in the print out form - smart form with the help of ABAPer. You can find this smat form in T code NACE - slect ME Invenotry management - Output type - WE03 - Go to processing routines - form name.

  • Equipment master data print out with general data and characterstics

    Hi,
    I need to take print out of equipment masters with general data and characterstics for around 300 masters at a time. Could any
    body sugget me the best way to take print out
    Regards,
    Srinivas Kasina

    I think I have not asked my query properly.
    For Maintenance Order, each order print out will be taken separately as a print out by using some template. Do you want the equipment master print out in that manner?
    Else you want the details of general tab & characteristics tab as columns like equipment list report?
    I hope my question is clear now.

Maybe you are looking for