New custom object type - SWO1

Hi All,
I need to create a custom object type using SWO1.
The object type needs to be linked to a report program with selection screen(or its tcode). 
The selection screen carries just 1field. The output is a new screen.
Would appreciate if any1 can tell me the step-by-step process to accomplish my objective.
-Ram.

Enter a name.
Hit create. Populate the manadatory pop ups don't populate super type.
Blow out the key field. Create a key field.
Blow out the methods - add a method. Add the code for the method - select the method and hit the program button add code as below:
BEGIN_METHOD RUNDUPREPORT CHANGING CONTAINER.
   SET PARAMETER ID 'VPA' FIELD OBJECT-KEY-PARTNEREMPLOYEEID.
export object-key-partneremployeeid to memory id '99'.
   CALL TRANSACTION 'ZEML' AND SKIP FIRST SCREEN.
*object-key-partneremployeeid.
END_METHOD.
Create your event.
My method calls an abap I wrote that is bound to a transaction.
You will need to set the release status for all of the elements of your object and the object itself.
The question I have is why. Are you calling the object in a workflow? If so you will need to use the fm as below:
DATA: OBJTYPE LIKE SWETYPECOU-OBJTYPE VALUE 'ZRM_WWCONT',
    EVENT LIKE SWETYPECOU-EVENT VALUE 'DuplicateEmail',
     OBJKEY LIKE SWEINSTCOU-OBJKEY,
        EVENTID LIKE SWEDUMEVID-EVTID.
    DATA: BEGIN OF EVENT_CONTAINER OCCURS 0.
            INCLUDE STRUCTURE SWCONT.
    DATA: END OF EVENT_CONTAINER.
    OBJKEY = KNVK-PARNR.
    CALL FUNCTION 'SWE_EVENT_CREATE'
         EXPORTING
              OBJTYPE              = OBJTYPE
              OBJKEY               = OBJKEY
              EVENT                = EVENT
        START_WITH_DELAY     = ' '
        START_RECFB_SYNCHRON = ' '
        IMPORTING
             EVENT_ID             = EVENTID
         TABLES
              EVENT_CONTAINER      = EVENT_CONTAINER
         EXCEPTIONS
              OBJTYPE_NOT_FOUND    = 1
              OTHERS               = 2.
    COMMIT WORK.
Good Luck.

