Printing OUT MODE Parameters

Hi Experts,
I am executing a procedure in the package and printing values but i am getting an error below
execution
=======
variable o_status number;
variable o_ename1 varchar2;
DECLARE
   i_internal_id   NUMBER (4)             := 7839;
      o_ename1         test_pkg.list_of_ename;
   o_job1          test_pkg.list_of_jobs;
BEGIN
   test_pkg.available_disciplines (i_internal_id, :o_ename1, o_job1, :o_status);
   dbms_output.put_line('Internal_id Is'||i_internal_id );
END;
PRINT o_status;
print o_ename1;
ORA-06550: line 6, column 4:
PLS-00306: wrong number or types of arguments in call to 'AVAILABLE_DISCIPLINES'
ORA-06550: line 6, column 4:
PL/SQL: Statement ignored
CREATE OR REPLACE package  body   TEST.test_pkg
as
procedure available_disciplines(i_internal_id in emp.empno%type,
                                o_ename   out nocopy list_of_ename,
                                o_job   out nocopy list_of_jobs,
                                o_status      out nocopy number)
as
begin
select distinct ename,job
bulk collect into o_ename,o_job
from emp
where deptno =10 and empno=i_internal_id;
for i in o_ename.first..o_ename.last loop
  dbms_output.put_line(o_ename(i));
  for j in o_job.first..o_job.last loop
   dbms_output.put_line(o_job(j));
   end loop;
  end loop;
  o_status :=250;
EXCEPTION
  when others then
    o_status := SQLCODE;
end available_disciplines;
end test_pkg;

sorry frank
Please find package spec below
{code}{code}
CREATE OR REPLACE package TEST.test_pkg
as
type list_of_ename  is table of  emp.ename%type index by binary_integer;
type list_of_jobs is table of emp.job%type index by binary_integer;
procedure available_disciplines(i_internal_id in emp.empno%type,
                                o_ename   out nocopy list_of_ename,
                                o_job   out nocopy list_of_jobs,
                                o_status      out nocopy number);
end test_pkg;
{code}{code}
i tried even in this way but no luck
/* Formatted on 2013/08/15 19:40 (Formatter Plus v4.8.8) */
VARIABLE o_ename1 test_pkg.list_of_ename;
DECLARE
   i_internal_id   NUMBER (4)             := 7839;
   o_ename1        test_pkg.list_of_ename;
   o_job1          test_pkg.list_of_jobs;
