Creating user's objective through API ot working

I am making use of the HR_OBJECTIVES_API API to create objective for users. to test the API, I run the small script below. It create a new row in the per_objective table but the HRMS interface fail to recognize it. It does not appear in the scorecard of the user. What am I missing?
/* Auto Generation of Script Start */
DECLARE
     -- Start of Variable declarations, Initialize Variables with appropriate values to test the script
     -- VARCHAR2 size is set to 2000 by default, please enter target table name to retrieve the exact limit
     -- Input Variables
     V_VALIDATE                      BOOLEAN:=false;
     V_EFFECTIVE_DATE                DATE := trunc(sysdate);
     V_BUSINESS_GROUP_ID             NUMBER:=81;
     V_NAME                          VARCHAR2(2000):='Just a Second test from TOAD';
     V_START_DATE                    DATE:=trunc(sysdate);
     V_OWNING_PERSON_ID              NUMBER:=264;
     V_TARGET_DATE                   DATE;
     V_ACHIEVEMENT_DATE              DATE;
     V_DETAIL                        VARCHAR2(2000);
     V_COMMENTS                      VARCHAR2(2000);
     V_SUCCESS_CRITERIA              VARCHAR2(2000);
     V_APPRAISAL_ID                  NUMBER;
     V_ATTRIBUTE_CATEGORY            VARCHAR2(2000);
     V_ATTRIBUTE1                    VARCHAR2(2000);
     V_ATTRIBUTE2                    VARCHAR2(2000);
     V_ATTRIBUTE3                    VARCHAR2(2000);
     V_ATTRIBUTE4                    VARCHAR2(2000);
     V_ATTRIBUTE5                    VARCHAR2(2000);
     V_ATTRIBUTE6                    VARCHAR2(2000);
     V_ATTRIBUTE7                    VARCHAR2(2000);
     V_ATTRIBUTE8                    VARCHAR2(2000);
     V_ATTRIBUTE9                    VARCHAR2(2000);
     V_ATTRIBUTE10                   VARCHAR2(2000);
     V_ATTRIBUTE11                   VARCHAR2(2000);
     V_ATTRIBUTE12                   VARCHAR2(2000);
     V_ATTRIBUTE13                   VARCHAR2(2000);
     V_ATTRIBUTE14                   VARCHAR2(2000);
     V_ATTRIBUTE15                   VARCHAR2(2000);
     V_ATTRIBUTE16                   VARCHAR2(2000);
     V_ATTRIBUTE17                   VARCHAR2(2000);
     V_ATTRIBUTE18                   VARCHAR2(2000);
     V_ATTRIBUTE19                   VARCHAR2(2000);
     V_ATTRIBUTE20                   VARCHAR2(2000);
     V_ATTRIBUTE21                   VARCHAR2(2000);
     V_ATTRIBUTE22                   VARCHAR2(2000);
     V_ATTRIBUTE23                   VARCHAR2(2000);
     V_ATTRIBUTE24                   VARCHAR2(2000);
     V_ATTRIBUTE25                   VARCHAR2(2000);
     V_ATTRIBUTE26                   VARCHAR2(2000);
     V_ATTRIBUTE27                   VARCHAR2(2000);
     V_ATTRIBUTE28                   VARCHAR2(2000);
     V_ATTRIBUTE29                   VARCHAR2(2000);
     V_ATTRIBUTE30                   VARCHAR2(2000);
     V_SCORECARD_ID                  NUMBER:=9193;
     V_COPIED_FROM_LIBRARY_ID        NUMBER;
     V_COPIED_FROM_OBJECTIVE_ID      NUMBER;
     V_ALIGNED_WITH_OBJECTIVE_ID     NUMBER;
     V_NEXT_REVIEW_DATE              DATE;
     V_GROUP_CODE                    VARCHAR2(2000);
     V_PRIORITY_CODE                 VARCHAR2(2000);
     V_APPRAISE_FLAG                 VARCHAR2(2000):='Y';
     V_VERIFIED_FLAG                 VARCHAR2(2000);
     V_TARGET_VALUE                  NUMBER;
     V_ACTUAL_VALUE                  NUMBER;
     V_WEIGHTING_PERCENT             NUMBER;
     V_COMPLETE_PERCENT              NUMBER;
     V_UOM_CODE                      VARCHAR2(2000);
     V_MEASUREMENT_STYLE_CODE        VARCHAR2(2000):='N_M';
     V_MEASURE_NAME                  VARCHAR2(2000);
     V_MEASURE_TYPE_CODE             VARCHAR2(2000);
     V_MEASURE_COMMENTS              VARCHAR2(2000);
     V_SHARING_ACCESS_CODE           VARCHAR2(2000);
     -- Output Variables
     V_WEIGHTING_OVER_100_WARNING    BOOLEAN;
     V_WEIGHTING_APPRAISAL_WARNING   BOOLEAN;
     V_OBJECTIVE_ID                  NUMBER;
     V_OBJECT_VERSION_NUMBER         NUMBER;
