A link to create master agreement in a user defined object

Hi guys,
We have a requirement wherein we need to put a toolbar link in a UDO to create a master agreement. Certain fields from the UDO needs to be carried over to the master agreement.
Any pointers would be extremely helpful..

hi reshma,
Here is the code for contract creation. Please Note: Other mandatory fields, depending on your MAster agreement document type has to be set before you save the Contract.
contractHome =IBeanHomeLocator.lookup(session, ContractIBeanHomeIfc.sHOME_NAME);
//Creates a contract bean. The input parameter is an Master Agreement type
contractBean = contractHome.create("master agreement typet");
/Set the Required fields in the contract/
//example to set few fields
valueTypeHome=IBeanHomeLocator.lookup(session,ValueListTypeIBeanHomeIfc.sHOME_NAME);
valueTypeBean=valueTypeHome.findByExternalId("master_agreement_status");
valueBean=valueTypeBean.getCollnValueListValue().get(0);
contractBean.setStatusRef(valueBean.getLocalizedObjectReference());
//set display name
contractBean.setDisplayName("Test"+doc.getDisplayName());
//Set currency
contractBean.setCurrency(doc.getCurrency());
//set effective date
contractBean.setEffectiveDate(TypeFactory.createSysDate(new java.util.Date()));
//set base date
contractBean.setBaseDate(doc.getBaseDate());
//set contact info
vendorCollection = doc.getCollnVendors();
vendorRef=vendorCollection.get(0);
contact=vendorRef.getContactObjRef();
contractBean.dbSetContactRef(contact);
contractBean.dbSetVendorRef(vendorRef.getVendorObjRef());
/Set other necessary information in the contract bean/
//Save the Contract
contractHome.save(contractBean);

