BAPI or FM to create OrgUnits and positions in Organizational Management

Hi all,
is there a way to create a OrgUnit or a Position in the Organizational Management  without using the user interface (ppome)?
Does an BAPI or function module exists to create a position or OrgUnit in the background?
Or how can I realize this?
Thanks for any help
regards,
hans

Hello Ahm,
I do something very similiar with your code. I do something like this:
CALL FUNCTION 'CRM_ORGMAN_CREATE_REL_OBJ'
    EXPORTING
      FATHER                    = ls_father_objec
      OTYPE                     = 'S'
      BEGDA                     = sy-datum
      RELAT                     = '003'
      SHORT                     = 'shorttxt'
      STEXT                     = 'longtxt'
    IMPORTING
      NEW_OBJECT                = ls_objec
    EXCEPTIONS
      ERROR_DURING_INSERT       = 1
      CORR_EXIT                 = 2
      NO_ACTIVE_PLVAR           = 3
      PLVAR_NOT_VALID           = 4
      OTYPE_NOT_FOUND           = 5
      OTYPE_NOT_ALLOWED         = 6
      NO_BASE_AUTHORITY         = 7
      NO_STRU_AUTHORITY_OBJID   = 8
      NO_AUTHORITY              = 9
      NO_AUTHORIZATION          = 10
      FORBIDDEN_RELATION        = 11
      WRITE_ERROR_WITH_RELATION = 12
      INFTY_NOT_ALLOWED         = 13
      BEGDA_GT_ENDDA            = 14
      SHORT_AND_STEXT_EMPTY     = 15
      GENERAL_ERROR             = 16
      OTHERS                    = 17.
And it works perfectly. Can you try it?
Kind regards,
Bruno

