Use of identifier in ByD Studio business objects

As Wed Feb 2nd in VQ3), we introduced a new identifier data type for partner BOs.
ByD Studio contains 2 identifier:
element ID                 : ID;                  // identifier 2 (SAP "best practiceu201D)
element Identifier   : Identifier;           // identifier 1 (u201CCCTS compliant")
As the CCTS-complient  data type u201CIdentifieru201D has various difficulties, we recommend urgently to use the data type "ID". The differences between the two data types is explained below:
1. Length
The DT Identifier has a length of 255 char.
The DT ID has a length of 60 char.
2. Upper case conversion
The DT ID supports upper case only. User entries with lower case characters are automatically converted to upper case. This is the same behavior as almost all ByD identifier data types (e.g. BusinessTransactionDocumentID, ProductID, BusinessPartnerID, etc.)
The DT Identifier supports lower case letters as well.
3. Alpha conversion
The DT ID supports alpha conversion. User entries which contain number characters only are filled with zeros from the left side (leading zeros). On the UI the leading zeros are suppressed automatically. This is the same behavior as almost all ByD identifier data types (e.g. BusinessTransactionDocumentID, ProductID, BusinessPartnerID, etc.) The DT Identifier does not support alpha conversion. This leads to an u201Cunexpectedu201D sort order on the UI.
This leads to the following sort behavior:
Sort order ID     Sort order Identifier:
.1.1                           .1.1
1                            1
5                            1.1
10                            10
15                            100
50                            15
100                            5
1.1                            50
ABC                            abc
(no lower case)       ABC
4. Structure
The ID data type is flat. There is no need for the u201C.Contentu201D suffix any longer.
The Identifier data type is structured (contains supplementary components), so the  u201C.Contentu201D suffix  is needed (although the supplementary components are disabled in the BO).
5. Behavior in ByD script coding:
The following coding works fine:
import ABSL;
var x = 1;
if (this.ID == "") {
// is true if ID is initial
this.ID = x.ToString();
this.ID = "1";
if (this.ID == "1") {
// is does not work, because u201C1u201D was filled with leading zeros
if (this.ID == "000000000000000000000000000000000000000000000000000000000001") {
// is true now because u201C1u201D was filled with leading zeros
raise IDMessage.Create("I", this.ID);
// leading zeros are suppressed on the UI: u201CID: 1u201D
6. Restrictions in Extensibility and Analytics:
Only the ID data type will be supported in extensibility and analytics:
Extensibility: It will be possible to add an extension field in an BO extension (planned for FP3.0).
element ID                 : ID;                  
Analytics: Analytics supports only character fields with a maximum length of 60 characters & alpha conversion.
Consequence: the u201CIdentifieru201D DT cannot be used in Extensibility and Analytics.
7. Adoption
If you have used the data type "Identifier" before and want to change the BO to "ID", the following adoption tasks are necessary:
a)     Business Object: change the BO definition file (see point 1)
Note: During my tests I got a activation error. In this case I solved the problem by Clean -> Save -> Activate. In this case, test data are lost
b)     Business Object: Implementation: remove the u201C.Contentu201D suffix
c)     UI: After the BO change, the following runtime error occurs in the affected UI. In the error text the following text occurs: u201CMapping of proxy name of attribute  failed.u201D
Solution: Open the UI Designer,
(1)     Tools -> Update Meta Data
(2)     Go to the data model and do u201CUnbindu201D and u201CBindu201D again for the affected field
(3)     Save & Activate
d)     MDAV, Forms, Web services -> not analyzed. Assumption here is that the dependent objects have to be cleaned and activated.