BEGIN
    DBMS_output.enable(800000);
     --  Calling API HR_OBJECTIVES_API.CREATE_OBJECTIVE
     HR_OBJECTIVES_API.CREATE_OBJECTIVE(P_VALIDATE                     => V_VALIDATE
                                       ,P_EFFECTIVE_DATE               => V_EFFECTIVE_DATE
                                       ,P_BUSINESS_GROUP_ID            => V_BUSINESS_GROUP_ID
                                       ,P_NAME                         => V_NAME
                                       ,P_START_DATE                   => V_START_DATE
                                       ,P_OWNING_PERSON_ID             => V_OWNING_PERSON_ID
                                       ,P_TARGET_DATE                  => V_TARGET_DATE
                                       ,P_ACHIEVEMENT_DATE             => V_ACHIEVEMENT_DATE
                                       ,P_DETAIL                       => V_DETAIL
                                       ,P_COMMENTS                     => V_COMMENTS
                                       ,P_SUCCESS_CRITERIA             => V_SUCCESS_CRITERIA
                                       ,P_APPRAISAL_ID                 => V_APPRAISAL_ID
                                       ,P_ATTRIBUTE_CATEGORY           => V_ATTRIBUTE_CATEGORY
                                       ,P_ATTRIBUTE1                   => V_ATTRIBUTE1
                                       ,P_ATTRIBUTE2                   => V_ATTRIBUTE2
                                       ,P_ATTRIBUTE3                   => V_ATTRIBUTE3
                                       ,P_ATTRIBUTE4                   => V_ATTRIBUTE4
                                       ,P_ATTRIBUTE5                   => V_ATTRIBUTE5
                                       ,P_ATTRIBUTE6                   => V_ATTRIBUTE6
                                       ,P_ATTRIBUTE7                   => V_ATTRIBUTE7
                                       ,P_ATTRIBUTE8                   => V_ATTRIBUTE8
                                       ,P_ATTRIBUTE9                   => V_ATTRIBUTE9
                                       ,P_ATTRIBUTE10                  => V_ATTRIBUTE10
                                       ,P_ATTRIBUTE11                  => V_ATTRIBUTE11
                                       ,P_ATTRIBUTE12                  => V_ATTRIBUTE12
                                       ,P_ATTRIBUTE13                  => V_ATTRIBUTE13
                                       ,P_ATTRIBUTE14                  => V_ATTRIBUTE14
                                       ,P_ATTRIBUTE15                  => V_ATTRIBUTE15
                                       ,P_ATTRIBUTE16                  => V_ATTRIBUTE16
                                       ,P_ATTRIBUTE17                  => V_ATTRIBUTE17
                                       ,P_ATTRIBUTE18                  => V_ATTRIBUTE18
                                       ,P_ATTRIBUTE19                  => V_ATTRIBUTE19
                                       ,P_ATTRIBUTE20                  => V_ATTRIBUTE20
                                       ,P_ATTRIBUTE21                  => V_ATTRIBUTE21
                                       ,P_ATTRIBUTE22                  => V_ATTRIBUTE22
                                       ,P_ATTRIBUTE23                  => V_ATTRIBUTE23
                                       ,P_ATTRIBUTE24                  => V_ATTRIBUTE24
                                       ,P_ATTRIBUTE25                  => V_ATTRIBUTE25
                                       ,P_ATTRIBUTE26                  => V_ATTRIBUTE26
                                       ,P_ATTRIBUTE27                  => V_ATTRIBUTE27
                                       ,P_ATTRIBUTE28                  => V_ATTRIBUTE28
                                       ,P_ATTRIBUTE29                  => V_ATTRIBUTE29
                                       ,P_ATTRIBUTE30                  => V_ATTRIBUTE30
                                       ,P_SCORECARD_ID                 => V_SCORECARD_ID
                                       ,P_COPIED_FROM_LIBRARY_ID       => V_COPIED_FROM_LIBRARY_ID
                                       ,P_COPIED_FROM_OBJECTIVE_ID     => V_COPIED_FROM_OBJECTIVE_ID
                                       ,P_ALIGNED_WITH_OBJECTIVE_ID    => V_ALIGNED_WITH_OBJECTIVE_ID
                                       ,P_NEXT_REVIEW_DATE             => V_NEXT_REVIEW_DATE
                                       ,P_GROUP_CODE                   => V_GROUP_CODE
                                       ,P_PRIORITY_CODE                => V_PRIORITY_CODE
                                       ,P_APPRAISE_FLAG                => V_APPRAISE_FLAG
                                       ,P_VERIFIED_FLAG                => V_VERIFIED_FLAG
                                       ,P_TARGET_VALUE                 => V_TARGET_VALUE
                                       ,P_ACTUAL_VALUE                 => V_ACTUAL_VALUE
                                       ,P_WEIGHTING_PERCENT            => V_WEIGHTING_PERCENT
                                       ,P_COMPLETE_PERCENT             => V_COMPLETE_PERCENT
                                       ,P_UOM_CODE                     => V_UOM_CODE
                                       ,P_MEASUREMENT_STYLE_CODE       => V_MEASUREMENT_STYLE_CODE
                                       ,P_MEASURE_NAME                 => V_MEASURE_NAME
                                       ,P_MEASURE_TYPE_CODE            => V_MEASURE_TYPE_CODE
                                       ,P_MEASURE_COMMENTS             => V_MEASURE_COMMENTS
                                       ,P_SHARING_ACCESS_CODE          => V_SHARING_ACCESS_CODE
                                       ,P_WEIGHTING_OVER_100_WARNING   => V_WEIGHTING_OVER_100_WARNING
                                       ,P_WEIGHTING_APPRAISAL_WARNING  => V_WEIGHTING_APPRAISAL_WARNING
                                       ,P_OBJECTIVE_ID                 => V_OBJECTIVE_ID
                                       ,P_OBJECT_VERSION_NUMBER        => V_OBJECT_VERSION_NUMBER
dbms_output.put_line('Successfully created objective: ' || v_objective_id ||
     ' for TARGET PERSON_ID: ' || v_owning_person_id );
exception when others then
     dbms_output.put_line('error : ' || sqlerrm);
END;

Hi,
       Can you just try by giving effective date and start date as some previous date rather than sysdate?
Regards,
Vinod

Similar Messages

  • Error while creating user on Unix through OIM timeout waiting for user password

    Hello all ,
    we made integration with Unix using connector  , while creating user  we receive the following error
    <Jun 27, 2013 1:30:14 PM AST> <Error> <ORACLE.IAM.CONNECTORS.ICFCOMMON.PROV.ICPROVISIONINGMANAGER> <BEA-000000> <oracle.iam.connectors.icfcommon.prov.ICProvisioningManager : createObject : Error while creating user
    org.identityconnectors.framework.common.exceptions.ConnectorException: Exception occured while setting the password.org.identityconnectors.framework.common.exceptions.OperationTimeoutException: Command timed-out while waiting for: new[\s](unix[\s])?password:
            at org.identityconnectors.genericunix.GenericUnixConnection.setUserPassword(GenericUnixConnection.java:866)
            at org.identityconnectors.genericunix.operation.GenericUnixCreate.setUserPassword(GenericUnixCreate.java:193)
            at org.identityconnectors.genericunix.operation.GenericUnixCreate.analyzeResult(GenericUnixCreate.java:233)
            at org.identityconnectors.genericunix.operation.GenericUnixCreate.createOp(GenericUnixCreate.java:180)
            at org.identityconnectors.genericunix.operation.GenericUnixCreate.create(GenericUnixCreate.java:111)
            at org.identityconnectors.genericunix.GenericUnixConnector.create(GenericUnixConnector.java:200)
            at org.identityconnectors.framework.impl.api.local.operations.CreateImpl.create(CreateImpl.java:80)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.identityconnectors.framework.impl.api.local.operations.ConnectorAPIOperationRunnerProxy.invoke(ConnectorAPIOperationRunnerProxy.java:93)
            at $Proxy363.create(Unknown Source)
    any one can support me how to fix this

    Try increasing the commandTimeout from 100seconds to 200seconds and see if this works?
    Also, look at the Section 5.2.5 in the connector doc.

  • Creating user in oracle through JDBC

    I m trying to create a user in oracle through jdbc. When I m creating user through SQL plus I m able to do it successfully but when I m doing it through java code I can see that user�s entry in dba_users & dba_role_privs tables.But when I am trying to drop that user I get message �User doesn�t exist�. Also when I am trying to logged in through the newly created user (one that I have created through code)in SQL Plus , I get error �ORA-01017: invalid username/password ; logon denied�.If user doesn�t exist then how can I see it�s entry in dba_users & dba_role_privs?? One more thing �. I can drop that user through code but not using SQL Plus.
    This is the code�.In this code I have logged in using system-manager & I m trying to create user test88 with password test88.I am granting 3 roles to this user Connect , Resource & DBA same as Scott �Tiger. Please help.
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import java.sql.Statement;
    public class OracleDB1 {
    public static final String isSUCCESS = "SUCCESS";
    public static final String isORACLE = "ORACLE";
    public static final String isFail = "ERROR";
    public String dbDriver;
    public String dbURL;
    public String dbUserName;
    public String dbName;
    public String dbPassword;
    public String dbType;
    private Connection con;
    private Statement stmt;
    * @param s Username
    * @param s1 Indentified by
    * @param s2 tablespace
    * @param s3
    * @return
    * @throws SQLException
    * @throws ClassNotFoundException
    public String createUserOracle(String s, String s1, String s2, String s3)
    throws SQLException, ClassNotFoundException {
    System.out.println("Creating user method ");
    String s4 = "";
    if (!s2.equals("")) {
    if (!s3.equals("")) {
    s4 = new String("CREATE USER \"" + s + "\" IDENTIFIED BY \""
    + s1 + "\" DEFAULT TABLESPACE " + s2 + " QUOTA " + s3
    + " ON " + s2);
    else {
    s4 = new String("CREATE USER \"" + s + "\" IDENTIFIED BY \""
    + s1 + "\" DEFAULT TABLESPACE " + s2
    + " TEMPORARY TABLESPACE TEMP QUOTA UNLIMITED ON " + s2);
    else {
    s4 = new String("CREATE USER \"" + s + "\" IDENTIFIED BY \"" + s1
    + "\"");
    try {
    con = this.init();
    System.out.println("The new user statemeent " + s4);
    stmt = con.createStatement();
    System.out.println("The new user statemeent " + s4);
    stmt.execute(s4);
    System.out.println("the info success "+stmt.SUCCESS_NO_INFO);
    stmt.close();
    } finally {
    if (null != con) {
    con.close();
    return "SUCCESS";
    public String grantRightsOracle(String s)
    throws SQLException, ClassNotFoundException
    String s1 = new String("GRANT connect , resource , dba to \"" + s + "\"");
    try
    con=this.init();
    stmt = con.createStatement();
    System.out.println("granting "+s+"with the connect priveleges");
    stmt.execute(s1);
    stmt.close();
    finally
    if(null != con)
    this.close(con);
    return "SUCCESS";
    public Connection init() throws SQLException, ClassNotFoundException {
    System.out.println("initialising");
    Class.forName("oracle.jdbc.driver.OracleDriver");
    dbURL = "jdbc:oracle:thin:@localhost:1521:priya";
    con = DriverManager.getConnection(dbURL, "system", "manager");
    return con;
    public void close(Connection connection) throws SQLException {
    if (!connection.isClosed()) {
    connection.close();
    public String disableUserOracle(String s) throws SQLException,
    ClassNotFoundException {
    String s1 = "REVOKE CONNECT, RESOURCE, SELECT ANY TABLE FROM \"" + s
    + "\"";
    try {
    con = this.init();
    stmt = con.createStatement();
    stmt.execute(s1);
    stmt.close();
    } finally {
    if (null != con) {
    this.close(con);
    return "SUCCESS";
    public String deleteUserOracle(String s) throws SQLException,
    ClassNotFoundException {
    String s1 = new String("DROP USER \"" + s + "\" CASCADE");
    try {
    con = this.init();
    stmt = con.createStatement();
    stmt.execute(s1);
    stmt.close();
    } finally {
    if (null != con) {
    this.close(con);
    return "SUCCESS";
    public static void main(String args[]) {
    String s = "";
    OracleDB1 oracleoperations = new OracleDB1();
    try {
    System.out.println("creating user");
    s = oracleoperations.createUserOracle("test88", "test88", "", "");
    System.out.println("creating user is " + s);
    s=oracleoperations.grantRightsOracle("test88");
    System.out.println("granting rights" + s);
    //s=oracleoperations.deleteUserOracle("test88");
    //System.out.println("deleting user" + s );
    } catch (Exception exception) {
    exception.printStackTrace();

    I read that by default, JDBC uses an operation mode called auto-commit. This means that every update to the database is immediately made permanent.Still for this program I have tried connection.commit() also , Still it is not working.
    I think that problem is not with commit otherwise I shouldn't be able to see that newly created user entry in these tables from Sql Plus:-
    1)DBA_ROLE_PRIVS
    2) DBA_USERS
    3) DBA_sys_privs
    Ya but these is no entry in DBA_OBJECTS table for this user.

  • Not able to create users in OID through OIM

    HI,
    I am creating users in OIM and provisioning them to OID. The create user is working fine but provisioning is not working.
    The create user task is getting rejected with error message as :
    Response: Target Unavailable Error
    Response Description: Target server not available
    In the weblogic console its showing error as:
    INFO,24 Feb 2010 18:42:13,140,[XL_INTG.OID], Parameter Variables passed into co
    m.thortech.xl.integration.OID.tcUtilOIDUserOperations:createUser(S,S,S,S,S): are
    sContainerDN = ou=AGI(ENI UK Ltd),o=Shippers,dc=xoserve-apps,dc=com, sFirstName
    = testuser17, sLastName = testuser17, sUserDNParam = TESTUSER17,
    INFO,24 Feb 2010 18:42:13,156,[XL_INTG.OID],com.thortech.xl.integration.OID.uti
    l.tcUtilLDAPOperations : connectToAvailableOID() : SSL option is not selected in
    ITResource
    ERROR,24 Feb 2010 18:42:16,156,[XL_INTG.OID],===================================
    =================
    ERROR,24 Feb 2010 18:42:16,156,[XL_INTG.OID], ERROR in OID:connectToAvailableOID
    () CommunicationExceptionUnable to create Initial LDAP Context
    ERROR,24 Feb 2010 18:42:16,156,[XL_INTG.OID],===================================
    =================
    ERROR,24 Feb 2010 18:42:16,156,[XL_INTG.OID],===================================
    =================
    ERROR,24 Feb 2010 18:42:16,156,[XL_INTG.OID],10.224.29.51:389
    ERROR,24 Feb 2010 18:42:16,156,[XL_INTG.OID],===================================
    ERROR,24 Feb 2010 18:42:16,171,[XL_INTG.OID],com.thortech.xl.integration.OID.uti
    l.tcUtilLDAPOperations : disconnectFromLDAP() : : Unable to close LDAP Context.
    The context was probably not created, since it is null
    ERROR,24 Feb 2010 18:42:16,171,[XL_INTG.OID],===================================
    =================
    ERROR,24 Feb 2010 18:42:16,171,[XL_INTG.OID],===================================
    =================
    ERROR,24 Feb 2010 18:42:16,171,[XL_INTG.OID], ERROR in com.thortech.xl.integrati
    on.OID.tcUtilOIDUserOperations:createUser(S,S,S,S,S) NoInitialContextExceptionEr
    ror while connecting to target
    ERROR,24 Feb 2010 18:42:16,171,[XL_INTG.OID],===================================
    =================
    ERROR,24 Feb 2010 18:42:16,171,[XL_INTG.OID],===================================
    =================
    ERROR,24 Feb 2010 18:42:16,171,[XL_INTG.OID],com.thortech.xl.integration.OID.uti
    l.tcUtilLDAPOperations: Unable to close LDAP Context. The context was probably n
    ot created, since it is null
    ERROR,24 Feb 2010 18:42:16,171,[XL_INTG.OID],===================================
    =================
    Please help.
    Thanks in advance.

    Thank a zillion to both of you...
    It was connection problem. Somebody changed my OID's IP address.
    Now my users are getting provisioned.
    One more doubt how to give points to both of you. I dont know how to give points in this forum.

  • Exclude create user statements using datapump API

    I’m trying to perform a schema import and exclude the "create user" statements using the datapump API but I can’t get the syntax correct for the dbms_datapump.metadata_filter call.
    Using impdp I use a parfile that includes the following statements:
    schemas=bob, john
    exclude=user
    How do I achieve the same effect using the dbms_datapump.metadata_filter API?
    Any assistance greatly appreciated.
    Gavin

    Did you ever figure out your issue? I'm having the same issue after I try to set attributes.

  • How to create the Frame object with API in 6i?

    do i create an item using d2fitmcr_Create, and then set the type or style to frame? or is it a graphics item that i have to create using a different function? ive tried various combinations with no luck.
    ive looked at the frame object in the GUI, and cant figure out how to duplicate it using the API (the frame object is the thin line box with a label used to groups items visually on a form)
    thanks!
    [email protected]

    Frame is a type of graphic d2fgracr_Create() (d2fgra.h) then set the type as required using d2fgras_graphics_typ():
    Definition of Graphics types is in d2fdef.h
    ** Graphics Type (D2FP_GRAPHICS_TYP)
    ** [BPT]
    #define D2FC_GRTY_ARC              0                                 /* Arc */
    #define D2FC_GRTY_IMAGE            1                               /* Image */
    #define D2FC_GRTY_LINE             2                                /* Line */
    #define D2FC_GRTY_POLY             3                             /* Polygon */
    #define D2FC_GRTY_RECT             4                           /* Rectangle */
    #define D2FC_GRTY_RREC             5                   /* Rounded Rectangle */
    #define D2FC_GRTY_TEXT             6                                /* Text */
    #define D2FC_GRTY_GROUP            7                               /* Group */
    #define D2FC_GRTY_FRAME            8                               /* Frame */All the various properties for setting up the associated block etc (if required) can be set through macros in d2fgra.h

  • Strong concerns about creating users programatically vs. through Portal GUI

    Hi,
    I am working with a Portal install right now where we have created some portal users through the Portal GUI, and some users using PORTAL30_SSO.WWSSO_API_USER_ADMIN.CREATE_USER procedure.
    The strong concerns come when I select the USER_NAME from WWSEC_PERSON$ connected as PORTAL30, and I only get the users created through the portal GUI.
    However, if I connect as PORTAL30_SSO I get all the users created programatically, as well as the users created through the GUI.
    Is there a reasonable explanation for this?
    Thanks.
    null

    Daniel,
    I was in the same quandry. But, you will notice a record automatically created in portal30's wwsec_person$ table, when the user logs in the first time. It is almost as if the Login server checks for the existence of the record. No one in Portal Dev. confirmed this, but it seems like the most logical explanation. Try it. Create a user programmatically, you should see the new user in SSO, but not in portal30. Login as the new user and then see the diff.
    hth
    Sanjay

  • Creating and Updating POs through API instead of PDOI in 11.5.10

    Hi All,
    We are doing a 11.5.10 implementation where we need to interface POs from an external system on a daily basis and have a few questions. Basically the client wants to have all the processing done using APIs (private/public) rather than using concurrent programs (standard interface programs) .
    (1) In order to create a Standard PO, should we always use the PDOI Interface program? There is no standard/public/private APIs available to CREATE POs?
    (2) There can be many times where a PO needs to be updated. During which , there can be a existing line which can be updated and there can be a new line which can be added. For adding new lines for an Existing PO, should we use the PDOI interface program in UPDATE mode and there is no APIs available to update POs (update PO as in adding new line to an existing PO?). And for updating an existing line of a PO, I am using "po_change_api1_s.update_po" as per the interface manual and this seems to be not able to handle adding of new lines.
    Have anyone used the API approach for creating/updating POs? Please let me know.
    Many thanks in advance.
    Regards,
    Srini.

    Srini,
    As far as I know there is no other way other than document interface.
    I think using interface should work for you just like an API. Client does not need to know that.After populating the interface table you can call the package PO_DOCS_INTERFACE_SV5.process_po_headers_interface or use the SQL code that is behind the concurrent program. You can pass specific interface_header_id that belongs to a specific PO (going by your grouping logic). If the PO is created, interface gets purged automatically (based on your setting). If not you can delete it as you might be having the info in your custom table (ofcourse capturing the error so that you can correct it). It has a lot of capabilities including creating item and sourcing rules on the fly. Also the functionality you are looking for to add new lines is also there.This way you never have to use a concurrent program approach (or call it batch program approach).
    FYI, even autocreate uses the same interface but implicitly.
    Thanks
    Nagamohan

  • Create user field image through coding

    i want to create type general and  structure image through coding in vb
    please help

    Hi,
    Below is a table from SAP's SDK documentation. You should use the last option.
    Application
    DI API
    Type
    Structure
    Type
    SubType
    Alphanumeric
    Regular
    db_Alpha
    st_None
    Alphanumeric
    Address
    db_Alpha
    st_Address
    Alphanumeric
    Phone
    db_Alpha
    st_Phone
    Alphanumeric
    Text
    db_Memo
    st_None
    Numeric
    None
    db_Numeric
    st_None
    Date/Hour
    Date
    db_Date
    st_None
    Date/Hour
    Hour
    db_Date
    st_Time
    Units And Totals
    Rate
    db_Float
    st_Rate
    Units And Totals
    Sum
    db_Float
    st_Sum
    Units And Totals
    Price
    db_Float
    st_Price
    Units And Totals
    Quantity
    db_Float
    st_Quantity
    Units And Totals
    Percent
    db_Float
    st_Percentage
    Units And Totals
    Measure
    db_Float
    st_Measurement
    General
    Link
    db_Memo
    st_Link
    General
    Image
    db_Alpha
    st_Image
    Beni.

  • How do I receive notification of a change in the value of a dynamically created user interface object?

    I need to know when the user has changed the value of a slider or a Boolean control that was dynamically created (not part of a dialog). Is there any way to do that without polling? I would have expected these controls to post a WM_NOTIFY message to the parent window in response to user events, but that does not seem to happen. Am I missing something?

    Win32 controls do typically post WM_NOTIFY messages to the parent window for user events. The Measurement Studio UI controls are actually ActiveX controls, though, and events are handled differently for ActiveX controls.
    If you have a resource ID for you control, the easiest way would be to create your control in the OnInitDialog method and handle the event the same way you would if you had added the control to the dialog at design-time:
    Add a declaration for the event handler in the AFX_MSG block in the dialog header file.
    Make sure the AFX_MSG block in the header file includes DECLARE_EVENTSINK_MAP()
    Include an ON_EVENT entry for the event in the dialog source's BEGIN_EVENT_SINK_MAP block.
    Include a DDX_Control entry
    in the dialog source's AFX_DATA_MAP block.
    Otherwise, you'll have to dynamically sink the event at runtime after you've created the control. Microsoft's Knowledge Base has a couple of good articles that demonstrate how to do this:
    SAMPLE: AtlEvnt.exe Creates ATL Sinks Using IDispEventImpl (Q194179)
    AtlSink Uses ATL to Create a Dispinterface Sink (Q181277)
    - Elton

  • URGENT: issue while creating user through reconciliation of AD

    Hi,
    We have a requirement where we need to create users in IDM through reconcilition against Active Directory. For certain type of account Ids I want to trigger a custom workflow used for user creation. So I set "viewOptions.Process" to my custom workflow in the user form assigned to the admin who is the proxy admin for the reconcilaition process. But it doesn't seem to kick off my custom workflow. Will this work? Is this the correct form to specify the custom workflow to be triggered?
    Also I tried putting some trace satements in the default "Create User" workflow to see that if it is being called during user creation by recon. In the logs I don't see my trace statements. So the question is: Which is the workflow that is called when a user is created through reconciliation? How to specify a custom workflow name in this regard?
    Thanks,
    kIDMan.

    I'm wondering if you have an answer to this?
    I need to do a similar thing. For me, I reconcile against an oracle DB and there are Active and Inactive users. I only want to reconcile Active users. I put the following code in the user form but it still created Inactive users. "Exclude Inactive User" is an empty WF that has only start and end activities.
    <Field name='viewOptions.Process'>
    <Expansion>
    <s>Exclude Inactive User</s>
    </Expansion>
    <Disable>
    <neq>
    <ref>global.status</ref>
    <s>I</s>
    </neq>
    </Disable>
    </Field>

  • Error while creating contact through API in Install Base

    Hello
    I am trying to create contacts when creating a install base through API...
    I tried below code as per metalink note# 215456.1 and giving the below error. I checked setup andI have 'Ship To' exists in Instnace Party Account Relationsship setup in the aplication and also I have a party Id 1232890 exist in hz_parties table with party type as 'Person' and I passed contact_ip_id as instance_party_id from CSI_I_PARTIES table for the instance to be update...
    Also, can anybody help me how to purge the error messages before calling the API, suppose if i have 2 records and all two records will error then my second record error getting contatenated with my first error and message count also getting increased(see error message below as message count coming as 2 even though there is only one error)
    SET SERVEROUTPUT ON SIZE 1000000
    DECLARE
    p_instance_rec CSI_DATASTRUCTURES_PUB.INSTANCE_REC;
    p_ext_attrib_values_tbl
    CSI_DATASTRUCTURES_PUB.EXTEND_ATTRIB_VALUES_TBL;
    p_party_tbl CSI_DATASTRUCTURES_PUB.PARTY_TBL;
    p_account_tbl CSI_DATASTRUCTURES_PUB.PARTY_ACCOUNT_TBL;
    p_pricing_attrib_tbl CSI_DATASTRUCTURES_PUB.PRICING_ATTRIBS_TBL;
    p_org_assignments_tbl CSI_DATASTRUCTURES_PUB.ORGANIZATION_UNITS_TBL;
    p_asset_assignment_tbl CSI_DATASTRUCTURES_PUB.INSTANCE_ASSET_TBL;
    p_txn_rec CSI_DATASTRUCTURES_PUB.TRANSACTION_REC;
    x_instance_id_lst CSI_DATASTRUCTURES_PUB.ID_TBL;
    x_return_status VARCHAR2(2000);
    x_msg_count NUMBER;
    x_msg_data VARCHAR2(2000);
    x_msg_index_out NUMBER;
    t_output VARCHAR2(2000);
    t_msg_dummy NUMBER;
    BEGIN
    p_party_tbl(1).instance_party_id := null;
    p_party_tbl(1).instance_id := 1216497;
    p_party_tbl(1).party_source_table := 'HZ_PARTIES';
    p_party_tbl(1).party_id := 1232890;
    p_party_tbl(1).relationship_type_code := 'Ship To';
    p_party_tbl(1).contact_flag := 'Y';
    p_party_tbl(1).contact_ip_id := 1699185;
    x_msg_count := 0;
    p_party_tbl(1).OBJECT_VERSION_NUMBER := 1;
    -- Now call the stored program
    csi_item_instance_pub.update_item_instance(
    1.0,
    'F',
    'F',
    1,
    p_instance_rec,
    p_ext_attrib_values_tbl,
    p_party_tbl,
    p_account_tbl,
    p_pricing_attrib_tbl,
    p_org_assignments_tbl,
    p_asset_assignment_tbl,
    p_txn_rec,
    x_instance_id_lst,
    x_return_status,
    x_msg_count,
    x_msg_data);
    -- Output the results
    if x_msg_count > 0
    then
    for j in 1 .. x_msg_count loop
    fnd_msg_pub.get
    ( j
    , FND_API.G_FALSE
    , x_msg_data
    , t_msg_dummy
    t_output := ( 'Msg'
    || To_Char
    ( j
    || ': '
    || x_msg_data
    dbms_output.put_line
    ( SubStr
    ( t_output
    , 1
    , 255
    end loop;
    end if;
    dbms_output.put_line('x_return_status = '||x_return_status);
    dbms_output.put_line('x_msg_count = '||TO_CHAR(x_msg_count));
    dbms_output.put_line('x_msg_data = '||x_msg_data);
    -- COMMIT;
    END;
    ERROR
    SQL> @p
    Msg1: The Party Relationship Type (Ship To) entered is either invalid or it does
    not exist in the Installed Base Lookups
    Msg2: The Party Relationship Type (Ship To) entered is either invalid or it does
    not exist in the Installed Base Lookups
    x_return_status = E
    x_msg_count = 2
    x_msg_data = The Party Relationship Type (Ship To) entered is either invalid or
    it does not exist in the Installed Base Lookups
    PL/SQL procedure successfully completed.

    Hi
    We are in 11.5.10.2 and I already checked notes which you sent before and setups are fine as the relationship type' Ship to' having 'contacts' enabled in the setup.
    I am also seeing a differernt issue as once I update existing item instnace with the status 'Return for Credit' through API, system is not allowing me to update the extended attributes through front end application manually and I am seeing a note at the end of the screen as 'Note: This item instance cannot be updated. ' and this is only happening when I update the item instance status to 'Returned for Credit' not when I create new item instances with status as 'Created'. Is this intended functionality to restrict update on extended attributes if I change the status of item instnace to 'Return for Credit' ?
    Thanks

  • Access Denied creating user accounts through vba

    Hello,
    I have a MS-Access application that runs on a Windows 2012 server. My customer logs into the server using RDP. The MS-Access application is started up automatically by means of the environment variable in the user settings. The customer needs to be able
    to create new windows users for this application, simply by clicking a button.  
    The VBA script to create users works, because when I start up the MS-Access application with my own logged on Administrators account, the new users get created. If my customer tries it, he gets 'Access Denied' error. I have added his user account to
    the Power Users group, but that did not solve the problem. I also tried to make him member of the DCOM Users Group, the 'Access Denied' error remains...
    I do not want to give him administrator priviliges, because he is 'just a customer'...
    What do I need to do for this setup to work? I tried altering some DCom settings, but frankly I do not have enough knowledge to feel comfortable with this. Hope anybody can help me out here...
    best regards, Rob

    Is this a standalone server? Only administrators can create user accounts, so there is no work around for that. You could look at something that has the administrator account/password stored and launch PSEXEC or something else in an elevated session behind
    the scenes but that is a security volunerability because the credentials are stored.
    If the account is being created in an Active Directory environment you could delegate permissions to the appropriate OU for your customer.
    Mark B. Cooper, President and Founder of PKI Solutions Inc., former Microsoft Senior Engineer and subject matter expert for Microsoft Active Directory Certificate Services (ADCS). Known as “The PKI Guy” at Microsoft for 10 years.

  • Problem when creating user

    Hi
    When I create user with the following command its working fine.
    ./commadmin user create -D admin -F Satish -n testdomain.com -l satish -w password -W password -L Jha -S mail,cal -E [email protected] -H ms1.testdomain.com
    But when I try to create user from the DA console, its not asking the email information for the user. I have a service package allocated to the domain also 'StandardUserMailCalendar'. whats the problem?
    When I see the list of default service packages through DA console, i have observed that IMAP access is 'disabled' for all the service packages?
    what might be the problem?
    Thanks in Advance

    Hi,
    nvrsprasad wrote:
    But when I try to create user from the DA console, its not asking the email information for the user. I have a service package allocated to the domain also 'StandardUserMailCalendar'. whats the problem?What version of Delegated Administrator are you running?
    Have you patched recently or is this a fresh installation?
    Did you install the sample service packages during the install/configuration?
    When I see the list of default service packages through DA console, i have observed that IMAP access is 'disabled' for all the service packages?If you use the 'bronze' service package during the creation of a new user, does this then ask for mail details (mail-hostname etc.) during the user-wizard stage?
    Have you tried a different browser (e.g. Mozilla Firefox)?
    Regards,
    Shane.

  • Not able to create users in portal.

    Hi all,
    Iam trying to create users in portal through User administration but the system says:
    "Current user has user creation permissions in the UME, but cannot create users in the back-end system (data source). The original and possibly untranslated message was: "No active writeable datasource found for user creation, check your Persistence Configuration.".
    I have tried creating in backend system and use in the portal , but the same user does not work there , it says Authentication failed.
    Iam using the admin user j2ee_admin having all the admin rights , i have done all the confuguration settings through this user id only.
    Please help.
    Regards,
    Akash

    Hi Akash,
    check if your data source configuration file is read-only in your ume properties. If it's read/write you may check in the ABAP backend if your communication user (per standard SAPJSF) has write-permissions.  He needs to have role SAP_BC_JSF_COMMUNICATION not SAP_BC_JSF_COMMUNICATION_RO
    see also note 905188
    Cheers,
    Anja

Maybe you are looking for