Selecting from wwsbr_all_items for Custom Item Display

I'm trying to call a procedure that will create custom HTML for an item I created. In that procedure I'm trying to get the name of the object I'm passing from the wwsbr_all_items view. However, when I try to select from the view I get the following error
(p_url is a VARCHAR2 with a valid ID number)
SELECT name
FROM wwsbr_all_items
WHERE id = p_url
ERROR:
ORA-14551: cannot perform a DML operation inside a query
ORA-06512: at "Portal.WWCTX_SSO", line 2954
ORA-06512: at "Portal.WWCTX_SSO", line 3483
ORA-06512: at "Portal.WWCTX_SSO", line 1735
ORA-06510: PL/SQl: unhandled user-defined exception
ORA-06512: at "PORTAL.WWCTX_SSo", line 1578
ORA-06502: PL/SQl: numeric or value error
ORA-06512: at "Portal.WWCTX_SSO", line 1820
ORA-06512: at "Portal.WWCTX_API", line 199
I also get a similar error if I try to select * from the view. Any ideas??
Thanks!

I believe you need to set your context up. Try the following. You will need to substitute with your own parameters.
portal.wwctx_api_private.set_context(p_user_name => 'PORTAL',
p_password => 'password', p_update_flat => true);
You may have to wrap your code, so the password is not visible.

