Automatically create PR with collective PR indicator

Hello,
Since ERP6.0 it's possible to group material components in a project according to a "collective purchase requisition indicator", i.e. material components with the same indicator will be put into the same PR.
We already have a customer program that creates new material components using BAPI_NETWORK_COMP_ADD. However, this BAPI does not seem to have a possibility to set a collective PR indicator when creating the components. (Also it's obviously not possible to set the indicator later.)
Do you know a BAPI or FM that can create a material component and set the collective PR indicator?
Thank you
Roland

Hi Roland,
I am sorry to say, there is not a possibility to do that. The collective purchase requisition indicator
cannot be filled via BAPI. This functionality is not yet available.
Apologies for not being more positive this time.
Best regards,
Enrique
Edited by: Enrique Sosa Dominguez on Sep 9, 2011 2:58 PM

Similar Messages

  • Problems Creating Mappings with Collections with tools or workbench

    Hi -
    I am a new kodo user for my company. And am having a few problems in genereal with mapping objects with collections
    in them.
    I followed the tutorial on how to use the kodo workbench
    using the Passenger example. Build the java code and then
    tried to creat a new set of metadata. After going through
    this process I expected to see TWO tables. Something like
    'PAssenger' and something like 'Luggage' where luggage
    would be joined to passenger. However what I am getting
    is ONE table passenger with a BLOB field 'Luggage'. This
    has been a contant problem with me with any composite
    java class containing collection. Obviously I am configuring something wrong. Any help would be great.
    Thanks
    Matt

    Answered by one of my fellow and unknown colleagues that suddenly entered the room

  • Automatically Creating Communities with G6

    This should be pretty straightforward but its not. We have upgraded our development server to G6 and are working on a system to create communities automatically. Our code called the POrtalObjectsFactory.CreateSession() to create a session but then it complains that Init must be called first. To call Init, you need an IOKContext which is part of com.plumtree.openkernel.config. The G6 API has a broken link on the page that has the PortalObjectsFactory.Init method to IOKContext.
    We have seen that in Version 5, you didn't need to do this but in G6 you have to. We need to understand how to Init the PortalOBjectsFactory so we can create a community. Thanks
    Below is our code:
    public int CreateCommunity(string name, int templateID, int folderID){int communityID = -1;IPTSession mIPTSession = PortalObjectsFactory.CreateSession();IPTCommunity mIPTCommunity = null;IPTServerContext mIPTServerContext = null;mIPTSession.Connect(ms_UserName, ms_Password, null);mIPTCommunity = (IPTCommunity) mIPTSession.GetCommunities().Create(folderID);mIPTCommunity.SetName(name);mIPTCommunity.SetCommunityTemplateID(templateID);mIPTServerContext = (IPTServerContext) mIPTCommunity.GetInterfaces("IPTServerContext");mIPTServerContext.Store();mIPTServerContext.UnlockObject();communityID = mIPTCommunity.GetObjectID();return communityID;}

    Here is an explanation of the changes from 5.x to 6.0 and the extra step needed in getting it to work:
    I had this exact same problem when I first tried to init a session - I had hoped they put it in some readme files of the changes, but oh well. I'm pasting an explanation given to me about the changes, and below is a .jsp fiile I created that got this working.
    In 5.x portal settings were located using a set of environment variables which had to be in place before you could create and use a session. In Portal 6.0, that requirement has been replaced by leaving it up to the client to locate and load the configuration files, hence the extra step of feeding config data manually to the factory.
    IOKContext is the interface that the portal will use for loading its data. You generally load it with the following call:IOKContext context = OKConfigFactory.createInstance("MyDirectory", "MyContextURN");
    The portal's config directory is under the Martok install directory and the context name for the portal is, I think, "portal". OpenConfig will load all the config files in the config directory (and its subdirectories) and provide to the portal factory all the settings that are used by the context named "portal".
    Here is my jsp code, I hope you can utilize most of the stuff for .netLillian
    <%@ page language="java" import="java.util.*,java.io.*,java.text.*,java.lang.reflect.*, com.plumtree.remote.portlet.*, com.plumtree.server.*, com.plumtree.openkernel.config.*, com.plumtree.openkernel.factory.*, com.plumtree.server.PortalObjectsFactory.*, com.plumtree.remote.prc.*, java.net.*" %>
    <h5> Get Community, Portlet, and Page Name </h5>
    <% IPTSession ptSession = null; IOKContext context = OKConfigFactory.createInstance("C:\\Program Files\\plumtree\\settings", "portal"); PortalObjectsFactory.Init(context);
    // Connect to the portal server.. here we'll just be Administrator ptSession = PortalObjectsFactory.CreateSession(); ptSession.Connect("administrator", "", null); IPTObjectManager objMan = ptSession.GetCommunities(); //querying for user's communities, joeuser IPTQueryResult qresult = objMan.QuerySingleObject(201); int qnum = qresult.RowCount();
    //querying for administrator's communities IPTQueryResult aresult = objMan.QuerySingleObject(1); int anum = aresult.RowCount();
    %>
    qnum is: <%=qnum%><br>anum is: <%=anum%>

  • Automate create xml with HTML blocks

    Hi,
    I have to base on certain trigger, database query result
    create an XML file.
    In the XML file I'm passing an HTML page. I have the HTML
    page saved on the
    local server.. page1.html, page2.html etcs..
    Any suggestions on how I can do this would be greatly
    appreciated. This will
    need to be an automate process... which I can do.. but the
    actual creating
    the XML file, I'm not sure about.
    Thanks in advance!

    Thanks for your reply... the XML that i need to create will
    be like this?
    <emailMessage>
    <messagetype>Welcome</MessageTpye>
    <Subject>Welcome</Subject>
    <MessageContent>
    <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=UTF-8" />
    <title>test</title>
    </head>
    <body>
    welcome to our site<br /> you are blah blah<br
    /><br />
    <p>blah blah</p>
    <table><tr><td>whatever</td></tr></table>
    </body>
    </html>
    ]]>
    </MessageContent>
    </emailMessage>
    The part thats in the CDATA are now indivual html files so i
    want to take
    the content of that html file and put it in the CDATA. i'm
    not sure if
    that's the best way to do it though... might be better to
    store the HTML in
    the DB and then write it out from there???
    SUggestions?
    "coffeedrinker56" <[email protected]> wrote
    in message
    news:[email protected]...
    > I'm not certain that I understand what you're asking.
    Creating an XML file
    from
    > a database is pretty easy stuff so I'm undoubtedly
    misunderstanding the
    > question(?):
    > <cfquery name="abc" ...>
    > Exec myStoredProcedure #myparam1#, '#myparam2#'
    > </cfquery>
    > <cfxml var="abc">
    > <page>
    > <html>
    > <head>
    > <title>abc example</title>
    > <link rel="stylesheet" type="text/css"
    href="css/default.css" />
    > <script language="javascript" type="text/javascript"
    src="abc.js" />
    > </head>
    > <body>
    > <form name="pageForm" method="post"
    action="javascript:checkForm();">
    > <table ...>
    > </table>
    > </form>
    > </body>
    > </html>
    > </page>
    > </cfxml>
    >
    > If you choose to do so, you can display the XML like:
    > <cfoutput>#abc#</cfoutput>
    >
    > ... or you can save the XML on your server as a file
    using CFFILE.
    >
    > If your intention is solely to display the XML, you can
    also use ...
    > <cfcontent type="text/xml"><?xml version="1.0"
    encoding="UTF-8" ?><abc>
    > </abc>
    >
    > ... instead of the <cfxml> and </cfxml>
    tags.
    >
    > [I use the latter form when passing data back and forth
    between the
    server and
    > the client.]
    >
    >

  • Problem with collection names getting replaced when creating new collections in Photoshop Elements 5.0

    We have been using Photoshop Elements 5.0 a lot lately to organize many photos into collections.  A new problem just arose when creating a new collection.
    As we named the new collection and clicked on "OK" it replaced another existing collection with the new name.  The photos from the old collection were still there but now under the new collection name.  This happened at least three or four times, each time a different "old" collection was renamed.  Does anyone know why this would happen?
    This past week we have added at least 20 new collections with no problem prior to this.  Adobe actually had to shut down when this happened.  Each time we reopened Adobe it would happen again randomly renaming a different "old" collection when we tried to add the new one.  Any insights would be much appreciated.

    Thank you - that was the problem and now it is working correctly
    again!
    Tom Z.
    >>> saurabh288 <[email protected]> 05/24/09 4:23 AM >>>
    It may be that the catalog has been corupted.Try repairing the
    catalog of PSE.

  • Create a site collection with dedicated content db with the help of server object model

    Hi,
     I have a requirement to implement a create a new site collection with dedicated content db. i have got 2 PowerShell scripts which does the same. first i will  create a content  db and then create the sitecollection with contentdb
    parameter with the created contentdb name.
    Now the site collection created must contain few doc libs and few splists with look up columns, people picker data type, multiline of text, single line of text,choice field. hence i am thinking the below approach:
     1) create a web template and include sp doclibs, splists , site columns in this.
     2) i am thinking of a ui design to create the below:
     These are called "projects" which is actually the site collection with the doclibs, splists and must be created by sharepoint admin on click of a link in my landing page.end users access these "projects"  aka 
    "site collections" and uploads the documents into these projects and collaborate.
    so my question is :  On click of a button can I create a site collection with a dedicated content db based on the web template created with the  hel of  server  object model?
    The other approach is on click of this button call the power shell script which accepts the sitecollection name and contentdb name as parameter. is this possible in  server obj.model ?
    passing a paramter from code behind- visual web part ui to power shell ?
    and it should create the site collec based on the web template and create the content db.
    my doubt #3 : will it not throw error "request timed out" when creating the site collec and contentdb from ui ?

    Try below:
    http://sharepoint.stackexchange.com/questions/21606/programmatically-create-a-site-collection-in-an-existing-mounted-content-databa
    PowerShell is just a wrapper for the object model. You shouldn't need to reference PowerShell in your feature, just create the new site collection with C# inside your feature. There's a blog post here that illustrates some code that may get you started.
    http://blog.mastykarz.nl/programmatically-creating-sites-site-collections-custom-web-template/
    http://blogs.msdn.com/b/vesku/archive/2014/06/09/provisioning-site-collections-using-sp-app-model-in-on-premises-with-just-csom.aspx
    # Enable the remote site collection creation for on-prem in web application level
    # If this is not done, unknon object exception is raised by the CSOM code
    $WebApplicationUrl = http://dev.contoso.com
    $snapin = Get-PSSnapin | Where-Object {$_.Name -eq 'Microsoft.SharePoint.Powershell'}
    if ($snapin -eq $null)
    Write-Host "Loading SharePoint Powershell Snapin"
    Add-PSSnapin "Microsoft.SharePoint.Powershell"
    $webapp=Get-SPWebApplication $WebApplicationUrl
    $newProxyLibrary = New-Object "Microsoft.SharePoint.Administration.SPClientCallableProxyLibrary"
    $newProxyLibrary.AssemblyName = "Microsoft.Online.SharePoint.Dedicated.TenantAdmin.ServerStub, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"
    $newProxyLibrary.SupportAppAuthentication = $true
    $webapp.ClientCallableSettings.ProxyLibraries.Add($newProxyLibrary)
    $webapp.Update()
    Write-Host "Successfully added TenantAdmin ServerStub to ClientCallableProxyLibrary."
    # Reset the memory of the web application
    Write-Host "IISReset..."
    Restart-Service W3SVC,WAS -force
    Write-Host "IISReset complete."
    If this helped you resolve your issue, please mark it Answered

  • Automatically create ODBC DSN connection with special port and password. Add-OdbcDsn cmdlet

    Hi,
    I first posted a question in the SQL forum but I'm posting it here instead because its a Powershell question.
    In a non-persitent VDI enviroment we are trying to automatically create a ODBC DSN connection to a SQL server.
    We are using Windows 8.1 so we also have Powershell 4 together with the add-odbcdsn cmdlet. 
    But when trying to add set -SetPropertyValue for network port different than default and a password we get an error.
    here is the command:
    Add-OdbcDsn -Name test -DriverName "SQL Server" -DsnType User -SetPropertyValue @("PWD=test", "SERVER=10.0.0.1")
    and here is the error message:
    Add-OdbcDsn : Attempt to set the {UID or PWD} key of a DSN. These keys should not be stored in the registry for securit
    y reason. Provide the credential information at runtime via SQLDriverConnect, SQLConnect or SQLBrowseConnect.
    At line:1 char:1
    + Add-OdbcDsn -Name test -DriverName "SQL Server" -DsnType User -SetPropertyValue @ ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidArgument: (MSFT_OdbcDsnTask:Root/Microsoft/...SFT_OdbcDsnTask) [Add-OdbcDsn], Cim
    Exception
    + FullyQualifiedErrorId : MI RESULT 4,Add-OdbcDsn
    NB!:  this command does not contain a port number, but when adding it without a password(PWD string) we just the default port.

    Hi Primeid,
    Agree with Jrv, we cannot store  UID and PWD in an ODBC datasource, For example, you can create a DSN using the user interface but if you look at the DSN stored in the registry the UID and PWD are not stored.
    ODBC it is always required when you connect using a DSN that the caller supply UID and PWD if they want to use standard login during connection time. 
    These similar discussion are for your reference:
    Creating ODBC DSN for SQL Native
    Client fails for not-integrated authentication
    is user name and password required in ODBC admin / User DSN?
    In addition, to read data from a SQL Server database using an ODBC DSN with SQL Authentication via powershell, please refer to this script:
    Open SQL database with ODBC DSN and SQL AuthenticationIf
    there is anything else regarding this issue, please feel free to post back.
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna Wang
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Automatically create iCal entry with an email alarm from a Mail.app email?

    Hi..
    Hope you can help?
    I want to set up iCal/Mail.app so that it automatically creates a new iCal entry in a specific calendar when an email is received that contains a date in the body of the message...
    Is there a way of doing this with Automator?
    This reason I am asking is that I am trying to put a link on my online store where people can click for a gift reminder email that will be sent to them on a date they specify in the body of their email.
    The link could pop-up a new email window pre-filled with Subject: 'Gift Reminder' and addressed to '[email protected]' They would be instructed to enter a single date in the text area and press Send...
    Then, when Mail.app receives the email, it would move it to a Folder called 'Gift Reminders' and automatically set up a new iCal entry that has an alarm to email the sender on that date with an email containing the Subject 'The Gift Reminder you Requested' etc and some different text in the body... It would be great if this could be set up to repeat annually also as the gift reminder is primarily for birthday gifts...
    Id there an Automator script / plug-in or way of making this happen??
    Any help greatly appreciated, though my knowledge of scripts / Automator etc is quite limited I am willing to try out any suggestions!
    Thanks,
    Jon.

    Tried a restart which showed 2183 emails unable to move which is kind of bonkers and had to quit Mail> restart and moving emails from search now appears to be working. Apple owes me about 500 hours of my life so far with Mavericks!

  • Automatically create iCal entry with email alarm from a Mail.app email?

    Hi..
    Hope you can help?
    I want to set up Mail.app/iCal so that it automatically creates a new iCal entry in a specific calendar when an email is received...
    Is there a Plug-in etc that will do this?
    This reason I am asking is that I am trying to put a link on my online store where people can click for a gift reminder email that will be sent to them on a date they specify.
    The link could pop-up a new email window pre-filled with Subject: 'Gift Reminder' and addressed to '[email protected]' They would be instructed to enter a single date in the text area and press Send...
    Then, when Mail.app receives the email, it would move it to a Folder called 'Gift Reminders' and automatically set up a new iCal entry that has an alarm to email the sender on that date with an email containing the Subject 'The Gift Reminder you Requested' etc and some different text in the body... It would be great if this could be set up to repeat annually also as the gift reminder is primarily for birthday gifts...
    Id there a script / plug-in or way of making this happen??
    Any help greatly appreciated, though my knowledge of scripts / Automator etc is quite limited I am willing to try out any suggestions!
    Thanks,
    Jon.

    Tried a restart which showed 2183 emails unable to move which is kind of bonkers and had to quit Mail> restart and moving emails from search now appears to be working. Apple owes me about 500 hours of my life so far with Mavericks!

  • How to create Vector with reference to Collection

    hello experts,
    can someone let me know how to create vector with reference to Collection interface.
    Collection is an interface. and we cant create an instance of it. i'm not clear of what to pass in that constructor.
    Vector v = new Vector (Collection c);
    what are the possible objects of 'c'
    post some example code please.
    thanks

    Ever heard of reading the javadocs?
    "Collection is an interface. and we cant create an instance of it." - you don't understand interfaces, then.
    // I certainly can create a Collection - here's one
    Collection c = new ArrayList();
    // Now I'll add some Strings to my Collection.
    c.add("foo");
    c.add("bar");
    c.add("baz");
    // Now I'll make a Vector out of it.
    Vector v = new Vector(c);%

  • SharePoint 2010 - Create new site collection in existing web application with different existing content DB

    I have a SharePoint 2010 root level site collection SC1 in web application WEBAPP1. I want to create copy of that site collection in same web application WEBAPP1. Apart from Import/Export, Restore/Backup options, will following approach work? If yes , how?
    I took backup of content database of web application.
    Restored database with different name
    Mounted Content database to this WEBAPP1 by assigning new ID to DB
    Created new site collection by using this newly mounted DB
    Site collection gets created successfully but content does not appear.
    Please guide if i can achieve desired functionality by using this approach.
    If this helped you resolve your issue, please mark it Answered

    It is because the Site GUID is identical, and each GUID can only be present on the farm once. You can use Backup-SPSite/Restore-SPSite (which is full-fidelity, unlike Export-SPWeb/Import-SPWeb), which will generate a new GUID for the restore Site Collection,
    even in the same Web App.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Automatically create playlists when buying song collections

    I remember that in previous versions there was a setting under Preferences/Store to the effect that when you bought an imix or another collections it would automatically create a playlist. Since this setting no longer appears in the prefs as of version 8, I was wondering if anyone knew if there was a plist variable I could alter or add to re-enable this functionality.

    Turning off the option - I doubt - will change the 'Purchases' list. I have it 'off' in my prefs and I still have all iTS purchases added to the 'Purchases' list.
    From the iTunes Help menu and a search for "song collection": <You can set iTunes to automatically create playlists when you buy collections from the iTunes Store, such as iMixes, submitted by iTunes users; and iTunes Essentials, favorites chosen by an iTunes Store staff of experts.>
    MJ

  • Create a User Collection with installed specific software

    Can someone help with Query to Create a User Collection with installed specific software.
    I have created a collection for Computer Collection with installed specific software but i need to push apps on users and for that i need to create a user collection with specific software installed.
    Thanks

    Yes. I have created device collection with
    installed specific software and used  this collection to pull report from out the box report for Primary Device users( Not sure about exact report name but similar) for
    this collection. Did some excel work to find primary device user.
    But looks like there is no straight forward solution. It would be great if i know how to import multiple users from a text/csv file into a User collection.
    Thanks

  • Preventive Work Order Dates Synchronization with its automatic created  notification

    Dear all,
    Preventive Work Order Dates Synchronization with its automatic created  notification
    My question was initiated from PM module forum, please check above URL if you have time.
    My ultimate problem is that :
         "SMOD" Enhancement  "QQMA0018" needs to receive its origin data of work order when the execution time of IP10 or IP30.
         so that I can decide/calculate desired dates on the notification according to its origin work order date .
    Do I need to use "export/import memory" statements to communicate with origin work order?
    if it's true
    Thanks for your help in advance.

    Dear Pete,
    I just made test data in our DEV server,
    Work orders has been created by "IP30" which was executed today with its maint. plan( date format DD.MM.YYYY ).
    below work order has been created and the basic start date seems derived from plan date.
    below image is showing our 'SPRO' configuration for the PM priority.
    "ZM03" order type is using "ZP" priority type.
    (I don't know why is this work order didn't take the values defined on 'priorities for Each Priority Type' for calculating "basic start" & "basic finish" date, it seemed just copied same date with PlanDate)
    you can see the notification which is created automatically by work order as below.
    "M4" notification type is using "ZP" priority type as well.
    It took the 'required start' date by adding 2 weeks from today(=creation date) as 'priorities for Each Priority Type' has defined and 'required end' date also set to 6 months later from 'required start' date.
    (Am I right?)
    Please let me know, if you need further information.
    Thank you for your help.

  • How do I set Lightroom not to automatically jump to a collection set after I creat one?

    How do I set Lightroom not to automatically jump to a collection set after I create one? Its so annoying. Also, why does lightroom close my folder hierarchy every time I move a folder? Thats annoying too.

    No way that I know of Josef but you can place a comment here about the issue. This is the new way to have your issues raised and heard.

Maybe you are looking for

  • How to fill the KNBW Customer master record (withholding tax types) in IDOC

    Hi experts, The creation of a new customer (intern) with idoc has status 51 with error : No batch input data for screen SAPMF02D 0610. When à use the WE19 transaction, in background step by step, the batch-input stops in withholding tax types. But th

  • 3d Graph shows "Evaluation copy" in distributed executables

    After I built a LabVIEW 7.1.1 application using 3D Graph (including 3D Graph support), it worked fine on my machine. On another machine without LabVIEW 7.1.1 installed, there is a popup saying: Error loading control. A newer version needed. The defau

  • Flex keeps dropping the async SQLite connection in debugger

    This makes debugging the program almost impossible. Is there a timeout setting I can change?

  • Error with Scratch Editor

    I'm using SQL Developer 1.1.2.25 and every time I try to open a file in the Scratch Editor and click on the Translate button I get an error saying "Cannot Translate". If I run sqldeveloper\bin\sqldeveloper.bat I can see a stack trace being printed (S

  • Change BOM via Idoc

    Hello,         I am using BOMMAT04 Idoc for creating BOM from a text file. But for changing already present BOM if I use the same Idoc it throes an error saying that BOM already exists. Can anyone please tell me how to proceed to change an existing B