How to pass printer name as a parameter to Bursting control file

We are on 11.5.10.2 using XML Publisher 5.6.3. We ahve a requirement, where we need to print our invoices to different printers.
How do we pass the printer name as a parameter to Bursting control file. Can the bursting control file be created to use the printer parameter.
If it can, can you please provide some examples.
- Vasu -

Hi.
I have created Formula column and it is coming in xml data.
Like this way
<CP_TAX_NO>CZ27813941</CP_TAX_NO>
<CP_CUST_TAX_REG>CZ680527617</CP_CUST_TAX_REG>
<CF_PRINTER_NAME>ABC_hp4250</CF_PRINTER_NAME>
<C_REQ_ID>12310217</C_REQ_ID>
</ISOPTWSHRDPAK>
But while i passed it bursting directory, it is not printing, if i hardcode over there then it is printing.
Bursting file code
<xapi:delivery>
     <xapi:print id="printer1" printer="ipp://localhost:631/printers/${CF_PRINTER_NAME}" copies="1" />
</xapi:delivery>
In bursting program file It is display like :
[1]printer-uri:ipp://localhost:631/printers/null
If i pass hardcode value instead of cf_printer_name then it is working fine
[1]printer-uri:ipp://localhost:631/printers/ABC_hp4250
Pls suggest what to do?

