Create Organization Data programatically

I am using ALBPM 5.7 Studio and trying to create Organization data programatically - OU, Participant, Role etc.
I am able to fetch data but not able to create OU.
For the following code
DirOrganizationalUnit dirOrgUnit;
dirOrganizationalUnit = dirOrgUnit.create(session : Fuego.Fdi.DirectorySession.currentEngineSession, name : "MT", description : "Michigan Transport");
I get the following exception
A component failed while executing activity '/CreateOrgData#Default-1.0/CreateOU' (BP-method CreateOU) over instance '/CreateOrgData#Default-1.0/5/0'.
Details:
The method 'CIL_createOU' from class 'OrgData.CreateOrgData.Default_1_0.Instance' could not be successfully executed.
Caused by: java.lang.NullPointerException
fuego.lang.ComponentExecutionException: The method 'CIL_createOU' from class 'OrgData.CreateOrgData.Default_1_0.Instance' could not be successfully executed.
     at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:498)
     at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:251)
     at fuego.fengine.FEEngineExecutionContext.invokeMethodAsCil(FEEngineExecutionContext.java:214)
     at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1063)
     at fuego.server.execution.TaskExecution.invoke(TaskExecution.java:391)
     at fuego.server.execution.TaskExecution.executeCIL(TaskExecution.java:483)
     at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:657)
     at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:618)
     at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:152)
     at fuego.server.execution.activities.XAutomatic.execute(XAutomatic.java:54)
     at fuego.metadata.Activity.execute(Activity.java:1022)
     at fuego.server.execution.ToDoItemAutomatic.execute(ToDoItemAutomatic.java:35)
     at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:291)
     at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:462)
     at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:540)
     at fuego.transaction.TransactionAction.start(TransactionAction.java:213)
     at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:117)
     at fuego.server.execution.DefaultEngineExecution.executeAutomaticWork(DefaultEngineExecution.java:57)
     at fuego.server.execution.EngineExecution.executeAutomaticWork(EngineExecution.java:42)
     at fuego.server.execution.ToDoItem.executeAutomaticWork(ToDoItem.java:264)
     at fuego.server.execution.ToDoItem.run(ToDoItem.java:530)
     at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:754)
     at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:734)
     at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:140)
     at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:132)
     at fuego.fengine.ToDoQueueThread$PrincipalWrapper.processBatch(ToDoQueueThread.java:432)
     at fuego.component.ExecutionThread.work(ExecutionThread.java:818)
     at fuego.component.ExecutionThread.run(ExecutionThread.java:397)
Caused by: java.lang.NullPointerException
     at OrgData.CreateOrgData.Default_1_0.Instance.CIL_createOU(Instance.java:229)
     at OrgData.CreateOrgData.Default_1_0.Instance.CIL_createOU(Instance.java:243)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:491)
     ... 27 more

Dont insert values directly in dB as you have to update multiple dependent tables in case you start doing that way. Check this thread for available api to create an organization
Creating Organizations using API, OIM 11G
Edited by: Durgaprasad on Jan 28, 2013 1:20 AM

