Add item without wizard? [SOLVED]

I want users to only add a specific custom item type and to not see items added by other users.
Here is my scenario:
-user clicks a button or icon on a Portal page in View mode
-a custom item type's add form displays (user does not have to select the item type)
-user completes form and clicks [submit] button
-user returned to original page, not item's page in edit mode
I have a hard copy of a presentation by Patrick Monaco to add a fast additem link, but the source code is not included in the hard copy (it is embedded in the PowerPoint).
Message was edited by:
Angrydot

Angrydot,
Here is an example of a plsql block that adds an item. It also includes calls to two types of invalidation of the web-cache depending on what you need.
set serveroutput on
declare
l_text varchar2(4000);
l_site_id number
l_page_id number
l_region_id number;
l_new_item_master_id number;
begin
l_text := 'This is the text that will be added for the item and displayed in your portal';
l_region_id := <region id that you want to add item to>;
l_site_id := <site_id that you want to add item to>;
l_page_id := <page_id that you want to add item to>;
wwctx_api.set_context('<username>','<password>'); -- authenticate the session so you can call add_item
l_new_item_master_id := portal.wwsbr_api.add_item(
p_caid => prp_pg_id,
p_folder_id => prp_pa_id,
p_display_name => '',
p_type_id => portal.wwsbr_api.ITEM_TYPE_TEXT,
p_type_caid => portal.wwsbr_api.SHARED_OBJECTS,
p_region_id => l_region_id,
p_text => l_text,
p_author => ''
-- soft invalidation of cache
dbms_output.put_line('Calling execute_cache_invalidation');
wwpro_api_invalidation.execute_cache_invalidation;
-- hard invalidation of cache
dbms_output.put_line('Clearing Cache');
wxvutil.invalidate_reset;
wxvutil.invalidate_uri('/server:port/portal/pls/portal/pagegroup',0,null);
wxvutil.invalidate_exec('server',webcache-port,'webcache-password');
dbms_output.put_line('l_new_item_master_id = ' || to_char(l_new_item_master_id));
exception
when others then
dbms_output.put_line('SQLCODE = ' || SQLCODE);
dbms_output.put_line('SQLERRM = ' || SUBSTR(SQLERRM,1,200));
end;
Hope this helps, Ken

Similar Messages

  • Add Item to a delivery without reference to a sales order

    Hello everybody,
    I'm trying to add an item to an existing delivery via VL02n without reference to a sales order but every time the following error message appears: "You cannot add this item to the delivery".
    What settings do i need in order to that? (material type, delivery type, item category group,..etc..)
    Could anyone help me?
    Thank for your attention.
    Regards,
    A.

    Hi!
    Its not feasible to add a new line item without reference, becuase in one of the user exits such a code would have been written to prevent adding line item without refernec.
    This is done to ensure that a standard availabilty check, pricing and infostructure updates are done. Otherwise, after billing the report of Profitabilty will not come correct and will lead to more problems.
    So my suggestion would be not to add the line item withour referencing to the sales order.
    SAP provides the way of unreferincing through a seperate delivery type called LO. So if you want to create a delivery without refernce, you can use delivery type LO or some Z version of it.
    Hope this helps,
    Abhishek

  • Add Item wizard : Increase number of visible Perspectives

    We have a large number of perspectives and hence it becomes cumbersome to select multiple perspectives from the Add Item wizard since it only shows 5 at a time.
    Is there a way to increase the number of perspectives visible in the add item wizard?
    Thanks,
    Manish

    christian,
    Although I anticipated this response, I was hoping for a hack or any other way to accomplish this, short of creating our own Add Item Wizard.
    Thanks.
    Manish

  • Get previous items unique value in new add item form

    Hi
    I have on list having items related to multiple locations.
    Every location is related to one user.
    When user logs in it filters the list with that users location.
    Now when user click on add new item I want to get the data related to his location using item event listener.
    But in new item form there is no way to get the location of that user in event listener as its new item.
    So I passed the qury string parameter form list and changed the add item form link and form to get the query string paramter as default value in Add new Item form.
    But again when user clicks on save button it redirects to original url without paramter. 
    How to redirect user to url with parameter on click on Save/Cancel.
    Is there any other way to get the previous item unique value in add new item from before executing the event listener?

    Hi,
    According to your post, my understanding is that you wanted to redirect user to url with parameter on click on Save/Cancel.
    You need to modify the onclick event need to as below:
    javascript: {{ddwrt:GenFireServerEvent('__redirect={{Home.aspx?Participant={@Participant}&amp;@Activity={@Activity}}}')}}
    Here is a similar thread for your reference:
    http://social.technet.microsoft.com/Forums/en-US/b506cfe5-650e-4017-b470-9ca0a75cd390/sharepoint-2010-list-how-to-pass-parameters-in-a-url-to-another-page?forum=sharepointcustomizationprevious
    In addition, you can creating an intermediate page which just finds the filed value with a DVWP and then redirect to RedirectURL with the filed value on the Query String.
    For more information, you can refer to:
    Redirect to Another Page from NewForm.aspx with the New Item’s ID
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • DataGrid - Create at runtime - How to Add Items??

    I create a DataGrid at runtime and then and columns to it as need be. How Can I add items with the correct dataField if I don't if I don;t know this till runtime? In other word I'm having trouble constructing the Object to send to AddItem becase the dataField Name needs to be hard coded...
    Below does not work for me because if I have more than one column then I can seem to figure out out to create  ItemObjFinal dynnamically.
    var ItemObjFinal:Object = {ThisNameNeedsToBeDynamic: "text", ThisNameNeedsToBeDynamic: "value" };
    I also tried creating an array of Objects like this:
    var ItemObjFinal:Object = new Object;
    var obj:Object= dgc.dataField;
    ItemObjFinal [0] = {(obj.valueOf()):  dgc.headerText };
    ItemObjFinal [1] = {(obj.valueOf()):  dgc.headerText };
    =========================================================================================
                  ac.addItemAt(dgc, int(ac.length));
                  dataGrid_preview.columns = ac.toArray();
                  var obj:Object= dgc.dataField;
                  var ItemObjFinal:Object = {(obj.valueOf()):  dgc.headerText };
                  var obj2:Object= dgc.dataField;
                  var ItemObjFinal2:Object = {(obj2.valueOf()): dgc.headerText};
                  //K Now add it!
                  //IList(dataGrid_preview.dataProvider).removeAll();
                  IList(dataGrid_preview.dataProvider).addItemAt(ItemObjFinal,0);
                 //IList(dataGrid_preview.dataProvider).addItemAt(ItemObjFinal2,1);

    Ahh answered my own question:
                 ac.addItemAt(dgc, int(ac.length));
                  dataGrid_preview.columns = ac.toArray();
                  var ItemObjFinal:Object = new Object;
                  var ItemObjFinal2:Object = new Object;
                  for each(var col:DataGridColumn in ac)
                    ItemObjFinal[col.dataField] = col.headerText;
                    ItemObjFinal2[col.dataField] = col.headerText;
                  ItemObjFinal[dgc.dataField] = dgc.headerText;
                  ItemObjFinal2[dgc.dataField] = dgc.headerText;
                  //K Now add it!
                  if(IList(dataGrid_preview.dataProvider).length > 1)
                      IList(dataGrid_preview.dataProvider).removeItemAt(0);
                      IList(dataGrid_preview.dataProvider).removeItemAt(1);
                  IList(dataGrid_preview.dataProvider).addItemAt(ItemObjFinal,0);
                  IList(dataGrid_preview.dataProvider).addItemAt(ItemObjFinal2,1);
    This code may still need some tweaking as I get an RTE at  "IList(dataGrid_preview.dataProvider).removeItemAt(1);"   but at least I'm able to solve my original question. Thanks Alex!

  • Easy way to add episodes without having to manually code it?

    Hi Folks,
    Question for you here. Is there an app or system that allows you to easily add additional podcast episodes, all XML correct without having to keep having to add items and fill out the code in the feed?

    There are a number of programs and online services, though in many cases they create the feed but don't allow you to access it directly. My only experience has been with Podcast Maker, which is easy to use, but I understand that it doesn't work well with Lion or Mountain Lion.
    I can't recommend any specific service or program; I can only suggest you do some Googling, Note that in most cases you will have to start over with the older episodes as it probably won't import your existing feed.
    You can of course simply copy and paste an episode and change the appropriate tags - be careful not to fall into the trap of duplicating the 'guid' tag and not changing it - each must be unique.
    You may find my 'get you started' page helpful:
    http://rfwilmut.net/pc

  • Cannot add item in A/P Invoice

    Hi, all,
    I want create a A/P invoice without copy from PO or GRPO. However, after I input BP Code, I am not able to add item in Matrix row. Seems that it is blocked
    Any ideas?
    Thanks

    Hello kimmycheng,
    The marketing document can be of 2 types ..Item or Service...this is indicated by the Item / Service type drop down just above the matrix/grid
    If you want to add an Item..this drop down should be set to Item.  If it is of type Service then you might not see the ItemCode column.
    If does not reflect / help what you are referring to ....then please explain your issue ina bit more detail
    Suda

  • Error message when trying to add item in change BOM goup

    Hi I went to transaction cs05,and trying to add item to specific material with BOM group,an error message popped up and saying assign the item to an alternative,what does it mean? How to solve?

    Hi,
    A finished material can have multiple alternative BOMS which can be stored in a common BOM group number. CS05 is used to change these multiple boms.
    When you add a new item in CS05, system will ask - to which alternative bom the new item should be assigned and that's how you are getting this message. For example, if in a bom group you have 3 differnet alternatvie boms for a FG material, when you add new item in CS05, you will see 3 checkbox at the right hand side of the screen. If you want to assign new item to all the three alternative BOMs , than select all the three check box and save.
    Regards,
    Ravi Thakkar.

  • Can you please help me resolve this issue on Batch Management Completion. "Cannot Add row without complete selection of batch number." Message 29-77

    'Another user or another operation modified data, to continue open the window again ' Inventory Transaction Log' (OITL)(ODBC-2039) (Message 131-183). If I click again on add I get the following message : 'Cannot add row without complete selection of Batch / Serial Nos. [Message-29-77]
    Path:
    Inventory -> Item Management -> Batches -> Batch Management - Complete form.
    Before this I use Return Components on Receipts from Production as I am mistakenly issued it more than what was needed.
    Were anyone be able to explain why it worked for certain items  and not for others? I have successfully done  “return components with some batches"

    Hi Nagarajan,
    I'm one of colleague of caterine, we only accessing the batch management-complete window, no other window is open, still the error occurs; see image below
    Before that error occurs(in image); first error we encounter was batch number is already exist, then upon click add another person modified the window; but we tried to restore the db then try to add the batch number in different transaction like SI 1658(Goods Issue), and it is okay.. but on the SI 50003 which is Receipt from production we can't add it.
    Hope you can help us.
    Regards,
    Lean

  • Cannot add row without complete selection of batch / serial numbers SBO 8.8

    Hi
    I have written some code to import a goods receipt po document in SAP 8.8
    When the item is a batch number I get the message 'Cannot add row without complete selection of batch / serial numbers'
    This is my code -
                        doc.Lines.SerialNumbers.SetCurrentLine(0)
                        doc.Lines.SerialNumbers.InternalSerialNumber = batchno
                        doc.Lines.SerialNumbers.ExpiryDate = CDate(bbdate2)
                        doc.Lines.SerialNumbers.ReceptionDate = CDate(Now.Date)
    Can anyone see what is wrong please ?
    Many thanks
    Regards Andy

    Hello
    You would like to import items with batches or items with serials?
    This code is importing items with serials.
    Hereby an expample for each cases
    'bacthes
            oDoc.Lines.BatchNumbers.SetCurrentLine(0)
            oDoc.Lines.BatchNumbers.BatchNumber = "1"
            oDoc.Lines.BatchNumbers.Quantity = 1
            oDoc.Lines.BatchNumbers.Add()
            oDoc.Lines.BatchNumbers.SetCurrentLine(1)
            oDoc.Lines.BatchNumbers.BatchNumber = "2"
            oDoc.Lines.BatchNumbers.Quantity = 1
            oDoc.Lines.BatchNumbers.Add()
            ' here you should apply condition: sum of batch qty = oDoc.Lines.Quantity -this completes the selection
            oDoc.Lines.Add()
    'serials
            oDoc.Lines.SerialNumbers.SetCurrentLine(0)
            ' Use the correct line for selection of serial numbers:
            ' I have the settings "None" -> Systemserialnumber will be used
            ' query: SELECT T0.[SriUniqFld] FROM OADM T0
            oDoc.Lines.SerialNumbers.SystemSerialNumber = "1"
            'oDoc.Lines.SerialNumbers.ManufacturerSerialNumber = "1"
            'oDoc.Lines.SerialNumbers.InternalSerialNumber = "1"
            oDoc.Lines.SerialNumbers.Add()
            oDoc.Lines.SerialNumbers.SetCurrentLine(0)
            oDoc.Lines.SerialNumbers.SystemSerialNumber = "2"
            'oDoc.Lines.SerialNumbers.ManufacturerSerialNumber = "2"
            'oDoc.Lines.SerialNumbers.InternalSerialNumber = "2"
            oDoc.Lines.SerialNumbers.Add()
            ' here you should apply condition: count of serialnumer lines = oDoc.Lines.Quantity
    Regards
    János

  • Disable "Add item" and "Paste" button on item level of shopping cart

    Hi,
    I would like to disable the "Add item" and "Paste" button on the item level when editing a shopping cart awaiting approval.  I have been able to accomplish this for the buttons "Delete", "Duplicate", and "Copy" already.  I have done this by adding an enhancement implementation in the class /SAPSRM/CL_PDO_DYN_MDA_IT_SC under the methods DELETE_ITEM (delete button), COPY_ITEM (duplicate button), and COPY_CLIP (copy button).  This enhancement gets the shopping cart header guid, then uses the function module "BBP_PD_SC_GETDETAIL" to return the table e_status to check if the shopping cart is awaiting approval.  If it is it will disable the buttons, making them equal to abap_false.
    I would like to do this same thing to the "Add item" and "Paste" buttons but they are not listed in the the same class.  Does anyone know what class they are called in?
    I have tried looking in SPRO -> SAP Supplier Relationship Management -> SRM Server -> Cross-Application Basic Settings -> Extensions and Field Control (Personalization) -> Control Actions -> Display Standard Metadata Tables for Actions on Item Level.  I can't find the "Add item" and "Paste" buttons in here for BUS2121(shopping cart) under Edit mode.  Anyone have any ideas?
    Thanks,

    Jay,
    I did as you suggested and was able to break on the method as expected.  I made the same coding changes as I had in the other methods where I put in an enhancement but it would not work.
    I was able to solve this problem by creating an enhancement in the Web Dynpro where the buttons were being displayed.  I created a 'Post-Exit' enhancement for the WDDOMODIFYVIEW method.  Within this I added my custom logic to disable the Add Item and Paste buttons when in editing a shopping cart that is awaiting approval.
    Thanks for the help,
    Jeff

  • Account determination without  wizard

    Materials management>valuation and account assignment>account determination>account determination without  wizard>group  together valuation area.
    i am not able to find 2 plants (valuation area is activated at plant level) with assignments
    can any one pls let me know wht the reason and how can i do that
    there is no option for entring a new item.

    have you executed before: Materials management>valuation and account assignment>account determination>account determination without wizard>Define Valuation Control
    This is the customizing that allows you to group.
    The plants will automatically show up there, just without a grouping in the field on the right.
    But the precondition for this is that your valuation level is set to plant level in Enterprise Structure >
    Definition > Definition > Define valuation level

  • Creating a custom Add Item form to a list

    I am trying to create a custom New Item form to a list in SharePoint 2013.
    I have read a few tutorials and all of them seem to have the same problem.
    I can create an application page for my custom New Item form without an issue. However SharePoint always adds in the Add Item table on render to the div id="main''. Therefore the only way I can think to really edit this is via JavaScript.
    Is there a better way? Can I manually add the textbox's and associate them with a field-  and disable SharePoitn from rendering this for me?

    Hi,
    According to your description, you might create a custom NewForm page for an existing list.
    Using JavaScript to customize the OOTB NewForm.aspx page would be an option, if you want to create a totally new one, Brij's suggestion would be helpful.
    To specify your custom form as the NewForm page of that list, we can achieve it programmatically using SharePoint Object Model.
    The link below with code demo about
    How To Change the Default EditForm, NewForm and DispForm would
    provide more information:
    http://blog.qumsieh.ca/2009/05/15/how-to-change-the-default-editform-newform-and-dispform/
    A thread with similar need for your reference:
    https://social.technet.microsoft.com/Forums/en-US/fb18812f-a543-4139-bd0a-331e69e0033d/customizing-new-item-form-for-lists?forum=sharepointdevelopmentlegacy
    Thanks 
    Patrick Liang
    TechNet Community Support

  • WISH : Excel Analysis add-in without SQL Server Analysis Service

    WISH : Excel Analysis add-in without SQL Server BI Edition.
    I want to use Excel Analysis functionality on my Excel without SQL Server Analysis Service.
    LIKE Excel Power Pivot , can use without SQL Server Tabluer Service.
    Yes, Excel Power Pivot have limits.
    my hopes.
    Hope 1st. Excel Analysis add-in that can use without SQL Server Analysis Service.
    Hope 2nd. Microsoft Azure SQL 'Analysis' Service that can use by Excel Analysis add-in.
    Hope 3rd. SQL Server Analysis Service for Client which price is resonable for client Excel use.
    Regards,
    Yoshihiro Kawabata

    As Mr. Olaf Helper said all you have to do is add Analysis Service as a new one on your existing instance here is what you have to do if you are new for this
    1-Click on Start on your computer >>>All Programs>>>Click on Microsoft SQL Server 2008  >>>Configuration Tools>>>SQL Server Installation
    Center
    2-  Click on New Installation or Add Feature to an Existing Installation as shown below 
    and then click on Analysis Service as shown on here 
    and then from this follow the installation wizard and you should be able to install it. 
    I hope this elaborate more for your installation problem and goodluck
    Please remember to click “Mark as Answer” on the post that has answered your question as it is very relevant to other community members dealing with same problem in seeking the right answer

  • Add stock without goods receipt and PO - is it possible

    Hi Gurus,
    For the needs of a presentation in SD, I need to add stock to materials I have created to execute SAP SD processes.
    Can I add stock without creating a purchase order and a goods receipt?
    Regards
    Chris

    Hi,
    if you want amount of material value also upload through MIGO 561 mvt,
    regards
    chenna
    Edited by: lakshmi reddy on Oct 28, 2010 1:59 PM

Maybe you are looking for

  • Razr not showing up in My Computer

    I'm running Win XP SP3 and when I try to hook up my Razr via USB it's not showing up in my computer. I plug it in, it makes the connect sound, the phone says it's connected as a media device, Motorola device manager recognizes my Razr, but it's not l

  • Dynamic Summary of List in Second Table

    I've run into a bit of a problem, and about 5 hours of internet research hasn't turned up an answer so to posting I go. Here is my problem: In a table called Hours, I have a prepopulated table with a bunch of data about hours I have worked. In this t

  • V_V2 Rescheduling Sequence Issue

    V_V2 Rescheduling is not working properly for sort order sometimes. I set sort order by default - Document category > Delivery Priority > Date (Sort item by date of creation) > Document Number and Document item. And excute V_V2 as daily batch job. An

  • HT5313 Printer for Mac 10.7.5?

    I have had my Mac OS X 10.7.5 about a year now.  I use it mostly for communication; however I am in need of a printer.  Most home-type computers have different specifications than mine.  What do I need to be concerned about when purchasing a printer?

  • Long Audio Delay

    I'm running on Mac 10.7.3 using the latest free trial of Adobe Connect. I'm experiencing very long audio delays (5 seconds or more) when in a meeting room. I've searched the forums and found this   Re: Long audio delay By jonturkle, posted Nov 20, 20