OK, I have found your code in your previous post.
It works in 9.2.0.1.0 and 8.1.7.0.0.
SQL> CREATE OR REPLACE TYPE t_assoc_agents_address AS OBJECT
  2  (V_CONTACT_NAME VARCHAR2(120),
  3  V_ADDRTYPE VARCHAR2(80),
  4  V_ADDRESS_LINE1 VARCHAR2(50),
  5  V_ADDRESS_LINE2 VARCHAR2(50),
  6  V_ADDRESS_LINE3 VARCHAR2(50),
  7  V_CITY_STATE_ZIP VARCHAR2(100),
  8  V_PHONE VARCHAR2(50),
  9  V_ADDRESS_FAX VARCHAR2(30),
10  V_ADDRESS_EMAIL VARCHAR2(80)
11  )
12  /
&nbsp
Type created.
&nbsp
SQL> CREATE OR REPLACE TYPE nt_assoc_agents_address AS TABLE OF t_assoc_agents_address
  2  /
&nbsp
Type created.
&nbsp
SQL> var c refcursor
SQL> col v_address_fax format a15
SQL> col v_address_email format a15
SQL> declare
  2   lv_assoc_agents_add_out nt_assoc_agents_address
  3   := nt_assoc_agents_address(
  4     t_assoc_agents_address(null,null,null,null,null,null,null,
  5     'New Fax', 'New Mail')
  6   );
  7  begin
  8   open :c for select V_ADDRESS_FAX,V_ADDRESS_EMAIL from
  9   table(cast(lv_assoc_agents_add_out as nt_assoc_agents_address));
10  end;
11  /
&nbsp
PL/SQL procedure successfully completed.
&nbsp
SQL> print c
&nbsp
V_ADDRESS_FAX   V_ADDRESS_EMAIL
New Fax         New MailWhat is your Oracle release and how are you using ref cursor (if I interpret your example right) ?
Rgds.

