Creation of  a root organnization.

Hi ,
We creat root organization structures via the transaction PPOCE.  Now i have to create these org structures Programatically.. Are there any standard Function modules which can be used ? .  Also i need to create a new position underneath it . Please let me know of any standard FM's
Thanks and Regards
Ravish.

Hi Ravish,
this is build up with the assignment between the objects.
for RHOM_CREATE_RELATED_OBJECT following example(se37 import) should
work to create a manager position
FATHER                             01O 0000071001.01.200231.12.9999               
PLVAR                           01                                                
OTYPE                           S                                                 
OSTAT                           1                                                 
BEGDA                           01.01.2007                                        
ENDDA                           31.12.9999                                        
RSIGN_FATHER_TO_SON             B                                                 
RELAT                           <b>012</b>                                               
PERCENTAGE                      100,00                                            
SHORT                           Short                                             
STEXT                           Stext                                             
IS_ROOT_OBJECT                                                                               
for normal staff you have to use <b>003</b>.
If you use this funktion module you have to make sure to write the buffer (RHOM_WRITE_BUFFER_TO_DB) on database because it writes only in buffer.
Regards
Bernd

Similar Messages

  • BOL - creation of MarketingProject root object failed

    Dear All,
    I'm trying to create MarketingProject root object in ABAP. I think the problem is with some parameters, but I've tried to provide the same parameters as an existing Marketing Project has, but still got 'creation failed'.
    Part of code:
    DATA:
    lo_bol_core       TYPE REF TO cl_crm_bol_core,
    lo_factory        TYPE REF TO cl_crm_bol_entity_factory,
    lo_entity         TYPE REF TO cl_crm_bol_entity,
    lt_params         TYPE        crmt_name_value_pair_tab.           
    lo_factory = lo_bol_core->get_entity_factory( 'MarketingProject' ).
    lt_params = lo_factory->get_parameter_table( ).
    lo_entity = lo_factory->create( lt_params ).
    or
    DATA:
    lo_bol_core       TYPE REF TO cl_crm_bol_core,
    lo_factory        TYPE REF TO cl_crm_bol_entity_factory,
    lo_entity         TYPE REF TO cl_crm_bol_entity,
    lt_params         TYPE        crmt_name_value_pair_tab,  
    ls_params         TYPE        crmt_name_value_pair.        
    lo_factory = lo_bol_core->get_entity_factory( 'MarketingProject' ).
    ls_params-name = 'OBJECT_TYPE'.
    ls_params-value = 'CPG'.
    APPEND ls_params TO lt_params.
    ls_params-name = 'OBJECT_NAME'.
    ls_params-value = 'Campaign'.
    APPEND ls_params TO lt_params.
    ls_params-name = 'DISPLAY_AUTHORITY'.
    ls_params-value = 'X'.
    APPEND ls_params TO lt_params.
    lo_entity = lo_factory->create( lt_params ).
    in both cases lo_entity is still INITIAL. I've tried to provide many parameters by inserting crmt_name_value_pair into lt_params, but it doesn't change anything. Creation from WebUI works with only two parameters - OBJECT_TYPE and EXTERNAL_ID. What's the problem in my case?
    Thanks in advance

    Hello Harshit,
    I can read my collection with:
    DATA: current TYPE REF TO if_bol_bo_property_access,
                lr_entity TYPE REF TO cl_crm_bol_entity.
    current  = me-> typed_context->partner->collection_wrapper->get_current( ).
    I can also read my customcontroller. But still cann't get the entity with:
    lr_entity ?= me-> typed_context->partner->collection_wrapper->get_current( ).
    Do you have another idea?
    Thanks and regards,
    John

  • Vendor Root in SRM5.0

    Hi,
    In case of multiple company codes in single backend logical system.
    What strategy should be adopted for creation of vendor root in case of SRM5.0 ?
    Any suggestions..
    regards,
    Rahul Mandale

    Hi
    <u>Please go through these links -></u>
    Re: Do we need to have Multiple Vendor Roots in PPOCV_BBP for Multiple back end
    Roles for vendor's creation
    Restrict The addition of new Vendor in SRM
    Re: Vendor Replication
    One SRM (Ver 5.0) and two R/3 systems as back-end in extended classic
    vendor replication in srm 5.0
    Vendor and Users Migration in SRM 5.0
    Re: Replication of Vendor master from SRM to backend.
    Re: SRM 5.0 - Assign user to multiple purchasing groups?
    Re: How to assign purchasing organization to a vendor using the GUI interfa
    Mapping R/3 vendor to existing vendor in SRM
    Root Org  Vs Vendor group
    Regards
    - Atul

  • Creating a root entity in a BOL program

    Hi experts,
    I'm creating a program to test the creation of a root entity. I've followed the BOL Application guide and it works if i create a BTOrder.
    Now i want to create another object. The problem is that when is use the factory to create a root entity, it remains always empty.
    Any idea with this is happening ? How can i now if there are mandatory parameters that should be sent to the creation ?
    lr_core = cl_crm_bol_core=>get_instance( ).
    lr_core->start_up( 'ALL' ).
    CHECK lr_core IS BOUND.
    "ls_params-name = 'PROCESS_TYPE'.
    "ls_params-value = ''.
    "APPEND ls_params TO lt_params.
    DATA : lr_factory TYPE REF TO cl_crm_bol_entity_factory.
    lr_factory = lr_core->get_entity_factory( 'OrderProdPropItemsAll' ).
    "lr_factory = lr_core->get_entity_factory( 'BTOrder' ).
    DATA lr_order TYPE REF TO cl_crm_bol_entity.
    lr_order = lr_factory->create( lt_params ).
    check  lr_order IS BOUND.

    Hi.
    For your information the problem was because one standard method is empty.
    When we are creating a BTOrder in the end, we get an instance of CL_CRM_BTIL and it calls method IF_GENIL_APPL_INTLAY~CREATE_OBJECTS where the creation of the object is coded.
    For object OrderProdPropItemsAll, we get an instance of CL_CRM_PRODPROP_IL and for this class the method create_objects is empty so obviously nothing is created. I will contact SAP on that subject.
    Regards,
    Helder

  • DFS Consolidation Roots

    Hi,
    I am in the process of planning a file server consolidation. The intention is to consolidate 5 existing Windows 2008 R2 file servers onto a single file server running either Windows Server 2008 R2 or Windows Server 2012. A key requirement is to preserve
    the old UNC paths as these are used by hundreds of users and some applications to access existing shares.
    I've read through all the articles I can find on this and believe setting up DFS consolidation roots to be our best option. It appears that the FSMT doesn't support creation of consolidation roots on versions past 2008. However my understanding is that we
    can still create these manually on Server 2008 R2 or 2012.
    Is the thinking that we will have to create these manually as opposed to using the FSMT correct? Any advice here would be much appreciated.

    Hi,
    As you said we can manually create file server consolidation. Here is an article for manually setup on a Windows 2003 server. Please see the part "How to configure a DFS root server for consolidation in
    a non-clustered server environment":
    https://support2.microsoft.com/kb/829885/en-us
    If you have any feedback on our support, please send to [email protected]

  • How to stop message processing based on validation?

    Hello experts,
    I have a requirement to stop message processing in the graphical mapping based on validation results. Here is the scenario - messages are translated using graphical mapping and sent to the target system. An RFC lookup will be done to ECC to determine if the data in the message is good. If the lookup returns a negative result, message processing should be stopped right there.
    I guess we can throw an exception from the mapping to force a failure and stop further processing, but that will cause the message to show up as failed on SXMB_MONI and cause alert emails to be sent out in PROD. Another option will be to supress creation of the root node itself, but I think the message will then fail in the subsequent "call adapter" step if the target schema has a min occurence of 1 for the root node (as in the case of IDocs).
    Is it possible to do it without using BPM?
    Thanks,
    Michelle

    Hi Michelle,
       If your requirement, to stop message processing without sending an alert?
    If yes, then you can have a alert rule, not to trigger alerts on a failure (And to raise an exception based on the result from RFC loookup).
    If your requirement is not to make the message fail, then you have to go for the ccBPM route.
    Best Regards,
    Ravikanth Talagana

  • CRM_IC :: Net Price become zero after EDIT.

    Dear All,
    I am facing a problem that; in the transaction CRM_IC, when I create a Sale Order with one (or more) line item(s) and providing a valid value in the field Net Price. If we save it, it will get saved successfully. But If I press the EDIT button assosiated with the screen, then the Net Price will become zero.
    Also it is observed that, the issue happens for German country and for rest it is working properly
    Can anyboby help me..
    Regards
    Ullas Unnikrishnan

    I solved this --- I noticed that I had siRoot.DocumentGrossAmountsIndicator set to false but creating the root node (newSI = SupplierInvoice.Create(siRoot)) turned that back to true again for no apparent reason. My guess is that having this set to true, i.e. all values are gross, dynamically sets all net fields to read-only. Once I discovered this it was as simple as setting the indicator back to false post-creation of the root node, and then net price fields were accessible again.

  • Error in Create 'New OC4J Instance'

    First time i created the oc4j instance. and Then deleted the instance.
    After that i am trying to create the same instance it is showing the error "unique Constraint error". I checked the following things,
    1. There is no directory of that instance under "<oracle_home>/j2ee"
    2. There is no entries in opmn.xml
    After that even if i specify the different name, it displays the following error,
    "Internal Error Instance creation failure. Root Cause: No config data persisted for component orionp.."
    Can any one suggest what could be the problem/solution?
    Thanks Ramesh

    Hi Jason,
    Thanks for your help.
    I tried DCM tool but it is giving the same error. Is there any other tool to resolve this problem?
    Have you worked on Oracle Content Management SDK (Oracle CM SDK)?
    Actually, I am currently working on Oracle CM SDK. I have to dvelope an Content Management application (like WebstarterApplication which is provided)from scratch which can enable end user
    1. To browse through the documents in the repository.
    2. To open the documents form the repository itself.
    3. To edit and save the document in the place in the repository.
    I found that in WebstarterApplication (an CM SDK Application which is provided as demo), 1st and 2nd features are there but 3rd one is not.
    So, I am going to develope an application from scratch.
    Then is it necessary to create an OC4J Instance?
    Please suggest me what should be the steps to be followed to develope such an application from scratch.
    Thanks.

  • Net Unit Price of Invoice Item Not Kept/Deleted

    Hello everyone,
    Yesterday I had an issue with a supplier invoice uploader I've created --- it uploads consistently which is nice, but for some reason the unit price is disappearing on me. I've got the following lines:
    in which 'row.zItemNetUnitPrice' is decimal (currencyCode is always going to be GBP in this case, so I figured I didn't need it) and row.zAmountOrdered is obviously a Quantity type. Now, here's the strange part: when 'newSIItem' is created using siItem, the unit price is deleted --- as in, immediately after creation of newSIItem, the unit price is set to 0.00. But the amount ordered is kept as it was set. So obviously that's weird, and is causing all my invoice items to be created as zero price --- you'll agree that's not very helpful.
    What's also strange is that, in order to remedy this I tried to just set the unit price to what I wanted AFTER newSIItem was created, as according to the repository explorer it's not read-only. This worked --- up until I set the account assignment type, at which point it got set BACK to zero as follows:
    As you can see in the debugger, it says 'changing invoice price not possible...'. --- but the net unit price field isn't read-only. So my overall question is: what the hell is going on? Any help would be greatly appreciated. Attached is my entire mass-enabled AfterModify script and the XML file I'm using as part of a file input run on the custom business object to which this script belongs. Thanks!
    Lewis
    EDIT: I tried moving 'newSI.NetUnitPrice.Amount.content = row.zItemNetUnitPrice' to after the account assignment --- it seems it was invalidated by any subsequent command, even to the point that having it directly before setting gross amount to total gross amount would still not work. I also tried setting net amount instead of net unit price --- the debugger specifically told me that net amount is read-only. But the repository explorer says it has write access. Anyone able to shed light on this?

    I solved this --- I noticed that I had siRoot.DocumentGrossAmountsIndicator set to false but creating the root node (newSI = SupplierInvoice.Create(siRoot)) turned that back to true again for no apparent reason. My guess is that having this set to true, i.e. all values are gross, dynamically sets all net fields to read-only. Once I discovered this it was as simple as setting the indicator back to false post-creation of the root node, and then net price fields were accessible again.

  • Help with Application Module

    I have created 3 application modules
    am1, am2, am3.
    am2, am3 are nested in am1
    Now on trying to access application module instance am2 or am3 in a custom static method in am1 throws this error:
    Exception in thread "main" oracle.jbo.InvalidOwnerException: JBO-25301: Application module is not a root app module but has no parent
         at oracle.jbo.server.ComponentObjectImpl.getRootApplicationModule(ComponentObjectImpl.java:168)
         at oracle.jbo.server.ApplicationModuleImpl.findApplicationModule(ApplicationModuleImpl.java:1295)
         at
    the code is as below incase needed:
    public class AppModule1Impl
    extends ApplicationModuleImpl
    /**This is the default constructor (do not remove)
    public AppModule1Impl()
    /**Sample main for debugging Business Components code using the tester.
    public static void main(String[] args)
    //launchTester("sni.pricing", /* package name */
    // "AppModule1Local" /* Configuration Name */);
    AppModule1Impl am=new AppModule1Impl();
    AppModule2Impl m2=(AppModule2Impl)am.getAppModule2();
    AppModule3Impl m3=(AppModule3Impl)am.getAppModule3();
    /**Container's getter for AppModule2
    public ApplicationModuleImpl getAppModule2()
    return (ApplicationModuleImpl) findApplicationModule("AppModule2");
    /**Container's getter for AppModule3
    public ApplicationModuleImpl getAppModule3()
    return (ApplicationModuleImpl) findApplicationModule("AppModule3");
    Message was edited by:
    Naga Kalyan

    You can't just instantiate an application module with new AppModuleImpl(). You have to set up an application module in a context. Therefor you have to create an root application module which set up all other stuff for the framework.
    The easiest way to set things up is to build an JUnit test case (Business Components Test Suit or Business Components Test Fixture). This will create the fixture class which handles the creation of the root application module and some code how to use it.
    Timo

  • How to clone arch 2.6.5 in Linux to a newHDD(Cloned success)

    Is there a method to clone the arch distro from HDD A to HDD B?  Linux related, no windoze.

    The downloaded tar bz2 is listed here and am not sure I can run it in arch:
    --------------------------------------------------------------------------------------------------------tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/CVS
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/debian
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/intl
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/macros
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/po
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/redhat
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/src
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/tools
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/ABOUT-NLS
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/aclocal.m4
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/AUTHORS
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/autogen.sh
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/BOOT-ROOT-creation.txt
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/BUGS
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/ChangeLog
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/config.guess
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/config.h.in
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/config.rpath
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/config.sub
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/configure
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/configure.ac
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/COPYING
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/depcomp
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/FORMAT
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/FUTURE
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/gettext.h
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/INSTALL
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/install-sh
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/libintl.jar
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/ltmain.sh
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/Makefile.am
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/Makefile.in
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/missing
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/mkinstalldirs
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/msgunfmt.tcl
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/PACKAGES
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/partimage.lsm
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/README
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/README.partimaged
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/SURVEY
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/TESTS
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/THANKS
    tar:/root/partimage-0.6.2.tar.bz2/partimage-0.6.2/TODO
    I would appreciate any advice concerning the use of this program in arch. If it is useable, the application to the hdd transfer seems feasible.

  • Muse Folder Structure

    I am building an intranet site in Muse. It links to hundreds of PDFs. I need a more complex folder structure to keep them organized. Will Muse ever allow sub-folders to exist inside the assets folder?

    Yep, it's been my main feature request since Muse was in initial beta - not just within the assets folder, they need to allow for folder creation in the root as well.

  • Root Org creation has know address tab and function tab.

    Hi all,
    When creating the Root org using PPOCA_BBP the Address Tab is missing.. and the Function Tab is blank.
    Does any one know the reasons.
    I ran the BBP_ATTR_XPRA400 and then ran the BBP_LOCATIONS_GET_ALL which has brought in all the locations.
    And also executed the report BBP_LOCATION_MIGRATION_SET..
    but still did not help..
    Do you think its an authorization issue..
    Regards
    Manoj A.

    Hi Manoj,
    Once you created this org unit, can you try in PPOMA_BBP to see if those tabs are also missing ?
    Maybe this is because you are in creation mode (PPOCA_BBP).
    Rgds
    Christophe

  • Whole root zone creation

    Hi
    I am building a whole root zone  running Solaris U9  I noticed the   zone does not get installed with  some updated packages  from global zone like the openssl installed in global zone does not get installed in the non global zone and it also requires  sshd user to be defined This results  the ssh not starting in the new zone  I want to know if this  is the default behaviour of whole root zone installation process and how can we  get the zone to be installed with all the  currently running packages  of the global zone Are there any post installation steps that  need to be followed for the zone to boot up correctly. I have run the  post  post installation configuration steps as well
    TIA

    Thanks Walter
    I was wondering  since most of the packages  installations at least  require one interaction   where it asks  for confirmation.  how  the other  packages are getting installed. But mostly that might be the reason
    There is also  the SUNW_PKG_ALLZONES and other related variables   which control  this but  since here the packages which are already installed on global zome are getting installed on NG zone , how these parameters can be changed I could not found  any of these parameters in any pkginfo file in the global zone

  • Xml Schema creation - enforcing one tag at root

    I have a schema such as the one below but this permits any of the global element declarations to start as the root of an xml document.
    I want just <table> to be at the root.
         <xs:element name="table">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element maxOccurs="unbounded" ref="tr"/>
                   </xs:sequence>
                   <xs:attributeGroup ref="attrs"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="tr">
              <xs:complexType>
                   <xs:sequence>
                        <xs:element maxOccurs="unbounded" ref="td"/>
                   </xs:sequence>
                   <xs:attributeGroup ref="attrs"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="td">
              <xs:complexType mixed="true">
                   <xs:complexContent>
                        <xs:extension base="Flow">
                             <xs:attributeGroup ref="attrs"/>
                             <xs:attributeGroup ref="cellvalign"/>
                        </xs:extension>
                   </xs:complexContent>
              </xs:complexType>
         </xs:element>Must I have one global element to allow only one element as the document root?
    i.e.
         <xs:element name="table">
              <xs:complexType>
                   <xs:sequence>
                              <xs:element name="tr">
                                 <xs:complexType ref="tr.c">
                        </xs:element >
                   </xs:sequence>
                </xs:complexType>
          </xs:element>
         <xs:complexType name="tr.c">
              <xs:sequence>
                   <xs:element maxOccurs="unbounded" ref="td"/>
              </xs:sequence>
              <xs:attributeGroup ref="attrs"/>
         </xs:complexType>
         thanks

    I would rather use the flatter approach, the xhtml schema does how does it do it?
    http://www.w3.org/2002/08/xhtml/xhtml1-transitional.xsd
    Maybe I should explain more....
    I wish to validate an xml document with a schema only, I pull the xml from within a propery file (Ugly I know). And keep it in memory.
    The xml has no xsi attributes such as 'schemaLocation' , I tell the paser using a property the location of the external schema.
    The outcome of validation is that the paser allows any globally declared element to be a root element when I wish just to have just one.
    I guess the question is, what within the xml document or the schema tells the parser what the root element is?
    cheers

Maybe you are looking for

  • In CAT2 - The search help populating the input field with wrong data

    Hi Guys, I have created a ZCITY table for which has below 2 field ZZCITY (Code ) (5 Char) u2013 Key field ZZNAME (City Name ) (40 Character) I have added a custom field ZZCITY & ZZNAME in CI_CATSDB. Funtional guy has configured to make ZZNAME as  VIS

  • Price adjustment problem with gamers club unlocked

    I've been told i get the 20% from GCU when i do i price adjustment but i did not after giving a called to CSR earlier in the day. Basically i bought Little Big Planet 3 Day One Edition for $47.99 because that is the default price for me after GCU 20%

  • PDF Output is moving one column to the middle of page (Prod Issue Urgent!)

    Hi All, I have a very funny thing and i could not get any solution. I have a report that is printing data in 6-7 pages. This is very simple and tabular report. 1. I have created one big table with two columns (A and B). 2. Then i have created another

  • Price match on iPhone 5C

    Looking into getting a new phone. The iPhone 5C is on sale for $27 at Sam's Club. Will BestBuy price match this?

  • Changing the ID and password

    My hard drive crashed and I bought a new one on ebay. the computer recognizes it but I don't know the id or password. Any suggestions?