Unable to create org unit using RH_INSERT_INFTY

All,
We are using internal number range to create Org Units in the SAP System. However, there are some org objects present in a legacy SAP system that we need to upload to the new ECC system and create relationships for them .
Following is my code for the RH_INSERT_INFTY function module :
w1000-mandt = sy-mandt.
w1000-plvar = '01'.
w1000-otype = 'O'.
w1000-OBJID = ''.
w1000-infty = '1000'.
w1000-ISTAT = '1'.
w1000-begda = '20090101'.
w1000-endda = '99991231'.
w1000-langu = 'E'.
w1000-short = 'HR_AST5'.
w1000-stext = 'HR Assistant 5'.
append w1000 to i1000.
CALL FUNCTION 'RH_INSERT_INFTY'
  EXPORTING
   FCODE                     = 'INSE'
    VTASK                     = 'S'
   ORDER_FLG                 = 'X'
   COMMIT_FLG                = 'X'
  TABLES
    INNNN                     = i1000
IF SY-SUBRC <> 0.
ENDIF.
I am however unable to create the org units as i get an error saying "Creation of object ID 00000000 is not allowed".
I know im getting this error because im leaving the objid field blank, but I figured since  it is internal number range, i would have to give this as blank .
Could somebody please help me figure out how to load these Organizational Objects and their Relationships ?
Thanks,
Amit

Hi Amit
try to use 'D' as a value of VTASK
or use FM
call function 'RH_OBJECT_CREATE'
    exporting
      langu                     = l_langu
      plvar                     = plvar
      otype                     = c_otype
    EXT_NUMBER                = '00000000'              "???
    SHORT                     = ' '
      stext                     = stext
      begda                     = begda
      endda                     = endda
      ostat                     = l_istat
      vtask                     = 'B'
    GUID                      =
    KEEP_LUPD                 = ' '
   importing
      objid                     = objid
   exceptions
      text_required             = 1
      invalid_otype             = 2
      invalid_date              = 3
      error_during_insert       = 4
      error_ext_number          = 5
      undefined                 = 6
      others                    = 7.
In this FM u dont need to pass the Object ID and call function
*---if the above steps are succesful update the database
  call function 'RH_UPDATE_DATABASE'
    exporting
      vtask              = vtask
  BUFFER_UPD         = ' '
  ORDER_FLG          = 'X'
  COMMIT_FLG         = 'X'
  CLEAR_BUFFER       = 'X'
  KEEP_LUPD          =
  WORKF_ACTV         = 'X'
   exceptions
     corr_exit          = 1
     others             = 2  .
as VTASK 'B' will create the entry in buffer and it will only commit to database after the secondFM
or u can try with 'D' as VTASK
Hope this will resolve ur issue
Regards
Guds