Similar Messages

  • BI Accelerator used in combination with SAP Business Objects Explorer

    Hi ,
    If you use SAP Netweaver BWA and SAP Business Objects Explorer Blade, do you only get the full benefit with using SAP BO Explorer, or will the same queries ran in BEx 7 Anaylser also benefit from the in memory OLAP processing?
    I'm guessing that the SAP BOE Blade will only benefit SAP BOE.
    It would be great if the current BWA had the ability to in-memory the OLAP part of the processing, as then it might be worth the hassle of getting it installed.
    Thanks,
    Jamie

    Hi
    May be the note : 1384526, could give you an insight.
    Regards, Hyma
    Edited by: Hymavathi Yanamadala on Feb 25, 2010 5:13 AM

  • The Acquisition of Business Objects

    On one business news channel, I saw a half hour program on Business Intelligence.  An officer identified as being from Business Objects was present.  This is proof of the growing importance of Business Intelligence, and a good way for SAP to market BI.
    On the negative side, I read an article that most mergers and acquisitions end up reducing shareholder value.  We will have to look up the new market capitalization of SAP, and compare it to the market capitalization of SAP and Business Objects before the acquisition.
    What is your opinion of the acquisition of Business Objects by SAP?
    Al Lal
    www.olap.wetpaint.com

    Casual investigation into the use of Crystal Reports with MII yielded a major advantage and a couple of disadvantages:
    ADVANTAGE: Nice(r?)-looking reports can be generated in a fraction of the time from traditional MII reports
    DISADVANTAGES:
    1. Deploying similar reports to multiple sites could be a significant headache, since the "XML and Web Services" connection definition is a string and not a set of parameters that allows the server name (for instance) to be modified easily.
    2. A schema is required for any report, so this must be created manually or dynamically via XSL
    Chip:  Would love to hear what you end up doing or determining.
    Edited by: David McKnight on Jun 18, 2008 2:04 AM

  • How to do the Unicode Check for Business Objects ?

    Hi all,
    How to do the Unicode Check for Business Objects ?
    Note: All business Objects are stored in BOR (Business Objects Repositary)
    Thanks in advance
    Sri..

    Hi..
    i have used the  UCCHECK  transaction for some business Objects
    For some business objects it is showing that No Unicode Errors found Ex: Z00MARA
    and for Business Objects it showing the message like : There is no program corresponding to this selection.
    Why system is showing like this ?
    Thanks in advance
    Sri..

  • Business Objects Authorization

    Hi Gurus,
    We are planning to implement Business Objects XI in 2 of our projects. In one of our projects data is stored in SAP BW cubes and in the other project we have data stored directly in SQL.
    I have tried to investigate in detail for authorization concept in both enviroments but I could not find much. I heard it is possible to use existing authorization concept developed in BW but I do not know if this is correct.
    Now my questions are the following:
    1 - Is it possible to use existing BW authorization concept in Business Objects reporting?
    2- In general how authorization issue is handled in Business Objects regarding SQL, Oracle, etc?
    3- I would appreciate if you can recommend / send some documents
    I really appreciate your help and thanks in advance for your valuable support.
    Thanks and best regards,
    Arda.

    Hi,
    comments inlined:
    1 - Is it possible to use existing BW authorization concept in Business Objects reporting?
    >> yes by using SSO and Server side Trust you can leverage the authorizations configured in you BI System without the need to replicate them
    2- In general how authorization issue is handled in Business Objects regarding SQL, Oracle, etc?
    >> that depends on your choice. there are also options to define data level security in a Universe.
    3- I would appreciate if you can recommend / send some documents
    >> take a look at the documentation for the Universe Designer and the SAP integration Kit available on help.sap.com
    Ingo

  • Business objects

    Hi,
    I have no idea about business objects.What are business objects and as a functional consultant what I can do with business objects meaning can I give some additional things with very little efforts to my client or may be some convinience in use of SAP using business objects ?
    WHat and where business objects can be useful ?
    Please suggest.
    Thanks in advance
    Regards,
    manOO

    Hi,
    <b>What are business objects and as a functional consultant what I can do with business objects?</b></b>
    http://help.sap.com/saphelp_46c/helpdata/en/59/ae4484488f11d189490000e829fbbd/frameset.htm
    <b>Business objects</b> are real world entities modeled as objects in an information system.
    Business objects encapsulate both data structures and the functions applied to the data, but hide their full complexity from other objects. This encapsulation of data and functions makes it easier to modify program components, because you can program with the relevant entities without having to know all the implementation details. You can also reuse existing functions.
    <b>WHat and where business objects can be useful ?</b>
    Client programs access business objects by reading their attributes, or by calling the methods that make up the object’s interface:
    Attributes
    Attributes describe the data stored in an object through a set of properties. They provide direct read access to the data structures of objects, but client programs cannot change them from outside.
    Methods
    Methods provide a way to encapsulate the data structures of business objects, and to process them. When accessing an object, the client program calls a method with parameters and gets back return parameters.
    Interface
    The interface is the set of methods associated with a business object, and determines how an object interacts with the outside world.
    The client program defines the object types to be used and, at runtime, creates object instances of those object types.
    SAP business objects are managed in R/3's Business Object Repository (BOR).
    Regards,
    Naveen.

  • Business Object and tasks for Plant Maintenance

    Hi,
    I would like to know which object and method should I use to create the following tasks?
    Inspect equipment to check if faulty
    Replace equipmentCreate purchase order
    Maintain equipmentCreate service order
    Thank you.

    Hi Arun,
    Swtich on the event trace using tcode SWELS and then perform each of the operations you mentioned above. Then see the event trace using tcode SWEL to check which business object events and business objects are associated with these operations i.e. inspect equipment, replace equipment, maintain equipment etc.
    Then you can drill down in those business objects using SWO1 tcode and check if there are any methods for your requirements or not.
    Regards,
    Ibrahim

  • BAPI's Business object not found in the search help of LSMW.

    Hi,
    I am loading Open sales contracts using LSMW BAPI method.
    The business object for this is BUS2034 and the FM is BAPI_CONTRACT_CREATEFROMDATA.
    But when i am selecting the Business object in LSMW, it is not appeared in the search help.
    Is there any way to add the required Business object, Function module in LSMW manually?
    Please suggest.
    Thanks,
    Vishnu..

    Have checked the entries in table TBDBA (BAPI ALE mapping) for this BO ? If this is not available, you may have generate "ALE interface for BAPI" using Transaction code BDBG. 
    P.S. See the code written in FM "/SAPDMC/LSM_F4_BUSOBJ" (Search help for BO) and read reference to table TBDBA in line number 54.
    Regards, Vinod
    Edited by: Vinod Kumar on Aug 30, 2011 5:30 PM

  • About Exceptions in business object

    Hi all,
    could anyone please brief me about exceptions in business objects and how can we create them their.
    i have tried to search also  but haven't found any satisfactory solution.
    regards
    Abhay

    Exception in business objects are baiscally 3 types :Temporary, Application and system exception.
    Temporary exception do not send the work item(running program)into error they can be retried later. while both Application and system exception send the work item into error.
    you can make your own exception also in swo1 there when you go to exception tab -->press create button
    and then u have to give exception no. say 1001, Application area say z001 and message type say 004 i.e.
    message for invalide date. now exception will be created and then save it.
    In se37 in function module (FM) also u can create exceptions and that FM can be used according to your requirnment in your business object. for eg. In FM BAPI_PO_RELEASE you can see ( in se37)  different exceptions are used. similarly you can make if you are using any function module in your business object.
    i hope this information will be helpful for u.
    Regards
    saurabh

  • Reuse AET field in other enhanced business object

    Hi,
    The discussion to the topic make reuse of field created by AET in othe enhanced business object started in this previous thread:
    Custom fields for both Marketing plan and campaign
    However, since this is not the real issue in that thread, but at the end there was still open question, I decided to post this thread to give a little bit clarification for this topic.
    This is kind of complementary to this link: /people/tzanko.stefanov2/blog/2008/11/18/application-enhancement-tool-creating-and-reusing-custom-fields-with-crm-70-part-1-of-2
    If one creates a field in MKTPL_MPL -> Header using AET, he can reuse it in MKTPL_CPG -> Header. The field created in MKTPL_MPL -> Header is also available in MKTPL_CPG in "Add Reusable Fields" popup.
    I hope this can help you reusing field in other business object.
    One of the main reason why customer should "reuse" the field, if it's make sense and possible, is because the database limitation. Specially in One Order application like Sales Order, Service Order, etc, which has one generic DB table for the header, defining two fields which have the same meaning one for Sales Order and Service order will fill the DB table with some more bytes for the second field. If a field has the same meaning over several BOs, consider to make reuse of this field.
    Note: transaction AXTREG is maintained by SAP as a registry for AET. Customer should not make any changes on it.
    Regards,
    Steve
    Edited by: Steve Jonathan Tirtha on Nov 9, 2009 10:25 AM

    Terminology:
    1. Enhanced Business Object: This is a term defined and used by AET to specify what business object can be enhanced. This is more or less in 1 to n relationship to the UI Object Type define from the UI framework. I.e. SALES_ORDER, ACCOUNT, MKTPL_CPG(Marketing Campaign), MKTPL_MPL(Marketing Plan), etc. See transaction AXTREG under node Extensible BOs.
    2. Enhanced Business Object Part: This is a term defined and used by AET as a sub object of enhanced business object. An enhanced business object has at least one or several part pyhsically can be enhanced. I.e. MKTPL_MPL -> Header, MKTPL_CPG -> Header, SALES_ORDER->ORDERADM_H, etc. Enhanced BO part is kind of logical name for a technical place. See transaction AXTREG und the node BO Parts.
    3. A technical place is a name for an extension include or customer include, where a field is created by AET. I.e. MKTPL_MPL -> Header has INCL_EEW_MKTPL_HEADER as technical place. See transaction AXTREG und the node Place.
    4. Custom Field/FIeld Enhancement/AET field: This term is used for field created by AET in a specific enhanced BO part.
    5. Reusable Field: This term is used for field that is created in one enhanced business object part and field is visible in other enhanced BOs that share the same enhanced BO part. I.e. MKTPL_MPL -> Header and MKTPL_CPG -> Header share the same part, because the part points to the same technical place: INCL_EEW_MKTPL_HEADER.

  • Using JSP, how to add new items to Fuego Business Object "Group" ?

    Given the classic Fuego Business Object (FBO) example of an Order, which has a few attributes (orderNumber, customerName, Order Date) and a GROUP attribute called OrderItems (ItemName, ItemPrice, etc.), I want to use a JSP to allow user to submit order. My JSP has a form and uses the Fuego Tag Library. There are FORM INPUT elements for Order.orderNumber, Order.customerName, Order.OrderDate, and a table using dynamic HTML to add rows and INPUT elements for new items to add to the GROUP attribute OrderItems - ItemName, ItemPrice, etc.)
    But when the user wants to add "OrderItems" to the order, I don't know how to get Fuego to create OrderItem Objects to add to the array (aka GROUP).
    Thx in advance.

    ###### below is the response I response I received from a BEA Engineer. From looking at the html source of fuego presentations that implement desired functionality, it appears as though they handle it using the first suggested workaround below ######
    Hi,
    The short answer to your question is that there is no out of the box feature to support directly what you are asking for.
    The problem is that JSPs receives a Fuego Object that is accessed at rendering time (JSP compilation/ HTML rendering). And then all the updated values are sent back to the engine in a new request when you hit the submit button of a FOR tag that has the postResult tag in the action attribute. At this point all these values are automatically taken from the request and the Fuego Object instance variable in the screenflow is updated.
    After saying this you will notice that it doesn’t make sense to update the Fuego Object instance on the JSP. Because you only could do this ate rendering time and because this instance is not going back to the engine (just the values).
    Fuego Object tag Library was designed basically to be able to show Fuego Object data and invoke runs-on-server FO methods.
    I see 3 different approaches to solve the problem you have:
    1)Use JavaScript to call a runs-on-server method that recive the required arguments to extend the group and set the values. You should use the new tag called invokeUrl that allows you to use AjaX, in this way you could update the page with partial rendering.
    2)Use JavaScritp to submit the form when the user click the add row button. And have a loop in the Screenflow with an automatic activity that will extend the group and the go back to the component activity that now will show the page again but with one more row. The drawback is that each time the user wants to add a row, it will require the entire page to be refresh.
    3)Handle the table and values using JavaScritp and DHTML, and put all the new values in the request (input element), then in the Screenflow use an automatic activity to set this values to the Fuego Object.
    Look at the Samples of using Fuego Tag Lib and AJaX
    albpm5.7\studio\samples\Integration\Portlets\PFoodDelivery.fpr
    albpm5.7\studio\samples\Integration\ThirdParty\AJaX.fpr

  • Business Objects Platform 4.1 EDGE - Design Studio 1.5

    Hi @ll,
    i have a question about the use of Business Objects EDGE 4.1 in combination with the Design Studio ADD-ON.
    We want deploy the Design-Studio add-on 1.5 (Ramp-up) into our Business Objects EDGE 4.1 platform.
    Is this technical possible? Are there any restrictions from SAP?
    Thanks a lot
    Jochen

    Hi Jochen,
    I think it is better to ask that question directly to your SAP Contact as Design Studio 1.5 is not publicly available today.
    Best regards,
    Victor

  • SAP Cloud Application Studio Create Custom Web Service From Custom Business Object and Consume in External System

    Hi Experts,
    I have requirement to create custom business object and create Web Service for that and use in external system (SAP ECC / SAP CRM / Third Party).
    1) Is it possible to create custom object web service and used in external system ?
    2) When we create the Web service from custom business object what the necessary steps(action : Create , Read , Update) require?
    3) Sample Scenario :
    My Custom Business Object
    businessobject Custom_Integration {
      element EP_VAL1 : LANGUAGEINDEPENDENT_MEDIUM_Text;
      element EP_VAL2 : LANGUAGEINDEPENDENT_MEDIUM_Text;
      element IP_RES : LANGUAGEINDEPENDENT_MEDIUM_Text;
    I have created the Web Service using this custom business object.
    3) How i can use this web service in external system? what are the prerequisite steps in external system to consume this service in it?
    Please anyone have idea about this how to do this and how to achieve this using SDK and custom business object.
    Many Thanks
    Mithun

    Hello Mithun,
    Does this section in the documentation help you:
    SAP Cloud Applications Studio Help -> Developers Desktop -> Web Services
    The entry "Task -> Create a Web Service" describes how to create a Web Service on your own BO
    The entry "Task -> Test a Web Service" helps you how you can use it in a foreign tool / application.
    HTH,
       Horst

  • Is it mandatory to use Business object for data transfer and work flow?

    <font size="3">
    <pre>
    In our enterprise projects we deal with some screens where we add or update some data and again
    we retrieve that data and display to user in various ways like displaying on screen as
    a report or viewing in excel etc.. Most of the times, though we identify the business objects
    based on the nouns in requirements document, really while implementing there will not be any
    business logic in the objects. Almost all the objects which we identfy as business objects
    may have methods like add, delete, update and retrieve methods. Still in these cases, is it required to
    have business objects or can we use transfer object to send the data for saving and retriving or any other
    pattern/guideline is there for dealing such cases?
    I really appreciate your comments on this topic.
    Also I apologize ahead of time if my explanation is not clear to you.
    </pre>
    </font>
    <p>
    Thanks in advance.
    <p>
    Regards,
    <p>
    Rizwan.

    In my opinion, DAO pattern would be suitable for you. Generally the DAO (Data Access Object) will have the CRUD (create, read, update, delete) methods to retrieve data from data-source (e.g. database). Based on the data it will create the DTOs (Data Transfer Objects) and pass them to the caller. It will also receive the DTOs from the caller and save it the data-source. Thus in your case you can
    - remove the CRUD methods from the Business Objects (BO) and make them pure DTOs and use them with DAOs (If you are using JDBC codes inside your application and you don't have much of validation or processing logic in your BOs).
    http://www.corej2eepatterns.com/Patterns2ndEd/DataAccessObject.htm
    OR
    - use BOs in combination in DAOs (if using the database connection from a pool and BOs are having complicated processing logic).
    http://www.corej2eepatterns.com/Patterns2ndEd/BusinessObject.htm

  • Comraden! How to use business objects in Netweaver?

    And more specifically, how to import(put) some data in to business object from business process? For example a have process, wich i have released in Netweavwer developing studio, by using the perspective "process developing", "web dynpro", "composite application perspective", e.t.c.
    So my process is work perfectly, and i have created business objects, but i need on some steps of process input some data in to my business objects (for example from data contexts, or may be directly from user interfaces).
    Thank you, my friends!

    Hi Madhu,
    The below links 2 will really help
    http://help.sap.com/saphelp_46c/helpdata/en/59/ae4477488f11d189490000e829fbbd/content.htm
    http://help.sap.com/saphelp_46c/helpdata/en/59/ae4484488f11d189490000e829fbbd/frameset.htm
    Cheers!!
    VEnk@
    Edited by: Venkat Reddy on Oct 29, 2008 2:21 PM

Maybe you are looking for

  • IPad messages no longer works after ios7 upgrade

    After upgrading to ios7 on my iPad messages no longer works. After I enter To: I am unable to get to the message field to enter the message. Reboot does not solve the issue,

  • Cstomer customer invoice settlement against Incoming payment

    Dear All We have a problem during customer invoice settlement against incoming payment that shown for the partial payment as a new document creation. The scenario as shown below,      Doc No      Amount 180000001   50000.00 ;   - Invoice 140000001  

  • Pse10 will not recognise Epson V750 Pro scanner in Mac 10.7.2

    Hi all I'm having trouble getting my Pse10 Organiser to recognise my Epson V750 Pro scanner with Mac 10.7.2 .  In <get pctures from > it goes straight from  < cameras or card readers > to < files or folders > with no scanner option in between. I have

  • IOS5 Iphone 4 will not restore bricked!!!!

    Ive got the usb itunes screen on my phone, it seems to download update but then it does nothing after, it asks to restore again?????

  • I'm having problems with my Serial Number, can anyone help?

    Hey guys. Alright, so a few weeks ago I bought a Wacom Bamboo Capture tablet, and it comes with a copy of Adobe Photoshop Elements 8.0 Now, I installed it previously and it worked perfectly. Then, all of a sudden, I go to boot it up, and I'm asked fo