BEGIN
   test_pkg.available_disciplines (i_internal_id,
                                   :o_ename1,
                                   o_job1,
                                   o_status
   DBMS_OUTPUT.put_line ('Internal_id Is' || i_internal_id);
END;
PRINT o_ename1;
Error at line 2
ORA-01008: not all variables bound
i am unable to print the o_ename values in the output.
could you please help me on this.

Similar Messages

  • Shouldn't the jsp print out initilisation parameters?

    This program is printing out the initialisation parameters as I thought it would:
    <HTML><HEAD><TITLE>JSP Prints All Parameters</TITLE></HEAD><BODY>
    <%@ page import="java.util.Enumeration"%>
    <H2> Print all initialization parameters </H2>
    <UL>
    <% Enumeration parameters = config.getInitParameterNames();
    while (parameters.hasMoreElements()) {
    String name = (String)parameters.nextElement();
    %> <LI> <%=name%> = <%=config.getInitParameter(name)%>
    <% } %>
    </UL>
    </BODY></HTML>
    The out put of the jsp just gives "Print all initialization parameters" at header level 2. Shouldn't it also print out any initialisation parameters????

    Where is it getting the config data?From the <init-param> elements in the <servlet> definition in web.xml. You also need a <servlet-mapping> entry to make sure that the server can map to the right entry. e.g.
      <servlet>
        <servlet-name>testInit</servlet-name>
        <display-name>Testing Init parms</display-name>
        <jsp-file>/TestInit.jsp</jsp-file>
        <init-param>
          <param-name>myInitParam</param-name>
          <param-value>Value number 1</param-value>
        </init-param>
      </servlet>
      <servlet-mapping>
        <servlet-name>testInit</servlet-name>
        <url-pattern>/TestInitMap.jsp</url-pattern>
      </servlet-mapping>Assume that the jsp is called TestInit.jsp and web.xml includes the entries above.
    If the URL is .../TestInitMap.jsp, then the server maps to the testInit entry, invokes TestInit.jsp which then displays the init-param.
    If the URL is .../TestInit.jsp, then the server uses the default *.jsp mapping and maps directly to TestInit.jsp which will NOT display the init-param because the testInit <servlet> entry was not involved in the mapping.
    The use of /TestInitMap.jsp here was to help explain the example. You would probably use /TestInit.jsp in the <servlet-mapping> as well so the URL could be .../TestInit.jsp and have access to the init params.

  • Print Out settings, Wireless Printing -- HP psc 750xi

    I'm able to use my HP psc 750xi wirelessly using the 750xi footmatic/hpijs driver but whenever i change the print out mode, nothing changes. i like to print out most stuff draft, grayscale since it's so quick. but when i choose that option, it still prints out in color and takes a long time. bascially, no matter what output mode you use, it all looks the same.
    I tried a couple other drivers but got the same results....i couldn't change the output mode.
    any suggestions? different driver ideas? any help would be greatly appreciated!

    Hmm....bummer, but thanks much for the info. Need to make do w/ this printer until cash flow is a bit better. So can I create 2 profiles for the same printer -- one w/ the HP driver for when I have lots to print out and am in my office (using USB connection) and one w/ the other driver that lets me print wirelessly? Just tried it but now I'm trying to switch back over to wireless printing and it's not recognizing the printer anymore....

  • Print out of order in creat mode

    hi
    sapians
    can i take print out of maint pm01 order in creat mode

    hi
    pal
    1/ you can take the print out of order in creat mode
    2/ i fy ou have relaese the order cancel it
    3/ then cancel the relaese /put in process
    4/ but dont save the order take the print out
    5/ again relaese the order
    but the system condition will see craet and this is a easy ,reday solution
    if you wnat on permanate basis you have to cinsult to devloper he wii set user status for this

  • Incomplete print out

    Hi there. Good day. I’m a new member of your site and I'm sure you guys can help me regarding printing in SAP. I tried to print some open items in SAP in a landscape format, but when I see the print outs, each page is missing the lower portion. Almost four lines are missing. I tried to print on a portrait format and it was successful.  My manager wants to print the data’s in landscape. Is there a page set-up in SAP where I can change the spacing of each line? Maybe that can be a solution.  Your response is greatly appreciated. Thank you.

    hi,
    Welcome to SDN forum.
    <b>Setting Print Parameters from within the Program</b>
    If you use the print statements
    1) NEW-PAGE PRINT ON
    2) SUBMIT ... TO SAP-SPOOL
    3) CALL FUNCTION 'JOB-SUBMIT'
    you set the print parameters from within the program, using the corresponding options of the print statements. You can either display or suppress the Print parameters dialog box.
    To ensure that the parameters are sent to the spool system properly and completely, you should always transfer the entire parameter set with the print statements. To create a parameter set, use the function module <b>GET_PRINT_PARAMETERS</b>.
    <b>You can also view the following code :</b>
    Normal definition of the print parameters
    DATA: PARAMS LIKE PRI_PARAMS,
    VALID TYPE C.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
    EXPORTING DESTINATION = 'LT50'
    IMPORTING OUT_PARAMETERS = PARAMS
    VALID = VALID.
    IF VALID <> SPACE.
    NEW-PAGE PRINT ON PARAMETERS PARAMS.
    ENDIF.
    Definition of the parameters for printing and archiving
    DATA: PRI_PARAMS LIKE PRI_PARAMS,
    ARC_PARAMS LIKE ARC_PARAMS,
    VALID TYPE C.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
    IMPORTING OUT_PARAMETERS = PRI_PARAMS
    OUT_ARCHIVE_PARAMETERS = ARC_PARAMS
    VALID = VALID.
    IF VALID <> SPACE.
    NEW-PAGE PRINT ON PARAMETERS PRI_PARAMS
    ARCHIVE PARAMETERS ARC_PARAMS.
    ENDIF.
    Definition of the parameters for a background job
    DATA: PARAMS LIKE PRI_PARAMS,
    VALID TYPE C.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
    EXPORTING MODE = 'BATCH'
    REPORT = 'MYREPORT'
    IMPORTING OUT_PARAMETERS = PARAMS
    VALID = VALID.
    IF VALID <> SPACE.
    CALL FUNCTION 'JOB_OPEN' .... EXPORTING JOBCOUNT ...
    SUBMIT MYREPORT VIA JOB 'MY_JOB' NUMBER JOBCOUNT
    TO SAP-SPOOL WITHOUT SPOOL DYNPRO
    SPOOL PARAMTERS PARAMS.
    CALL FUNCTION 'JOB_CLOSE' ...
    ENDIF.
    Modifying the print parameters
    CALL FUNCTION 'GET_PRINT_PARAMETERS' "Obtain print
    EXPORTING NO_DIALOG = 'X' "parameters
    IMPORTING OUT_PARAMETERS = PARAMS.
    CALL FUNCTION 'GET_PRINT_PARAMETERS' "Modify print
    EXPORTING NO_DIALOG = 'X' "parameters
    IN_PARAMETERS = PARAMS
    LIST_NAME = 'NEW-LIST'
    IMPORTING OUT_PARAMETERS = PARAMS.
    Reward with points if it is helpful
    Cheers
    ALfred

  • Problem in Print Out of ALV report

    Dear All..
    I am trying to take print out of an ALV report. there are 36 columns in my report. when i try to take print out, warning appears which says system cannot print the last 277 columns of report.
    i have tried using different formats for printer like :
    Format                  Description
    X_PAPER                 ABAP/4 list: Default list formatting
    X_SPOOLERR          ABAP list: Spooler problem report
    ZX_65_284               65 Rows and 285 Columns
    X_65_255                ABAP/4 list: At least 65 rows with a maximum number of c
    X_65_200                ABAP list: at least 65 lines with 200 columns (not for a
    X_58_170                ABAP/4 list: At least 58 rows by 170 columns
    X_65_132                ABAP list: At least 65 rows by 132 columns
    X_90_120                ABAP list: At least 90 rows by 120 columns
    X_44_120                ABAP/4 list: At least 44 rows by 120 columns
    X_65_80                 ABAP/4 list: At least 65 rows by 80 columns
    but every time the same message appears even on A3 size paper..
    i am using REUSE_ALV_GRID_DISPLAY to display ALV.
    Please help to to take out prints(can be in condensed mode) so that all columns appear on the print out..

    HI sujeet,
    Thanks for ur response. i had already checked the printer settings.. i think there is no problem with this. Can u Please suggest something else. thanks
    Hiii jyojit..
    Thanks for reply. I had already checked the said check box in spool admin. but the problem still exists. Please suggest something to get rid of the problem.

  • How to use the t-code vf31 tor taking print out of invoice

    Hi,
      How to use the t-code vf31 for taking print out,am getting an error like no message for initial processing exist,
    venu

    Hi,
    Please find the steps
    Output type                     RD00
    Transmission medium             1
    Sort order                      01
    Processing mode                 1
    Please give the oppropriate fields,
    if the still error persists  check the configuration in NACE transaction code.
    thanks
    Kuntla

  • How can i take out the print out of invoices

    i want to see the print preview of billing document and i want to take the  print out also
    but i m unable to do this
    so wat is the navigation to do this please suggest.
    regards
    subrat

    Output of Invoice:
    Billing document (Change Mode) : VF02 --> Enter (takes to main screen) --> on the top line Goto --> Header --> Output  --> maintain output type --> Enter --> back --> Enter printer (in most cases LOCL) --> Enter & SAVE.
    Move out of billing document & revisit Billing Document in change mode(VF02) --> In the initial screen itself, on the top line o to Billing Document --> Output --> Screen / preview > Enter> a screen will pop-up on which printer name is mentioned --> Enter & you will get the preview of Invoice.
    To Configure printer, take assistance from basis consultant.
    Regards,
    Rajesh Banka

  • Why doesn't my print-out look like the screen view?

    This happens every time I use Firefox.
    Whenever I try to print a listing from Ebay, the main picture is omitted from the print-out. Here is an example. This first link is to a screen-shot (Fn and PrtSc) of a typical listing on Ebay:
    http://s1176.photobucket.com/albums/x327/xvqgp/Firefox
    On the PhotoBucket page look for the image FirefoxScreen.jpg
    There's a big picture of the item at the left-hand side of the page.
    Now take a look at what I get when I use the Firefox 'Print' command (this is a scan of the printed page):
    On the same PhotoBucket page look for FirefoxPrint.jpg
    There's a big blank space where the main image should be!
    I have not been idle and have checked a few things before posting this question:
    1) I have attended to the print settings as highlighted in the helpful Firefox article on printer troubleshoting. It has not cured the problem.
    2) From the same article I have tried the 'Print' function on Internet Explorer. While it pains me to say this, I get the correct printing from Internet Explorer.
    3) Operating Firefox in 'Safe Mode' has not removed the problem.
    4) Operating in 'Normal' mode but with add-ons disabled has not removed the problem.
    5) When I hover the mouse over the main image on the Ebay page I get
    javascript:;
    in the bottom left-hand corner of the screen. Might this be a clue or is it a red-herring?
    I would be most grateful for help.

    Have you tried using the '''Print''' item at the bottom if that eBay page? <br />
    Or is that what you are using?
    Overall it isn't unusual for "print" to be a bit different than what shows on the "screen", that page may use @media for "screen" and for "print". The '''Print''' item on that page could be the difference, or the web browser might be following that code is you used the '''Print ''menu item or button''''' in Firefox. <br />
    http://www.w3.org/TR/CSS2/media.html#media-types
    Typically, the '''@print''' CSS code is used to hide navigation menu's ''(can't "navigate" to a different web page from a sheet of paper)'' and maybe advertisements ''(can't "click" on an ad that is on paper)'' from being printed out so that only the text of an article is printed to paper.
    Basically, it's probably not a fault with Firefox, but rather Firefox following the commands on the page put there by the person who authored that page, or a standard CSS "style sheet" used by eBay.

  • GR slip print-out & automatic default for the print tick

    Hi,
    I have followed the steps as outlined below for the solution and unfortunately the GRN document do not print as anticipated. I was wondering if the non-assignment of the MM or FI Program might be the cause? Please advice if I had missed something to allow this to print immediately.
    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, (for returns use 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.
    Edited by: JML Nkgapele on Dec 1, 2008 11:10 AM

    Your answer did help but still expriencing challanges with the following:
    Output Types
    -Print Parameters options are as follows
        >Plant/Storage location
        >Plant/Storage location/User group
        >User exit
       >User parameters
       >User
    Please advice which of the above is appropriate?
    -Should there be a program reflected on change output field for General data screen?
    Please advice since I'm currently experiencing shotdumps(runtime errors) when processing the GR.

  • Print out issue for Goods issue document

    Dear Friends,
    I am trying to take a print out for good issue document (Mov. 541)
    -     Necessary settings have been done in customizing of output details WA01 with print parameters Plant/storage location (also maintained same at config. level)
    -     MN21 master data maintained but every time I have to define output device by changing the document details in MB02
    -     When taking print out inMB90 system proposes no document found for processing
    Can anybody help in this regards
    SG

    If the output TYPE is configured, and created in MN21 but the output record is not automatically created for each document, you may be missing config in <B>Output Determination</B>.  (In MM02, you can select the output type from a drop-down and process without error)<BR><BR>Please check the following:<BR><BR>SPRO path: <I>Materials Management > Inventory Management and Physical Inventory > Output Determination > Maintain Output Determination Procedures.</I> <BR><BR>Your output type must be assigned to the procedure used by your document. If it is not here, it will not automatically propose the output record.

  • Print out for Goods Issue

    SAP Experts,
    Can anyone tell me about T.code for goods issue print out?
    Full scenario we need.
    thanks
    babu

    Hi,
    from MB90 select below options.
    Output Type -WA03      
    ransmission Medium-1 (Print)
    Sort order-01 (Material document/Item/Output type)        
    Processing mode - 1 ( and 2-for repeat Output)  
    Material Doc. Year -2011 (as per Document created date)
    Material Document - Goods Issue Number
    Execute the same and proceed for Document Print.
    Regards,
    Sandesh Sawant

  • PO print OUT And material Document Print Out is coming In English

    HI all.
    I have Created Vendor In ZH(chinese Language,)and in material master I have maintained description in Chinese language.
    I'M taking PO and material Documents print outs  in Chinese Server log-in.
    even Though Im taking Print outs in Chinese Log-In server, IM getting Print outs in English Language only not In chines language..
    At the Time Of PO creation the Communication Language is ZH(Chines)..
    I have read some related post even 89899..
    But I have not find solution
    plz help me.
    thanks and regards
    ramesh reddy.'

    Check SAP Note 894444 - Tool for server-based printing on Windows (SAPSprint) for your requirement,
      Installation
    Before you install SAPSprint, delete SAPLPD manually. To do this, you normally need to completely delete the installation directory only. If you installed SAPLPD as a service using the srvany tool, you can remove the service by calling 'Instsrv SAPLPD remove'.
    You can download SAPSprint as a self-extracting executable file from SAP Service Marketplace:
    1. Entry by Application Group (on the left)
    2. SAP Frontend Components (on the right)
    3. SAPSPRINT (on the right)
    4. SAPSPRINT <Release> (on the right)
    5. SAPSPRINT <Release> (on the right)
    6. Win32 (on the right)
    Start the program. After you enter the installation path, the system prompts you to enter the TCP/IP port.
    Normally, the default setting of 515 is suitable for the port. You should only change this setting if the Windows TCP/IP print service is also running on the computer. The SAPSprint Windows service starts as soon as the installation is over.
    We recommend that you set up the following options for the service in the Windows Service Control Manager:
    The service should run under a domain user that has the relevant authorizations for the required printers. After the installation, the service runs under "Local system account". This can access locally-defined printers only. You can set the user in the Windows Service Control Manager, in the options of the SAPSprint service.
    If you want to delete SAPSprint, you can do so using the normal Windows uninstall tool.
    We recommend that you install the SAPSprint service on a separate computer and not together with a SAP system, especially if you use a large number of printers. All printers that SAPSprint uses must be installed on the SAPSprint computer. This applies particularly to released printers from other computers. These should be installed as a queue on the SAPSprint server.
    Also note further settings in accordance with Note 1069483.
    Settings
    You can display the call parameters available for SAPSprint by calling 'sapsprint -?' on the command line. The most important parameters are those that set options, especially log options for troubleshooting.
    You can set the log level to 5 by specifying 'sapsprint -oi LogLevel 5'. Immediately after installation, no log level is set up, which means that no log file is created. By setting the log level to 1, 5, or 9, you can ensure that more information is available in the directory that you specified during the installation. A file called sapsprint.dbg and a print job specific file with a variable name are generated. The second file is deleted after successful printing. It is only retained if the printout is recognized as incorrect. If you set the option 'sapsprint -oi KeepFile 1', then both this file and the print file are retained. This is primarily intended for troubleshooting by SAP Support.
    All options are case-sensitive. You can display the most important SAPSprint options by calling 'sapsprint -?'. All possible options are described in Note 85469. Normally, the options described there are not necessary - you should use them only in exceptional circumstances.

  • Po print out (me9f)

    dear sirs.
    if my po is having 20 line items and say 5 pages, and if i want to take the print out of 3rd page or 4th page how to take the same.
    (just to avoid stationery wastage of 1 & 2 page)

    Dear Suresh,
    You can check the spool from T Code SP01.You can restrict your search based on various criterias such as user ID,PO number etc.
    To see the spool created directly from PO go to PO display mode then go to messages and in that screen,select the output line(e.g NEU) and then click processing Log to see the spool number.
    I hope this helps you.
    Regards,
    manOO

  • I am trying to print out information on a Google Maps page. I have the print setting on fit to width but the page does not print that way and some of the page that would normally show on page 2 is missing.

    The page prints out fine on Internet Explorer, but not on Firefox. 2 pages are supposed to print out but only 1 prints. Also it does not fit to width even though that's the setting.

    That file could be set as a Launch Agent or Daemon in your ~/Library or /Library, You could try to look for it or Safeboot your computer and then empty the trash. Safebooting disables Launch Agents/Daemon and Third Party Kernal extensions. Here's the article to Safeboot OS X: What is Safe Boot, Safe Mode? - Apple Support

Maybe you are looking for