How to Create Object Type

Hi.
I am Creating Task i found options ... Object Type and  method .. i think we can use user define/Created .. my question is what T Code is to create New Object type and method ...  and further help or suggestion about its development
Regards
Amamd

Hi,
You should try to use Standard BO. Go to tcode SWO1 and you can do a search related to your requirements. If it exists a BO but it doesn't fullfill your requirements you can create a subtype of this BO by menu Settings > Delegate. In this way, you can inherit all of the BO and create your owns.
Regards,

Similar Messages

  • How to create objects in ABAP Webdynpro?

    Hi,
    I want to create the object for the class: <b>CL_GUI_FRONTEND_SERVICES.</b>
    then i want to call file_save_dialog method.
    how shoud i write the code, plz?

    I have written this code:
    v_guiobj TYPE REF TO cl_gui_frontend_services.
    <u> ?????????????</u>
    v_guiobj->file_save_dialog( ...).
    How to create object in the place of ?????????????.
    Bcoz, when i run this i am getting:
    <b>Access via Null object reference not possible.</b>

  • How to use object type collection in my function?

    Hi,
    I want to declare Object type collection with in my function like same a Record type collection. But it is saying error like below
    PLS-00540: object not supported in this context.
    Can anyone tell me how can i resolve this? I don't want to go with create object type functionality.
    Thanks

    Hi below is my full query.
    SELECT  czci.config_hdr_id,
            czci.config_rev_nbr,
            asoqla.quantity,
             (SELECT 
                    node_desc.LOCALIZED_STR
                 FROM   CZ_LOCALIZED_TEXTS node_desc,
                        CZ_PS_NODES ps_nodes,
                        CZ_CONFIG_ITEMS czci1
                WHERE   czci1.config_hdr_id = asoqld.config_header_id
                AND     czci1.config_rev_nbr = asoqld.config_revision_num
                AND    node_desc.INTL_TEXT_ID = ps_nodes.INTL_TEXT_ID
                AND     NVL(node_desc.LANGUAGE,userenv('LANG')) = userenv('LANG')
                AND     czci1.PS_NODE_ID = ps_nodes.PERSISTENT_NODE_ID
                 AND    ps_nodes.DEVL_PROJECT_ID = (SELECT MAX(DEVL_PROJECT_ID) FROM CZ_PS_NODES WHERE PERSISTENT_NODE_ID = czci.PS_NODE_ID)
                AND czci.PARENT_CONFIG_ITEM_ID IN (SELECT sub_sub.CONFIG_ITEM_ID FROM CZ_CONFIG_ITEMS sub_sub
                                                        WHERE sub_sub.CONFIG_HDR_ID = asoqld.config_header_id
                                                        AND sub_sub.CONFIG_REV_NBR = asoqld.config_revision_num
                                                        AND      sub_sub.PS_NODE_NAME = 'fittings')) fitting_material,
             (SELECT 
                    node_desc.LOCALIZED_STR
                 FROM   CZ_LOCALIZED_TEXTS node_desc,
                        CZ_PS_NODES ps_nodes,
                        CZ_CONFIG_ITEMS czci
                WHERE   czci.config_hdr_id = asoqld.config_header_id
                AND     czci.config_rev_nbr = asoqld.config_revision_num
                AND    node_desc.INTL_TEXT_ID = ps_nodes.INTL_TEXT_ID
                AND NVL(node_desc.LANGUAGE,userenv('LANG')) = userenv('LANG')
                AND     czci.PS_NODE_ID = ps_nodes.PERSISTENT_NODE_ID
                 AND    ps_nodes.DEVL_PROJECT_ID = (SELECT MAX(DEVL_PROJECT_ID) FROM CZ_PS_NODES WHERE PERSISTENT_NODE_ID = czci.PS_NODE_ID)
                AND czci.PARENT_CONFIG_ITEM_ID IN (SELECT sub_sub.CONFIG_ITEM_ID FROM CZ_CONFIG_ITEMS sub_sub
                                                        WHERE sub_sub.CONFIG_HDR_ID = czci.CONFIG_HDR_ID
                                                        AND sub_sub.CONFIG_REV_NBR = czci.CONFIG_REV_NBR
                                                        AND      sub_sub.PS_NODE_NAME = 'tubing')) tubing_material,
            NVL((SELECT czci.item_val
             FROM cz_config_items czci
             WHERE     czci.config_hdr_id = asoqld.config_header_id
             AND czci.config_rev_nbr = asoqld.config_revision_num
             AND czci.value_type_code <> 4
             AND czci.ps_node_name = 'control_circuit_name'),
             (SELECT 
                    node_desc.LOCALIZED_STR
                 FROM   CZ_LOCALIZED_TEXTS node_desc,
                        CZ_PS_NODES ps_nodes,
                        CZ_CONFIG_ITEMS czci
                WHERE   czci.config_hdr_id = asoqld.config_header_id
                AND     czci.config_rev_nbr = asoqld.config_revision_num
                AND    node_desc.INTL_TEXT_ID = ps_nodes.INTL_TEXT_ID
                AND NVL(node_desc.LANGUAGE,userenv('LANG')) = userenv('LANG')
                AND     czci.PS_NODE_ID = ps_nodes.PERSISTENT_NODE_ID
                 AND    ps_nodes.DEVL_PROJECT_ID = (SELECT MAX(DEVL_PROJECT_ID) FROM CZ_PS_NODES WHERE PERSISTENT_NODE_ID = czci.PS_NODE_ID)
                AND czci.PARENT_CONFIG_ITEM_ID IN (SELECT sub_sub.CONFIG_ITEM_ID FROM CZ_CONFIG_ITEMS sub_sub
                                                        WHERE sub_sub.CONFIG_HDR_ID = czci.CONFIG_HDR_ID
                                                        AND sub_sub.CONFIG_REV_NBR = czci.CONFIG_REV_NBR
                                                        AND      sub_sub.PS_NODE_NAME = 'pneumatic_schematics'))
             ) schematic_name
    FROM    aso_quote_lines_all asoqla,
            aso_quote_line_details asoqld,
            cz_config_items czci
    WHERE   asoqla.quote_header_id = 58455
    AND     asoqla.item_type_code = 'MDL'
    AND     asoqla.quote_line_id = asoqld.quote_line_id 
    AND     asoqld.config_header_id = czci.config_hdr_id
    AND     asoqld.config_revision_num = czci.config_rev_nbrBelow is my explain plan
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.11       0.11          0          0          0           0
    Execute      2      0.01       0.01          0          0          0           0
    Fetch        3      0.06       0.06          0       3429          0          19
    total        6      0.18       0.18          0       3429          0          19That's what i am planning to write each select queries in a pipelined function then join all the functions. If i run one each query it is giving less query fetch
    Thanks

  • How to create object from Table?

    Hi all,
    Is there any command to create an object type from a table?
    I i want to that command to create object type from emp table insted of typing the following command:
    CREATE TYPE emp_t AS OBJECT
    (empno NUMBER(6),
    ename VARCHAR2(25),
    job VARCHAR2(10),
    mgr NUMBER(6),
    hiredate DATE,
    sal NUMBER(8,2),
    comm NUMBER(2,2))
    any help would highly be appriciated.
    Thank you in advance,
    Alireza

    Hi Jafar,
    Thanks for your attention,
    I dont want to create synonym,
    I just want to create some Object types and work with XMLDB and create xsd or somthing like that using XMLDB packages.
    I supose There shold be a simple way to do that.
    Alireza

  • How to create object at infoview

    Hi all
    i am using SAP BO 3.1
    How to create object called SL NO this is not available at universe and second object  "code" is coming from universe.
    final output should be like this
    SL NO
    code
    1
    Non-Emergency ED Utilization
    2
    Office Visits
    3
    Inpatient Stays
    thanks in advance!!
    Ranjeet

    Hi Ranjeet
    Insert one column in that report. Write formula like this...
    =LineNumber()-1
    Regards,
    G

  • How to create objects in stack

    I am working on Weblogic 10 and JDK 1.5. In Java the objects are always created in heap. Can anybody tell me how to create objects in stack?

    SKMoharana wrote:
    i need objects to be allocated in stack as my application should respond in real time (time predictable).I heard this is possible in Mustang.If I am understanding you correctly, allocating objects on the stack will not help you, and creating objects on the heap will not hurt you.
    It is provably impossible to create a truly time predictable application (in any language), so what you're really looking to do is create a program that responds acceptably quickly for an acceptable percentage of the time. For this you can create benchmarks like "responds in 250 milliseconds or less 99.5% of the time".
    To this end, you could create a prototype program that creates the objects you wish on the heap, and see if there actually is a problem. Don't fall into the trap of premature optimization.
    Even if you do discover that your object creation IS the problem, heap allocation is not the problem. Take a look at this article. It takes ten machine instructions, less than 1 millisecond, to allocate an object.
    Your performance problems are most likely in the object initialization (look for long loops or deep recursions), the display (if this is a GUI application), or your network connection (if this is a web application).

  • How to create objects to paint itselfs without specifiy the location

    How to create objects to paint itselfs without specifiy the location using Java 2D

    shot in the dark: pass in the Graphics2D context to the method ?

  • How to create a type

    hi,
    can anybody tell me how to create a type where in we can execute a procedure, every time we call it.

    Hello,
    What is your exact product version ?
    Are you sure there is any relation woith the Oracle Forms product ?
    Francois

  • How to create SCD2 type manually in informatica?

    Please Can you describe with example how to create SCD2 type manually in infromatica?

    Hi Manoj,
    You should not delete the auto generated orchestration even do not modify it, as it is stated in msdn.
    The BizTalk WCF Service Consuming Wizard creates in your BizTalk project the BizTalk schemas and types necessary to consume WCF services. The BizTalk types such as port types and multipart message types are created in an orchestration. We recommend
    that you do not modify the orchestration that the wizard creates. Instead, you can add new orchestrations in the BizTalk project for your purposes.
    --------- MSDN
    For Refernce
    In your solution, if you are seperating your schemas project from orchestration project, in that case i personally advise to generate wcf endpoint in your schema project and after adding schema reference in orchestration
    project you manually create the multipart message and a request response port as it will not display in existing port.
    Regards

  • How to create Activity type

    How to create Activity type
    below are the details
    x sales MnF Expenses
    y FMS MnF Expenses

    dear sudhir
    KA01 - Create Primary Cost Element for the new activities type.
    KL01 - Create Activity Type tied to the primary cost element.
    regards
    rohit

  • Exception '1250' is not defined for method 'CREATE' object type 'MESSAGE'

    Dear experts,
    I set up the document distribution (SWU3, backgroundjob SMTP, activated the workflows, flagged the linkages, etc). Now, I have still a error:
    Exception '1250' is not defined for method 'CREATE' object type 'MESSAGE'
    Does anyone know what the cause of exception 1250 could be?
    Thanks in advance and kind regards,
    Samuel

    hi,
    SAP ITS is SAP Internet Transaction Server which provides connection between SAP ERP system and html client.
    Check with bassis, i think TCP/IP or work station application not configured yet. i guess?
    Benakaraja
    ??P

  • How to create output type for GR,GI?

    Can any one explain,How to create output type for Goods Receipt,Goods Issue.?
    and How to take print out for both?

    Hi, jayant in standard u have output type for picking list, delivery doc complete, theres no output type seperately for PGI or PGR
    I am sure u need the help of tech guy to create the new output type for ur requirement
    regards
    giri

  • Creating object type u0093no objectu0094

    We have created No objcet table SBO will create only code and name fields but create document table SBO will create DocEntry and also the Extra fields that will help  to link to other documents.
    Above things  that  we have clear idea
    Could u tell me  creating object type “no object”  can we insert the data……..??
    Or its compulsory  to using  UDO?

    using  .srf   is it possible  ???   i have sending u code 
    error form bad datasource.. form Unique id 'MPPeriod',item unique id ' cmbppt'
    but we check  all unique id   that is correct
    Public Class payperiod
        Private WithEvents SBO_Application As SAPbouiCOM.Application
        Dim AddStarted As Boolean
        Dim RedFlag As Boolean
        Private oform As SAPbouiCOM.Form
        Private oCodetext As SAPbouiCOM.EditText
        Private noteedittext As SAPbouiCOM.EditText
        Private daystext As SAPbouiCOM.EditText
        Private worktext As SAPbouiCOM.EditText
        Private starD As SAPbouiCOM.EditText
        Private endD As SAPbouiCOM.EditText
        Private Sub SetApplication()
            AddStarted = False
            RedFlag = False
            '// Use an SboGuiApi object to establish connection
            '// with the SAP Business One application and return an
            '// initialized application object
            Dim SboGuiApi As SAPbouiCOM.SboGuiApi
            Dim sConnectionString As String
            SboGuiApi = New SAPbouiCOM.SboGuiApi
            '// by following the steps specified above, the following
            '// statement should be sufficient for either development or run mode
            sConnectionString = Environment.GetCommandLineArgs.GetValue(1)
            '// connect to a running SBO Application
            SboGuiApi.Connect(sConnectionString)
            '// get an initialized application object
            SBO_Application = SboGuiApi.GetApplication()
        End Sub
        Public Sub New()
            MyBase.New()
            SetApplication()
            addmenuitems()
        End Sub
        Private Sub DrawForm()
            Dim oitem As SAPbouiCOM.Item
            Dim oCombopptype As SAPbouiCOM.ComboBox
            Try
                LoadFromXML("PayPeriodMaster.srf")
            Catch ex As Exception
                MessageBox.Show(ex.Message)
            End Try
            oform = SBO_Application.Forms.Item("MPPeriod")
                       '''''''''combo for pay type
            oitem = oform.Items.Item("cmbppt")
            oCombopptype = oitem.Specific
            oCombopptype.ValidValues.Add(CStr(3), "Employee")
            ' oCombopptype.ValidValues.Add(CStr(SAPbouiCOM.BoStatusBarMessageType.smt_Success), "Labour")
            oCombopptype.ValidValues.Add(CStr(4), "Labour")
            ''''''' combo for code
            oitem = oform.Items.Item("txtcode")
            oCodetext = oitem.Specific
            '''''''' startdate
            oitem = oform.Items.Item("txtSDate")
            starD = oitem.Specific
            ''''''''''end date
            oitem = oform.Items.Item("txtEDate")
            endD = oitem.Specific
            ''''''''''days in period
            oitem = oform.Items.Item("txtDPrd")
            daystext = oitem.Specific
            '''''''''''' working days
            oitem = oform.Items.Item("txtWDays")
            worktext = oitem.Specific
            ''''''' notes''''''''''''
            oitem = oform.Items.Item("txtNotes")
            noteedittext = oitem.Specific
        End Sub
        Private Sub addmenuitems()
            Dim oMenus As SAPbouiCOM.Menus    ' the menus collection
            Dim oMenuitem As SAPbouiCOM.MenuItem ' the new item
            'get the  menus collection from the application
            oMenus = SBO_Application.Menus
            Dim ocreationPackage As SAPbouiCOM.MenuCreationParams
            ocreationPackage = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams)
            oMenuitem = SBO_Application.Menus.Item("2048") 'sales menu id
            oMenus = oMenuitem.SubMenus
            ocreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING
            ocreationPackage.UniqueID = "mnu1"
            ocreationPackage.String = "Payperiod"
            ocreationPackage.Enabled = True
            ocreationPackage.Position = 15
            Try
                ' if the menu already exist thus code will fail
                oMenus.AddEx(ocreationPackage)
            Catch ex As Exception ' menu already exist
                MessageBox.Show("menu already exist")
            End Try
        End Sub
        Private Sub SBO_Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.MenuEvent
            If (pVal.MenuUID = "mnu1") And (pVal.BeforeAction = False) Then
                Try
                    Dim f As SAPbouiCOM.Form
                    f = SBO_Application.Forms.Item("MPPeriod")
                    f.Select()
                Catch ex As Exception
                    DrawForm()
                End Try
            End If
        End Sub
        Private Sub SBO_Application_StatusBarEvent(ByVal Text As String, ByVal MessageType As SAPbouiCOM.BoStatusBarMessageType) Handles SBO_Application.StatusBarEvent
            If MessageType = SAPbouiCOM.BoStatusBarMessageType.smt_Error And AddStarted = True Then
                RedFlag = True
            End If
        End Sub
        Private Sub LoadFromXML(ByRef FileName As String)
            Dim oXmlDoc As Xml.XmlDocument
            oXmlDoc = New Xml.XmlDocument
            '// load the content of the XML File
            Dim sPath As String
            sPath = IO.Directory.GetParent(Application.StartupPath).ToString
            oXmlDoc.Load(sPath & "\" & FileName)
            '// load the form to the SBO application in one batch
            SBO_Application.LoadBatchActions(oXmlDoc.InnerXml)
        End Sub
        Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
            Dim oDocRec As SAPbobsCOM.Recordset
            Dim f As SAPbouiCOM.Form
            Dim s As String
            ' Events of the Blanket Agreement form
            If (FormUID = "MPPeriod") Then
                If (pVal.Before_Action = True) Then
                    If pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED And pVal.ItemUID = "1" Then
                        Dim objRecser As SAPbobsCOM.Recordset
                        objRecser = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                        ' SBO_Application.MessageBox("hi")
                        ' objRecser.DoQuery("INSERT INTO [@MastPayPeriod]( Code,Name,U_PayPeriodTypeCode, U_PayPeriodCode, U_StartDate, U_EndDate, U_DaysInPeriod, U_WorkingDays, U_Notes) VALUES (1,1,'" & oform.Items.Item("cmbppt").Specific.Value & "','" & oform.Items.Item("txtCode").Specific.Value & "',& '"oform.Items.Item("cmbSDate").Specific.Value & "','"& oform.Items.Item("cmbEDate").Specific.Value & "','" & oform.Items.Item("txtDPrd").Specific.Value & "','" & oform.Items.Item("txtWDays").Specific.Value & "','" & oform.Items.Item("txtNotes").Specific.Value & "')")
                        objRecser.DoQuery("INSERT INTO [@MastPayPeriod](Code,Name,U_PayPeriodTypeCode, U_PayPeriodCode, U_StartDate, U_EndDate, U_DaysInPeriod, U_WorkingDays, U_Notes) VALUES (1,1,'" & oform.Items.Item("cmbppt").Specific.Value & "','" & oform.Items.Item("cmbCode").Specific.Value & "','" & oform.Items.Item("txtSDate").Specific.Value & "','" & oform.Items.Item("txtEDate").Specific.Value & "','" & oform.Items.Item("txtDPrd").Specific.Value & "','" & oform.Items.Item("txtWDays").Specific.Value & "','" & oform.Items.Item("txtNotes").Specific.Value & "')")
                    End If
                End If
                If (pVal.Before_Action = False) Then
                    If (pVal.ItemUID = "2") And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED) Then
                    End If
                End If
            End If
        End Sub
        'Private Sub SaveAsXML(ByRef Form As SAPbouiCOM.Form)
        '    Dim oXmlDoc As Xml.XmlDocument
        '    Dim sXmlString As String
        '    oXmlDoc = New Xml.XmlDocument
        '    // get the form as an XML string
        '    sXmlString = Form.GetAsXML
        '    // load the form's XML string to the XML document object
        '    oXmlDoc.LoadXml(sXmlString)
        '    Dim sPath As String
        '    sPath = IO.Directory.GetParent(Application.StartupPath).ToString
        '    // save the XML Document
        '    oXmlDoc.Save((sPath & "\PayPeriodMaster.xml"))
        'End Sub
    End Class

  • How to create multiple TYPES of objects from one menu?

    Q: How can I create a single class to create objects of multiple 'object classes' in a way that is not a huge switch statement?
    Explaination:
    Let's say that I have an application that I am building, that manages five hundred object types. A properly-built object subclassing tree is created, and I want to be able to create objects of any 'leaf node' of this subclassing tree using a single 'objectCreate()' method in a 'factory object'. The purpos of this method will be to create an instance of the correct object, pass a handle to a few collections for properly sorting and storing these objects in groups.
    Usually, one could create a switch in this function, testing for the type of object that the user wants to create from the menu. But in the case of having hundreds of possible object choices, this becomes harder and harder code to maintain (let alone performance).
    Any suggestions?

    But if my menu has:
    1. German Shepard
    2. Doberman Pinscher
    3. Malamut
    4. Persian Long-hair
    5. Siamese
    6. Tabby
    And my object class tree goes:
                                  [ Animal ]
                 [ Cat ]                              [ Dog ]
      [ various breeds ]                         [ various breeds ]How do I code the menu class to respond to the input, so that it runs the correct [breed] object's constructor?
    The line:
    Animal choice = new xxxxxxxx();
    I can't use a variable to replace 'xxxxxxxx' in run-time, but having a ton of choices in code sounds/looks unreasonable.
    if (choice == "Doberman Pinscher")
    Animal choice = new doberman();
    else if (choice == "Tabby")
    Animal choice = new tabby();
    Do you see what I am trying to avoid? I am not experienced enough to instantly realize how to avoid the latter, and instead, do a single instantiation command for the correct constructor.

  • Creating object type no attributes... how???

    Hi I need to creating any object type has no attribute, its possibily?
    I need that only send to java class.
    example:
    create type t1 as object();
    Oracle exception!!!! please help me, thanks

    No attributes and no methods? You're talking about "incomplete types" in that case (at least in 10g).
    A quote:
    "An incomplete type is a type created by a forward type definition. It is called "incomplete" because it has a name but no attributes or methods. It can be referenced by other types, and so can be used to define types that refer to each other. However, you must fully specify the type before you can use it to create a table or an object column or a column of a nested table type."
    If it fits your requirement, look here:
    http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_8001.htm#SQLRF01506
    Boa sorte.
    PS: It talks there about "SQLJ object type" but I never used them so I cannot comment. Check that out too.

Maybe you are looking for

  • HP 6600. I always get the issue scanner unreachable

    When I go to scan a document or photo, I get the error, scanner unreachable. When I try manage scan to computer, I get, scan to computer is unavailable.  When I go to my printer, sometimes my computer is not listed, sometimes it is. It is currently l

  • Global error page - compatible with partial page rendering

    My global error page doesn't show in some isolated cases. Could this be because of partial page rendering? What changes might be needed to have it work in all cases? I have created a global error page and set it in the web.xml with: <error-page> <exc

  • Workflow Escalation Issue

    Hi All, We have many workflows in our project the current issue is related to Escalation. Manager (Level 1) approve the Employee Leave request then also his work item is escalated to his higher level manager ( level 2). Could you please guide me or p

  • My System root certificate is not trusted and I cannot open Preferences with my Administrator password.

    My computer was hacked three days ago and malware installed. After consultation with Apple Support I reinstalled the OS and all seemed to be well. Today I tried to set some Preferences but my Admin password wouldn't work. I tried to reset it using my

  • Why can't I use 'Control and Arrow' to zoom with Leopard?

    Hi guys, I've lost the ability to quick track zoom since installing Leopard. When I press Control and one of the four vertical or horizontal arrows, the Spaces icon shows and shoves my Logic out of the way. I hope that there's some way to disable thi