How to use  Business Object like Vendor or PurchasingInfo

Hi,
How to use Business Object ( like Vendor or PurchasingInfo ) from my Object?
For example:
CLASS myEntity DEFINITION.
          PUBLIC SECTION.
               METHODS: getVendor EXPORTING pVendor TYPE Vendor.
           PRIVATE SECTION.
           DATA: aVendor TYPE REF TO Vendor.
ENDCLASS.
CLASS myEntity IMPLEMENTATION.
METHOD getVendor
           pVendor = aVendor .
ENDMETHOD.
ENDCLASS

Hi,
I am giving u a demo Program for ur doubt.
REPORT demo_class_counter .
CLASS counter DEFINITION.
  PUBLIC SECTION.
    METHODS: set IMPORTING value(set_value) TYPE i,
             increment,
             get EXPORTING value(get_value) TYPE i.
  PRIVATE SECTION.
    DATA count TYPE i.
ENDCLASS.
CLASS counter IMPLEMENTATION.
  METHOD set.
    count = set_value.
  ENDMETHOD.
  METHOD increment.
    ADD 1 TO count.
  ENDMETHOD.
  METHOD get.
    get_value = count.
  ENDMETHOD.
ENDCLASS.
DATA number TYPE i VALUE 5.
DATA cnt TYPE REF TO counter.
START-OF-SELECTION.
  CREATE OBJECT cnt.
  CALL METHOD cnt->set EXPORTING set_value = number.
  DO 3 TIMES.
    CALL METHOD cnt->increment.
  ENDDO.
  CALL METHOD cnt->get IMPORTING get_value = number.
  WRITE number.
For more demo programs type 'abapdocu' in the command field
U will be getting some demo programs.
There select the abap objects.
Regards,
Jagadish