Similar Messages

  • How to pass sicf name as a parameter frm webdynpro

    Hi All,
    I have created a properties file in which i hv provided the following path: servername:port n path to open the SAP R/3 easy access but i want to pass sicf name so it directly opens it in portal.   Please provide me some assistance. Thankyou.
    Regards,
    Jaspreet Kaur
    Edited by: Jaspreet Kaur on Dec 29, 2008 11:56 AM

    Hi Jaspreet,
    You can create an IAC iview with your service.
    Hope this helps,
    Ivá

  • Passing Printer as a parameter in the bursting control file

    One of our requirements is to print our report on different printers based on the user input. To acheive this, I am passing printer name as one of the parameter in our concurrent process. In the bursting java process, I set the properties as
    Properties prop= new Properties();
    prop.put("user-variable:PRINTER_NAME","ipp://146.141.12.128/printers/lp1");
    dp.setConfig(prop);
    dp.process();
    In the control file, I am pasing print delivery as :
    <xapi:print id="printer1" printer="$(PRINTER_NAME)" copies="1" />
    The system throws an error 'java string out of expection' and takes PRINTER_NAME as null in the print delivery. The same thing works perfeclty for E-Mail server if I pass name of the e-mail server in parameter and in the java and control file..I make the following changes:
    Properties prop= new Properties();
    prop.put("user-variable:SERVER_NAME","cns.wits.ac.za");
    dp.setConfig(prop);
    dp.process();
    <xapi:delivery>
    <xapi:email server="$(SERVER_NAME)" port="25"
    from="[email protected]" reply-to ="">
    <xapi:message id="123" to="${EMAIL}"
    Can anybody please help me with this..Has anybody tried passing printer as a parameter in the control file..

    Try curly brackets i.e. ${PRINTER_NAME} instead of $(PRINTER_NAME).
    Regards
    Ashish

  • How to pass column name at run time in function.

    how to pass column name at run time in function as parameter.
    thank in advance
    pramod patel

    Hello,
    Using dynamic sql you can pass column name to function. well I am not getting what you really want to do ? Please write in more detail. By the way I am providing one example here. see it uses dynamic sql.
    Create or replace function fun_updtest (p_columnname_varchar2 in varchar2,
    p_value_number in number)
    return number is
    v_stmt varchar2(500);
    begin
    v_stmt := 'update emp
    set '||p_columnname_varchar2||' = '||to_char(p_value_number)||'
              where empno = 7369';
    execute immediate v_stmt;
    return 0;
    commit;
    end;
    call to this function can be like this..
    declare
    v_number               number;
    begin
    v_number := fun_updtest('SAL',5000);
    end;
    Adinath Kamode

  • Pass table name as a parameter to function

    Is there a way to pass table name as a parameter to functions? Then update the table in the function.
    Thanks a lot.
    Jiaxin

    Hi, Harm,
    Thank you very much for your suggestion and example. But to get my program work, i need to realise code like follows:
    CREATE OR REPLACE FUNCTION delstu_func(stuno char) RETURN NUMBER AS
    BEGIN
    EXECUTE IMMEDIATE 'DELETE FROM student s' ||
    'WHERE' || 's.student_number' || '=' || stuno;
    LOOP
    DBMS_OUTPUT.PUT_LINE('record deleted');
    END LOOP;
    END;
    SELECT delstu_func('s11') FROM STUDENT;
    The intention is to check if such a function can perform operations such as update, delete and insert on occurence of certain values. When executing the above statement, the system returns an error message:
    ERROR at line 1:
    ORA-00933: SQL command not properly ended
    ORA-06512: at "SCMJD1.DELSTU_FUNC", line 3
    Could you tell me where is wrong?
    Jiaxin

  • How to pass column name as a   values from one page  to another

    hi
    i have created a report(pivot) from a table
    SQL> SELECT * FROM T;
    C1  C2          C3 D                SEQ
    A   AA           2                    1
    A   AB           3                    2
    A   AC           2                    3
    B   AB           5                    4
    B   AC           6                    5
    SQL> SELECT C1
      2  ,NVL(MAX(CASE WHEN C2='AA' THEN C3 END),'') AA
      3  ,NVL(MAX(CASE WHEN C2='AB' THEN C3 END),'') AB
      4  ,NVL(MAX(CASE WHEN C2='AC' THEN C3 END),'') AC
      5  ,SUM(C3) FROM T GROUP BY C1;
    C1          AA         AB         AC    SUM(C3)
    A            2          3          2          7
    B                       5          6         11
    SQL>
    my requirement in Apex is like this(reverse)
    eg-
    when i click on cell values '2' then,it should return
    C1  C2          C3 D                SEQ
    A   AA           2                    1
    {quote}how to pass column name as a  values from one page to another
    for example i have to pass 'c2' as a value to next page{quote}for report pivot you can reffer below link
    Report
    Amu

    thanks for your reply
    i 'm doing what exactly you mention here .
    my problem here is
    i have 15 columns
    i am executing a query based on the values of the column(column name)  in the target page
    1)here i am passing(all) the column values to the next page-but  i want to pass only one column values(column name)
    when i click on any cell of that  column
    OR
    2)i can pass all column name to target page -there(in the target page) i can filter out
    i think option 1 would good if you filter out the unwanted columns
    Regards
    Amul

  • How to pass user name and password in openConnection method ?

    Hi, Exports,
              I am trying to post data from applet to another application which is
              protected by network password.
              How to pass user name and password when I use openConnection method? In java
              doc, this method looks like do not accept these two parameters.
              Thanks
              ----- my code in applet ---------
              URL url = new URL("http://127.0.0.1/xml/index.cfm");
              URLConnection connection = url.openConnection();
              connection.setDoInput(true);
              connection.setDoOutput(true);
              connection.setUseCaches(false);
              connection.setAllowUserInteraction(false);
              DataOutputStream dos = new DataOutputStream(connection.getOutputStream());
              dos.writeBytes("POST " + path + " HTTP/1.0\r\n");
              dos.writeBytes("Referer: http://127.0.0.1/XML/index.cfm\r\n");
              dos.writeBytes("Content-Type:
              multipart/form-data;boundary=---------------------------7d0b414b04\r\n");
              dos.writeBytes("Host: "+host+":"+port+"\r\n");
              dos.writeBytes("Content-Length:" + buff.length()+"\r\n");
              dos.writeBytes("Connection: Keep-Alive\r\n\n");
              dos.writeBytes("-----------------------------7d0b414b04\r\nContent-Dispositi
              on: form-data;name=\"xmlDoc\"\r\n\r\n");
              dos.writeBytes(buff.toString());
              dos.writeBytes("\r\n-----------------------------7d0b414b04--\r\n");
              dos.close();
              

    you need to negotiate Authentication in ur applet code...
              For example:
              If u r using Form based auth u need to send Post a request with j_user_name &
              j_password to the action j_security_check. and when server returns back the
              cookie
              u need to hold it and pass that cookie to the each and every request made to the
              protected application.
              Basically u need to imitate the browser.
              regards
              aseem
              David wrote:
              > Hi, Exports,
              >
              > I am trying to post data from applet to another application which is
              > protected by network password.
              > How to pass user name and password when I use openConnection method? In java
              > doc, this method looks like do not accept these two parameters.
              >
              > Thanks
              >
              > ----- my code in applet ---------
              > URL url = new URL("http://127.0.0.1/xml/index.cfm");
              > URLConnection connection = url.openConnection();
              > connection.setDoInput(true);
              > connection.setDoOutput(true);
              > connection.setUseCaches(false);
              > connection.setAllowUserInteraction(false);
              > DataOutputStream dos = new DataOutputStream(connection.getOutputStream());
              > dos.writeBytes("POST " + path + " HTTP/1.0\r\n");
              > dos.writeBytes("Referer: http://127.0.0.1/XML/index.cfm\r\n");
              > dos.writeBytes("Content-Type:
              > multipart/form-data;boundary=---------------------------7d0b414b04\r\n");
              > dos.writeBytes("Host: "+host+":"+port+"\r\n");
              > dos.writeBytes("Content-Length:" + buff.length()+"\r\n");
              > dos.writeBytes("Connection: Keep-Alive\r\n\n");
              > dos.writeBytes("-----------------------------7d0b414b04\r\nContent-Dispositi
              > on: form-data;name=\"xmlDoc\"\r\n\r\n");
              > dos.writeBytes(buff.toString());
              > dos.writeBytes("\r\n-----------------------------7d0b414b04--\r\n");
              > dos.close();
              >
              > ------------------------------------------
              

  • How to pass  internal table values to parameter

    hi,
             how to pass  internal table values to parameter in selection screen.if is it possible means please sent codeings.
    thanks.
      stalin.

    hi,
    tables : mara.
    data :  begin of itab_mara occurs 0,
              matnr like mara-matnr,
              ernam like mara-ernam,
              end of itab_mara.
    selection-screen : begin of block blk1 with frame title text-001.
    parameters : p_matnr like mara-matnr.
    selection-screen : end of block blk1.
    select matnr ernam from mara into corresponding fields of itab_mara
                                                                    where matnr = p_matnr.
    loop at itab_mara.
    write :/ itab_mara-matnr,
               itab_mara-ernam.
    endloop.
    <b><REMOVED BY MODERATOR></b>
    Message was edited by:
            Alvaro Tejada Galindo

  • Script to stop running SQL Agent job without passing job name as a parameter

    Looking for script to stop running job and don’t want to pass job name as a parameter, any job which is in running state I want that to be stop/disable.
    I have script to disable all jobs however if any jobs are in running state my requirement is to stop that job immediately and gets disable.
    Rahul

    Try the below scripts and then apply script to disable all jobs.
    execute xp_cmdshell 'net stop sqlserveragent'
    execute xp_cmdshell 'net start sqlserveragent'
    Regards, RSingh

  • Issue in Printing, using Bursting control file

    Hello All,
    We are using bursting control file to print and email. Email option is working fine. But when it comes to printing, it is printing "PDF file not printed. 128MB of memory is required to enable direct PDF printing" in the printout.
    We are using CUPS and below is the path we are using for printing,
    ipp://localhost:631/printers/YG_MAIN
    When we try to run the same program manually, by giving the printer name and number of copies to 1, then we are able to see the pdf output. Other normal bi publisher reports are also working fine, w.r.t that printer. We are facing this issue only when we are running xml bursting program, with print option.
    Any suggestions please..
    Here is the full bursting control file,
    <?xml version="1.0" encoding="UTF-8"?>
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi">
    <xapi:globalData location="stream">
    </xapi:globalData >
    <xapi:request select="/XX_IMB/LIST_G_PAT/G_PAT">
    <xapi:delivery>
    <xapi:email id="123" server="XXXXXX.com" port="25" from="[email protected]">
    <xapi:message id="123" to="${DESTINATION}" attachment="true" content-type = "text/html" subject="Test email"> Please find the attachement</xapi:message>
    </xapi:email>
    <xapi:print id="print1" printer="ipp://localhost:631/printers/${DESTINATION}" copies="1"/>
    </xapi:delivery>
    <xapi:document output-type="pdf" delivery="123">
    <xapi:template type="xsl-fo" location="xdo://XXCUS.XX_MAIN.en.US" filter=".//G_PAT[DESTINATION_TYPE='Email']">
    </xapi:template>
    </xapi:document>
    <xapi:document output-type="pdf" delivery="print1">
    <xapi:template type="xsl-fo" location="xdo://XXCUS.XX_MAIN.en.US" filter=".//G_PAT[DESTINATION_TYPE='Print']">
    </xapi:template>
    </xapi:document>
    </xapi:request>
    </xapi:requestset>

    BI Publisher bursting to CUPS printer doesn't use PASTA, so output doesn't get converted from PDF to Postscript which it does when you run it through concurrent manager.
    You can put an entry in the $XDO_TOP/resource/xdodelivery.cfg as follows (replace for your printer):
    <pre>
    <server name="MYPRINTER" type="ipp_printer" default="true">
    <uri>ipp://mycupsserver.mydomain:631/printers/MYPRINTER</uri>
    <filter>/usr/local/bin/pdf2ps -paper A4 {infile} {outfile}</filter>
    </server>
    </pre>
    Regards,
    Gareth

  • Bursting control file for Printer not working in WINDOWS ENVIRONMENT

    Hi,
    We are trying to print xml publisher report output (PDF) using bursting control file. Is not wokring.
    We are using ebs (R12.1.1) on Windows environment.
    Any pre-requisite setup (ie. cups config) should be done before printing using control file. Please guide me i am not having knowledge in printer setup and printer part..
    Thanks in advance
    --Ben                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi Hussein,
    Yes, I am able to print seed concurrent report (o/p -text) to that printer (method:- giving the printer name and copies by clicking " Option " in SRS window.. )
    When i do the same for xml publisher publisher report to the same printer , its not working using bursting control file.
    I too made the test in xml publisher report without bursting control file , there i faced another new issue. Let me explain
    1. We are using RDF as data source . here o/p :-" XML "
    2. We are using RTF as layout. In template definition, i chose the default o/p type as :- "HTML"
    3. When i submit the request, i choose the printer which is working fine for printing seeded report. (method:- giving the printer name and copies by clicking " Option " in SRS window.. )
    4. My printer getting prints HTML tag, instead of desired o/p. I wondered after seeing the printout.
    5. I cross checked by clicking view output, its showing me the exact html output as per RTF layout.
    Dont know wat happening ??? Help me out.
    i did the same for changing default output type in template definition to RTF,PDF.. its printing source code of the output type instead of printing output.
    Thanks & Regards,
    --Ben                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to remove bursting control file?

    Hi,
    I attached a bursting control file to a data definition to test the functionality. Now I want to get rid of it, unfortunately I don't see a delete button or anything similar in XML Publisher Administrator. How can I delete the file?
    Thanks,
    Arthur

    Hi Arthur,
    unfortunately, you can't set any inactive_date or delete the file on the whole. But you can, if you have access to the database the following option, to vanish the file:
    DELETE
    FROM XDO_LOBS
    WHERE LOB_CODE=<DATA_DEFINITION_CODE>
    AND LOB_TYPE='BURSTING_FILE';

  • How to call translation template from bursting control file.

    Hi All,
    Greetings!!!!!!!!!!!!!
    Need help on calling translation template from the bursting control file.
    While calling the translation template from bursting control file it ends in error. Following is the error
    [063010_063059160][][EXCEPTION] The URL ( xdo://XXX.XXXPOXPRPOL.fr.CA/?getSource=true ) is invalid.
    But same control file is working for standard tempalte.
    Here is the sample control file.
    <?xml version="1.0" encoding="UTF-8"?>
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi">
    <xapi:request select="/XXXPRPOLXML/LIST_G_MANUAL_PO_NUM_TYPE/G_MANUAL_PO_NUM_TYPE/LIST_G_HEADERS/G_HEADERS">
    <xapi:delivery>
    <xapi:email id="123" server="nasmtp.us.XXX.com" port="25" from="${C_ORIGINAL_BUYER_EMAIL}" reply-to ="">
    <xapi:message id="123" to="${C_VENDOR_CONTACT_EMAIL}" cc="" bcc=""
    attachment="true"
    subject="Purchase Order ${POH_PO_NUM} revision ${POH_REVISION_NUM} from XXX">
    ${POH_VENDOR_CONTACT_NAME},
    ${C_MAIL_SUBJECT}
    PO number ${POH_PO_NUM} revision ${POH_REVISION_NUM}
    Please reply to ${C_ORIGINAL_BUYER_EMAIL} - ${POH_ORG_ID}
    Thank you,
    ${POH_BUYER}
    </xapi:message>
    </xapi:email>
    </xapi:delivery>
    <xapi:document output="${POH_PO_NUM}-rev${POH_REVISION_NUM}" output-type="pdf" delivery="123">
    <xapi:template type="rtf" location="xdo://XXX.XXXPOXPRPOL.en.US/?getSource=true" filter=".//G_HEADERS[C_VENDOR_CONTACT_EMAIL !=''and POH_ORG_ID = 54]"></xapi:template>
    <xapi:template type="rtf" location="xdo://XXX.XXXPOXPRPOL.fr.CA/?getSource=true" filter=".//G_HEADERS[C_VENDOR_CONTACT_EMAIL !='' and POH_ORG_ID = 161]"></xapi:template>
    </xapi:document>
    </xapi:request>
    </xapi:requestset>
    Please let me know how to call a translation template from bursting.
    Thanks
    Rajesh

    Got the solution...
    This is how we have to call a translation template from bursting file.
    <?xml version="1.0" encoding="UTF-8"?>
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi">
    <xapi:request select="/XXXPRPOLXML/LIST_G_MANUAL_PO_NUM_TYPE/G_MANUAL_PO_NUM_TYPE/LIST_G_HEADERS/G_HEADERS">
    <xapi:delivery>
    <xapi:email id="123" server="nasmtp.us.XXX.com" port="25" from="${C_ORIGINAL_BUYER_EMAIL}" reply-to ="">
    <xapi:message id="123" to="${C_VENDOR_CONTACT_EMAIL}" cc="" bcc=""
    attachment="true"
    subject="Purchase Order ${POH_PO_NUM} revision ${POH_REVISION_NUM} from XXX">
    ${POH_VENDOR_CONTACT_NAME},
    ${C_MAIL_SUBJECT}
    PO number ${POH_PO_NUM} revision ${POH_REVISION_NUM}
    Please reply to ${C_ORIGINAL_BUYER_EMAIL} - ${POH_ORG_ID}
    Thank you,
    ${POH_BUYER}
    </xapi:message>
    </xapi:email>
    </xapi:delivery>
    <xapi:document output="${POH_PO_NUM}-rev${POH_REVISION_NUM}" output-type="pdf" delivery="123">
    <xapi:template type="xsl-fo" location="xdo://XXX.XXXPOXPRPOL.fr.CA" filter=".//G_HEADERS[C_VENDOR_CONTACT_EMAIL !='' and POH_ORG_ID = 161 and CLANGUAGE2 = 'fr']"></xapi:template>
    <xapi:template type="rtf" location="xdo://XXX.XXXPOXPRPOL.en.US/?getSource=true" filter=".//G_HEADERS[C_VENDOR_CONTACT_EMAIL !='' and POH_ORG_ID = 54 or POH_ORG_ID = 56 or (POH_ORG_ID = 161 and CLANGUAGE2 = 'en')]"></xapi:template>
    </xapi:document>
    </xapi:request>
    </xapi:requestset>
    where
    XXX - Application shortname
    XXXPOXPRPOL - Template Code
    Hope this helps!!!!!!!!!!!!!!!!!!!!!
    Regards
    Rajesh

  • HOW TO PASS SELECT-OPTIONS AS IMPORT PARAMETER TO A CLASS

    Hi experts,how to pass select options value as a export parameters to a zclass.
    can  give me some idea.
    Thanks
    sai

    As Sachin already said, selection options are stored in an internal table. You can reconstruct the table type without the corresponding input fields using the type addition RANGE OF.
    So - assuming you have the following in your program:
    DATA: wa TYPE sflight.
            SELECT-OPTIONS so_car FOR sflight-carrid.
    you can create a publically-visible type in your class using direct type entry and the code
    TYPES: my_selectoption TYPE RANGE OF sflight-carrid.
    and use this to define the importing parameter of the method.
    The only other thing you have to remember is that select-options generates an internal table with header line. Thereore, to pass the table to the method, you would use (in the above example) so_car[], and not just the name of the select-option.
    Hope this helps.
    Regards
    Jon.

  • How to pass value to select-option parameter using SET PARAMETER Command

    Hi,
        Am passing values to selection-screen fields in report RV13A004 ( used in VK11, VK12 and VK13). using below statement but material number is select-option in this report. am able to pass  MATERIAL FROM using SET PARAMETER ID, can i know how to pass values MATERIAL TO range in select-options fields using SET PARAMETER Command ??
    Passing values to parameter id
    set parameter id 'VKS' field kschl.
    set parameter id 'VKO' field vkorg.
    set parameter id 'VTW' field vtweg.
    set parameter id 'KDA' field erdat.
    set parameter id 'MAT' field matnr_from.
    Change condition price.
    call transaction 'VK12' and skip first screen.
    Thanks in advance.
    Regards,
    Balamurugan.

    Hi,
    instead of using set parameters and dden call transaction use this..........
    submit RV13A004  WITH SELECTION-TABLE rspar
    Effect
    If you specify this addition, parameters and selection criteria on the selection screen are supplied from an internal table rspar. You must specify an internal table with the row type RSPARAMS for rspar. The structured data type RSPARAMS is defined in the ABAP Dictionary and has the following components, all of which are data type CHAR:
    SELNAME (length 8),
    KIND (length 1),
    SIGN (length 1),
    OPTION (length 2),
    LOW (length 45),
    HIGH (length 45).
    To supply parameters and selection criteria for the selection screen with specific values, the lines in the internal table rspar must contain the following values:
    SELNAME must contain the name of a parameter or selection criterion for the selection screen in block capitals
    KIND must contain the type of selection screen component (P for parameters, S for selection criteria)
    SIGN, OPTION, LOW, and HIGH must contain the values specified for the selection table columns that have the same names as the selection criteria; in the case of parameters, the value must be specified in LOW and all other components are ignored.
    If the name of a selection criterion is repeated in rspar, this defines a selection table containing several lines and passes it on to the selection criterion. If parameter names occur several times, the last value is passed on to the parameter.
    The contents of the parameters or selection tables for the current program can be entered in the table by the function module RS_REFRESH_FROM_SELECTOPTIONS.
    Notes
    In contrast to selection tables, the data types of the components LOW and HIGH in table rspar are always of type CHAR and are converted to the type of the parameter or selection criterion during transfer, if necessary.
    When entering values, you must ensure that these are entered in the internal format of the ABAP values, and not in the output format of the screen display.
    Cheers
    Will.

Maybe you are looking for