Help in  printing values

Hi all,
I have a procedure getUser which takes IN username as inout and 2 table of object as OUT parameter.I have equated all the values but want to check if the values have been passed properly by printing those values in the following anonymous block.So can anyone please help me to do this.
DECLARE
     a     XXAM_USER_ATTR_TBL;
     b     XXSSM_ERROR_MESSAGE_TAB_TYPE;
     retval varchar2(40);
BEGIN
     getUser('msander',a,b);
END;
-- I want to print those values that are present in the xxam_user_attr_tbl
-- xxam_usr_tbl is a table of xxam_user_obj
--xxam_usr_obj has two attribute userid and accessid                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Hi Jen,
I think I am making some mistake in the procedure itself.But when I run the procedure it seems to be valid.So can you please point out to me if I am doing any mistake...Thanks in advance...
Cheers,
AK
Hi
CREATE OR REPLACE PROCEDURE getUser(
p_user_name IN      varchar2,
x_user_attributes OUT      XXAM.XXAM_USER_ATTR_TBL,
x_error_table OUT      XXSSM_ERROR_MESSAGE_TAB_TYPE)
IS
TYPE user_value IS TABLE OF VARCHAR2(20);
xx_value user_value := user_value('null','null','null','null','null','null','null','null','null','null','null','null','null','null','null');
xx_user_attributes XXAM.XXAM_USER_ATTR_TBL      := XXAM.XXAM_USER_ATTR_TBL();
THere is a bunch of code that actually get the values from the LDAP server and stores them inside TYPE user_value.I tried to print all the values that exist inside the TYPE user_value and everything is just fine..SO i think that I am making a mistake in assigning the values to the Table of objects XXAM_USER_ATTR_TBL .
     --Assigning the values to the object XXAM_USER_ATTR_TBL.
     xx_user_attributes := XXAM.XXAM_USER_ATTR_TBL();
xx_user_attributes.EXTEND ();
     xx_user_attributes(1) := XXAM.XXAM_USER_ATTR_OBJ.getObject();
     xx_user_attributes(1).USER_NAME                         :=     xx_value(1);
     xx_user_attributes(1).ACCESS_ID           :=     TO_NUMBER(xx_value(2));
     -- Disconnect from the LDAP server.
     l_retval := DBMS_LDAP.unbind_s(l_session);
END getUser;
/