Similar Messages

  • BAPI to create OrgUnit or Position in Organizational Management (ppome)

    Hi,
    does an function module exits to create an OrgUnit or Position in the Organizational Management in ECC 6.0?
    Is there a similar fm like CRM_ORGMAN_CREATE_REL_OBJ as in CRM?
    Or can I also insert just an entry in Table for Infotype 1000 and 1001(Relationships) to add an Object to the OrgManagement?
    regards,
    hans

    Did you find out how to do this?
    I am looking for the same, but I also need a "Remote enabled" BAPI/RFC
    Thanks

  • Transaction code to create job and position in LSMW

    Hi,
    I am looking for transaction codes that can be used in LSMW to Create Job and Position. I have used PPSC, but instead of creating Job and Position, It creates org unit although I pass in the parameter for ObjectType.
    I would appreciate if anyone can help me with this problem.
    Thank you in advance,
    Sunny

    Hi,
    Check this link
    http://help.sap.com/saphelp_46c/helpdata/en/0c/e785d8f8af11d2a61f0060087832f8/frameset.htm
    Thanks & Regards,
    Judith.

  • Bapi or FM to create,change and delete Contact persons for vendors

    Dear Experts,
    We are replicating the Contact persons details from SUS(SRM) to ECC, When a Contact person is create,changed or deleted the data should be replicated in ECC. We are doing custom development to do this, I need to know is there any function module or Bapi which I can use to create , change or delete the contacts persons for a vendor.
    I tried using BAPI_ADDRESSCONTPART_CHANGE, BAPI_ADDRESSORG_SAVEREPLICA for changing but its doesn't covers few fields like time zone etc. For deletion I tried  WY_KNVK_SINGLE_DEL_FROM_BUFFER its too not helping me .
    Please let me know is there any bapi or fm to do these process or we can go for BDC.
    Thanks & regards,
    Santhosh.R

    Hi Santosh,
    Can you please tell me what Business Scenario is asking you to consider the Time Zones .
    If you know the Customer Number you can very well get the country and there are various FM's to get the time zone based on a country .
    Now Call the FM (as wrote by you ) based on the TIme Zone condition,
    Please enlighten me if i am incorrect.
    Thanks
    Sri

  • BAPI for create IR and GR

    Hi All,
    I would like to use the BAPI to create the IR and GR.
    But i don't know which BAPI is use for create the IR and GR . Could you mind give any information about this?
    Regards,
    Luke

    Hi Luke,
    The function module "BAPI_GOODSMVT_CREATE " would perform the task.  Please refer to the following link.
    http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm
    Regards.

  • Creating a new job and position prompts customizing request...

    Dear All,
            I created a Job and Position through PP01 transaction. I am facing 2 issues while doing so...
    1. System prompts for Customizing request when i try to save the new entry.
        What table/settings do i need to maintain for turning of the customizing request promptings.
    2. Once i save the entries(after entering some dummy customizing requests), when i check the
        HRP1000 table for the new jobs and positions... The table entry shows 2 records for each Job and     
        position. One entry with Plan version '.:' and another with active Plan version '1'.
        I need to have just one entry in HRP1000 table for each job/position with ACTIVE plan version.
       I checked T77S0 table, it has active plan version maintained against the PLOGI-PLOGI entry.
       Please let me know what table i need to maintain to handle my requirement.
    Regards
    Nanda

    Hi Nanda,
    When you create new job or position in sandbox system it will not ask for the request number,since you generally dont transport the objects from sandbox to test system.
    When you create a new job or position in development system, it will always ask for request number. This is because, in most of the cases, you need to transport the job and position to test system and then to production system.
    Without a customizing request  you wont be able to transport those changes to next system.
    Thanks,
    Supriya.

  • Creating a new position and updating IT 1028 using HCM processes and forms

    I have to create a new position and update the related infotypes using the design time framework of HCM processes and forms. The problem I am facing is the info type 1028 is not a part of the de coupled infotype framework and does not appear in the service fields list. How can I update the infotype 1028? I was thinking of updating it using the FLUSH method of the class implementing the ADV services interface IF_HRASR00GEN_SERVICE_ADVANCED by calling the function module RH_INSERT_INFTY. But, how do I get the position ID created? Is there any other way of achieving this? Please help as soon as possible.

    HI
    Create one Function Module to return all the vacant positions and load that in a drop down.
    For IT1028 you have to update via the RH_INSERT_INFTY.
    Kind Regards,
    Mukesh

  • BAPI to create Delivery and GI

    Hello Expert,
    I need to create the Delivery and Good Issue ata the same time with the information imported from another system. Do you know if there is a BAPI or RFC to create both documents (Material document and Accounting Document for Delivery) in only one step?
    Thanks and Regards,
    Pablo

    Hi,
    Have you tried "BAPI_GOODSMVT_CREATE" (Post goods movements).
    If doesn't solve your problem you can create a wrapper BAPI using "BAPI_GOODSMVT_CREATE" and "BAPI_ACC_GOODS_MOVEMENT_POST" (Accounting: Post Goods Movement). Call one after the other.
    Regards,
    Srilatha.

  • BAPI needed to create invoice and creditmemo

    Hi all,
          Is there any BAPI available to create invoice and creditmemo when material no is not given.
          My requirement is to create credit memo and  invoice through FB75 or FB70 transaction. I am able to achieve the same through BDC. Is there any BAPI availabe for the same to create credit memo or invoice to avoid BDC.
          Input given to the program is a excel file in which i have the following fields
          Transaction -- which separates credit memo or
                         invoice
          Company code, purchase order number, GL account
          number, cost center, profit center, amount etc...
    Please let me know some pointers.
    Regards,
    Karthik.

    GN_INVOICE_CREATE or BAPI_BILLINGDOC_CREATEMULTIPLE
    Please find the sample code for Billing document BAPI.
    t_billing-salesorg = vbak-vkorg.
    t_billing-DISTR_CHAN = vbak-vtweg.
    t_billing-DIVISION = vbak-spart.
    t_billing-DOC_TYPE = vbak-auart.
    t_billing-ref_doc = vbak-vbeln.
    t_billing-ref_item = vbap-posnr.
    t_billing-doc_number = vbak-vbeln.
    t_billing-ITM_NUMBER = vbap-posnr.
    t_billing-ordbilltyp = 'BILLING TYPE'.
    t_billing-price_date = sy-datum.
    t_billing-ref_doc_ca = vbak-vbtyp.
    t_billing-sold_to = vbak-kunnr.
    t_billing-material = vbap-matnr.
    t_billing-plant = vbap-werks.
    APPEND t_billing.
    CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
    TABLES
    billingdatain = t_billing
    return = t_return
    success = t_success.
    commit work.
    Regards

  • Is there any bapi that i can create sales order and date

    Hi Gurus
    is there any bapi that i can create sales order and date .

    This appears to be related to Problem With BAPI_SALESORDER_CREATEFROMDATA but without the detail. If you want to ask again, please add that detail.
    locked
    Rob

  • Performance of BAPI's to create Leads and Activities

    Hi,
    I'm using the BAPI's BAPI_LEAD_CREATEMULTI and BAPI_ACTIVITYCRM_CREATEMULTI to create Leads and Activities.
    The scenario is:
    1) The input file has 3 types of records coming in
       (a) Leads only
       (b) Activities only (Prospect Lead activities)
       (c) LEad + Activity (rescheduled activities)
    2) Depending on the type of record, I'm required to create the relevant order and if required link the lead and activity (scenario - C)(using the FM CRM_DOC_FLOW_MAINTAIN_OW).
    3) In addition to this, I'm also required to link campaign elements to both Leads and Activities (done within the BAPI's BAPI_LEAD_CREATEMULTI and BAPI_ACTIVITYCRM_CREATEMULTI in the doc_flow structure).
    ISSUE:
    The issue that I am facing is that it is taking a lot of time to create these. I'm basically running a custom conversion program for LEads and Activities. The rate is almost 6-8 secs for each record, and we have about 500,000 records to be converted.
    Also, I'm having to use the following function modules after the creation of Leads and Activities:
    1) CRM_MA_ACT_SAVE - to set the status of the activity to OPEN or IN PROGRESS. This is being done after the creation of an activity because the BAPI BAPI_ACTIVITYCRM_CREATEMULTI seems to always default the status to OPEN.
    2) CRM_ORDER_CHANGE_STATUS - to set the status of the LEad to OPEN or IN PROGRESS. This is being done after the creation of an activity because the BAPI BAPI_LEAD_CREATEMULTI seems to always default the status to OPEN.
    3) BAPI_LEAD_ATT_CHANGE - to set the STATUS SINCE field for a Lead. This is being done because I'm unable to set the STATUS_SINCE field using the BAPI BAPI_LEAD_CREATEMULTI.
    The logic being used within the code is to process a batch of records (500/1000 records - value is an input selection parameter) from the input file in one go, and then commit all of them after their creation. After this, the next batch of records is again processed and committed.
    We've also tried to create LEads and Activities record by record and not in batches... but the performance still remains the same.
    I'm not sure what is slowing down the process. If whether it is all the commits, or if it is the additional use of the FM's to change the 'status' and 'Stauts-since' values after having committed the leads and activities.
    When we look at the LEads and Activities that are created, everything looks fine. It is only that the performance is really slow.
    Thanks for all your patience and suggestions,
    - Akarsh

    In order to improve the performance you could use several processes. Just start you conversion-program with several variants at the same time.
    Last time I converted 80.000 contracts it took me 6 hours with 5 processes.
    Hopes this helps.

  • Performance of BAPI's to create Leads and Activities in CRM

    Hi,
    I'm using the BAPI's BAPI_LEAD_CREATEMULTI and BAPI_ACTIVITYCRM_CREATEMULTI to create Leads and Activities.
    The scenario is:
    1) The input file has 3 types of records coming in
    (a) Leads only
    (b) Activities only (Prospect Lead activities)
    (c) LEad + Activity (rescheduled activities)
    2) Depending on the type of record, I'm required to create the relevant order and if required link the lead and activity (scenario - C)(using the FM CRM_DOC_FLOW_MAINTAIN_OW).
    3) In addition to this, I'm also required to link campaign elements to both Leads and Activities (done within the BAPI's BAPI_LEAD_CREATEMULTI and BAPI_ACTIVITYCRM_CREATEMULTI in the doc_flow structure).
    ISSUE:
    The issue that I am facing is that it is taking a lot of time to create these. I'm basically running a custom conversion program for LEads and Activities. The rate is almost 6-8 secs for each record, and we have about 500,000 records to be converted.
    Also, I'm having to use the following function modules after the creation of Leads and Activities:
    1) CRM_MA_ACT_SAVE - to set the status of the activity to OPEN or IN PROGRESS. This is being done after the creation of an activity because the BAPI BAPI_ACTIVITYCRM_CREATEMULTI seems to always default the status to OPEN.
    2) CRM_ORDER_CHANGE_STATUS - to set the status of the LEad to OPEN or IN PROGRESS. This is being done after the creation of an activity because the BAPI BAPI_LEAD_CREATEMULTI seems to always default the status to OPEN.
    3) BAPI_LEAD_ATT_CHANGE - to set the STATUS SINCE field for a Lead. This is being done because I'm unable to set the STATUS_SINCE field using the BAPI BAPI_LEAD_CREATEMULTI.
    The logic being used within the code is to process a batch of records (500/1000 records - value is an input selection parameter) from the input file in one go, and then commit all of them after their creation. After this, the next batch of records is again processed and committed.
    We've also tried to create LEads and Activities record by record and not in batches... but the performance still remains the same.
    I'm not sure what is slowing down the process. If whether it is all the commits, or if it is the additional use of the FM's to change the 'status' and 'Stauts-since' values after having committed the leads and activities.
    When we look at the LEads and Activities that are created, everything looks fine. It is only that the performance is really slow.
    Thanks for all your patience and suggestions,
    - Akarsh

    In order to improve the performance you could use several processes. Just start you conversion-program with several variants at the same time.
    Last time I converted 80.000 contracts it took me 6 hours with 5 processes.
    Hopes this helps.

  • BAPI to create PO and GR

    Hi,
    Can anybody send me some sample code to handle multiple files in application server. My requirement is to create an interface to create PO and GR from the file residing in Application server. Multiple files will be in application server. No selection screens are there. BAPI used are BAPI_PO_CREATE1 and BAPI_GOODSMVT_CREATE. And If anyone has already created this interface, please give me some idea of how to read multiple files and if possible send some sample code.
    Any help will be greatly appreciated.
    Regards,
    Naveen

    Hi Naveen,
        Go through this link.
    BAPI_PO_CREATE1
    Re: Proble in Creating Multiple Item PO using BAPI_PO_CREATE1
    BAPI_GOODSMVT_CREATE
    http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm
    http://www.4ap.de/abap/bapi_goodsmvt_create.php
    Reward Points For the Helpful.
    Regards,
    Harini.S

  • SAP HR load qualifications for job and positions

    Hi Everyone.
    I have one specific requirement, i have to create program to load qualification for a set of jobs and positions. can some one guide me if there is a function module or a BAPI or a BDC transaction to do it. For example  rep RHPEPRFM. any help is greatly appreciated

    Hi,
    you can use RH_INSERT_INFTY.
    Regards,
    Amit
    Reward all helpful replies.

  • Can you change the units used for size and position in layout editor?

    Hello,
    In Aperture 3.4, does anyone know if you can change the units used for size and position in layout editor?  The page is set in inches, but the image size and position are given in centimetres and I would prefer to work all in inches to create custom layouts.  I can't see any way to change this.  If anyone knows how it would be much appreciated.  Thanks!

    Aperture uses the unit settings defined in the System Preferences.  Set the "Measurement Units" in the "Region" tab of the "Language & Text" preferences to "US"; the Aperture will display the Size & Position in inches, if it is the "Book" layout manager you are asking about.
    Merry Christmas!
    Léonie