Similar Messages

  • Link button to User Defined Object in Grid

    Hi,
    I'm using SAP B1 8.81 with B1DE.
    I have added a grid which is populated from a DataTable to a form.
    One of the columns in the grid contains the DocEntry of a User Defined Object.
    How can I display a link button on the grid ?
    Regards,
    Ben

    Hello Ben,
    You need to set the column object type.
    Dim oGrid As SAPbouiCOM.Grid = oForm.Items.Item("MyGrid").Specific
    oGrid.Columns.Item("DocEntry").Type = BoGridColumnType.gct_EditText
    Dim oEditCol As SAPbouiCOM.EditTextColumn = oGrid.Columns.Item("DocEntry")
    oEditCol.LinkedObjectType = "2" 'The SDK documentation says you should use the value 0, but in previous versions it didn't work, so I recommend you user a value other than -1 or 0
    You then need to catch the et_MATRIX_LINK_PRESSED event and other your user form...
    From the SDK Help File regarding the BoLinkedObjectType enum
    lf_None -1 No target object
    lf_UserDefinedObject 0 User-defined object
    lf_GLAccounts 1 G/L account object
    lf_BusinessPartner 2 Business Partner object
    lf_Items 4 Item object
    lf_SalesEmployee 53 Sales employee object
    Regards,
    Vítor Vieira

  • Created Master Password, now neither User password or Master Password work

    Hi the
    I've suspected somene to remotely hack into my Macbook because recently it would open finder windows for nothing. Then some of my Gmail mails disappeared so I decided to change password.
    I headed to security and saw the "create Master Password" option so I entered my User password and created a Master Password.
    Then when trying to change the user password to allow system preference change, the "old" user password didn't but the Master Password didn't either. I tried to then change this Master Password, but it's not working either. It's like my two password suddenly vanished when trying to secure my Mac!
    Why? And how can I retrieve or change my passwords again?

    Update: I did the boot screen manipulation to change the administrator as indicated here https://www.youtube.com/watch?v=Qwc7__sceWA
    AND IT STILL DOESN'T ******* WORK.
    This has to be the less secure thing I've seen on a Macbook. ***

  • Linking the UDO of type document to user defined field

    I created the user defined field and i need to link the UDO of type document to that user defined field. How to link the UDO to user defined field.

    Dear
    do you mean to add a user defined field to an document type UDO? if this  is the case,
    1. create the UDT
    2. go to Tools-> customization tools->User Defined Fields-Management, expand User Tables, add the udf to the UDT
    3. register the UDT as UDO.
    best regards,
    xiaodan an

  • How do I create a palette with my User Defined PDF settings?

    Hello chaps and chapettes. I'm trying to use Adobe Configurator 2.0 to create a panel that has my User Defined PDF settings on it. I've found the Adobe PDF presets dropdown (which is the drop down menu where my presets would also show in InDesign) but the same menu doesn't show the User presets anywhere in Configurator.
    I've found the .joboptions files in Distiller but no idea how to link it in?
    I'm quite the noob so a step-by-step guide would be very much appreciated.
    Thanks

    Hello chaps and chapettes. I'm trying to use Adobe Configurator 2.0 to create a panel that has my User Defined PDF settings on it. I've found the Adobe PDF presets dropdown (which is the drop down menu where my presets would also show in InDesign) but the same menu doesn't show the User presets anywhere in Configurator.
    I've found the .joboptions files in Distiller but no idea how to link it in?
    I'm quite the noob so a step-by-step guide would be very much appreciated.
    Thanks

  • How to use user defined object with linked button

    Hi experts
    Can I use user defined table data with linked button. If yes then how. plz give me sample examples.
    Regards
    Gorge

    If you have an UDO in your form, or any other, the FormDataLoad eventhandler should be used.
    Take care, it is not inside the eventhandler.
    for VB:
    Select SBO_APPLICATION in the classes, and select FormDataLoad event
    Private Sub SBO_Application_FormDataEvent(ByRef BusinessObjectInfo As SAPbouiCOM.BusinessObjectInfo, ByRef BubbleEvent As Boolean) Handles SBO_Application.FormDataEvent
    in C#
    Add a new eventhandler as
    // declaration
    SBO_Application.FormDataEvent += new SAPbouiCOM._IApplicationEvents_FormDataEventEventHandler(ref SBO_Application_FormDataEvent);
    // eventhandler:
    public void SBO_Application_FormDataEvent(ref SAPbouiCOM.BusinessObjectInfo BusinessObjectInfo, out bool BubbleEvent)

  • Problem When Try to add Master data record for User define form

    Hi,
    I have made one user define form. And assign UDO and fields proerly in form.
    But when I try to add the record from the form it will give me error
    Invalid Code [Operation Master  -Code] [Message 173-36]
    I have already bind the code field of the table to one field in the screen painter.
    Please give me the reply.
    Regards,
    Gunjan Shukla.

    Dear Shukla
    Can you please try to do the binding in the code (after loading the from).
    Doing that, do you still have the problem?
    Best regards,
    Miki

  • How to create master data/text for an info object

    Hi All,
    I am working on a report and having a problem with an info object since it has no master data. This characteristic is supposed to be in the selection parameters and also should contain key and text in it. Since there is no master data for this info object there is no text and keys don't come up. Does any one knows how to add master data to this info object without reloading the ODS?
    Thanks

    Mike,
    You shold load the master data into BW first,
    othere wise you can do one thing
    goto infopackage and schedule where in the update tab select the radio button                                                
    Always update the data,even if no masterdata is exist for that.
    Regards.
    Prasad

  • How can I create packages procedure & function in user-define Library

    hi.
    i am already created packages procedure & function in database and use so on.
    now i would like to create these in library file.
    please anyone give me example of any procedure or function to store in library.
    thanks
    Ali

    <FONT FACE="Arial" size=2 color="2D0000">> please send me one simple example for create library
    then create any function in library.
    2nd is any package can be create in library or not??
    Thanks S.K
    AliHave you checked the link?
    A simple example is provided.
    I think What I understood from your post is that, you want to put function/ Proc and want to call that as Library ..
    Which is not  possible.
    For exampel an external routine is a third-generation language procedure stored in a
    dynamic link library (DLL), registered with PL/SQL, and called by the DBA to perform
    special-purpose processing.
    In Unix a dynamic link library is known as a shared object (so).
    At run time, PL/SQL loads the library dynamically, then calls the routine as if it were a
    PL/SQL subprogram. To safeguard our database, the routine runs in a separate address
    space, but it participates fully in the current transaction. Furthermore, the routine can
    make a call back to the database to perform SQL operations.
    To identify a DLL we have to use CREATE LIBRARY command.
    The CREATE LIBRARY command is used to create a schema object, library, which
    represents an operating-system shared library, from which SQL and PL/SQL can call
    external third-generation-language (3GL) functions and procedures.
    Learn something more on External Procedures
    -SK
    </FONT>

  • Labview database problem: Create a database table from user defined fields

    I am trying to create a new table in an access database opened by an ODBC connection from information entered a table stored in the database, but every time I try to create the table, the Labview Database connectivity toolkit VI for creating a table throws a cryptic error
    "Exception occured in Microsoft OLE DB Provider for ODBC Drivers: [Microsoft][ODBC Microsoft Access Driver] Syntax error in field definition. in NI_Database_API.lvlib:Conn Execute.vi->NI_Database_API.lvlibB Tools Create Table.vi->DatabaseCreateHeaders.vi"
    I think this is becuase I am trying to re-create the database  column variable type, but I am not sure what I am doing wrong.  Everything seems to be fine as the data types go, and everything works as long as I use a constant to create the database columns.  I even tried putting all of the information into the format labview defined, changed that to a variant, and redefined it as the labview database column type. 
    I have attached a simplified VI and a picture of what I am trying to
    do, but I would appreciate any help I can get.  Hopefully I won't have
    pulled out all of my hair by the time some one replies!
    Solved!
    Go to Solution.
    Attachments:
    DatabaseUserDefinedTable.vi ‏14 KB
    UserDefinedColumns.JPG ‏48 KB

    Hi everyone. I am new to the database tool kit using labview. I am using labview 9.0f2 on Windows Xp. I am required to create a database (task is to create a table and to insert values into the table using Microsoft access 2007). I am trying to learn using the Create Database table.vi found with the software. I understand that need to create an access file and also had a mdl file which is name after it.(I had created them). Looking at the example given, I would like to add a few more variables, to be exact 6 more variables(therefore i would have 6 colum in my access file rite?). From the "connection information" the help information shows that it contain an 1D array of DB tools colum. ctl and also a cluster of 4 elements. the link to the access file, LabVIEW.udl shows that it restrict the colum in the access file.eg it has only stringcol,intcol,doublecol. I need to add more colum but cant add just like tt.
    qn1: How to i add insert more varibles into the database so that it will apprears in access.
    qn2: I cant drag and insert the "connection information" just to have more input. how do i do it?
    qn3: where can i edit the info so that i can add more cluster into the access? when i drag out the input turn greyish.

  • Can't create file with filename contains user-defined character

    Dear all,
    I got a question about directory listing and file creation. My development OS is Win2K traditional chinese version and my JDK is 1.4.0 Internationation version.
    My program copy each of file into another directory. I call File.lists() to get an array of filename String, I then create the file in the destination directory. However, I got error while the filename contains some chararters that I created in my system only by Win2K character creation utility. I found those characters become "?" if I printf them. How could I overcome this problem? Thanks.
    ArthurPan

    The limitation here is not caused by Java at all.
    Java handles UNICODE characters, the concept of ASCII characters is only loosely retained by accident, mainly because the ASCII set is retained as is in UNICODE.
    The limitation here is the Operating System whose filesystem does not support UNICODE names. As far I as can remember, although the System default locale can be your language equivalent, the filesystem does not necessarily support UNICODE filenames even though it may actually be able.
    What you need to do is check the file.encoding property in Java and set that using the -Dfile.encoding=BIG-5 or whatever when starting your application. This may help with the file name problem.

  • How can i send user defined Object as a argument to the MBean methods in authentication provider to create user?

    I developed our own Authentication, Identity Assertion & Authorization providers
    for weblogic 8.1 SP1. In the authenticator MBean i have one method which takes
    user defined object as a argument and returns a user defined object. i am able
    to call all the methods which takes java objects(for example: String, int, ArrayList,
    HashMap, Etc...) as a argument and returns also a java object but when i user
    any user defined object then it gives exception. if in the argument i used user
    defined object then it is not able to call that method telling NoSuchMethodException.
    Is there any way to use user defined object as an argument to MBean method?
    can anyone please help us as we r in the final stage of the project?
    Thanks
    Lakshmi

    "Lakshmi Padhy" <[email protected]> wrote in message
    news:3fc2f50c$[email protected]..
    >
    I developed our own Authentication, Identity Assertion & Authorizationproviders
    for weblogic 8.1 SP1. In the authenticator MBean i have one method whichtakes
    user defined object as a argument and returns a user defined object. i amable
    to call all the methods which takes java objects(for example: String, int,ArrayList,
    HashMap, Etc...) as a argument and returns also a java object but when iuser
    any user defined object then it gives exception. if in the argument i useduser
    defined object then it is not able to call that method tellingNoSuchMethodException.
    >
    Is there any way to use user defined object as an argument to MBeanmethod?
    >
    I seem to remember that jmx only supports scalar datatypes. Ask in the
    weblogic.developer.interest.management newsgroup.

  • Creating flat files (.csv) in user defined directory using PL/SQL

    I need to extract data into a flat file (.csv) and store the flat file directly into a directory on local drive as specified by the user at runtime. I do not intend to use the UTL_FILE package. Is there a way put to do this?
    Thanks
    Amit.

    Hi Amit,
    Your users have any shared drive which every one can access? If so follow these steps.
    1> Allow users to select their destination location to an APEX item.
    2> On submit, save the user IP, destination location and user name to a database table.
    3> On submit, using JS, open XLS file template (+kept this template file in shared location+) The template should contain all the macros that will do the needful. I mean they should connect to database and should fill it with data and saving it to user specified location etc.
    Hope it helps.
    Cheers,
    Hari

  • New master agreement via sourcing IAPI

    Hi!
    I'm new to sourcing, just doing my trainings. I'm running E-Sourcing 5.11, and need to create new master agreement via eso iapi (fciesoapi.jar and fciodpapi.jar). But most of that classes' methods marked as "Do not use", or "For internal use only". So is it possible to create master agreement from this API? Does anybody have examples, or maybe you can reccomend me some materials (all i have is generated javadocs).
    Regards,
    Siarhei

    see if this helps:
    A link to create master agreement in a user defined object
    Regards,
    Immanuel

  • How to change the standard query "Create a Master Agreement" by a custom one

    Hello Sourcing CLM experts,
    I would need to replace the standard query displayed when the user tries to create a Master Agreement by a custom query to filter the MA types according to some criteria:
    According to this post: Re: Create security profile for a document template in SAP Sourcing, I've tried to achieve it by doing the following steps:
    Create a new query as a copy of exsiting query FCI-ContractTypes
    Modify query group FCI-ContractTypesBP to include my custom query instead of the standard one to only list the MAType "Standard Master Agreement"
    Following you can see the change done into the query group FCI-ContractTypesBP:
    However, standard query has not been replaced and same set of MA Types are listed.
    Therefore, I would like to ask you:
    Is it possible to do this kind of modifications? If so, which query group need to be modified?
    If it is not possible, is there any other way to achieve that requirement?
    Thanks in advance for your time and support!
    Best regards,
    Isaac

    Hello again experts,
    If this query cannot be modified, is there any option to disable button below? Or at lease, to disable the query group to avoid the listing of MA Types when it is pressed?
    The reason is because we are going to set up the system in the way that only it will be possible to create Master Agreements from Template. However, if user keep on using that button he will be able to create MA from document types.
    Any ideas?
    Thanks again and best regards,
    Isaac

Maybe you are looking for

  • How to use external libraries jar files in the composite application?

    Hi, I have some external jars files (which consists of java classes) that I would like to use in my composite application.  I have created a DC with type as external library for the jars.  However, I don't know how to specify the DC to be used in my

  • Cropped song settings won't export to slideshow

    For some reason, my start/stop time settings for individual songs in itunes won't export to an iphoto slideshow. Is there another way to do this?

  • Materialized View Log options

    I have read the documentation. I know you can specify options such as 'with primary key' and/or 'with rowid' when creating a materialized view log. Also, that you can specify to include additional columns in the log -and that these can then be seen i

  • Mac to windows to mac

    i was wondering if it is possible to have your ipod formatted to a mac and then put music or a movie from a windows computer on to that ipod?

  • I can not access my account But some one else can

    A while a go I lost access to one of my Skype accounts. When I search my email address in skype search that account appears to be associated with my email. But When I try to recover the password the account is not in the list of associated accounts w