Similar Messages

  • Workflow - Create a new buisness object type for an new infotype.

    Hi all,
    I have an issue with creating a new buisness object type, which is related to a
    supertype, for an new infotype.
    I am new to workflow and business object. I don't have much knowledge in these area. I need to resolve this problem ASAP.
    Could someone please provide me a step-by-step guide on how to create a new business object type, which is related to an existing supertype, for an newly created infotype?
    If would be very much appreciated if someone could assist me in resolving this issue.
    Thank You.

    Business objects are maintained in SWO1 creating a subtype is done with the button: Create subtype (F9)
    If you don't have knowledge of workflow or abap objects, it is perhaps better to tell your employer that and find someone who has.
    If your problem is simply only creating a subtype then go with the instructions I already gave you, if however more things need to be done, like extending the subtype with (virtual)attributes, methods, events, delegating the subtype and implementing the methods in newly created tasks and subsequently workflows I really advise to find someone who can do this, or attend a SAP course on this subject.
    Kind regards, Rob Dielemans

  • Is it Possible to create custom Object type in configuration Tab

    Hi ,
    We have object type for table in Development Tab in SOLAR02 , is it possible to create a custom object type to represent the table object type in Configuration Tab.
    Please let me know the steps , if it is possible.
    Best Regards,
    Saravana

    Hi
    You answer for you problem exists and its a common problem but you need to go for this development as mentioned below
    /people/andreas.diebold/blog/2007/02/13/extend-sap-solution-manager-to-manage-new-object-types
    We did long time back
    Hope ur problm and doubt is resolved now
    Regards
    Prakhar

  • Updating a custom object type

    Please, does anybody know how to update an custom object type which is created as table.
    I did the following:
    CREATE TYPE tmp as object..
    CREATE TYPE tmp_table as TABLE of tmp;
    Is it possible to update tmp_table and if so how?
    Thanks.

    Example:
    create type address_ty as object
    (Street varchar2(50)
    ,city varchar2(25)
    ,zip number)
    create type person_ty as object
    (name varchar2(50)
    ,address address_ty)
    create table customer
    (customer_id number
    ,person person_ty)
    insert into customer (1, person_ty ('Name', address_ty ('Street Name', 'City Name', 1111)));
    insert into customer (2, person_ty ('Name 2', address_ty ('Street Name 2', 'City Name 2', 1111)));
    commit;
    update customer
    set person = person_ty ('Name 2', address_ty ('New Street Name 2', 'City Name 2', 1111))
    where customer_id = 2;
    Please, does anybody know how to update an custom object type which is created as table.
    I did the following:
    CREATE TYPE tmp as object..
    CREATE TYPE tmp_table as TABLE of tmp;
    Is it possible to update tmp_table and if so how?
    Thanks.

  • Delegation of Custom Object Types

    Dear Gurus,
    What is the need for DELEGATING a custom object type that we create using SWO1.
    Thanks,
    VV

    HI Balajisap ,
    'the event 'releasestepcreated' has to be triggered for object types BUS2105 and the custom created for BUS2105 in SWEL right?. But i am getting only BUS2105 not the custom one'..
    The system will always show the standard BO not the custom one. Afetr dlegating you custom BO to the standard one, use your standard BO to trigger your worflow. The standard BO will contain the cistom properties after delegation.
    Regards
    Anik

  • Creation of new customized movement type

    Hi Expert,
    I trying to create a new customized movement type. I am  trying to do by the following steps.
    I want to copy the movement type 501 as Z01
    T.Code : OMJJ
    and the system is asking for field selection,
    i just click movment type and enter
    system is asking movement type from and TO.
    i select 501 and 502 and enter
    and i am trying to do copy as from 501 to z01, and press enter
    System is giving error as " Specify the key within the work area"
    What should i do?
    Rgds,
    Sathya

    Hi Experts,
    I have created the customized movement type as Z41 by copying the movement type from 541. NOwi want to change the description of Z41. It meanse. if we are issuing the material to the vendor for sub-contracting, in MMBE ( Stock OVerview ) system is saying that,"*stock provide to vendor"*
    Likewise can i maintain descripton for  customized movement type as Z41 as " Stock provided to customer " in stock overview.
    Please help for the above.
    Regards,
    Sathya N

  • Generic Object Services for Custom Object Type

    I would like some advice please. I am not an ABAP Developer but I would like to enable the generic object services for transaction PP01 for a custom object type.
    I have searched for information, which suggests that the object needs to be published using the function module SWU_OBJECT_PUBLISH so that it is available in the Business Object Repository. If this is correct, please could someone tell me (in simple terms) how I can do this (with the assistance of an ABAP developer)?
    My colleague did some debugging which seemed to suggest that in order for the generic object services to be available, the field OBJTYP needs to be populated in table T778O. Is this correct? If so, how should this be done?
    Your advice would be greatly appreciated.
    Regards
    Corinne

    Hi,
    i'm also looking for the solution you have asked for.
    if you know how to do it please reply me with the solution.
    Thanks,
    suresh

  • Unicode compatibility check of object types(swo1)

    Dear all,
    Where and how we can maintain unicode checks active for  object types(swo1).
    Please help me.
    Thanks nad regards,

    Hello all,
    this question has been answered:
    Look at the forum post started by Jorge Alonso "Unicode and object type"
    Regards
    Bertram

  • How to create a new custom object in SRM

    Hi there gurus,
    Is there any (easy) way to create a new Object in SRM?
    What I need is a new object similar to a PO, Shopping Cart, RFX... in order to model a business requirement needed after Bid Responses and just before Approval Process (Contract or PO).
    I need a bus id, a range for document numbers, some custom fields related to this new object (one object per Response) and new screens in order to populate needed information...
    Any information regarding that would be really appreciated.
    Thanks in advance.

    Hi and thank you so much for your answers!
    Basicly, just after the last BID Response has been received a new approval process called "XXX" has to be performed in order to classify each response into "Acceptable" or "Unaceptable". It may sound like no business object has to be defined because a new flag field "Acceptable" could be added to the Quote, but it is not so easy because, as i said before, the underlaying workflow needs different kinds of approvals (there are additional issues which I don´t really know) and the functional team have dediced that the only way is creating a new Business Object "XXX".
    So, there should be one "XXX" for each BID Invitation, and this "XXX" object should have one item line for each BID Response received.
    All in all, I need a new screen with an input field in order to specify a BID Invitation number. I have to retrieve all offers for this invitation number and display them in a table with fields: Response Number, Response Status, Company Name, Bidder Name, Country, Amount, Price Type and Resolution (Acceptable o Unacceptable). This table represents the "Item" level for the new object "XXX".
    The header level should contain tabs for "XXX" General Info, Notes&Attachments, Approval and Tracking. We suppose that all of these tabs are standard tabs for all business objects. Furthermore, standard buttons to Save, Order, Print Prev, etc should be added and 2 new buttons have to be visible when "XXX" is approved.
    Thus I need technical information related to three different levels: i) actions to do at EP level (iviews, pages, or whatever I need to integrate this new object into the menus, powl, etc), ii) actions to do at Webdynpro level (I think that lot of standard functionalities could be reused, ie. common tabs for notes&attachments etc) and iii) actions to do at data-model level (in order to store all data regarding the new object in a proper way).
    I hope this help...
    Thank you!
    Edited by: Vicente Ángel Lopez Romero on Jul 30, 2009 11:24 AM (Typo error)

  • Delete Business Object Type (SWO1)

    Hi gurus,
    How can we delete/modify objects in SWO1 that were created in a previous version. Are these actions allowed, is there a workaround if its not allowed?
    Thanks for your help!
    Jason

    Hi Raymond,
    Thank you for your help.
    I have come accross that thread in SDN while doing some research already. But It does not completely answer my question.
    Correct me if I'm wrong, this means there is absolutely no workaround to modify a business object type that has been created in a different version?  If thats the case why does SAP enforce this rule?
    Thank you

  • Where to define new custom data type ?

    Hi,
    In the past (TS 3.5) I've created our own custom type palette file which has been used
    to store new data types and then passed the file to other colleagues. The file would be
    stored in the ......\Program Files\.......\User area.
    My question has arose because we are now using TS 4.1/4.2 which no longer has separate
    NI and User directories in \Program Files.
    Because I now want to edit an existing custom data type, I find that our custom type palette has
    fallen by the way side, forgot about.
    Even though I can see the custom data type definitions within sequence files that employ
    the custom data types, which means I can modify them locally, I intend to return to
    a custom type palette, i.e. global definition.
    What is the relationship between data definitions in a custom type palette and the custom data
    type definitions within a sequence file ?
    When does a palette file update a sequence file ?, which takes control in the event of conflicts ?,
    is a palette file actually necessary if separate sequence files using the same custom data type
    can update each other ? What is good practice when defining custom data types ?
    thanks,
    Gary.
    Solved!
    Go to Solution.

    Hey guys, 
    This is an very interesting thread, and I whole heartedly agree with the advice given so far. I simply wanted to offer some additional advice on type conflicts - which with further answer the initial question regarding which type definition takes precedence in the event of a conflict. 
    It is important to note that TestStand uses type Names and version numbers to identify the different types. It is also important to note that when you use a customer type definition within a sequence, the sequence file (.seq) which houses the sequence will retain a copy of the type definition. This makes distributing sequence files much easier. However, it also opens the door to potential type conflicts. 
    TestStand only allows one uniquely named type to be loaded into memory at any given time, so it uses the versions number of the type to attempt to automatically resolve these conflicts. For example, TestStand can be setup to load whichever type has the highest version number (note that this can be changed via the Preferences tab of the Station Options dialog box). 
    All of this information and more can be found in the following tutorials...
    TestStand Type Versioning and Conflicts
    How Do I Make a Custom Step Type?
    Thanks for your time. I hope this has been useful!
    Message Edited by RER on 02-05-2010 07:58 AM
    Rich R
    Applications Engineer
    National Instruments UK & Ireland

  • New / Custom Movement type creation

    Hi All ,
    Could you please give me some scenarios where we need to create custom movement type ?
    If the table level information is given will be additional help .
    Regards
    Shashank

    Dear Friend,
    New movement type runs parallel with your business needs,there may be various business scenarion where you want to distinguish between standard movement type and customized...
    1)   Like in my case what I've done is created 2 movement types similar to 541,542 respectively....
    We were sending equipments to repair to vendor through 541 and then receive back thru 542...Since these two mvmts(541 & 542) are used in case of subcontracting it was hard to distinguish between subcontracting and repair procedure...hence we created two new mvmt type for the purpose......
                New movement type surely depends upon the scenario and the need for the movement type...
    Note:-You cannot create a new movemnet type for a new business transaction there are some limitations on it,
    http://help.sap.com/saphelp_40b/helpdata/ru/fc/6cec6eb435d1118b3f0060b03ca329/content.htm
    ENJOY SAP.....

  • Required Characteristics from 0BI_ALL for new custom object

    Hello,
    I created a small query with the following characteristics on 0BPARTNER info.provider
    with the following characteristics
    Rows:
    Business Partner (0BPARTNER)
    Country(0COUNTRY)
    Region(0REGION) With Variable Mandatory
    Now I need to secure this query by region.Hence started creating new authorization object ZREGUSCA using RSECADMIN and with the following charactertics / Dimensions limiting to only these characteristics out of 40 characteristics from 0BI_ALL.(I donot want to assign 0BI_ALL to S_RS_AUTH, if i do,i cannot secure this query)
    0REGION
    0TCAACTVT
    0TCAIPROV
    0TCAVALID
    0APO_LOCNO
    0CUSTOMER
    0TCAKYFNM
    My question is why do i need to have the last three characteristics (0APO_LOCNO,0CUSTOMER,0TCAKYFNM)
    included in the object apart from the region and the special Characteristics? I found these three non related objects as required, after a lot of trouble shooting?
    How do i know, what are the required characteristics if i want to secure by plant in another query?
    I will really appreciate your responses and thoughts
    Regards
    Sreeni

    Hi Sreeni
    Because the chars are auth relevant and are in the cube.
    0TCAKYFNM is also auth relevant and therefore you need to authorize key figures.
    Chars that are not explicitly in the drilldown must be authorized with aggregation auth, that is with the colon-sign :
    You can find the information in the authorization protocol. There is a block auth relevant chars.
    Record your query via RSUDO for the restricted user and flag the "with protocol" box or go to RSECADMIN->Error logs where you can enter your name to be logged always.
    There, you will also find the protocol.
    Best Peter

  • Can we add a new custom data type to SIM(7.0)????

    hi can anybody tell me if we could add a custom new data type to SIM or not .If yes then how

    Yes. If you create your own custom java class and then place it in the "idm deployment directory"/WEB-INF/lib folder. You can then use the data type using <new class='your classpath'> and passing in the appropriate parameters.

  • Packaging custom Objects TYPE

    Hello everybody,
    i wonder if it is possible to "package" objects into package definition as follow:
    CREATE OR REPLACE PACKAGE OBJECTS_TEST IS
    TYPE MYTYPE IS OBJECT(T0 VARCHAR2(200),T1 VARCHAR2(200));
    when i try to execute this I always receive the following error:
    ERROR line 3, col 22, ending_line 3, ending_col 22, Found '(', Expecting: ;
    So far, seems that the definition of the object must go internally to the PACKAGE BODY, therefore into a FUNCTION/PROCEDURE.
    I would like to define a package that works as a global handler for all my objects used in my schema, what I'm supposed to do ?
    Any help will be very appreciated,
    Thank you,
    Luigi

    Thank you everybody for your support, and as requested I'll try to be more precise.
    I'm developing functions and procedure to manipulate data that will then be used by a Business Object universe.
    As for now, I've opted to develop some custom transformation procedure in PL/SQL to handle special cases where strings contains value pairs like :
    1~FirstText~2~SecondText
    From this point onward, I need to create a view that needs to be like this:
    VALUE | TEXT
    1 | FirstText
    2 | SecondText
    So far, I've build a PL/SQL procedure that parse the string and returns a TABLE OF OBJECTS to be further used in a VIEW with more or less 100 records.
    Those objects where initially declared externally to my package in this way:
    CREATE OR REPLACE TYPE RadioQuestionParam IS OBJECT (
                                                Q_ID     VARCHAR2 (50 CHAR),
                                                Q_F_ID  VARCHAR2 (50 CHAR),
                                                Q_VALUE VARCHAR2 (4000 CHAR),
                                                Q_TEXT  VARCHAR2 (4000 CHAR)
    CREATE OR REPLACE TYPE RadioQuestionParamTable IS TABLE OF RadioQuestionParam;
    /and the procedure that will use them is...
    create or replace package objects_test
    FUNCTION PARAMS2ROWS2     (P_Q_ID      IN  VARCHAR2,
                                 P_Q_F_ID    IN  VARCHAR2,
                                P_Q_PARAM   IN  VARCHAR2)
                                RETURN RadioQuestionParamTable ; 
    end objects_test;
    /so then I can use:
    select * from table(objects_test.params2rows2('q_id','q_f_id','1~TEST1~2~TEST2'));to produce the desired output.
    As I would like to organize everything in one single package I was wondering if there's a way of using OBJECTS INSIDE A PACKAGE....
    As for now I've modified my code to use michaels2 suggestion but with no luck as when I execute the
    select * from table(objects_test.params2rows2('q_id','q_f_id','1~TEST1~2~TEST2')); I'm receiving a ORA-00902: invalid datatype;
    Thank you for your precious help,
    Luigi

Maybe you are looking for

  • HT1222 Is it possible to get the SSL fix without having to install ios7 (which I tried and hated) or jailbreaking the devices?

    I have a few ipads, iphones and ipod touches of various models, and all run iOS6 of various types (whatever they were running when I last updated them before iOS 7 came along and stopped me being able to get newer versions of 6). I tried iOS7 for a w

  • Java.lang.IllegalStateException in tomahawk tree 2

    Hi, I am getting the following exception in tomahawk tree2 while fetching the data from database and constructing the tree: java.lang.IllegalStateException: Encountered a node [0:0:0] + with an illogical state. Node is expanded but it is also conside

  • My music only wants to play in wifi area?

    My music on my iPhone only wants to play in a wifi zone. When I leave the wifi area only half of them are lite up, the other half doesnt have color but they are there. I seriously dont know what is going on! I even try going onto itunes and syncing t

  • Leopard Major Internet Problem?

    Hey all, I got Leopard this morning and I'm up and running. I heard a lot of the shipments were delayed, and my second shipment of Leopard actually has been delayed until 3:02PM. Here's the problem. I'm up and running and it looks and feels great. I

  • P6 Professional R8.2 unable to connect to database

    Hi, I just installed Primavera P6 Professional R8.2 on Windows XP SP3. Everything went fine during the installation. However, when i first started the application and started logging in, i got the error message *"Unable to connect to database. Would