How to Create Organization unit with customised code?

Hi all,
   My business requirement need to create a Organization unit with a customised report.
That customised report need to be developed in which i will be incorporating the code to create a new orgganization unit in sap
and also to assign it in the organization structure.
Please suggest me the Function Module to create it...or any sort of Standard report which is already doing that
Thanks and Regards
Sonal Jain.

If I understand you correctly, you want to create a PROGRAM to create an Organization Unit (IT1000) and it's relation to it's parent Org.Unit (IT1001 with relation A_002).
Check out program RHCOPY00, and create a Z version adapted to your needs.

Similar Messages

  • How to create a list with customised listItem

    I want to create a list with 2 icons and text. I want to display one icon at the left, one icon to the right and text at center. Everytime my icon images might change. I want to know how create this type of list.

    Ok, I managed to create a Text Bullet "Chapter" in level 1 but how can I join the numbering at level 2 on the same line ?
    Pierre

  • How to create transport request with Transaction Code

    hi,
    i have made a Report and then i have transport it to QAS server but mistakenly i transport the request without T-Code.
    Now i want to make a new transport request with T-Code but can't understand where i can make this new request because when i go to this path*UTILITIES -> VERSION MANAGEMENT -> *  it shows me the request which i have transport it.So i want to make a new request with Transaction Code included in that request.Kindly guide me where i can make this request.
    Thanks.

    hi,
    Goto se93 give your tcode and press chagne,after entering into it make some change and click on save, it wil ask for TR. Save it and export it to quality.
    Regards
    harris

  • IDOC: How to create child segment with abap code.

    Hi,
    I'am trying to write an abap code to create segments for an Idoc which structure is the following:
    ZLE_00060_DLVY
    >  E1EDL20
    > Z1DEL_CONS
    >Z1DEL_MAT_HEADER
    > Z1DEL_MAT
    > E1EDL20RET2
    > E1EDL22
    > E1EDL21
    > E1EDL23
    > E1EDL51
    I receive a sintax error: Error in IDoc with status 26 .
    Checking the result I note all segment at the same level and an error about the segment E1EDL22
    EDI: Syntax error in IDoc (segment cannot be identified)
         Message no. E0078
    Diagnosis
         The segment E1EDL22 does not occur at the current level of the basic
         type DELVRY05 (extension ZLE_00060_DLVY).
         This error can have several reasons:
         o   The segment E1EDL22 is assigned to a group whose header segment does
             not occur.
         o   The segment E1EDL22 does not exist in the syntax description of the
             basic type DELVRY05 (extension ZLE_00060_DLVY).
         o   The sequence of segments in the group in which the segment appears
             is incorrect.
         Previous errors ('mandatory' segment or group missing) may be due to
         this error.
    Procedure
         Please check the IDoc or the syntax description of the basic type
         DELVRY05 (extension ZLE_00060_DLVY).
    After the error I have:
    data records
    E1EDL20
    Z1DEL_CONS
    Z1DEL_MAT_HEADER
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    Z1DEL_MAT
    E1EDL20RET2
    E1EDL22
    E1EDL21
    Abap code:
            idoc_data-segnam = 'Z1DEL_CONS'.
            idoc_data-sdata = s_z1del_cons.
            append idoc_data.
              idoc_data-segnam = 'Z1DEL_MAT_HEADER'.
              s_z1del_mat_header-tsegment = 'MATERIAL'.
              idoc_data-sdata = s_z1del_mat_header.
              append idoc_data.
            clear idoc_data-sdata.                            <<<<<<<<<<< how to indent the structure because this is a child.
             idoc_data-sdata = s_Z1DEL_MAT.
             idoc_data-segnam = 'Z1DEL_MAT'.
             append idoc_data.
             idoc_data-segnam = 'E1EDL20RET2'.
             idoc_data-sdata = s_E1EDL20RET2.
             append idoc_data.
             clear idoc_data.
             idoc_data-segnam = 'E1EDL22'.
             idoc_data-sdata = s_e1edl22.
             append idoc_data.
             clear idoc_data.
             idoc_data-segnam = 'E1EDL21'.
             idoc_data-sdata = s_e1edl21.
             append idoc_data.
    Any help will be well appreciated.
    Thanks in advance.
    Regards,
        Giovanni

    Hi,
    following in debugging mode the abap code of the INCLUDE ZXTRKU02 where is defined the TABLES IDOC_DATA STRUCTURE  EDIDD, I find that all field of the table IDOC_DATA are not set. More exactly my expectation is to find values for SEGNUM, HLEVEL, PSGNUM.
    In a few words I need to execute an enhancement, via abap code, of the struscure of the idoc before sending it out since I have a requirement to test this enhancement in my XI environment, receiving as input this ideoc modified.
    Then, I need to add a new segment and one child.
    Any suggestion will be well appreciated.
    Thanks in advance.
    Regards,
        Giovanni

  • How to Create Business Partner with  fix number in t-code :BP

    Dear SIr,
    Normally I will set number range for auto  to create Business Partner. In case , If we would like to crea How to Create Business Partner with  fix number in t-code :BP , howe to do?
    Please kindly advise.
    THnak you and best regards,
    Vimol

    Dear Shobhit,
    How to put the thread as you mentioned.
    Best regards,

  • Organizational Units with Business Partner

    Hi Experts,
    I'm creating my organizational structure on CRM system: on transaction "PPOMA_CRM" I'm creating all the organizations I need. But I 'm facing with a problem: I'm not able to assign them a business partner. I mean: in the transaction "PPOMA_CRM" under the column "Business Partner" I'm not able to insert any business partner.
    And on the other hand, if I go on transaction "BP" in order to define a new organization, when I select which is  the BP role to use for the creation of the organization, I don't see BUP004.
    Do you have any suggestions.
    Why I can't see it?
    And what I have to do to assign a business partner to an organization?
    Full point sif it helps.
    Thanks a lot.
    Best regards,
    Stefano

    Hi,
    Please find below my answers:-
    In a first moment I configured the HR-CRM integration and when I go on transaction PPOMA_CRM in order to display the Organizational Structure I can see, for each Organizational unit downloaded from HR, a business partner ID under the column "business partner". This is the same number ID which allows to identify the same Organizational Unit on transaction BP.
    Answer- In Transaction BP you can find the same Org unit business prtner created in PPOMA_CRM.
    Suppose you have created BP_Org in PPOMA_CRM which has got generated with certain BP number.But this will not reflect in transaction BP. All the Business Partners created under BP_Org will be getting reflected.
    Now I deactivated the HR-CRM integration and when I create a new Organizational Unit on PPOMA_CRM I'm not able to fill the column "Business Partner".
    Ans- If you have not maintained in HR-CRM Integration there will be no number range.
    If I insert the Organizationa Unit ID (displayed on PPOMA_CRM) in transaction BP I don't get any results.
    Ans- While searching in BP , first you donu2019t have option of searching BP with Org Unit ID but you will find number instead. But as I told you earlier this will search the Business Partner under your Root Organization in our case it is BP_Org. You cant search for BP_Org in Tx-BP
    I need to assign a business partner to my organizational unit for escalation purposes since the escalation is succesfully only for the organizational units with that business partner ID, i.e. all the organizational units downloaded from HR.
    So at the moment the escalation process doesn't work for the organizational units just created only on CRM standalone system.
    I think it is possible to make it work also for these organizations, but I don't know how!
    Ans-  You will have to maintain as below-
    Customer Relationship ManagementMaster DataBusiness PartnerIntegration Business Partner-Organization Management Set Up Integration with Organizational Management
    HRALX- OBPON =ON
    HRALX- ONUMB
    HRALX-OSUBG
    HRALX-HRAC=
    Regds...
    Arup

  • Use of organizational unit with org. Object type

    Hi,
    In What Scenario we will use organizational unit with org. Object type .
    Regards,
    Peter Son

    This technique works by matching codes entered in customizing tables against organizational objects in the organizational plan.
          E.g. A particular Sales Area can be related to an Organizational unit that represents all people in that Sales Area.
         SAP Organizational Objects
         Organizational entities (such as sales group, Distribution Channel, or purchasing organization) are represented by object types in the Business Object  Repository.
            The indicator organizational type in their basic data defines
            such object types as SAP Organizational Objects
         For Agent Determination, relationships are created between  SAP Organizational Objects (residing in BOR)  and the  Organizational Management objects.
         The agents are found by tracing these relationships.
    Thanks and Regards,
    Prabhakar Dharmala

  • How to create a node with attributes at runtime in webdynpro for ABAP?

    Hi Experts,
             How to create a node with attributes at runtime in webdynpro for ABAP? What classes or interfaces I should use? Please provide some sample code.
    I have checked IF_WD_CONTEXT_NODE_INFO and there is ADD_NEW_CHILD_NODE method. But this is not creating any node. I this this creates only a "node info" object.
    I even check IF_WD_CONTEXT_NODE but i could not find any method that creates a node with attribute.
    Please help!
    Thanks
    Gopal

    Hi
       I am getting the following error while creating a dynamic context node with 2 attributes. Please help me resolve this problem.
    Note
    The following error text was processed in the system PET : Line types of an internal table and a work area not compatible.
    The error occurred on the application server FMSAP995_PET_02 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_WD_CONTEXT_NODE~GET_STATIC_ATTRIBUTES_TABLE of program CL_WDR_CONTEXT_NODE_VAL=======CP
    Method: GET_REF_TO_TABLE of program CL_SALV_WD_DATA_TABLE=========CP
    Method: EXECUTE of program CL_SALV_WD_SERVICE_MANAGER====CP
    Method: APPLY_SERVICES of program CL_SALV_BS_RESULT_DATA_TABLE==CP
    Method: REFRESH of program CL_SALV_BS_RESULT_DATA_TABLE==CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE_DATA of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMP_TABLE_DATA~UPDATE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_VIEW~MODIFY of program CL_SALV_WD_C_TABLE_V_TABLE====CP
    Method: IF_SALV_WD_COMPONENT~VIEW_MODIFY of program CL_SALV_WD_A_COMPONENT========CP
    My code is like the following:
    TYPES: BEGIN OF t_type,
                CARRID TYPE sflight-carrid,
                CONNID TYPE sflight-connid,
             END OF t_type.
      Data:  i_struc type table of t_type,
      dyn_node   type ref to if_wd_context_node,
      rootnode_info   type ref to if_wd_context_node_info,
      i_node_att type wdr_context_attr_info_map,
      wa_node_att type line of wdr_context_attr_info_map.
          wa_node_att-name = 'CARRID'.
          wa_node_att-TYPE_NAME = 'SFLIGHT-CARRID'.
          insert wa_node_att into table i_node_att.
          wa_node_att-name = 'CONNID'.
          wa_node_att-TYPE_NAME = 'SFLIGHT-CONNID'.
          insert wa_node_att into table i_node_att.
    clear i_struc. refresh i_struc.
      select carrid connid into corresponding fields of table i_struc from sflight where carrid = 'AA'.
    rootnode_info = wd_context->get_node_info( ).
    rootnode_info->add_new_child_node( name = 'DYNFLIGHT'
                                       attributes = i_node_att
                                       is_multiple = abap_true ).
    dyn_node = wd_context->get_child_node( 'DYNFLIGHT' ).
    dyn_node->bind_table( i_struc ).
    l_ref_interfacecontroller->set_data( dyn_node ).
    I am trying to create a new node. That is
    CONTEXT
    - DYNFLIGHT
    CARRID
    CONNID
    As you see above I am trying to create 'DYNFLIGHT' along with the 2 attributes which are inside this node. The structure of the node that is, no.of attributes may vary based on some condition. Thats why I am trying to create a node dynamically.
    Also I cannot define the structure in the ABAP dictionary because it changes based on condition
    Message was edited by: gopalkrishna baliga

  • How to create a stage with tabs?

    I tested this code to create a stage with tabs:
    {code}
    public void GeneralConfiguration()
            Stage configurationStage = new Stage();
            configurationStage.setTitle("General Settings");
            configurationStage.initModality(Modality.WINDOW_MODAL);
            Group grid = new Group();
            TabPane tabPane = new TabPane();
            //Create Tabs
            Tab tabA = new Tab();
            tabA.setText("Main Component");
            tabA.setClosable(false); // da se mahne opciqta da se zatvarq tab
            //Add something in Tab
            StackPane tabA_stack = new StackPane();
            tabA_stack.setAlignment(Pos.CENTER);
            tabA_stack.getChildren().add(new Label("Label@Tab A")); // dobavq se tuka accordion
            tabA.setContent(tabA_stack);
            tabPane.getTabs().add(tabA);
            Tab tabB = new Tab();
            tabB.setText("Second Component");
            tabB.setClosable(false); // da se mahne opciqta da se zatvarq tab
            //Add something in Tab
            StackPane tabB_stack = new StackPane();
            tabB_stack.setAlignment(Pos.CENTER);
            tabB_stack.getChildren().add(new Label("Label@Tab B"));
            tabB.setContent(tabB_stack);
            tabPane.getTabs().add(tabB);
            Tab tabC = new Tab();
            tabC.setText("Last Component");
            tabC.setClosable(false); // da se mahne opciqta da se zatvarq tab
            //Add something in Tab
            StackPane tabC_vBox = new StackPane();
            tabC_vBox.setAlignment(Pos.CENTER);
            tabC_vBox.getChildren().add(new Label("Label@Tab C"));
            tabC.setContent(tabC_vBox);
            tabPane.getTabs().add(tabC);
            //grid.add(tabPane);
            grid.getChildren().add(tabPane);
            // Configure dialog size and background color
            Scene Scene = new Scene(grid, 800, 600, Color.WHITESMOKE);
            configurationStage.setScene(Scene);
            configurationStage.show();
    {code}
    Can you tell me how I can fill the stage with the tabs body. Now I get this result:
    http://i44.tinypic.com/2zppcg4.png

    Use some kind of managed layout pane instead of a group for the root. I like to use a BorderPane or AnchorPane as the root container:
    // Group grid = new Group();
    BorderPane grid = new BorderPane();
    // grid.getChildren().add(tabPane);
    grid.setCenter(tabPane);
    Message was edited by: James_D (Figured out how to post code!)

  • How to create a window with its own window border other than the local system window border?

    How to create a window with its own window border other than the local system window border?
    For example, a border: a black line with a width 1 and then a transparent line with a width 5. Further inner, it is the content pane.
    In JavaSE, there seems to have the paintComponent() method for the JFrame to realize the effect.

    Not sure why your code is doing that. I usually use an ObjectProperty<Point2D> to hold the initial coordinates of the mouse press, and set it to null on a mouse release. That seems to avoid the dragging being confused by mouse interaction with other nodes.
    import javafx.application.Application;
    import javafx.application.Platform;
    import javafx.beans.property.ObjectProperty;
    import javafx.beans.property.SimpleObjectProperty;
    import javafx.collections.FXCollections;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.geometry.Point2D;
    import javafx.geometry.Pos;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.ChoiceBox;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.AnchorPane;
    import javafx.scene.layout.StackPane;
    import javafx.scene.layout.VBox;
    import javafx.scene.paint.Color;
    import javafx.stage.Stage;
    import javafx.stage.StageStyle;
    import javafx.stage.Window;
    public class CustomBorderExample extends Application {
      @Override
      public void start(Stage primaryStage) {
      AnchorPane root = new AnchorPane();
      root.setStyle("-fx-border-color: black; -fx-border-width: 1px; ");
      enableDragging(root);
      StackPane mainContainer = new StackPane();
        AnchorPane.setTopAnchor(mainContainer, 5.0);
        AnchorPane.setLeftAnchor(mainContainer, 5.0);
        AnchorPane.setRightAnchor(mainContainer, 5.0);
        AnchorPane.setBottomAnchor(mainContainer, 5.0);
      mainContainer.setStyle("-fx-background-color: aliceblue;");
      root.getChildren().add(mainContainer);
      primaryStage.initStyle(StageStyle.TRANSPARENT);
      final ChoiceBox<String> choiceBox = new ChoiceBox<>(FXCollections.observableArrayList("Item 1", "Item 2", "Item 3"));
      final Button closeButton = new Button("Close");
      VBox vbox = new VBox(10);
      vbox.setAlignment(Pos.CENTER);
      vbox.getChildren().addAll(choiceBox, closeButton);
      mainContainer.getChildren().add(vbox);
        closeButton.setOnAction(new EventHandler<ActionEvent>() {
          @Override
          public void handle(ActionEvent event) {
            Platform.exit();
      primaryStage.setScene(new Scene(root,  300, 200, Color.TRANSPARENT));
      primaryStage.show();
      private void enableDragging(final Node n) {
       final ObjectProperty<Point2D> mouseAnchor = new SimpleObjectProperty<>(null);
       n.addEventHandler(MouseEvent.MOUSE_PRESSED, new EventHandler<MouseEvent>() {
          @Override
          public void handle(MouseEvent event) {
            mouseAnchor.set(new Point2D(event.getX(), event.getY()));
       n.addEventHandler(MouseEvent.MOUSE_RELEASED, new EventHandler<MouseEvent>() {
          @Override
          public void handle(MouseEvent event) {
            mouseAnchor.set(null);
       n.addEventHandler(MouseEvent.MOUSE_DRAGGED, new EventHandler<MouseEvent>() {
          @Override
          public void handle(MouseEvent event) {
            Point2D anchor = mouseAnchor.get();
            Scene scene = n.getScene();
            Window window = null ;
            if (scene != null) {
              window = scene.getWindow();
            if (anchor != null && window != null) {
              double deltaX = event.getX()-anchor.getX();
              double deltaY = event.getY()-anchor.getY();
              window.setX(window.getX()+deltaX);
              window.setY(window.getY()+deltaY);
      public static void main(String[] args) {
      launch(args);

  • How to create ios environment with adobe id?

    Hi , i am trying to create ios environment in windows platform.
    can any one please tell me, how to create IOS environment with adobe id.
    I a created adobe id and inserted code into it. But its running (Since one hour), and no response.
    Any one have idea on it, please let me know.
    Thanks in advance....
    Message was edited by: pathi rskumar

    Hi,
    If you have already set the number range as an external range.
    Then just passing the transaction type to field 'process_type' and external id to field 'object_id' of table ct_orderadm_h. Sales order will created with the assigned external id.
    Hope this help.
    cheers,

  • 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

  • How to assign function module with process code in IDOC ?

    how to assign function module with process code in IDOC ? and what code i have to write in that function module for custom IDOC ?
    helpful answer will be rewarded?

    Hi,
    First goto transaction we42 -->editing mode --> new entries -->give name of your process code and description --> processing with alv service and function module -->then press enter -->after that enter the name of the function module you want to associate from the drop down and save it.
    Thats the way to assign function module with process code.
    In that process code we will have the Function modules and Bapi's which will take the data which we are sending through IDOC and then process it.
    for example: i am triggering the IDOC for every purchase order created then this process code in the receiver system will take the data which i have enetered in the sender system to create the purchase order and process it and creates the same purchase order in the receiver's system.
    Reward if helpful.
    with regards,
    Syed

  • How to create one portlet with more apps

    Hi,
    How to create 10 application with one portlet on OC4J? Anybody has experience? Care to share with me.
    Thank you.

    Hi
    If you are writing application logic using JPDK or PDK, you can implement the logic/code for 1 application or 100 applications/functionality in one portlet.
    Where as if you have per application you have 1 portlet you can have modularity, can be added to Portal page's portlet region where ever you want to.portlet provider(Web provider or Pl/sql provider) can contain multiple portlets.
    If you go with 100 applications rendering in one portlet you need to implement 100 applications logic/code in 1 portlet, you can parameterize the portelt to show which applications can be shown at run time, for this you need to implement parameterization logic in portlet code. I can say this approach is cumbersome
    Thanks
    Seshagiri.Rayala
    http://soabpel.wordpress.com/

  • How can create a JTree with cellRender is checkbox realized multiple selec

    How can create a JTree with cellRender is checkbox realized multiple selection function.thanks for every
    one's help.

    Hi,
    1. Create a value node in your context name Table and set its cardinality to 0:n
    2. Create 2 value attributes within the Table node name value1 and value2
    3. Goto Outline view> Right click on TransparentUIContainer>Apply Template> Select Table>mark the node Table and it's attributes.
    you have created a table and binded its value to context
    Table UI properties
    4.Set Selection Mode to Multi
    5.Set Visible Row Count to 5
    6.ScrollableColCount to 5
    In your implemetaion, you can add values to table as follow:
    IPrivate<viewname>.ITableElement ele = wdContext.nodeTable().createTableElement();
    ele.setValue1(<value>);
    ele.setValue2(<value>);
    wdContext.nodeTable().addElement(ele);
    The above code will allow you to add elements to your table node.
    Regards,
    Murtuza

Maybe you are looking for