Similar Messages

  • Organization Staffing - Unable to change org.unit description

    Hi All,
    We are unable to change the short and long descriptions of org.units from the organization and staffing interface. Whereas we are able to change it from the expert mode. If we are changing the descriptions, on pressing 'Enter Key' or on 'Saving' data, system brings back the descriptions as 'New Org Unit' and 'New Organizational Unit' as short and long descriptions. Then we have to go to expert mode for changing it. Any solution ?
    Thanks
    Sreeja

    Try this:
    I presume you have a root Org Unit
    --in Goto menu (on top of the Org Unit etc where you see other icons such as one level up, etc) select Organizational Structure option
    --place your cursor on the root Org Unit and click Create icon - that brings up a small screen which reads "Create Org Unit" -- it should also have validity date as well as Short Text and Long Text
    --Make all the entries and save
    Pl let me know if this has worked for you or if you have a differnet scenario
    As such this is very simple
    remember to reward points

  • How to create Handling Unit using Process Order no. & Packing Instruction

    Hi experts,
    Please guide me how to create Handling Unit using Process Order number & Packing Instruction reference?Noramlly this is done using standard transaction 'COWBPACK'.
    ANY FUNCTION MODULE OR BAPI TO DO THIS.
    if any solution please explain with proper example..
    Thanks In advance
    Thanks,
    Yogesh

    Hi experts,
    Please guide me how to create Handling Unit using Process Order number & Packing Instruction reference?Noramlly this is done using standard transaction 'COWBPACK'.
    ANY FUNCTION MODULE OR BAPI TO DO THIS.
    if any solution please explain with proper example..
    Thanks In advance
    Thanks,
    Yogesh

  • Hi Folks,   I have a problem with OBIEE EM, There in Enterprise Manager i am unable to navigate into the options like when i clik on any Tab it is not working and even  i am unable to create a report using analysis.

    Hi Folks,
      I have a problem with OBIEE EM, There in Enterprise Manager i am unable to navigate into the options like when i clik on any Tab it is not working and even  i am unable to create a report using analysis.
    Thanks in advance

    i have also tried that but no use can u give me any other way.......

  • Unable to create web reports using WAD in BI 7.0

    We are unable to create web reports using WAD in BI 7.0 because of the missing BI metadata. Please take a look at the error below .

    didnt see the error??

  • HRMD_ABA - create org unit and matching BP automatically

    HRMD_ABA05 IDOC creates org unit but not with BP  as expected.               
    Note 550055 has been read.
    The settings in t77s0 seem to be OK. Maybe I go something wrong ?
    report HRALXSYNC can be run  and it will  create the BP from the ORG Unit.
    So why doesnt the orginal create via IDOC result in BP as expected/documented.
    ABAP STACK is 7.10 sp4
    Any tips on what to check appreciated.
    Cheers
    Phil

    Hi Kai
    Into Master data->Bussines partner->Integration Business partner-Organizational managment, there set up follow parameters:
    HRALX     OPROL     BUP004     Business Partner Role (Organizational Unit).
    ORGEH     PROLE     BUP004     Role of organizational unit in business partner
    Try with both parameters, it is if you activate HR-CRM integration.

  • Display of total ansal for each org unit using the sdepth (depth level)

    Hi all,
         We have a requirment in which we will be getting all the active employees related to a perticular org unit then  For every PERNR,we need to  find (as of run date) the org ID on PA0001- ORGEH and total the dollars at the org unit ID level started at the org unit defined on field ORGID and only as far down as defined on selection screen field SDEPTH.
           Example: $10k under Dept D, $9k under Dept C, $8k under Dept B and $7k under Dept A. If field SDEPTH was set to blank, each department would be assigned the above stated budget amount. If SDEPTH was set to 3, the budget would stop at the third level down the org chain (assuming A is the org unit defined in field ORGID, org unit C would be the third org down the chain). The total budget at level C would incorporate any dollars calculated from employees that fall below this org unit in the structure. In this example, the total for org unit C would be $19k, B would remain at 8k and A at 7k.
        We are making use of the FM :  RH_STRUC_GET  to get all pernr numbers related to a perticular org unit and sub level units separately and also RP_ANSAL_FROM_WAGETYPES for getting ansal based on the wahge types (multiple wage types can be provided by the user on the selection screen) .
    Please let me know how can i achive the requirement.
    Regards,
    Zareena.
    Edited by: zareena molla on May 20, 2008 7:14 AM

    Thanks Dan.
    Appreciate if you can help on the below points as well.
    1. As part of divestiture/transfer postings: The system is reversing some Previous Year(PY) equity accounts into themselves. How can we get the system to eliminate them by posting to COI Clearing account. Basically, we dont want the PY accounts to be touched?
    For the Retained earnings - PY account, the system is actually posting to COI clearing account.
    These PY accounts are part of some scopes for equitization.
    Is there any link between the "balance carry forward" - list of items table and the divestiture postings?
    Does the system check this table while posting/reversing the equity(PY) accounts?
    2. I want to understand the sequence in which the system posts the documents at the old parent and new parent (group) level.
    The same activity number is there  for Total Divestiture, total transfer documents posted at new parent level and total divestiture document posted at old parent level.
    Does the system follow bottom up approach? Thereby creating total divestiture document at old parent level.
    Followed by documents at upper level (new parent level)
    Also , at the upper level(new parent level), does it post documents in the way they are shown in the log? (We havent changed the default sequence maintained in UCWB - COI settings). so it will post first consolidation doc, followed by total divestiture, followed by total transfer docs at the new parent level?
    Is this the reason for the double value being posted at new parent for equity holding data?
    Will studying the statistical items (corresponding to eliminated equity holding items) be relevant here to understand why at upper level there is double the value being posted by system?
    Thanks.

  • Creating org unit under group???

    We are running SAP CRM 7.0. 
    I am fairly new to SAP and CRM in general.
    I was trying to create a BP (Business Partner).  I would of thought a group entailed a major division such as say "FORD MOTOR COMPANY" and within that all the organzations for FORD such as all the sites imagine the following:
    FORD MOTOR COMPANY
       - FORD DETROIT
       - FORD LOS ANGELES
    Etc.
    However when I create a "Group" in transaction BP and save it I can see this as a group.  Now when I create an "Organization" how do I Relate this organization back to the major group?  I see a groupping drop down in transaction BP but that does not list the Group Ford that I just created.  How can I Relate this organization to the group?
    Finally my second question is can we create a group within another group say something to this effect:
    FORD MOTOR COMPANY (Group Level 1)
       - FORD AMERICA (Group Level 2)
            -Ford Detroit (org unit)
            -Ford California (org unit)
       -FORD GERMANY (Group Level 2)
            -Ford Bremen
       -FORD BRAZIL (Group Level 2)
            -Ford Rio De Janerio
    How can I establish this structure if I cannot relate these?  Please I am new to CRM so if you can provide detailed information...
    Thanks so much!

    Hi SD,
    Functional units are reprseneted in OM.Please check allowed relationship per object type.tcode OOIT..Org units and Position relationship can be assimilated using this.
    please check T778T,T777E(Table  T777E contains all the relationships permitted between organizational objects)
    Table  T7791 contains information about which SAP organizational object types should be linked with positions, which with jobs and which with organizational units.
    objects and relationships are building blocks of OM(1000 and 1001)
    please refer to the below link for more details
    https://cw.sdn.sap.com/cw/docs/DOC-39190
    Hope this helps.
    No Worries
    KG

  • Creating org,unit

    Hi All,
            Can any plz let me know that while creating organization unit  in Easy Access screen whether we normally use Expert mode or Simple maintenance mode ?
                       Is it up to us to decide which mode to use ?

    depends
    let me tell u a scenario
    ur at the cliets place if u are useing export mode u need to knwo the org unit no , departent no , job number and u shd relate them
    where in simple maintainence i think this much risk will not be there

  • Updating user with Org Units using NSAPI

    We have a requirement where we need to update users with different Organizational Units using an external system. The integration guide lists an NSAPI that might be used for this operation, Create/Update Person. This just says that we need to use the XML received from a Get person details API and use it as a request XML.
    The problem we are facing is figuring out where to place the new Org Unit details in the request XML.Would anyone know about that detail.
    Is this even the correct API for achieving the requirement or are we looking at the wrong thing here

    Hi,
    I've changed the input type to select(multiple) for that field and it works fine when I order it from the portal directly. Its able to set multiple values into the field when an sql query return more than one row.
    The problem only occurs when I use the RAPI for making a request to that service.
    The structure I use for passing data to that field is:
                       <req:Field>
                             <req:name>FieldName</req:name>
                               <req:value>                             
                                  <req:string>Value1</req:string>
                                  <req:string>Value2</req:string>
                               </req:value>
                        </req:Field>
    which is what you've pasted above.
    Even if I stop sending any value to this field and only send values to other single value fields, it still gives the same error message.

  • Unable to create new query using query manager

    Hi friends,
    I have been trying to create a query using query manager for couple of hours but still not able to.I am following the instructions given in oracle Peopletools 8.52 : Peoplesoft query
    Chapter - creating new queries.
    Below are the steps I am going through to create new query:
    Step - I open the component Reporting Tools-> Query->Query Manager , I don't get the tabbed pages one for search an existing query and another for create new query.
    Please follow this link to see how the page is displayed in first step:
    http://uploadpic.org/v.php?img=EvMvVAXX1E
    Step 2 - When I click on create new query link, I am redirected to a page where it asks for record name to add in the query. But, even this page is not displayed as how it supposed to be
    http://uploadpic.org/v.php?img=GzHh3f6krU
    Step 3 - Following the above step, when I click on Person record to add into my query I am asked to select the fields that I want to display in the output.
    But I somehow do not get the proper tabbed pages where individual pages are there to add the attributes to complete the query like adding multiple records, fields, query, expressions, prompt...etc
    http://uploadpic.org/v.php?img=Wbbla3Q3jE
    I am neither able to select multiple records in my query nor able to customize my query to get the desired results.
    Below is the query that I want to create using query manager:
    SELECT P.EMPLID,P.BIRTHDATE, N.NAME, A.ADDRESS1, A.ADDRESS2, A.CITY
    FROM PS_PERSON P, PS_NAMES N, PS_ADDRESSES A
    WHERE P.EMPLID = N.EMPLID AND
    N.EMPLID = A.EMPLID AND
    P.BIRTHDATE BETWEEN to_date('1990/1/1','yyyy/mm/dd') and to_date('1991/1/1','yyyy/mm/dd');

    Hi,
    As I cannot access your screenshot by the blocking of company firewall rules.
    I'm guessing currently you are using PT 8.52.00 version, correct?
    This should be a bug, that you need to apply the 8.52.0X patch, not sure which patch fix this, you can apply the latest one to solve this issue for no tab page of query manager. (PT 8.52.06)
    Hope this helps.
    Thanks,
    Saxon SI

  • Error: Unable to create socket(While using Mail Adapter in receiver side)

    Hi Experts,
    I have tried the File to Mail scenario. While component monitoring the Sender communication is working fine but the receiver communication is giving error like Unable to create socket. Please help me to solve this error.
    Regards,
    Nutan

    HI,
    before using the mail adapter have you specified all the attributes porperly as well as have setup the SMTP Exchange Server address
    For FAQs about the mail adapter, see SAP Note 856599.
    Please read the below thread, it might be helpful/
    SOAP Receiver   java.io.IOException: unable to create a socket
    Thanks
    Swarup

  • Unable to create recovery disk using media creation on hp pavilion g6 2236tx

    i am attempting to make recovery disk of my notebook through hp media creation i am using DVD disks for the same but the problem is that when the processing bar reaches almost 99percent it shows error message that unable to create recovery disk try again later!
    please help!

    Hi saksham_jain,
    Welcome to the HP Forums!
    I would like to take a moment and thank you for using the forum, it is a great place to find answers. For you to have the best experience in the HP forum, I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I understand that you tried to create your recovery DVDs using HP Media Creation and it failed. Here is  a document to assist you with creating the recovery DVDS. Creating Recovery Discs or Saving a Recovery Image to a USB Flash Drive (Windows 7). 
    If this should fail for any reason, please provide the error and any other details.
    Sparkles1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!

  • Create org structure using XPress

    Is it possible to create an org structure using Xpress? For example, if the input parameter has the following:
    Top:MyCompanyName:MyDepartment
    then it should create a new org name:
    MyCompanyName
    and under this is another org (which represents the department)
    MyDepartment
    i.e.
    MyCompanyName
    ---->MyDepartment

    Here's the problem to your solution dude!!!
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE Waveset PUBLIC 'waveset.dtd' 'waveset.dtd'>
    <Waveset>
    <ObjectGroup name='MyCompanyName'>
    <MemberObjectGroups>
    <ObjectRef type='ObjectGroup' id='#Top#' name='Top'/>
    </MemberObjectGroups>
    </ObjectGroup>
    <ObjectGroup name='MyDepartment'> <MemberObjectGroups> <ObjectRef type='ObjectGroup' id='#Top#' name='MyCompanyName'/> </MemberObjectGroups> </ObjectGroup>
    </Waveset>
    Let me know if this doesnt work!!
    Yash

  • Unable to create new connection using SAP Business One

    Hi all,
    I am unable to make a connection using the new SAP Business One connetion provided with the 8.8 release of SAP Business One Crystal Report Integration Package.
    There are no Companies available to select from.  When I try to manually type in the company name, the logon fails.  If I then press "Cancel", I get a message that Crystal reports encountered a problem and needs to close.  The details of the error refers to the following DLL: crdb_b1.dll.
    The connection is successful from another PC that only has the Client installed (and uses the License server on our server, which also contains the databases.)
    I have a local installation with my own license server.  I am not even able to connect to the database on my local PC.
    Please can anyone explain why this isn't working?
    Regards,
    Rikard

    Hi Rikard,
    You may get better help if you post your question to the Business One forum. I can' t move your post.
    Thank you
    Don

Maybe you are looking for

  • CAn You Sync Two iPhones to the same iTunes Account?

    Has anyone been successful in syncing two iPhones to the same iTunes account. I am the main user of our Mac and my wife just uses it for email and internet browsing. Basically she uses my user account and therefore we share one contacts list, one cal

  • I need a statistics program

    I need a statistics program for my mac, I found risk 1.4 for apple in the web page, but I didn,t install in my Mac.

  • Error when calling add method of UDO object

    Hi all i've created a UDO object. when i invoke the method "add" i get the following error message: "Ref count for this object is higher then 0" anyone can tell me how to fix this? appreciate the help Yoav

  • Double spaces after checking out the code

    Hi Guru's, I am seeing double spaces in my code after checking out in cvc. Could anyone please help me how to remove the spaces. Thanks.

  • Custom Process in Start process optoons

    All, We are working on HCM forms and prcesses. For MSS when the manager clicks on start process, chooses an employee and then for selecting a process , a pop up with available options of process comes. Howe can we add a  custome entry into this popup