Similar Messages

  • No organizational data exists on item level (error message)

    Hello everybody,
    I still have this error message when try to create a shopping cart : 'No organizational data exists on item level'
    Following a lengthy discussion with SAP Support, SAP recommended that I remove the reference of the Purchasing Organization and Purchasing Group to the backend system (R/3).
    After removing the reference I was able to complete the SC creation process, but I got an error at the PO creation process, where I am unable to release the PO since it is not linked to a backend (R/3) Purchasing Organization/Group.
    I am currently using SRM 4.0 with EBP 5.0 in Extended Classic Scenario.
    I need an Urgent help on this issue !!
    Thanks,
    Lina

    Hi,
    If You have own PO document type (ZCS) then don't hange it.
    in SYS attrib add a local EBP system
    If you don't use local categories, You don't need to add product cat. * for local system.
    in my ppoma_bbp company have two purch orgs.
    -for local (fields with purch org and system id is empty)
    -for backend (fields with purch org is filled from backend system.)
    Example:
    Company (function with company code PW01\R3100)
    - Purch org local (function purch. org. checked but not filled)
    - Purch group local (function purch. group checked bud not filled)
    - Purch org backend (function purch. org. checked with values PZ1\R3100)
    - Purch group backend (function purch. group checked with values PZZ\R3100)
    Regards,
    Marcin Gajewski

  • Is there a way to manually custom-edit the "Date created" and "Date modified" attributes of files in Mac OS 10.6?

    In "List View" in a Finder window, among the many column options are "Date created" and "Date modified." In "View Options" (command-J) for any folder, one can add these columns, along with the standard ones "Size," "Kind," "Label," etc.
    A user can alter a file's name, and a file's "label" (i.e. its color). On the other hand, a user can NOT arbitrarily edit/alter a file's official "size" -- other than by physically altering the contents of the file itself, obviously.
    But what about a file's "Date created" and "Date modified"? Can either of those be manually edited/changed, just as a file's name can be changed -- or is a file's creation-date an immutable attribute beyond the editorial reach of the user, just as a file's "size" is?
    And yes, a person can "alter" a file's "Date modified" by simply modifying the file, which would change its "Date modified" to be the moment it was last altered (i.e. right now). But (and here's the key question) can a user somehow get inside a file's defining attributes and arbitrarily change a file's modification date to be at any desired point in the past that's AFTER its creation date and BEFORE the present moment? Or will so doing cause the operating system to blow a gasket?
    If it is possible to arbitrarily manually alter a file's creation date or modification date, how would it be done (in 10.6)? And if it is NOT possible, then why not?

    sanjempet --
    Whew, that's a relief!
    But as for your workaround solution: All it will achieve is altering the created and modified dates to RIGHT NOW. What I'm looking to do is to alter the modification/creation dates to some point in the past.
    I'm not doing this for any nefarious reason. I just like to organize my work files chronologically according to when each project was initiated, but sometimes I forget to gather the disparate documents all into one folder right at the beginning, and as a result, sometimes after I finish a job, I will create a new folder to permanently house all the files in an old project, and when that folder is places in a bigger "completed projects" folder and then is organized by "Date created" or "Date modified" in list view, it is out-of-order chronologically because the creation and modification dates of that particular project folder reflect when the folder was created (i.e. today), and not when the files inside the folder were created (i.e. weeks or months ago).
    The simplest solution would simply to be able to back-date the folder's creation or modification date to match the date that the project actually started!

  • No organization data for service products

    Hi,
    I create a CRM service order with a service product. Now there is a message, that the product in sales organization and distribution channel is not scheduled.
    Our service products in general don't have organization data, cause they occur from r/3 service master data (transaction ac03).
    How to assign org.data to service products in CRM? I cannot assign the set type for org.data to the category of service products cause we download the products with the middleware from R/3.
    Regards
    Jochen

    Hi
    Sercie products will be created in CRM in service product type, while creating a service product you have to assign the Organizational data in sales and distribution tab
    Thanks
    Satheesh

  • What are the two different rules for organizational data determination

    What are the two different rules for organizational data determination???

    Hi
    1) Rule type Responsibilities
    want to determine organizational data for individual responsibilities
    have not created an organizational model but want to create one
    have a lot of organizational units and must only assign a few attributes
    2) Rule type Organizational Model
    You would use rule resolution using organizational model if you
    have created an organizational model or have distributed a plan to SAP CRM and also want to use this for determining organizational data
    assign a lot of attributes to the organizational units and these are to be evaluated
    Regards
    Manohar

  • Organizer data base is damaged in acrobat 9 standard

    I have tried to "repair" and reinstall my Adobe Acrobat 9 standard version to correct my organizer data base damage issue.  I have deleted and replace the organizer90 file as suggested in previous discussions to no avail.  I have created a txt version and removed the .txt to the folder making it blank also.  Nothing has fixed this issue.  I have had this product for years without many issues.  This is the first time it appears to be unresolvable.
    Do you have any suggestions beyond what I have discussed.  As an example is there a specific order of action items to make the repairs.  It is perplexing that a full uninstall and then a full reinstall has not solved the issue.  I am only an occasional user so this product suits my needs and demands regarding pdf files. posted 070514 Scott

    you must not be removing the correct file.  double check that you're deleting from the correct directory.
    also, after restarting your computer, before launching acrobat, make sure that organizer90 is not present.  then launch acrobat and check that it re-creates the organizer90 file.
    and, if that fails, you could try holding down shift-ctrl-alt while starting acrobat.  if done correctly you'll see a confirmation dialog about resetting your preferences.

  • How to organize Data Objects and other Objects in SWCV

    Hi,
    I am looking for Best Practices on how to organize data objects in SWCV as well as other objects such as a Distribution Rules.
    We are planning to develop three occasionally connected applications with NW Mobile 7.1 this year and maybe additional one the following year. We will create multiple Standard Data Objects (e.g. Plant, Company Code, Reservations, ...) which are shared in the first set of transactions and in the future transactions.
    I have heard before to separate out Standard Data Objects from Distribution Models and have two different SWCV.
    Should I have a) one SWCV for all current and future Standard Data Objects and one for the distribution rtules or b) should I separate out common data objects into one SWCV, and all transaction-specific data object each into separate SWCV?
    Just wondering if there are any best practices available for this so that I won't run into problems in the future when we want to add more transactions/data objects?
    Any advise is appreciated.
    Thanks,
    W. Berger

    Hi Siva,
    Thanks for quick reply!!
    I have created say SWCV1 for Dataobjects.
    Now i want to create seperate SWCV2 for defining distribution model.
    How i should proceed..I cannot see the uses option while creating new SWCV2  ( Only option i see is  'backward compatibility checkbox : uses NW04/NW04s MI Application')
    where to check the following which you have mentioned?
    SWCV2 was created and inherited SWCV1 in uses tab of SWCV2.
    Thanks in advance!!
    Regards
    Devendra

  • No redetermination of organizational data when change the activity partner

    In the Business Activity we have the determination Rule for Org.Data Model "14000161 - Org. Data Re. Master Data".
    When we create a Business activity and enter the activity partner, the organizational data is determinated correctly.
    The problem is that, when the activity partner is changed, the organizational data not is redetermined.
    Anybody Knows how to do it?
    Thanks.
    Best regards,
    Dani Sevilla.

    Hi Daniel,
    Did you try "propose alternative"?
    you can read at http://help.sap.com/saphelp_crm40sr1/helpdata/en/82/adc9531f1bc5419d0785617d6a59c2/frameset.htm
    also the BAdI mentioned can help you.
    Eyal.

  • Organizational Data not downloaded to MSA

    Hello SAP;
    We are trying to set up MSA 5.0 SP06 and want to download our
    organizational data to MSA. What we have done;
    1. Marked the units which we want to download as sales org, sales
    office,etc.
    2. Marked the units which we want to download "Obj. Permitted in
    Determination"
    3. Did a synchronization load for "CRM_DNL_ORGMAN"
    4. Run the program "Copy Organizational Structure to CRM Mobile" from
    SPRO
    5. Created a subscription "Customizing ORGMAN" for the
    publication "Customizing ORGMAN" and assigned it to the client's site.
    We are not able to see the data in mobile, may you please help us in
    solving the problem?
    Kind Regards,
    Erkan Kaya
    CRM Application Consultant

    CRM_DNL_ORGMAN is the download object only used for the settings of the common division / replacement division, but has per se nothing to do with the organisational model. This is replicated only via the CRM_ORGMAN_DOWNLOAD report (which you called via the SPRO). This report needs to be called in initial mode for the first time and should be executed with the changes/deletions option afterwards. Be sure that your sales and service scenario is buffered beforehand (Tx SM30, table T770MATTR).
    Then all the relevant tables in the CDB should be filled. You can check this via tx. SE16, tables eg. SMOTVKOT or SMOTVTA.
    For subscription you need to create a subscription on the publication "Customizing Objects" which includes the DNL_CUST_S_AREA Bdoc which transports these changes.
    Regards, Kai

  • Organizational Data Determination

    Hello!
    I have a transaction type with a organization data profile using rule 10000144.
    When I create a document, the system doesn´t determine sales organization and distribution channel, but determines the organizational Unit correctly.
    The BP used was created in just one sales area.
    Does anybody know what could be the problem????
    Thanks a lot.
    Susana Messias

    Hello,
    I check my organizational model, and all organizational units are checked in consider for determination.
    The organizational units have the R/3 sales org assigned, and the attribute Distribution channel, Division and Tuppel (combination of Distribution channel and division) filled correctly.
    Do you remember anything more?
    Regards,
    Susana

  • Organizational Data Determination Doesnu2019t work

    We create stand alone Organiztional Model with Sales Organization, Sales Office, Sales Group structures.
    We have applied the SAP Note 1061972 and also weu2019ve been schedduling the  HRBCI_ATTRIBUTES_BUFFER_UPDATE report.
    We have in all levels of the organizational model the check u201Cconsider in determinationu201D.
    When we assign the Sales Area to the BP, we donu2019t have any problem whit that; we can see all the possible Sales Area.
    The problem occurs when we create business documents; the Organizational Data Determination doesnu2019t work in any rule for example the Rule:  10000144 u201CSales areas incl. master datau201D.
    Thankou,

    Hi Oscar,
    I had similar issue a while ago.
    Steps taken to check the issue:
    1. Check the attributes of the sales office / sales group for determination. Eg. Postal Code / Country. etc
    2. Check if the correct org. determination rule is given in the Transaction Type
    3. Check for org. determination rule in the standard Transaction type and see if it is working good.
    4. If the BP is sold-to-party check and see if the Sales area data is maintained.
    Please let me know if the steps are of any hepl to you.
    Smiles
    Naveen

  • Organizational data determination for mkt. activities

    We need organizational data determination for mkt. activities created from campaigns. In CRM we have only the Marketing part of  the clients organization, using Marketing scenario in PPCOMA_CRM.
    If we leave org. unit field of activity blank, the activity has a red error light.
    The responsable person is the one from the campaign. It is responsable of en Marketing unit (that was assigned to campaign).
    The possible solutions for our cliente could be 1) org data determination from preceding document or 2) org data determination from the Mkt organization of the responable person.
    Concerning 1) There is no "natural" way to assign the preceding
    document (campaign). Am I right?
    Concerning 2) The only way to determine the an unit, was choosing Organizational Model Determin. Rule 10000148 to perfile ZDUOCTEST and later changing the scenario of rule 10000148 from sales to marketing. This obviosly is not standard. As rule and perfile now have diferent scenarios. What would be the standard solution?
    Thanks for help.
    Cristina

    hi
    please do not get confused by the terminology of the standard solution,what you are doing by changing the scenariop from sales to marketing is actually a standard solution,
    as an activity is generated in response to the campiang or survey being submitted,and it is always a sales scenario ,since further activity application is in martketing scenario ,so what you are doing is changing the scenario from sales to marketing so that from those activities tyou can generate the org data,this is the standard and it goes this way only
    if you want to work other way around then just use the preceding document access sequence in the scenario like then you have to use the campaign data instead of the activity generated in response to the campaign,
    best regards
    ashish

  • Step by step on how to create organizational structure(plan) for workflow?

    Hi Experts,
    Can anyone send me a step by step process on how to create organizational structure(plan) for workflow?
    Thanks a lot in advance.
    Rgds,
    TM

    Hi,
    You can use the following accessible transactions to process your organizational plan:
    Transaction     Name of Transaction
    PPO5                     Change Attributes
    PPO6                     Display Attributes
    PPOCE                      Create Organization and Staffing
    PPOCW                      Create Organization and Staffing (WF)
    PPOME                     Change Organization and Staffing
    PPOMW                     Change Organization and Staffing (WF)
    PPOSE                      Display Organization and Staffing
    PPOSW                      Display Organization and Staffing (WF)
    PP01                      Maintain Plan Data (Menu)
    PP01_DISP      Display Plan Data (Menu)
    PP03                       Maintain Plan Data (Actions)
    PP03                       Execute Action Directly
    Regards,
    Deepa Kulkarni

  • Organization data profile creation

    Dear experts,
    Please tell me the reason for choosing the package as "$tmp" while creating the Organization data profile.What does it say and what happens if its not taken as $tmp?

    Dear Samantak,
    org determination should only be made, if you have customized it.
    So please check which org. data profil has been assigned to the involved transaction types (in SPRO Define transaction types).
    And what the profil does (the rule behind) can be found also in SPRO
    - Master Data
      - Organizational Management
        - Organizational Data Determination
          - Change Rules and Profiles
             -Maintain Organizational Data Profile
    Please check the documentation there!
    Regards, Gerhard

  • Organization Data for Service Orders and Service Confirmation

    Hi,
    Whenever I create any Service Order or Service Confirmation, the Organization Data is automatically populated.
    My doubts are :
    1. Is is mandatory to provide Organization Data for Service Order/Confirmation Creation ?
    2. What/ Where are the customization for the Organization Management for the above scenario ?
    Thanks and Regards,
    Samantak.

    Dear Samantak,
    org determination should only be made, if you have customized it.
    So please check which org. data profil has been assigned to the involved transaction types (in SPRO Define transaction types).
    And what the profil does (the rule behind) can be found also in SPRO
    - Master Data
      - Organizational Management
        - Organizational Data Determination
          - Change Rules and Profiles
             -Maintain Organizational Data Profile
    Please check the documentation there!
    Regards, Gerhard

Maybe you are looking for