Similar Messages

  • How to use Business Objects in program

    Hi All,
    What are Business Objects? if i want to create PurchaseOrders how can i use this Business Object in my program.i know how to create PO through Bapi's.how can i use this Business Objects ??
    Thank you,
    Madhu Rao.

    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

  • 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

  • How to use business object Bus0002 to create a company code?

    Dear all,
    I wanna create a companycode with BO BUS0002 , And I want to transfer the necessary data such as description and currency without the maintain screen.
    But the parameters of the CREATE method does not contain these kind of parameters. my question is how can i create a BO with completed data.
    I found the BO BUS0002 have several attributes such as description and currency
    and so on. Can I set these attributes? But how?
    Your kindly help will be greate appreciated.

    Hi
    your program must be having the include which contains all the macros (swc_get_element) you are using
    in your program. if you are using include <cntain>, it does not contain the macro "swc_call_method" to execute BOR methods. so remove this include from ur program and add include <cntn01>. or simply call the function module used in that macro, it is : 'SWO_INVOKE'. replace &1, &2, &3 with the variables you r passing in macro.
      call function 'SWO_INVOKE'
           exporting
                access     = 'C'
                object     = &1-handle
                verb       = &2
                persistent = ' '
           importing
                return     = swo_%return
           tables
                container  = &3.
    Regards
    Vishal Kapoor

  • Extract account Based COPA from R/3 using Business Object data services

    Hello,
    We have a requirement to extract Account Based COPA from SAP R/3 to Teradata using Business Objects data services.
    I have read couple of white papers which give information on Rapid Marts( which are built in packages) already available for some applications like inventory, GL, AP, AR etc. But I could not find anything for COPA.
    Would anyone give me any information on how to use BO data services for COPA?
    Also if there is no rapid mart available for COPA, does anyone know how to create custom data marts in BO Data services?
    Is there any document available on this?
    Please respond as soon as possible.
    Thanks.

    Hi,
    this forum is for the SAP Integration Kit. Would suggest you post your question into the EIM area for Data Services.
    Ingo

  • How to Call Business Objects in Program

    Hi All,
    if i want to create PurchaseOrders how can i use Business Object in my program.i know how to create PO through Bapi's.how can i use this Business Objects and how to pass Vlaues into them?
    any Sample code>
    What are the diffrence between both PO upload bapi and business Object for PO.??
    Thank you,
    Madhu Rao.
    Edited by: madhubabu rao on Oct 29, 2008 10:41 AM

    Hi Madhu,
    Business Objects can be triggered via Work flow tasks. When ever you create a Purchase Order, check whether any standard event is getting triggered.
    Now create a work flow task with the above task as starting event, and link your BOR object to this.
    Or try to use the Function module SAP_WAPI_CREATE_EVENT.
    Regards,
    Subhani.

  • Hi expert, i am new i want to know how to start business object

    Hi all,
    I am working in sap b1. i want to use business object for my client.
    how to use and code in that if any one give ans very appreciate.
    how use excel in that.
    how to connect database with map and how to use selectors.
    how to use chart and connect with database
    Regards
    RajkumarGupta

    Hi Ravi,
    you can download all documents related to bo from help.sap.com. in that select business objects tab-> select all products -> from drop down list box select businessobjects-> based on requirement i.e. which version you want you can get all docs.
    If I understand correctly I think you want to create a report form excel. If that is the case then download Desktop Intelligence docs w.r.to our version and start practicing it.
    Thanks & Regards,
    Suresh Aluri.

  • How to access Business Objects Explorer?

    I am new to Business Objects and would like to know how to access Business Objects Explorer from my local system. I have Business Objects XI 3.1 installed on my system.
    I would like to know if BO explorer requires a separate installation package? If yes, how can I acquire it?
    If No, what are the steps to integrate the BO Server with the BO explorer?
    Edited by: Bhavani I on Jan 28, 2010 11:23 AM

    Hi,
      You can refer to the below link for more details on BO EXplorer,
    https://cw.sdn.sap.com/cw/servlet/JiveServlet/previewBody/119973-102-1-220562/BO%20Explorer%20Implementation%20checklist.pdf
    Regards,
    Balajee
    Edited by: Balajee Sivakumar on Apr 27, 2011 6:30 PM

  • SSO2DB / Use Business Objects Credential Mapping

    Hi,
    We standardized our universe connections to SQL Server on "Use Single Sign On when refreshing reports at view time". There however is an issue with this when scheduling reports, see
    1199774 - How to schedule Web Intelligence documents based on SSO2DB universes for Oracle and SQL Server to avoid scheduling issues
    Given the solution proposed there is not optimal for us, we are looking at an alternative by standardizing on: "Use Business Objects Credential Mapping" on the universe connection. We want to use OLE DB (SQL Server native connection) for querying.
    There are 2 ways to do this:
    1. On universe connection, in the tab "Database Middleware", we directly select OLE DB. This way we do not need to create a DSN. We however get: A database error occured. The database error text is: Microsoft SQL Native Client : Login failed for user '<user>'.. (WIS 10901)
    Apparently the default authentication mode to SQL server is "native". SQL server specific user. When we create a native SQL server <user> with same password as in the mapped database credentials in the CMC, it works fine. Indicating native SQL server authentication is used instead Integrated Windows authentication.
    Can we somehow change the authentication mode towards SQL server to Win AD?
    Can we get to the SSO2DB functionality in this way?
    2. When selecting ODBC on universe connection in tab"Database Middleware", we can still use OLE DB by creating a DSN based on the SQL Server native drivers. This also allows use to fix the DSN on authentication setting "With Integrated Windows authentication".
    When we run a WebI report from InfoView and select as one of the objects the "system_User", we get the service account running the SIA. This account is also running the WebIntelligenceProcessingServer.
    Does the credential mapping setting not work in this setup?
    We expected the DBUSER/DBPWD to be passed.
    See also SSO2DB / Use Database Credentials
    Quote "Use DB credentials is not kerberos it uses DBuser/DBpass variable for accounts if they are populated. I currently have an escalation in on this with SQL there may be a bug with AD users although SQL users work fine."
    Thx in advance!
    Raf

    Ganesh, using BO credentials will only work if you have BO logins that map to specific users in SAP BW.
    It may be that you wish to section the BW reporting differently to the SAP reporting or that there are specific requirements for a particular reporting area where you can in effect use an "overrule" to replace an individual's log in with one that has a wider set of access privileges for reporting purposes. Quite why you'd let them report on more than they can see in SAP, I don't know, but there you go!
    It's more traditionally used in database-based universes for a variety of reasons, particularly access.

  • How to mask an object like we do in  flash

    how to mask an object like we do in  flash

    Hi sandeepsingh211.
    There are many similar discussions around this topic on this forum. Use search to look for these.
    Thanks,
    Preran

  • Using Business Objects to query the CRMOD database

    Has anybody successfully used Business Objects to query CRMOD via web services? Our BO people are trying to do this and would like to learn from other's experience.
    Regards,
    Jeff

    Please refer to online document "OnDemWebSvcs.pdf". You can download this doc at:
    Admin -> Web Services Administration -> Download Documentation
    Edited by: PPL on Oct 8, 2011 12:13 AM

  • Add datas to UDT using business objects

    Hi,
    How to add datas to user defined tables using Business Objects.
    Regards,
    M.Dhivya.

    Hi,
    Check for following provided bt SAP...
    Dim ret As Long
    d
    Private Sub Add_Table_Click()
        Dim oUserTablesMD As SAPbobsCOM.UserTablesMD
        Set oUserTablesMD = oCompany.GetBusinessObject(oUserTables)
        ' When adding user tables or fields, use a prefix
        ' identifying your partner name space. This will
        ' prevent collisions from different partner add-ons
        ' SAP's name space prefix is "BE_"
        'Set the two mandatory fields
        oUserTablesMD.TableName = "T1"
        oUserTablesMD.TableDescription = "Table1"
        'Add the table (which contains 2 default, mandatory fields, 'Code' and 'Name')
        ret = oUserTablesMD.Add
        If ret <> 0 Then
            oCompany.GetLastError ret, Str
            MsgBox Str
        Else
            MsgBox "Table: " & oUserTablesMD.TableName & " was added successfully"
        End If
    End Sub
    Private Sub Add_UDF_Click()
        Dim oUserFieldsMD As SAPbobsCOM.UserFieldsMD
        Set oUserFieldsMD = oCompany.GetBusinessObject(oUserFields)
        oUserFieldsMD.TableName = "T1"
        oUserFieldsMD.Name = "AlbUDF"
        oUserFieldsMD.Description = "Albert UDF"
        'Add the field to the table
        lRetCode = oUserFieldsMD.Add
        If lRetCode <> 0 Then
            oCompany.GetLastError ret, Str
            MsgBox Str
        Else
            MsgBox "Field: '" & oUserFieldsMD.Name & "' was added successfuly to " & oUserFieldsMD.TableName & " Table"
        End If
    End Sub
    Private Sub Add_Data_Click()
        Dim oUserTable As SAPbobsCOM.UserTable
        Set oUserTable = oCompany.UserTables.Item(1)
        oUserTable.GetByKey ("T1")
        'Set default, mandatory fields
        oUserTable.Code = "A"
        oUserTable.Name = "Albert"
        'Set user field
        oUserTable.UserFields.Fields.Item("U_AlbUDF").Value = "1"
        oUserTable.Add
        If ret <> 0 Then
            oCompany.GetLastError ret, Str
            MsgBox Str
        Else
            MsgBox "Value to field: '" & oUserTable.UserFields.Fields.Item("U_AlbUDF").Name & "' was updated successfuly to " & oUserTable.TableName & " Table"
        End If
    End Sub
    Hope this helps,
    Vasu Natari.
    Edited by: vasu natari on Jun 12, 2009 11:21 AM
    Edited by: vasu natari on Jun 12, 2009 11:21 AM

  • What is the use Business objects over WAD.

    Hi Folks,
    what is the use Business objects over WAD.
    How sap bw is going to use Business Objects.
    Thanks,
    Cheta.

    hi,
    A business object is a master record within the Measurement System, and is defined as part of the measurement class within Customizing.
    Examples of business objects are wells, well completions, and measurement points.
    Once the measurement object is maintained, it is saved with the business object so that when viewed, the measurement object is part of the business object.
    regards,
    Siddharth.

  • Y AND HOW TO USE BUSINESS WORKPLACE

    Y AND HOW TO USE BUSINESS WORKPLACE
    IF U HAV SOME SNAPSHOT OR A SITE PLZ FWD ME
    POINT WLL B REWARDED
    REGARDS
    RONEI

    Hi,
    I am giving u a demo Program for ur doubt.
    REPORT demo_class_counter .
    CLASS counter DEFINITION.
      PUBLIC SECTION.
        METHODS: set IMPORTING value(set_value) TYPE i,
                 increment,
                 get EXPORTING value(get_value) TYPE i.
      PRIVATE SECTION.
        DATA count TYPE i.
    ENDCLASS.
    CLASS counter IMPLEMENTATION.
      METHOD set.
        count = set_value.
      ENDMETHOD.
      METHOD increment.
        ADD 1 TO count.
      ENDMETHOD.
      METHOD get.
        get_value = count.
      ENDMETHOD.
    ENDCLASS.
    DATA number TYPE i VALUE 5.
    DATA cnt TYPE REF TO counter.
    START-OF-SELECTION.
      CREATE OBJECT cnt.
      CALL METHOD cnt->set EXPORTING set_value = number.
      DO 3 TIMES.
        CALL METHOD cnt->increment.
      ENDDO.
      CALL METHOD cnt->get IMPORTING get_value = number.
      WRITE number.
    For more demo programs type 'abapdocu' in the command field
    U will be getting some demo programs.
    There select the abap objects.
    Regards,
    Jagadish

  • Possible to report on QC using Business Objects?

    Hello Geeks,
    Please excuse me if I am posting this in wrong thread and help me moving it in right one.
    As I am new to Sol Man, I heard that we could use  Business Objects reporting on/for/with HPQC.
    After going through forum links and sdn search, I found that Sol Man Adapter is used for the same.
    My simple question, is, can we use HPQC for BO reporting (Universe, Webi), if yes is Sol Man the adapter which could help me to achiecve it? Also do we have any white paper, which will help me to use Business Objects as a QC reporting tool?
    Thanks
    P

    You need someone who is very comfortable with the QC database Schema.
    You will need someone who can develop reports for you on the fly. The BO piece can connect directly to the QC database just like a reporting tool like SSRS does and you can build reports and host them on MOSS or something.
    That is what I have done in the past and recommend it at places as a best practice.
    Knowing the QC schema inside out is the key piece and you do not need any adapter in this whatsoever.

Maybe you are looking for

  • AP Line Item issue

    Hi Gurus, I have an AP report which I need to generate using some fields from the purchasing area which are not available in the AP line item cube.The fields am missing which are going to be needed are : PO # - Purchasing order Number from EKBE  -sou

  • Image in a cell but not as background instead as item?

    Hi All, I'm building a price list and I will like to add in a cell a picture of the product. It's possible to add a picture for each product but when in an another sheet I did lookup will bring the description and also the image? I cannot find a way

  • Transport-changing package owner

    Hi Gurus, I am facing an issue in BW system. After changing transport layer for particular package , Request is going into corrections and repairs. Since this is not the original system for the object, also it was prompting for local workbench reques

  • Best Way to Transfer Data

    My 5 year old iMac recently died. I just purchased a new one and it arrived today. I have time machine back ups from the old iMac. Mt question is what is the best way to transfer the data from my time machine back up to my new mac? Should I use time

  • Is there any view for  table TSTCT (transaction code text )

    Hi, I need to display the transactions allowed per a user , in that i need to display transaction codes along with the text. In this report selection screen contains user as select option, when the user enters group of users as selection it is consum