Create and change hierarchies via ABAP

Hi,
I'm searching for a function module or class which allows me to create and change hierarchies from a abap report.
regards,
Karen

There a number of Standard Function Modules in SE37 :
BUPA_HIERARCHY_BW_CATALOG      Transfer of Hierarchy Directory
BUPA_HIERARCHY_BW_CONSTRUCT    Transfer of BP Group Hierarchy to BW Adapter (Full Upload)
BUPA_HIERARCHY_BW_GET_DETAIL   Delivers Program Names of Exit Routines
BUPA_HIERARCHY_BW_GET_INTRVALS Validity Intervals for Hierarchies That Can Be Loaded
BUPA_HIERARCHY_BW_READ         Read Partner Hierarchy
BUPA_HIERARCHY_BW_TRANSFER     Transfer of BP Group Hierarchy to BW
Do a seach on HIER in se37

Similar Messages

  • Function module to create and change delivery

    Hi,
    I need to create a function module to create and change delivery using the same function module.
    For this I want to call the bapi's BAPI_OUTB_DELIVERY_CREATE_SLS
    and BAPI_OUTB_DELIVERY_CHANGE.
    So what are the variables I need to declare in source code of my function module.
    Can anybody please suggest me.
    thanks,
    Sudheer

    Hi Sudheer,
                      Check this out
    In the BAPI BAPI_OUTB_DELIVERY_CREATE_SLS
    You need to provide
    SHIP_POINT - Goods receiving point for the returned goods.
    DUE_DATE - Delivery creation date selected as december 12
               9999 unless specified.
    DEBUG_FLAG makes analysis of the process earlier .
    call function 'BAPI_OUTB_DELIVERY_CREATE_SLS'
    DESTINATION logsys
    EXPORTING
    SHIP_POINT = 'MD01'
    DUE_DATE = sy-datum
    DEBUG_FLG = 'X'
    importing
    *delivery = lf_vbeln
    *num_deliveries = lf_num
    *tables
    *sales_order_items = lt_order
    *extension_in = lt_extin
    *deliveries = lt_deli
    *created_items = lt_itm
    *extension_out = lt_extout
    *return = lt_return
    For the BAPI_OUTB_DELIVERY_CHANGE.
    Please read the documentation of the function provided there.
    A Wiki To support your need.
    Link: [Wiki|https://wiki.sdn.sap.com/wiki/display/ABAP/Changeoutbounddelivery+%28VL02%29]
    hope your query resolves soon.
    Have a best day ahead.

  • Created and changed columns strategy in HtmlDb?

    I have two date columns on all my tables created and changed. Created is not null. The columns are maintained by database triggers. I would like for these two columns to be displayed but not changed in a form.
    I have tried different ways to do this:
    1) Text Field (Disabled, does not save state)
    Create works fine but updating gives an error because the created column can not be null.
    2) Text Field (Disabled, saves state)
    Create works fine but updating gives ORA-01821: date format not recognized. I use a format mask like this: DD.MM.YYYY HH24:MI:SS
    3) Date Picker (use application format mask)
    Works fine but it ignores my format mask and the user can now change the dates.
    Has anybody done this with success? Also it would be nice with a solution that does not involve a lot of code sine I have to do this lots of places :-)

    I got pretty much the same as you can se below. It's not a problem with the triggers. But I got it working now with the :new = :old and it don't want to waste more time on this. But thanks a lot for your help!
    create or replace trigger tilbud_under_kategori_b_ins_r
    before insert on tilbud_under_kategori
    for each row
    begin
    if :new.id is null then
    :new.id := util.getSeqNextVal;
    end if;
    if :new.oprettet_af is null then
    :new.oprettet_af := util.getUserName;
    end if;
    if :new.oprettet_tidspunkt is null then
    :new.oprettet_tidspunkt := sysdate;
    end if;
    end;
    create or replace trigger tilbud_under_kategori_b_upd_r
    before update on tilbud_under_kategori
    for each row
    begin
    :new.oprettet_af := :old.oprettet_af;
    :new.oprettet_tidspunkt := :old.oprettet_tidspunkt;
    if :new.opdateret_af is null then
    :new.opdateret_af := util.getUserName;
    end if;
    if :new.opdateret_tidspunkt is null then
    :new.opdateret_tidspunkt := sysdate;
    end if;
    end;
    /

  • User Exit For PR Create and Change

    Hi,
       Please help me for finding User Exit while creating Purchase Requisiton(Me51/Me51n)  and aslo changing Purchase Requisiton(Me52/Me52n).
    Mainly i want to exit for validating Plant and material code while creating and changing PR.
    Thanks,
    Sunil sahoo

    Hi,
    Use the exists
    M06B0001  Role determination for purchase requisition release
    M06B0002  Changes to comm. structure for purchase requisition release
    Regards,
    Nandha

  • How to give authorization for create and change particular Condition Type

    Hi...
       In my requirement is , Only one user can be authorized to create and change a particular condition type 'ZABC' in vk11 and vk12 .
    For remaining condition type can be used as in normal .
    How to do this ? How to give authorization for a particular user for particular condition type ?
    Plz guide me ..
    Thanks in advance .
    Deepa .

    Hi Deepa ,
    u can check A.Object V_KOND_VEA, in user profile u can assign condition type or tables.
    have a word with ur basis guy , so he can help u in better way.
    aand also ref FM SD_COND_AUTH_CHECK
    Regards
    Prabhu

  • How can create and change PCA line items.

    How can create and change PCA line items.
    Please tell me the process and t.codes.

    If you are in version < 4.7 ee then use 9KE0 tcode for passing profict center entries or trasnafer of balances from one profit center to another.
    If you are in new GL regular FI entry like FB50 will hold good for account types "S"

  • Is there a Business Object for Sales Order Create and Change VA01 and VA02

    Hi experts -
    I am looking for a business object for Sales order create and change VA01 and VA02 respectively?
    Thanks,
    Mark

    Hi Mark,
    I think this question is best answered in [SAP Solutions|/community [original link is broken]; Forums.
    - Subhodeep
    Edited by: Subhodeep on Aug 29, 2009 11:14 AM

  • Function module which uses both BAPI's for sales order create and change

    Please name the function module which uses both BAPI's for sales order create and change.
    BAPI_SALESORDER_CREATEFORMDAT2
    BAPI_SALESORDERCHANGE

    Yup.
    you must write a piece of code for this.
    with if else condition.first check if SO is exsist than use second FM to change it else create new SO from first FM.
    logic somethig like this.
    Amit.

  • How to give authorisation to create and change request?

    How to give authorisation to create and change request? Which T Code is needed to create request and change request?
    Rajkumar.

    Hi,
    For creating/changing/displaying change requests, you need to give access for SE01, SE09/SE10.
    You needn't give access to transaction SE03 to all users, only super users should have that access from security point of view.
    Regards,
    Sarita

  • Create a DDic sturcture via ABAP program

    Hello,
    is it possible to create a DDic structure via a ABAP program? I've got the components and component type of the new structure in a table.
    I want to create a DDic structure with this information. Is there function module or a method, with this functionality?
    Thanks for help!
    Matthias

    I need a DDic structure to use this in the exporting parameters of an remote-enabled function module.  Thier isn't it posible to use an none typed parameter, because of the remote.
    I want to create an admin-screen for an tool calls DocFinder. For this tool you need for every DocuSpace an extra structure to return the values.
    We use this tool in an shared systemlandscape so its nessessary to use an remode-enabled function module.
    In the admin-screen it should be able to create an new DocuSpace with its structures and other generatet coding.
    But I've got no idea how to create an structure via programm.

  • How to create a dynamic file via ABAP

    Hi all,
    We have a requirement of storing all internal table data into a temporary file in application server and later the same file will be passed as an input to shell script to meet our business requirement. Here I'm not sure how can we create a temporary file at run time through abap . I'm sure this is certainly possible via Java, Can any one suggest me how temporary file will be create via abap. Also please note that developer shouldn't give this file name any where from selection screen and system itself should create a file with certain name.
    Please advise.
    Thanks

    Hope this helps: [Working with files |http://wiki.sdn.sap.com/wiki/display/ABAP/Workingwithfiles#Workingwithfiles-Workingwithfilesontheapplicationserver] you need to use open dataset stmt to create files in app server..
    if you check the open dataset stmt in any examples in net, you will find the file name which is of type string... to generate a dynamic file name all you need to do is to build the file name dynamically say by using concatenate statements..
    concatenate 'PROGNAME' sy-datum sy-uzeit into <filename>.
    open dataset <filename> for input .

  • Problem in Events (Create and Change)

    Hi all,
    I have developed a worlflow for transaction FV50. Now the problem is that when i create a parking document a mali is sent to approver for approval.
    Now suppose if approver doesn't do any action on the workitem which he had in his inbox and initiator changes the same document then the previous mail has to be removed and new mail has to be present in the approver inbox.
    I tried using fork with two branches.
    In one branch i kept entire flow and in one branch i have created a WAIT for event. It worked i.e. when i create a doc approver is receiving mail..but when i change the same doc then old mail is deleting from his inbox but he is not getting new mail for the changes he made for the document.
    So please help me how to achieve the same.
    Regards,
    Sagar.

    Hi Raj,
    Thaks for ur reply.
    And it helped me a lot.
    One more thing i need to know is regarding FORK. For the first i am using the same in WF.
    As i said In one branch i have whole logic and in other branch i have wait for event.
    Do i need to do have the same process which is done for create in change branch also.
    Please explain how FORK works.
    Thanks.
    Sagar

  • How can we create and change RSS XML?

    1. What tools can we use to create RSS XML pages?
    2. The pages should use data of the other XML pages generated by the XML-forms (e.g. News XML pages)?
    3. How can we setup and change RSS XML templates (e.g. add new tags, change properties and values)?

    Hi
    Is  there any way to create Rss for personal blogs and add it into our portal. That means we can add it newly by clicking button.
    Thank You
    Regards
    Krishnamurthy

  • Table for Created and Changed Requests...

    Dear all,
    I need a program to fetch the created date and changed date for given
    1. Tcodes
    2. tables
    3. structures
    4. domains
    5. bapi
    6. badi
    7. smartforms
    8. scripts
    etc.
    Can you plz suggest me from which table i could get all these details.
    I tried TRDIR and i have got the dates for reports.
    Regards
    Sivaprasad...
    best suggestions will be rewarded with points.
    Edited by: Sivaprasad ML on Aug 4, 2008 2:20 PM

    Hi,
    Check this out
    RSRREPDIR                Directory of all reports
    TADIR                          Directory of Repository Objects
    TCDIR                          Control Directory
    TDDIR                          Active field exits for data elements
    TFDIR                          Function Module
    Thanks,
    Muthu

  • Can we use IDOC_INPUT_ Message type for creating and changing the document

    Hi,
    I have a requirement to create or change the requisition data.
    Can I use IDOC_INPUT_PREQCR01 function module for both the purpose.
    OR shall I go for custom function module by using BAPI function modules to create or change the data.
    Please help me in this regarding.
    Answers will be rewarded.
    Thank you.
    Eswar

    Hello Eswar
    You could use the IDoc processing function module if you had the data already available in the IDoc specific format (which is unlikely). This would mean you are receiving the IDoc data from another SAP system.
    Instead, check the BAPI explorer (transaction BAPI) if you can find an appropriate BAPI.
    Regards,
      Uwe

Maybe you are looking for

  • MacBook Pro 15 inch Mid-2010 keeps randomly restarting

    So, I got this Macbook back in August of 2010, and this random restart problem just started occuring after I updated to Mountain Lion. It usually occurs when I open up heavy usage applications, such as Photoshop, iMovie, iPhoto, FaceTime,etc. When I

  • Variation of sound problem

    There have been about a half-dozen or so times in the past where the sound preferences on my Mac Pro reverted to the internal speaker. (If I'm remembering correctly it always seemed to happen when I was using Safari. Then, when I'd close Safari, I'd

  • Internal copy of sales order (ZORI) is printing on printer

    Internal copy of sales order (ZORI) is printing on printer each time a credit block is released for only 1 user regarding the ZORI. The printing has started automatically about a year ago. Her colleagues don't get the printout when they release credi

  • OS 10.6.6: security updates and upgrades

    i bought an iMac about a year ago, with OS being 10.6.6. I haven't brought it yet on the web ( i use this portable PC ). Before getting it on the web, i'll obviously will have to    1 - update to 10.6.8   : is this presently the "top" update for 10.6

  • On Demand Request

    Just purchased HBO to be able to watch Season 3 of Game of Thrones but the season is now over and it is not yet available on On Demand (although it is available as On Demand on the HBO app/website). Please add to the On Demand library. Thanks!