Maybe you are looking for

  • The bottom of my screen doesn't work how do I fix it?

    My screen has been cracked for a while now missing a piece of screen in the top and bottom corners of the device. It has been working fine no problems until last night. I think i layed on top of my ipod touch 4g and now the screen doesn't work right

  • How to search for brackets in wildcards?

    Is there any way to search for ALL characters (including punctuation, dashes, and spaces) that are within brackets [ ], including the brackets? For example, after wildcard searching, I would like ALL of  [test1123 abc 7.77]  or [aaa 3_1 abc 7.77] to

  • Script crashing

    Hello folks, I am running a script from mail.app in the rules section. mail.app Version 3.2 (919/919.2) OSX is Leopard 10.5.2, Every time the script runs mail.app closes with an Ignore relaunch or send dialog. This script runs fine in Tiger. Here is

  • Cannot install software for 2nd iPod

    I have iPod software already installed for my 1st iPod. To set up the 2nd iPod I have tried the following: - insert iPod sofware CD that came with the iPod. But when run, it asks if I want to remove the application. I've tried saying OK to remove, th

  • Different number of parses with different providers

    I tried to figure out how could I control number of parsing from MS ADO app. To my surprise it seems that there is no general way to do it. The behaviour is heavily dependent on underlying OLEDB provider, and for some of the providers (Oracle's own i