Similar Messages

  • How to print values in a HashMap

    Hi
    I am new to Java
    I am using a HashMap where key is a String and the Value is again a HashMap..
    Firstly can I use it this way ...If not could you please suggest an alternative...
    If I can use it ...
    I am unable to print the values in the HashMap..
    Here "map" is a HasMap I am using..
    and I used
    map.put("name",secondMap);
    My code is
    public void printMap(Map map)
              Set keys = map.keySet();
              Iterator keyIter = keys.iterator();
              while (keyIter.hasNext())
                   Object key = keyIter.next();
                   Object value = map.get(key);
    // Here the value is again a HashMap
                   HashMap valuesMap=(HashMap)value;
                   System.out.println("KEY" + key.toString() );
                   if(valuesMap!=null)
                        Set set = valuesMap.keySet();
                        Iterator setit = set.iterator();
                        while (setit.hasNext())
                             Object keyinMap=setit.next();
                             Object valueinMap=valuesMap.get(key);
                             System.out.print("value is"+valueinMap);
    Can anybody help me in this regard.
    Thanks in advance

    Hmm, this looks pretty good to me. What behavior does this give you? For example, do you see "KEYname" printed? Are you sure that "map" is actually the same one you added "secondMap" to?

  • Print values to console

    Please tell me how do u print values of a collection or an arraylist to console to check what a collection or an arraylist contains in it
    for debugging
    any help appreciated

    System.out.println(<theNameOfTheCollection>);

  • Need help with NULL values in Crosstables

    Hello everybody,
    I need some help with NULL values and crosstables. My issue is the following:
    I have a query (BW - MDX-Query) that gives me turnover measures for each month. In Crystal Reports I choose crosstable to display this whereby I put all month in columns and all turnover-measures in rows. Each month that has a value (measures are not empty) is chown in the crosstables rows. So far so good. The problem occures when there are month that actually have no values (measures are empty). In that case these months are not chown in columns. But I need CR to display these columns and show the value 0. How can I do that?

    Hi Frank,
    Cross tab shows the data based on your column and these column fields are grouped and based on the group it will show your summaries. 
    If there is no data for any of your group it will not display that group.  In this case you will have to create a standard report which should look like cross tab and to get zero values you need to write formulas .
    Example if you want to display Moth wise sales :
    if Month() = 01 Then
    sum() else 0
    Now this formula will check if your month is Jan, then it will sum up the values else it will display zero value. 
    This is possible only through standard report not with Cross Tab.
    Thanks,
    Sastry

  • In Supplier View SNC Packaging Materials F4 help has no values

    Dear Friends,
    While creating ASN and subsequent HU: In Supplier View SNC Packaging Materials F4 help has no values. Although this material/ product exists in customer location.
    Thanks and Best Regards, Manoj

    Hi Manoj,
    Click below link this may help you
    http://help.sap.com/saphelp_snc70/helpdata/EN/46/7542dd6d8c69dfe10000000a11466f/frameset.htm
    In our system i am able get packaging material when i press F4 after maintaing data in packaging tab.
    When i create ASN then click on package button then click on Create HU and then go to Packaging material field and press F4 i am able to view packaging material data.
    I am sure you have assign this material location to model 000 but just check.
    Let me know if your issue is resolved.
    Thanks,
    Nikhil

  • How to read the 'Input help with fixed values' of domain .

    How to read the 'Input help with fixed values' of domain .
    The domain has a Value range i want to read those values .
    Are these values stored in any table ?
    Plz help me i need it ver badly...
    Thanks in Advance...

    Hi Chandra Shekhar,
    To read the 'Input help with fixed values' of domain , you can use the function module : HR_P_GET_FIXED_VALUE_TEXT.
    iIf you enter the domain name, you will find the fixed values entered in the domain.
    These values are stored in a table DD07L(DD zero 7 L). Here the values are stored based on domain name.
    See if it works for you.
    Award points if its helpful.
    Regards,
    Bhanu

  • Optimizing images for Help and Print/PDF

    i'm struggling with how to optimize graphics so they look good in both Help and print/pdf output.
    I use Snag-it to Capture and save as PNG 300 dpi.
    I often put the images in Vision and add callouts and save as PNG.
    From RH I generate a printed output (Word) which I convert to PDF.
    So with all the programs an image goes through (snag-it > visio > RH > Word > PDF) i'm not always sure what the best settings are.
    Does anyone have guidelines/suggestions  ?
    Thanks

    I've had very good luck going from a SnagIt capture to Robohelp to Word to PDF. I add callouts directly in SnagIt to save myself a step and save the files as a 24-bit (True Color) PNG. The graphics are very legible in the WebHelp output, in the Word document, and in the printed PDF.
    The only thing that doesn't work well, I've found, is when I reduce the size of a graphic in either SnagIt or Robohelp. Instead, to keep a graphic's dimensions manageable, I either shrink the s/w application window before I grab the screen, capture just a portion of the screen, or crop the screen shot in SnagIt.
    What problems have you been encountering?

  • Please help my printer talk to my computer. An error message always occurs when I try to print and Firefox self-help has not fixed the problem. Please help me directly with fixing the issue. Thank you.

    Please help my printer talk to my computer. An error message pops up whenever I try to print. I have tried the firefox self-help on this topic and it doesn't work. I need direct help with this problem.

    message is: "an unknown error occurred while printing" with the yellow icon and exclamation point. this is all it says every time.

  • MacBook - Newbie: Need help on printing wirelessly to XP shared printer

    MacBook - Newbie: Need help on printing to XP shared printer
    Bear with me please. I read tons of articles on this but somehow as a newbie to MAC (girlfriends sick daughter), I am missing something. 10.5.2
    Currently, she can print directly if we plug in the HP Deskjet printer directly via USB to the MACBook. No problem.
    When we first got the MACBOOK I tried setting up the MACBOOK wirelessly to recognize the workgroup where the printer was attached via USB to the Windows XP PC. However it printed out garbage since I did not know there was a difference between XP printing and MAC (Gutenberg/gimp printing/drivers).
    Now I know there is a difference.
    But in reading various instructions, I no longer can find how to connect the MAC to the Windows workgroup. Note we do have a printer set up currently as USB-HP Deskjet on the Macbook (not sure I need to delete it yet).
    I went to System Preferences on MACBOOK and clicked on printers, more printers. In the drop down box was CANON, APPLETALK, IP HP printing and Firewire. There was no WINDOWS selection as I saw in other online web instructions.
    So not sure how to proceed to find a way to:
    1. Connect to Windows workgroup (click on what exactly), step by step please!!
    2. Add correct HP Deskjet 5490 printer (perhaps there is one with Gutenberg or perhaps I need Gutenprint-really not sure what I am talking about)
    Thanks so much in advance. Fiancé's kid has had her cancer recur in a different place and someone was nice enough to buy her a MACBOOK as a gift.
    Sincerely
    Peter

    ccarbery wrote:
    OK...I figured it out...no need to reply.  I noticed that there was another Protocol to use to set up the printer on the Mac, I was using LPD, so I switched it to HP Jet Direct-socket, and it prints fine...thanks.  I am curious as to why LPD wouldn't work; if anyone has that answer I would like to know...thanks
    Any chance of posting the Protocol you used to connect to your printer with your laptop?  I'm have the exact same problem printing from my MB.  Same error message "..is busy".

  • Help with Print Layout Designer

    Hi all,
    I'm not sure if I should post this here or not, I already posted it in the Business One Forum.  Moderator(s)  if this is not the proper place please delete it and let me know that it is not the appropriate venue.
    I need some help with Print Layout Designer.  I am running 2005A SP01, and my customer wants a modification to the Sales Backorder Report.  They want to add the column "In Stock" to both the report as displayed on the screen and the printed document.  The report rendered to the screen has the In Stock, but it is not checked as visible.  I check it and In Stock shows up as designed.  The part I am having problems with is the printed document. I opened the PLD from the Backorder Report, and saved it under a different name.  I resized some of the columns in the repetitive area (header and data) to make room for the In Stock column.  I CAN add the text field Instock as free text and enter "In Stock" as the content.  I looked at the "backorder" column in the PLD, and it is a text field with the source System Variable and the variable is 109.  I would assume that all I need to do in my added column is to set the source to System Variable and enter the variable number.  That is the problem; I can't find the variable number for that column.  I looked on the report rendered to the screen with system information on and the variable is "3 #000027825,OnHand".  I looked at the Back Order column of the report rendered to the screen and the variable is "3 #000028725,OpenCreQty".  I found a spreadsheet that is supposed to contain a list of system variables for 2007A, but the document type for this report is BRDR and that document type does not appear in the list of document types in that spreadsheet.  I looked for a similar spreadsheet for 2005A SP01 but didn't find one.  I DID find a document "How To Customize Printing Templates with the Print Layout Designer".  According to that document, I should be able to get the system variable from the report rendered to the screen with System Information turned on.  Can anyone help?
    TIA,
    Steve

    I haven't dealt with this before so I can't be certain, but here are my thoughts.
    The Backordered Qty is probably a calculated field, so that's why it's a system variable. The In Stock is a defined field, so you probably can use the file and field number, OITM, OnHand. I would look at maybe the stock number or description to see how those are setup on the form instead of the backordered qty field.

  • I need help with printing labels.  please

    I need help with printing labels.  thanks in advance

    Welcome to Apple Support Communities.
    In Address Book, first select a name or group of names to print.
    Then File, Print, select Style, Mailing Labels, then Layout to select a specific target label (such as an Avery number), or define your own...

  • Help needed with MMAPI and print values to screen

    Hi,
    Using the RingToneConverter, I want to print out the values to the screen that the ring tone has. The values I want printed are actually any values at all! I am not picky at this point!
    Can anyone help with this? I would like it so that while the ringtone is playing the the "simple player", the values are somewhere on screen appearing. Or even after the song is finished, the values come up on screen.
    Thank you,
    Mike

    Sorry, i don't mean that..
    as i say, as3 read the data from file sorting like that:
    1,john,ny
    2,jessy,cal
    3,smith,nj
    how can i pass those values to the textboxes . id , name , address
    so i can go next and previous
    thank you again..

  • Help in PE51 Value not printing what to do??

    Hi,
    I have changed PE51 form , here i include one table  field ( table is custom table)
    through <b>pe51_checktab</b>, Everything is running fine on form but value is not printing in output.
    the custom table has two fields PERNR and LTEXT.
    for each person a quote is to be printed through LTEXT field if an entry exist.
    Wat i have to do next, whether I need to change a standard program to populate this one ?? can anybody suggest me on this.
    Amit Singla

    Hi,
    If you have changed the SCRIPT, then you need to look out for the Driver program & build logic to populate those fields in Driver program.
    If you have change the SMARTFORM, then build logic in Smartform itselft to retrieve data for those fields.
    Best regards,
    Prashant

  • Help!printing float values with two decimal places

    hi there java pips! im a newbie to this technology so forgive me for this really stupid question....i would like to perform mathematical operations on two float values....the problem is i want to print them in a standard format and that is i want them to be displayed with two decimal places (e.g 190.00, 12,72, 1,000.01) how can i do this?

    Try java.text.DecimalFormat
    NumberFormat nf = new DecimalFormat("0.00");
    System.out.println(nf.format(x));

  • Please help with retrieving values from object stored in a vector

    hi..
    i have a class Magazine with 2 varibles name and price like this
    class magazine
    String name;
    int price;
    i have created a vector called selectedmag which stores objects of Magazine class... now each object will contain the name and price rite...
    i want to print the values stored in vector ie i want to print the vector elements...like
    Name: Mag1
    Price: 10
    which wil be present in object1...
    and then
    Name: Mag2
    Price:15
    which wil be present in object2...
    and so on...
    plz help...
    if i give selectedmag.elementAt(position) i am not able to get the above output...plz help me.....
    thanks,
    Akshatha

    hi,
    Yes i have used a for loop to print the values... it goes like this
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.util.*;
    class Magazine
         String title;
         int price;
    public class sessiontrack1 extends HttpServlet
         public void doPost(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException
              res.setContentType("text/html");
              PrintWriter out=res.getWriter();
              HttpSession session=req.getSession(true);
    // This is my vector          
    Vector myshoppingcart=(Vector)session.getAttribute("ShoppingCart");
              if(myshoppingcart==null)
                   myshoppingcart=new Vector();
              Magazine selectedMag=new Magazine();
              selectedMag.title=req.getParameter("Title");
              selectedMag.price=Integer.parseInt(req.getParameter("Price"));
    //Putting Magazine object into the vector myshoppingcart
              myshoppingcart.addElement(selectedMag);
              session.setAttribute("ShoppingCart",myshoppingcart);
              out.println("<html><body>U have selected these magazines");
              out.println("<br>");
         //Enumeration vEnum=myshoppincart.elements();
    //here a am trying to print output the values
              for(int i=0;i<myshoppingcart.size();i++)
    out.println("Name:" + (Magazine)myshoppingcart.elementAt(i));
                   out.println("<br>");
    out.println("Price:" + (Magazine)myshoppingcart.elementAt(i));
                   out.println("<br>");
              out.println("</body></html>");
    this is a servlet program.... plz suggest me how to print the values... in the following format
    Name: Book1
    price: Rs 10
    Name:Book2
    price:Rs 15
    Akshatha

Maybe you are looking for

  • Nike +ipod playlists not playing complete playlist

    Is anyone having issues with using the Nike +ipod for specific playlists. I have my favorite playlist for running and it's skipping songs and I can't get to specific songs that I like. The first time I used it it worked and played all the songs...now

  • How to catch events in a component returned by a renderer

    Hi All, I have two questions actually, both on event-handling. 1. re subject I have a renderer (DefaultTableCellRenderer) which is to pain tablecolumns header (TableColumnInst.setHeaderRenderer(new myrenderer)) In the (abovementioned) renderer I retu

  • HDTV import in Adobe Premiere Pro CS3

    Hi all, I am a 3D animator and I am working right now in an animation where the client wants a High Definition resolution HDTV 1920x1080. When I finish my work and make the render, I went to edit in my Adobe Premiere pro CS3 and find with surprise th

  • How can i use the SNMP and TCP/IP together in Labview?

    I want to use the SNMP and TCP/IP together in the Labview to communicate between the two computers, If anyone know about it , please write back. Santosh Chavan IIT MADRAS.

  • Help please with MCC4 car phone kit

    I have just bought a 2 year old car with a nokia MCC4 car kit, it does not fit my existing phone which is a 5210, can anyone please advise on which phone will fit the kit and whether I should or can upgrade the kit without ripping out the trim of my