Similar Messages

  • Additional fields for line item display for Vendor Accounts

    Hi,
    The additional fields for line item display have been defined for the vendor accounts. I am able to see the additional fields in SAP 4.7 system but not in ECC 6.0.
    Could you help me to know how the same will be displayed in ECC 6.0 system.
    Thanks

    In SPRO, Vendor Accounts -> Line Items -> Display Line Items -> Define Additional fields for Line item display, the fields for Check number from (PAYR-CHECF) and Tax Jurisdiction (BSEG-TXJCD) have been defined.
    When I am executing Vendor Line Item display (FBL1N), I am not able to select these fields for defining a layout. Could you please let me know, how I will get these fields in FBL1N.
    Thanks

  • Define Additional Fields for Line Item Display

    Dear gurus,
    I'd like to ask for your help again, please. I've just added the field BKPF-USNAM to the list of fields of FBL1N using IMG:" Financial Accounting-> Accounts Receivable and Accounts Payable->Vendor Accounts->Line Items-> Display Line Items->Define Additional Fields for Line Item Display". When I run the report the field is correctly displayed but if I save the current layout and set it into the selection screen, the column appears is blank. And if I open the change layout window and click OK the column gets filled.
    Is there another transaction that I must set new columns to FBL1N.
    Thank you very much.
    Paresh Jivani
    Edited by: Jivani Paresh on Jul 31, 2009 9:16 AM

    Hii,
    When you will execute FBL1N, it will come up in standard format. if you want to see any specific fields,then you have to go to Change Layout button and choose from available fields as per your requirement and then execute.
    For future reference, you can save this layout as a Variant and then you can directly execute that report using that variant.
    Dhara D.

  • S_ALR_87012078 - Due Date Analysis for Open Items display changers

    Hi
    I need to change this reports( S_ALR_87012078 - Due Date Analysis for Open Items ) display type to column display. How can I do that. I thought of uesing GoTO> Colum display but it is inposible 'cos always they are in inactive mode even in the change mode. pls advice on this
    Thanx

    Hi
    did u try S_ALR_87012077
    Thank You,

  • How to - Extract data from Cloud For Customer into SAP HANA system

    Hello Community,
    I have a requirement for extracting the existing data from Cloud for Customer into separate SAP HANA Box.
    Is it possible to achieve the same ? If yes, Please guide me for the same.
    Awaiting quick response.
    Regards
    Kumar

    Hi Kumar,
    In addition to what Thierry mentioned you could also use the C4C integration via standard Operational Data Provisioning (ODP) interfaces. This integration was acutally built for SAP BW and allows you to access any C4C data sources. From my perspective you can also build upon that for a native SAP HANA integration. Please also have a look at this guide: How To... load SAP Business Suite data into SAP... | SAP HANA.
    Besides that question let me also add the following: SAP Cloud for Customer already runs on SAP HANA since Nov. 2013. You may also use the powerful built-in analytics within C4C for analyzing data and any of your reporting demands. If your report should consider external data as well, you can combined the existing C4C data source with an external, so-called Cloud Data Source. More infomation is published in the C4C Analytics Guide: http://help.sap.com/saphelp_sapcloudforcustomer/en/PDF/EN-3.pdf.
    I hope this helps...
    Best regards,
    Sven

  • JDBC Problem: "select * from NAMES for update of FIRSTNAME"

    I am using Oracle 8 and JDBC thin driver. Is there any reason
    why when I try to use the statement:
    "select * from NAMES for update of FIRSTNAME"
    it does NOT work in JDBC?
    However when I do the statement in SQL-Plus it works fine.
    If anyone has used this statement with success, please let me
    know that it actually works, so that I know there is something
    wrong with me!
    Any code snippets would be very helpful.
    Could it be the thin driver?
    Please help! Thanks in advance.
    null

    Thomas Gutzmann (guest) wrote:
    : James,
    : for this command you need transactional control, which is not
    : possible with JDBC - if I'm not wrong. You can circumvent it
    with
    : something like:
    : select x into vOld from t where id=4711;
    : vNew := 0.815;
    : update t set x = vNew where id = 4711 and x = vOld;
    : Another option would be to write a stored PL/SQL procedure that
    : runs the whole transaction.
    : Cheers
    : Thomas
    : James Ward (guest) wrote:
    : : I am using Oracle 8 and JDBC thin driver. Is there any
    reason
    : : why when I try to use the statement:
    : : "select * from NAMES for update of FIRSTNAME"
    : : it does NOT work in JDBC?
    : : However when I do the statement in SQL-Plus it works fine.
    : : If anyone has used this statement with success, please let me
    : : know that it actually works, so that I know there is
    something
    : : wrong with me!
    : : Any code snippets would be very helpful.
    : : Could it be the thin driver?
    : : Please help! Thanks in advance.
    I don't think this is correct. I have used select for update
    with no problems. you can send a "set transaction control"
    via sql, I believe, but you shouldn't need to do so...
    Maureen
    null

  • Is it possible to autocreate requisition from Projects for inventory items

    Is it possible to autocreate requisition from Projects for inventory items with destination type of inventory in a non-manufacturing organization?Also how ti budget for inventory items based on actual cost i.e. FIFO cost?
    Zeeshan

    Hi Dina,
    Hope you are fine and enjoyed the weekend.
    Thanks for your help, yes there was an error in the Material Transactions form, i have corrected and PA_TRANSACTIONS interface got updated. I issued the stock to Project and there was'nt any transaction transferred to Projects.
    I just want to confirm one more thing, we are using FIFO costing method, if i procure same item for 2 different projects like Qty 1 with Rate 10 for Project 123 on 1st Jan 2010 and then i receive same item Qty 1 Rate 20 for Project 124 on 10 Jan 2010. Then everything will be transferred to Projects and Projects Expediture will be updated with the receiving Transactions.
    Now what if, the stock is being issued in the reverse order than it was received. Like I enter Miscellaneous issue for Project 124 first, then as per FIFO rules system will pick Issue rate of 10 because it was received first......Due to this, dont you think its wrong from the system's point of view. Infact it should pick issue rate of 20 because it was received at 20.....
    One more thing, While doing Miscellaneous Transaction with Projects enabled, do the Locator Project Number and Source Project Number needs to be same. If No then whats the control that stock received for one project should be issued against that project only.
    Your thoughts on this scenario.
    Zeeshan

  • Display filename in url for custom items

    Hi - I'm rying to find out how to open a word doc in a browser and display the FILENAME (xyz.doc) instead of the NAME (123.doc) - which comes from the wwdoc_document$ tbl .
    The word document was added to a portal page via a file attribute within custom text item. It seems that the document is not referenced within the actual page group when using the custom item compared to using standard file item format.
    I can open the doc in browser using the NAME format - eg, .../portal/pls/portal/docs/1/1234.doc but I need to open via the PAGEGRP/FILENAME format eg, .../portal/page/portal/PAGEGRP/xyz.doc
    BTW - We're using portal 10.1.4
    Any ideas appreciated
    Cheers,
    Justin

    Hi guys,
    I finally discover the solution. Just try this:
    First, create a Procedure like this:
    PROCEDURE ShowSaveDoc (pFile wwdoc_document$.name%TYPE) IS
    v_BlobContent wwdoc_document$.blob_content%TYPE;
    v_MimeType wwdoc_document$.mime_type%TYPE;
    v_Filename wwdoc_document$.filename%TYPE;
    BEGIN
    SELECT blob_content, mime_type, filename
    INTO v_BlobContent, v_MimeType, v_Filename
    FROM wwdoc_document$
    WHERE name = pFile;
    owa_util.mime_header(v_MimeType, FALSE);
    htp.p('Content-Length: ' || DBMS_LOB.getlength(v_BlobContent));
    htp.p('Content-Disposition: attachment; filename="' || v_Filename || '"');
    owa_util.http_header_close;
    wpg_docload.download_file( v_BlobContent );
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    htp.p('Error - No Data Was Found');
    WHEN OTHERS THEN
    htp.p('Error - ' || || SQLERRM);
    END;
    On the HTML code where you have the link try this:
    htp.p('< a id="someid" title="download" alt="download"
    h_ref="/portal/pls/portal/portal.galeria_pkg.showsavedoc?pFile=' ||rec.id_doc || '"> Download '||rec.docDescription||'</a>');
    where the rec.id_doc is the wwdoc_document$.name of your document.
    Try it and tell me if it worked.
    Its Working for me.
    Thanks.

  • Vendor Line Item Display-Default value for customer items

    Is it possible in selection screen of transaction FBL1N (Vendor line item display) the default value of field "customer items" to be checked?
    Thanks in advance.

    hi Tsiami
    it's not possible. if u want check customer line items go throw this TC:FBL5N
    plz assign points
    regards
    sivareddy.

  • Choose from list for purchase  Item

    Dear Experts,
    i have created Choose from list in matrix using Screen Painter. its working properly but i want to display only Purchase Items in CFL.
    For Customer we are using
    oCons = oCFL.GetConditions()
                oCon = oCons.Add()
                oCon.Alias = "CardType"
                oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                oCon.CondVal = "C"
                oCFL.SetConditions(oCons)
    Like this, How to set condition for Purchase items thru coding or Screen painter
    Mathi

    Hi Mathi,
    Try this and tell me if it worked.
    oCons = oCFL.GetConditions()
    oCon = oCons.Add()
    oCon.Alias = "PrchseItem"
    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
    oCon.CondVal = "Y"
    oCFL.SetConditions(oCons)
    If this works dont forget to reward points..
    Regards,
    Vasu Natari.
    Edited by: vasu natari on Jul 29, 2008 12:37 PM

  • Item level security for custom items in 902

    I've created several custom item types and created some items in a page
    that enables Item Level Security.
    Enabling item level security on any of these items cause
    Error 30694: Error in API - update item failed
    Steps:
    1. Create custom item type
    Extended simple text type
    added image attribute
    2. Create custom item
    3. Edit custom item just created
    Select Access / Item Level Security
    Select Define Item Level Access Privileges
    Hit Apply or OK
    -> Error 30694: Error in API - update item failed
    Same error is using a "Image" item type.
    The above steps do not cause an error if using the default types; e.g. Simple Text and Simple URL
    Also tried promoting the item type so its shared. No effect.
    Is item-level security only for base "simple" item types??? If so then this is a MAJOR restriction.
    Any help would be greatly appreciated.
    --jason mathews                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi Jason
    I filed a bug on this. See 2529787
    I narrowed the problem down to custom item types that have a file or image attribute and only when the item is edited by someone other than the orginial publisher.

  • Changed the GL Master record for Line item display

    Hi,
    Can anybody please let me know once i changed the GL Master record as a line item display then how i can see my old line items display?
    I know through one standard programe we can do so but i haven't recall it. Can anybody please help me out with this?
    I'll really appreciate your time and help.
    Thanks & Regards,
    Niki Shah

    Hi Eric,
    Thanks for the quick reply. I got it.
    Thanks once again and i assigned the points accordingly.
    Regards,
    Niki Shah

  • FRM-41830 Error when try to select Billing address for customer...

    Hi All,
    When I tried to select billing address in Customer and Contracts Details for a particular project, I get error FRM-41830 - List of values contains no entries.
    But in actual the customer has addresses.
    Can anyone please tell me what kind of setup do I need to do.
    Regards,
    Bala

    Dear Bala,
    Prerequisites for a Customer to get populated into Projects:
    1) Project Type > Contract
    2) Project/Template Status > Active/Approved
    3) Project Start Date and Customer Active Dates need to be checked.
    4) Customer Status > Active
    5) Customer need to be assigined to OU
    6) Contact Details > Bill to & Ship To.....etc
    Regards
    Raghavender K

  • Procedure Links for Custom Items & Folders

    I created both a custom item type and custom folder type. Each was given a procedure call to a form application component created in Oracle Portal. When I created the custom item type, I checked "Display Procedure Results With Item". I used the following HTTP link: http://collins:7777/pls/portal30/portal30.wwa_app_module.new_instance?p_moduleid=1710562983
    When I view a folder of the custom folder type or a folder containing an item of the custom item type, the folder displays briefly and then is replaced with a full browser version of the form.
    Is it possible to get the form to display within the folders instead of replacing the folder in the browser window?
    I am running version 3.0.6.6.5 on Solaris 2.6.

    Fran,
    Try using the component's show procedure. On the component's Develop tab, click the Show link next to Call Interface to see the structure of the URL to call the component directly.
    Jerry

  • "On Create" for custom items?

    Does anyone know of a way to simulate an "on create" event for creating a new custom item? For example, if I want to populate some of the attributes of the item based on a database lookup when the item is created.
    Thanks in advance,
    Wayne

    There is currently no supported way to do this. This feature is planned for a future release.
    Regards,
    Jerry
    PortalPM

