Creating an IBase Component WITH Connection Object (ISU_CONNOBJ)

Hello
I want to create an IBase Component with relation to a Connection Object. I am able to create the first one (IBase Component) but I do not know how to create a Connection Object for the newly created IBase Component.
I am doing everything using the BOL framework and was unable to find a proper relation from IBase Component or Product to Connection Object.
Can you help me out?
regards
Mateusz

Solved!
Apparently after creating new IBase Component and new Product (assigned to the newly created IBase Component) it is required to execute transaction save and commit for the object of newly created Product. After that system sees newly created objects.
Required code (after creation of a new Product):
DATA:
  lo_core TYPE REF TO cl_crm_bol_core,
  lo_new_product TYPE REF TO cl_crm_bol_entity,
  lo_factory TYPE REF TO cl_crm_bol_entity_factory,
  lo_transaction TYPE REF TO if_bol_transaction_context.
  lo_core = cl_crm_bol_core=>get_instance( ).
  lo_factory = lo_core->get_entity_factory( 'Product' ).
  lo_new_product = lo_factory->create( )
  lo_transaction = lo_core->get_transaction( iv_entity = lo_new_product ).
  lo_transaction->save( iv_force_save = abap_true ).
  lo_transaction->commit( ).

Similar Messages

  • CRM IBASE mismatch for Connection object - premise

    Hi Experts,
    In our ECC system we have a two connection objects connected to two different premises. While in CRM if I go to IBASE of Connection object 1 we get both premises attached to it and the connection object 2 does not show any premises. I would request help in correcting this. I am very new to CRM and have little knowledge of how this works.
    Thanks in Advance,
    Hitesh

    Solved!
    Apparently after creating new IBase Component and new Product (assigned to the newly created IBase Component) it is required to execute transaction save and commit for the object of newly created Product. After that system sees newly created objects.
    Required code (after creation of a new Product):
    DATA:
      lo_core TYPE REF TO cl_crm_bol_core,
      lo_new_product TYPE REF TO cl_crm_bol_entity,
      lo_factory TYPE REF TO cl_crm_bol_entity_factory,
      lo_transaction TYPE REF TO if_bol_transaction_context.
      lo_core = cl_crm_bol_core=>get_instance( ).
      lo_factory = lo_core->get_entity_factory( 'Product' ).
      lo_new_product = lo_factory->create( )
      lo_transaction = lo_core->get_transaction( iv_entity = lo_new_product ).
      lo_transaction->save( iv_force_save = abap_true ).
      lo_transaction->commit( ).

  • How to create a text Component With Certain Properties

    I need to create a text component with the following properties:
    Has Capability to be italic, right/left aligned, have different background / foreground colors, and most importantly, the ability to have a fixed width and a height that is set by the amount of text in it (ie line wrapping expands the field vertically).
    It should be a simple exercise, but I cannot seem to figure out how to do it.

    Here is the correct syntax :
    private static JEditorPane constructPane(String text, int normWidth, int normHeight, boolean rightAlign, boolean italic,boolean isWhite) {
              JEditorPane pane = new JEditorPane();
              pane.setEditable(false);
              pane.setContentType("text/html");
              pane.setText(
                   "<html><head></head><body>"
                   + (italic?"<i>":"")
                   + "<table><COLGROUP><COL width=\""+normWidth+"\"><THREAD><tr><td valign=\"top\" align="+(rightAlign?"\"right\"":"\"left\"")+">"
                   + text+"</td></tr></table>"
                   + (italic?"</i>":"")
                   + "</body></html>");
              pane.setSize(normWidth,normHeight);
              if(isWhite)
                   pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createMatteBorder(1,0,1,0,Color.WHITE),BorderFactory.createEmptyBorder(0,1,0,1)));
                   pane.setForeground(Color.WHITE);
              else {
                   pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createMatteBorder(1,0,1,0,Color.BLACK),BorderFactory.createEmptyBorder(0,1,0,1)));
                   pane.setForeground(Color.BLACK);
              return pane;
         }

  • Re: How to create More two class with one object

    haii,
             i have small information How to create More two class with one object,
    bye
    bye
    babu

    Hello
    I assume you want to create multiple instance of your class.
    Assuming that you class is NOT a singleton then simply repeat the CREATE OBJECT statement as many times as you need.
    TYPES: begin of ty_s_class.
    TYPES: instance   TYPE REF TO zcl_myclass.
    TYPES: end of ty_s_class.
    DATA:
      lt_itab      TYPE STANDARD TABLE OF ty_s_class
                     WITH DEFAULT KEY,
      ls_record  TYPE ty_s_class.
      DO 10 TIMES.
        CLEAR: ls_record-instance.
        CREATE OBJECT ls_record-instance.
        APPEND ls_record TO lt_itab.
      ENDDO.
    Regards
      Uwe

  • Problem with Connection Object

    I have created a java application. The main function is in MainFrame.java. I have created a connection object myConnection. This I did from the GUI dialog. Later while creating application module i used this connection.
    While running the application, I want to change the connection object . Let us say previously it was connected to myUser user. I want to change the username as hisUser. Ofcourse myUser and hisUser are the database users.
    The problem, how to get the myConnection Object reference. I don't know about this. Could any one please help me in this regard.

    Is myConnection a Connections-Navigator connection? Use the myConnection
    datasource jdbc/myConnectionDS to connect to datasource. Specify a different pasword for a different userid.
    String appModule = "model.AppModule";
    String cfg="AppModuleLocal";
    ApplicationModule applicationModule =
    (ApplicationModule)Configuration.createRootApplicationModule(appModule, cfg);
    Transaction transaction=applicationModule.getTransaction();
    transaction.connectToDataSource(null,"jdbc/myConnectionDS","OE",
    "<ppassword>", false);

  • Error in creating a simple table with JSON object in SAPUI5

    The error is :  SCRIPT1006: Expected ')' 
    <!DOCTYPE HTML>
    <HTML>
    <HEAD>
    <TITLE>Your Title Here</TITLE>
    <META http-equiv="X-UA-Compatible" content="IE=edge">
    <META http-equiv='cache-control' content='no-cache'>
    <META http-equiv='expires' content='0'>
    <META http-equiv='pragma' content='no-cache'>
    <script src="resources/sap-ui-core.js"
    id="sap-ui-bootstrap"
    data-sap-ui-libs="sap.ui.commons,sap.ui.table "
    data-sap-ui-theme="sap_goldreflection">
    //themes : sap_platinum, sap_goldreflection
    </script>
    <script>
    // create some local data using JSON
    var aData = [
    {Applications: "WVL BOD 9212", PercentComplete: "75", Date_Due: "6/16/2014", Testing_Due: "6/23/2014" },
    {Applications: "WVL BOD 9211", PercentComplete: "75", Date_Due: "6/16/2014", Testing_Due: "6/24/2014" },
    {Applications: "WVL BOD 3303", PercentComplete: "75", Date_Due: "6/16/2016", Testing_Due: "6/25/2014" },
    {Applications: "ETW BOD 3304", PercentComplete: "75", Date_Due: "6/16/2014", Testing_Due: "6/26/2014" },
    {Applications: "CLE BOD 1902", PercentComplete: "75", Date_Due: "6/16/2014", Testing_Due: "6/27/2014" },
    {Applications: "ISO HAZ", PercentComplete: "80", Date_Due: "6/1/2014", Testing_Due: "6/8/2014" },
    {Applications: "ISO CWO", PercentComplete: "80", Date_Due: "6/01/2014", Testing_Due: "6/8/2014" },
    {Applications: "WVL 3 Stream ", PercentComplete: "60", Date_Due: "6/29/2014", Testing_Due: "" },
    {Applications: "ISO Integration", PercentComplete: "10", Date_Due: "6/1/2014", Testing_Due: "6/8/2014" },
    {Applications: "WVL 7 QM Charts", PercentComplete: "15", Date_Due: "6/15/2014", Testing_Due: "" },
    {Applications: "SCB PCO", PercentComplete: "100", Date_Due: "?", Testing_Due: "" },
    {Applications: "SCB Top Chart ", PercentComplete: "10", Date_Due: "5/20/2014", Testing_Due: "" },
    {Applications: "Project Status", PercentComplete: "25", Date_Due: "7/25/2014", Testing_Due: "" },
    {Applications: "WVL LOI", PercentComplete: "100", Date_Due: "4/20/2014", Testing_Due: ""},
    {Applications: "DSS (HTML5)", PercentComplete: "100", Date_Due: "3/31/2013", Testing_Due: ""},
    {Applications: "ETW 3304 BOD Pilot",PercentComplete: "100", Date_Due: "11/16/2013", Testing_Due: ""},
    {Applications: "HTMl 5 Table Tools",PercentComplete: "100", Date_Due: "2/12/2014", Testing_Due: ""},
    {Applications: "ISO JAX",PercentComplete: "100", Date_Due: "7/31/2013", Testing_Due: ""},
    {Applications: "ISO FEN",PercentComplete: "100", Date_Due: "1/10/2014", Testing_Due: ""},
    {Applications: "WVL QM Display",PercentComplete: "100", Date_Due: "2/12/2014", Testing_Due: ""},
    // Define a table [Note: you must include the table library to make the Table class work]
    var oTable = new sap.ui.table.Table({
        title: "Projects Status", // Displayed as the heading of the table
        visibleRowCount: 4, // How much rows you want to display in the table
        selectionMode: sap.ui.table.SelectionMode.Single, //Use Singe or Multi
        navigationMode: sap.ui.table.NavigationMode.Paginator, //Paginator or Scrollbar
        fixedColumnCount: 4, // Freezes the number of columns
    enableColumnReordering:true,       // Allows you to drag and drop the column and reorder the position of the column
    width:"1024px" // width of the table
    // Use the Object defined for table to add new column into the table
        oTable.addColumn(new
        label: new sap.ui.commons.Label({text: "Applications"}), // Creates an Header with value defined for the text attribute   <<<<<<<SCRIPT1006: Expected ')'
        template: new sap.ui.commons.TextField().bindProperty("value", "Applications"), // binds the value into the text field defined using JSON
        sortProperty: "Applications",        // enables sorting on the column
        filterProperty: "Applications", // enables set filter on the column
        width: "125px" // width of the column
        oTable.addColumn(new
        label: new sap.ui.commons.Label({text: "PercentComplete"}),
        template: new sap.ui.commons.TextField().bindProperty("value", "PercentComplete"),
        sortProperty: "PercentComplete",
        filterProperty: "PercentComplete",
        width: "125px"
    oTable.addColumn(new
        label: new sap.ui.commons.Label({text: "Date_Due"}),
        template: new sap.ui.commons.TextField().bindProperty("value", "Date_Due"),
        sortProperty: "Date_Due",
        filterProperty: "Date_Due",
        width: "125px"
    oTable.addColumn(new
        label: new sap.ui.commons.Label({text: "Testing_Due"}),
        template: new sap.ui.commons.TextField().bindProperty("value", "Testing_Due"),
        sortProperty: "Testing_Due",
        filterProperty: "Testing_Due",
        width: "125px"
    //Create a model and bind the table rows to this model
    var oModel = new sap.ui.model.json.JSONModel();  // created a JSON model     
    oModel.setData({modelData: aData});      // Set the data to the model using the JSON object defined already
    oTable.setModel(oModel);
    oTable.bindRows("/modelData");    // binding all the rows into the model
    //Initially sort the table
    oTable.sort(oTable.getColumns()[0]);   
    // finally place the Table into the UI
    oTable.placeAt("content1");
      </script>
    </HEAD>
    <BODY>
    <div id='content1'></div>
    </BODY>
    </HTML>

    Hi Amr
    Here is an example on how to addColumn
    Example
    -D

  • Service Interface: How to create an SDO graph with tow Objects

    Hi,
    I want to create a Web service interface on top of my application module. Using the Service Interface I select the app mod, service methods and view objects from the data model. My data model consists of a master detail relationship. The Web service should provide an interface that uses a master and its details as parameters in an operation.
    For example a customer and his credit cards. A GET-Operation should return a data structure that groups all objects.
    I do not know how I can configure such a web service.
    How can I achieve such a web service?
    Do I have to code a service method and what is the return type of the method?
    Can I work with existing VOs?
    Do I need 'special' preconditions like a composition between master and detail?
    Any idea?
    Thanks,
    Markus

    Hi Scott
    Bad news. I read several time this thread, but I have not found error in my program ... .
    And I can not see what are really doing APIs of APEX.
    Time is going - so we have make a decision now.
    Probably (as I have no more answers at this forum) - we can not use APEX (as nobody using APEX sessions as I asked),
    as we can not manage its sessions programmatically (too risky).
    Thanks for your answer.
    Andres

  • How settlement rule will be created for Sales order with cost object

    Dear Experts,
    We are using product cost by sales order with valuated stock. In addition we are not using COPA
    We also consume some materials at sales order level and at the end of month we want to do the result analysis and settlement for the same amount. In this case can any on explain how system will behave regarding settlement of sales order cost and what entries will get pass in the system.
    In our case we have done below activities...
    we have created sales order,
    All production order activities completed till final GRN including month end activities
    Material consumption against sales order
    Result analysis executed
    At the time of sales order settlement, system throwing error (Sender doesn't have valid receiver, please create settlement rule for sender object)
    Then i checked in sales order there sales order settlement rule not defined.
    I guess this settlement rule need be generated by system automatically. If not, please let me know the process of it.

    HI kishore
          the reason is that sale order always carry the revenue  and production order and production period carry the cost .
       cost you can settle to the Material and even management want  to be settle the cost to material only in production order OR period
    but in sales order  when u sell the product it carry the revenue not the cost and management want see and analysis based on profitability segment are profit center level .
    Prerequisites
    If CO-PA is active, the system generates a settlement rule when you create the sales order. The settlement rule determines whether data is settled to other objects or other areas in Controlling. In accordance with this settlement rule, the relevant data is settled to CO-PA.
    If CO-PA is not active, create a settlement rule. This settlement rule that you create manually normally contains a G/L account as a receiver (such as 399999). You can also settle costs and revenues or results analysis data to objects with revenue.
    You can also settle the cost of sales calculated in results analysis to a fixed asset or a cost center. To do this, you must add to the allocation structure the results analysis cost elements under which the cost of sales is updated to the order.
    The settlement rule includes a distribution rule for the sales order item. The distribution rule is made up of a settlement receiver, a settlement share, and a settlement type:
    The settlement receiver (such as profitability segment or G/L account) specifies the object to which the actual costs and revenue of the sales order item are settled. The settlement receiver can be proposed through the settlement profile.
    The settlement share defines the percentage or the equivalence numbers used to distribute the costs to the individual settlement receivers. The settlement share for sales order items is usually 100%. A settlement share of 100% is preset in the system.
    The settlement type specifies full settlement of the sales order item. This ensures that all the data on the sales order is available for results analysis.
    Settlement still takes place in each period. The revenues and the cost of sales are transferred to CO-PA by period, and the work in process and the reserves are transferred to FI.

  • Huge pain Creating a Custom Component with lots of pins

    hello
    I am trying to create an ATmega 128 MCU in multisim that I plan on using to layout a pcb in utiliboard with. SInce this is just for pcb layout purposes I can care less about adding a spice model. I did the "component wizard" and selected "layout only (footprint)" I chose the TQFP-64 package and all is well. I get to step 4 where i "set pin parameters" and this is where I enter the names of the pins. The problem is that this takes a long long time. I thought there has to be some way to import the pin names from a spreadsheet but I couldnt find any way! The only way I can add them is by selecting each cell in excel and copying then going to multisim and selecting the next cell and pasting. I cannot copy and paste a whole column. This would take hours to do for a chip with over 100 pins. The next step "map pins" takes a long time too. I have to individually click between the cells. Is there any way to map everything at once using the same order?
    Also unrelated question. whats the difference between the "TQFP-64" and "TQFP-64L" in multisim? the look identical to me, not sure what the L suffix does.
    Thanks

    Hi smithman,
    It is not possible to import pin names from an excel spreadsheet at this time. I will pass on your concerns to R&D.
    The "TQFP-64" and "TQFP-64L" are quite different if you take a closer look at them. It depends on the manufacturer which one they use for their parts.
    Sorry I could not be of more help.
    Regards,
    Tayyab R,
    National Instruments.

  • Create a Custom Component With Custom Shape

    Hi all,
             I want to create a Component that should have a CustomShape.
             I will explain this in detail ,Suppose now we have a Button, Button will be having some Rectangular Shape, But in my Case i dont want this    Rectangula Shape, I will be giving x and y positons Depending on that positon It has to form a Component.
             Any Help is Greatly Appreciated.

    Even if you use transparent images, you will still end up with a rectangular bounding box.
    You can use programmatic drawing and get a shape that does not involve a rectangle:
    http://livedocs.adobe.com/flex/3/html/help.html?content=skinning_6.html
    http://livedocs.adobe.com/flex/3/html/Drawing_Vector_Graphics_5.html
    http://livedocs.adobe.com/flex/3/html/help.html?content=Drawing_Vector_Graphics_4.html
    If this post answers your question or helps, please mark it as such.

  • Unassing a Premise froma Connection Object

    Hi ISU Experts!
    I juste wanted to ask you if it is possible to unassing a Premise from a Connection Object.
    A user created a new ConnObject/Premise/Installation, but when creating the Premise he assigned it to another Connection Object. Is it possible to reassing the premise? Or Unassign the Premise from the Actual Connection Object?
    Or the should create a new Premise/installation again?
    Thak you very much in advance,
    Best regards
    LUCAS

    Hi,
    There is no reversal process where you can reverse the assignment of a premise with connection object. You need to create a new set of these technical master data once more.
    You can set the 'Delete' flag available at connection object/premise/installation level. It will be archived from the system during archive run.
    Thanks.
    Nirmalya

  • How to create a new component in CRM 7.0?

    while creating a new component with search and result options... main window is not created automatically.
    when tried to create it manually its giving short dump. kindly let me know what could be the reason for this problem?
    thanks alot.

    Hi Vijay,
    could you please specify what kind of short dump you are getting? The short dumps can be looked at in the sapgui transaction st22.
    Best regards,
    Erika

  • ChaRM Copy Control for Ibase component

    Hi Team,
    I have created ZDCR which is copy of SDCR. And i have created ZDHF which is copy of SDHF. I have created the ZDHF as a subsequent document from ZDCR. While ZDHF is created, the Ibase component is not getting copied from ZDCR.
    How to copy the ibase component from ZDCR to ZDHF?
    Thank you for the input.
    Regards
    Kumar

    Hi
    you need to maintain the settings
    goto spro change request management->extended configuration->copy control
    define mapping rules
    here choose your entries and check the IBASE column.
    this shd solv u prb
    Regards
    Prakhar

  • Solution Manager create an IBase...

    Hi fellows,
    My question is, if in the future I must apply more satellite/backend systems in my SLD (SMSY) in Solution Manager... As you know when we want setup maintenance optimizer generally appears an error which it said that we must have to Generate an IBASE (IB51 & IB52) and so I created that Ibase entry with my all systems landscape... but imagine that I want to apply more systems in tcode SMSY (System Landscape Directory tree) when that happens I must create again on more time an Ibase, this is,  I will have problems in maintenance optimizer if I apply more systems and don´t make the regenerate the IBASE ?
    Best regards,
    Thanks in advance,
    Jmgmad

    Hi Prakhar Saxena,
    Thanks a lot for your quick and usefull answer... you have right!!
    One more question about IBASE and the respective tcodes IB_GEN and IB52, I duplicate the systems in IBase monitor on IB52 I see in that tree of SAP solution Manager Installations I have twice systems, because when I regenerate the Ibase (in IB_GEN) I select the same systems that I have apply in past... so I want to delete the systems that are repeated... How can I do that ?! ...
    Can you explain how I delete systems in that tree on IB52  (with Ext.ID: SOL_MAN_DATA_REP) ??
    Thanks indeed...
    I will give you a max point !
    João Dimas

  • Create complex custom component

    Hi everyone!
    I'm trying to create my own custom component in JSF. However I have several questions :
    - It is not mandatory to create a renderer class, right ? the component can draw itself ?
    - How can I create a custom component which would have several "values" inside ? for example let us supppose I want to create a custom JSF component to enter a IBAN. The IBAN is divided into several parts : BBAN, country code, key, Bank adresse,... but any tutorial I've found explain how to create a input component with only one simple value (for example the classical "CreditCardInputComponent").
    Josselin

    Hi,
    did you find a solution for your "composite" component problem?
    I am also trying to create a custom component that contains several standard jsf components such as HtmlCommandLink and HtmlInputText.
    I build all the standard components within my component programmatically using things like:
    HtmlCommandLink link = (HtmlCommandLink) application.createComponent(HtmlCommandLink.COMPONENT_TYPE);
    Also at the beginning of the encodeBegin I clear all children from my custom component using getChildren().clear()
    and rerender the component based on my new internal model which I updated during the previous decoding of my component.
    As a simple jsf custom tag it works ok, however, I am facing deep problems with action events as soon as I use the component within a jsf HtmlDataTable tag.
    Am I missing something here?
    Any ideas? Help is really really appreciated. This different behavior in different contexts is slowly but constantly driving me nuts.
    cheers
    hans

Maybe you are looking for

  • Open taskflow in new window

    I try to open taskflow in a new explorer window (no dialog) For that i use i go link and try to add a URL in Destination. eather if i use: MyTask-flow that gives url: http://127.0.0.1:8988/CallingFormsArtifact-ViewController-context-root/faces/MyTask

  • Does the iPad ignore the volume control when connected to the Digital AV Adapter?

    Does the iPad ignore the volume control when connected to the Digital AV Adapter?

  • Attach File to New Email (Thunderbird)

    It's easy to attach a file to an email using Apple Mail, but I use Thunderbird. How do I get it to work with Thunderbird using automator?

  • Package Organization

    There seems to be some discrepency in the way java API's packages can be used and the way my self defined packages can be used. Lets say that we have two different package/directory structures. The one on left (below) is an example of a structure in

  • Student CC For Child

    Hello, My son, who is a 7th grader and is 13, has shown interest in photo and video apps.  I currently own individual products of Premiere and Photoshop Elements 11, which I am fine with and have been using for awhile now. Would I be eligible to sign