Maybe you are looking for

  • Fetching data from a table and displaying it on the text box

    Hi, I have created a dialog program in which created a container(text box)  to enter data upto 1000 characters. Iam capturing the data and storing it in a custom table. In PBO I want to fetch data from my custom table (if data is already present :100

  • BAPI for updating Maintain Duration in Transportation and Delivery scheduling

    Hi all, Iam looking for a BAPI to update the Duration Times in Transportation and Delivery scheduling. I reluctant to use recording on SM30 Table maintenance T code and use it in LSMW. Is there a BAPI or Standard i/p Program to load these details. I

  • Monitor Question: Misleading and Confused

    I'm looking to buy a new HP monitor, I just had a few questions whats the difference between HP 25bw and HP 25xi Monitor? I was interested in this monitor for the gloss screen and crystal clear images they can produce. Having read a review on CNET, t

  • Photos not showing in media view but are in catalogue

    In Elements 12 not all photos are showing in the  standard ALL MEDIA view, but it says they are in the catalogue if I trey to import a sample of the missing photos.  Most of my albums are blank too. It was working fine yesterday but the problem has o

  • How post to park of Cash Journal entry?

    HI Gurus, I was park in  cash journal entry, how to post cash Journal park documents,  What t.code there in post to park cash journal entry. Explain detail. Advance Thanks & regards Selva