CALLING BUSINESS OBJECT FROM AN ABAP REPORT

Hi friends,
           I have a business object to which a Custom Function Module is assigned in one of its method.This Function Module calls a Bapi to update a Service Order.I need to capture the status of Idocs regarding success or failure from the function Module in the ABAP Report.I would like to know if there is any way to call this business object from my report and get the status of IDOC.
Regards,
Dev Reddy

sorry I think i was not clear in explaining .I am calling a BAPI to update 'Priority' field of service orders in a custom function module(remote enabled) and I have assigned this bapi to a custom business object. Also I have developed an ALE interface thru BDBG transaction which automatically generates custom basic idoc type,messsage type ,Ale i/b and o/b function modules.
Actually my requirement deals with a report where we have list of service orders in an internal table and pass each service order to update Priority field.
Is there any way to create an IDOC from the report and update the priority field and pass back the status of IDOC.
I have tried calling ALE O/B function function module generated thru BDBG transaction in my report but as a result i am unable to get any of the message whether idoc is created or not.
Here is my report code.
data: it_methods type table of BAPI_ALM_ORDER_METHOD with header line,
      it_header type table of BAPI_ALM_ORDER_HEADERS_I with header line,
      it_header_up type table of BAPI_ALM_ORDER_HEADERS_UP with header line,
      RECEIVERS TYPE TABLE OF BDI_LOGSYS WITH HEADER LINE.
T_METHODS-REFNUMBER = '000001'.
IT_METHODS-OBJECTTYPE = 'HEADER'.
IT_METHODS-METHOD = 'CHANGE'.
IT_METHODS-OBJECTKEY = '000004000768'.
APPEND IT_METHODS.
CLEAR IT_METHODS.
IT_METHODS-REFNUMBER = '000000'.
IT_METHODS-METHOD = 'SAVE'.
APPEND IT_METHODS.
IT_HEADER-ORDERID = '000004000768'.
IT_HEADER-PRIORITY = '2'.
APPEND IT_HEADER.
IT_HEADER_UP-ORDERID = '000004000768'.
IT_HEADER_UP-PRIORITY = 'X'.
APPEND IT_HEADER_UP.
CALL FUNCTION 'ZZ_FM_SM_ORD_PRIOR_UPDATE'
EXPORTING
   OBJ_TYPE                      = 'ZBOSMPRUPD'
   SERIAL_ID                     = '0'
  TABLES
    ITMETHODS                     = IT_METHODS
    ITHEADER                      = IT_HEADER
    ITHEADERUP                    = IT_HEADER_UP
    RECEIVERS                     = RECEIVERS
  COMMUNICATION_DOCUMENTS       =
  APPLICATION_OBJECTS           =
EXCEPTIONS
   ERROR_CREATING_IDOCS          = 1
   OTHERS                        = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Thanks,
Dev Reddy

Similar Messages

  • Calling business object in report ?

    Hi,
    i want to call bussiness object method in my report as that method will give me the data which i need to display in my report. But i dont know how to call business object it's method in ABAP report  and how to pass parameters to it.
    Plz help me out as  this is very urgent.......
    Thanks,
    rahul

    Hi Rahul,
    You have posted your query in a wrong forum, but still this is the solution:
    You can use macro SWC_CALL_METHOD from include <CNTN01> or directly a FM called SWO_INVOKE.

  • How to Execute the Business objects created in ABAP from webDynpro applicat

    Wht is the steps , or where the help documents are available for accessing the Business objects created in ABAP or R/3 systems from webDynpro project.

    Hello Vishal,
    I couldn't find any useful documents for your purpose.
    However i had a similar requirement and had implemented the same using GCP APIs. But before i send you the code help, i would like to know your exact requirement. What are you trying to achieve? Are you just wanting to execute the BO and get the result? Or is your requirement has got something more to do?
    Regards,
    Sudeep.

  • How to directly call business object class from backing bean class

    I woul like to call business object class directly from the backing bean class and implement methods in BO. If possible can anyone give an example code.
    Thanks in advance

    Which problems are you occurring then? I really don't see problems. You're just free to access and invoke them.

  • Calling a webservice from webdynpro ABAP.

    Hi,
    Anybody have doc/material with screenshots on calling a webservice from webdynpro ABAP (In WAS 7.0 version using service calls )  with clear steps ?
    Thanks in advance. Ponts will not be a constraint for right answers
    Praveen
    Edited by: Praveen kumar Kadi on Feb 23, 2009 11:19 AM

    Hi Praveen,
    1st Step : configure Logical Port
    http://help.sap.com/saphelp_nw70/helpdata/EN/16/285d32996b25428dc2eedf2b0eadd8/frameset.htm
    2nd Step : Generate Proxy Object
    http://help.sap.com/saphelp_nw70/helpdata/EN/16/285d32996b25428dc2eedf2b0eadd8/frameset.htm
    3rd Step : Instantiating the proxy object & calling the methods exposed by webservice
    data: sys_exception type ref to cx_ai_system_fault,
          sys_exception2 type ref to cx_ai_application_fault,
          client_proxy type ref to zco_myesa, "MY PROXY CLASS
          lv_ret_code type int4,
          lv_input type zsend_email_input,
          lv_response type zsend_email_response.
    data: lv_from type string,
          lv_from_address type string,
          lv_to type string,
          lv_to_address type string,
          lv_subject type string,
          lv_msg type string.
    lv_input-from = 'MYSAPTEST'.
    lv_input-from_address = '<someAddress>'.
    lv_input-to = 'Prashant'.
    lv_input-to_address = '<someAddress>'.
    lv_input-subject = ' TEST'.
    lv_input-msg_body = ' Hi this is wonderfull to see it work'.
    try.
    create object client_proxy
    exporting
    logical_port_name = 'BASIC'. " Basic is a TYPE G RFC Destination
    call method client_proxy->send_email
       exporting
         input  = lv_input
       importing
         output = lv_response    .
      catch cx_ai_system_fault  into sys_exception .
        data lv_err type string.
         lv_err = sys_exception->if_message~get_text( ).
         write: / lv_err.
      catch cx_ai_application_fault into sys_exception2  .
         lv_err = sys_exception->if_message~get_text( ).
         write: / lv_err.
    endtry.
    if lv_response is initial.
       write: /'Not Executed'.
    else.
       write: /'Did Execute'.
    endif.
    Greetings
    Prashant

  • How to call a webService from WebDynPro ABAP ?

    We are trying to call a webService from WebDynPro-ABAP application. It is not working, While if we are calling the WebService from a Report, it is working.
    How exactly do we call a WebService from a WebDynPro-ABAP application?
    What are the main steps involved ?

    Hi Phani,
    You will need to create a service call as follows.
    Right click on your WD component name and select Create->Service Call
    The wizard will guide you through a series of steps to make a Web Service Call. On the 3rd screen, it will give you options such as Function Module, Web Service, etc
    Before making a service call, you will need to create a proxy for the Web service in the ABAP Workbench using a WSDL document as a basis. To create or consume Web services, you will need the authorizations associated with the role SAP_BC_WEBSERVICE_ADMIN.

  • Call se38 program from an abap proxy

    Hi, All,
    For some reasons, I have to call a se38 program (or tcode) instead of calling a FM from an abap proxy. Also I have to pass an internal table to the program (or tcode). Is there anybody know how to do it? Thanks.
    Meiying

    Is there no BAPI available for this "reason"?
    Or create your own (BAPI compliant) FM and just call that?
    Please explore transaction BAPI (incase you are not aware of it yet).
    If you exposed a remote way to submit (any) report using an internal table which that "any report" can use, then chances are good that your ABAP proxy would be a bit of a security hazard...
    Or am I missing the point here?
    Perhaps you could explain the scenarioa bit, and then appropriate solutions can be suggested.
    Cheers,
    Julius

  • Transfer of business object from development server to testing server

    if i want to transfer business object from development server to testing server how can i do that?
    what is the system landscape?
    what is business object?

    Hi Rizwan,
    U can get details of Business Objects in tcode - SWO1.
    Business objects 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.
    Client programs access business objects by reading their attributes, or by calling the methods that make up the objectu2019s 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.

  • Catch message from submit abap report

    I would like to catch message from submit abap report.
    Example in abap program
    REPORT  zprog00.
    PARAMETERS p_test TYPE i DEFAULT 2.
    START-OF-SELECTION.
      IF p_test > 1.
        MESSAGE e000(38) WITH 'More than one'.
      ENDIF.
    and in Function module
      SUBMIT zprog00
              WITH p_test EQ '3'
              EXPORTING LIST TO MEMORY
              AND RETURN.
    <--- In this step I would like to catch error message from Program zprog00*
    Thank

    Hi,
    try this:
      DATA LIST_OBJ TYPE TABLE OF ABAPLIST.
      DATA LIST_ASC TYPE TABLE OF CHAR255.
      SUBMIT ZTEST EXPORTING LIST TO MEMORY AND RETURN.
      CALL FUNCTION 'LIST_FROM_MEMORY'
        TABLES
          LISTOBJECT = LIST_OBJ
        EXCEPTIONS
          NOT_FOUND  = 1
          OTHERS     = 2.
      CALL FUNCTION 'LIST_TO_ASCI'
        TABLES
          LISTASCI           = LIST_ASC
          LISTOBJECT         = LIST_OBJ
        EXCEPTIONS
          EMPTY_LIST         = 1
          LIST_INDEX_INVALID = 2
          OTHERS             = 3.
    and have a look into list_asc.
    Regards, Dieter

  • How to remove business area from the Hyperion report

    Hi All,
    Kindly tell me the steps required to remove the business area from the Hyperion report.
    Regards,
    Ajay

    s

  • How to call business service from xquery transformation in OSB ??

    Hi All,
    How to call business service from xquery transformation in OSB ??
    I need to assign the response variable of Business Service to a target element in XQuery Transformation Mapper file.
    It's urgent.
    Regards,
    Jyoti Nayak

    Transformation is to mapping the source and target of 2 different schemas.
    In your case you should have a XQuery transformation between, your Business Service output schema and the target schema.
    Thanks,
    Vijay

  • How to create a universe in Business Object from BW

    Dear Memebers
    I need your help, I'm trying to create a report in business object using a cube as datasource, but when execute it does not appears the text, for example costumer 1000, his name is coca-cola.
    Does anyone help me?, maybe i does not set something
    Thanks a lot
    Ariel

    Hi Ariel,
    Not sure what BW is? If this is not related to using a SDK you may want to post your question in the Business Objects enterprise or Crystal Report Designer Forum.
    Thank you
    Don

  • Export data from the R/3 system from a ABAP report to BW system

    Hi Everyone,
    I have requirement to export data from the R/3 system from a ABAP report to BW system.
    Currently we are planning to create a Ztable to put the data into that, but I would like to know , is there a better way to do instead of going for a Ztable.
    Regards,
    Shobana.K

    Hi Shobha,
    In the second option as you mentioned sending the data to BI.
    1. Check when u click on second  option what is the target details that is showing?( Menas suppose if you send the data using Open Hub u will find the options like FF,Otherparty,etcc...).
    2. As you mentioned if you have option to upload the data to Table.Then you can load and u can create the Generic DS.
    Issues & Concern
                1. Need to think how the data will be poplated(Means how are going to maintain Delta info records table level before
                   populating to it)
                 2. whether Ztable should be refreshed before updating R/3 report data to Ztable.
    Based on the concerns verify your scenario.If  everything ok then u can proceed as per u r plan.
    Regards
    Ram.

  • Is it possible to read a mySQL database from an ABAP report?

    We have some information stored in a mySQL database which is now required on ABAP reports.
    Is it possible to read the mySQL database from an ABAP report? I'm still a bit confused on that.
    So far I have setup DBCO with information about the mySQL server using MMS as the DBS because mySQL was not an option. I have made sure we have the latest dbmssslib.dll installed.
    When I try to run the following code
    EXEC SQL.
        CONNECT TO :con
    ENDEXEC.
    I get error: SQL Server does not exist or access denied.
    Then I have tried to connect using the function CHECK_CONNECTION_SDB.
    I get the following messages in the return table:
    1     OS-AppServ:Windows NT
    2     dbmcli_neg: no_client_software
    3     dbmrfc_c_neg: no_client_software
    4     dbmrfc_s_neg: no_client_software
    5     sql_neg
    6     work_proc: 1
    Does anyone know what I need to do to connect to the mySQL database.
    Thank you
    Karen

    Thank you for your reply. I've gone through all the documentation you sent and much more and I'm still not sure what the problem is.
    One thing that concerns me is that this all relates to MS SQL server and I'm trying to link to a mySQL database. Is this even possible?
    Some posts talk about changing Oracle settings and having J2EE installed. Is this necessary to connect to a mySQL database via ABAP?
    Which user should I enter into DBCO? Is it the mySQL server user or a SAP user? Does the person in charge of the mySQL database need to add any permissions for SAP to access the database or is that done by the user in DBCO?
    Does anyone have any more advice?
    Thank you
    Karen
    Also, does anyone know what the messages from the CHECK_CONNECTION_SDB function mean
    1 OS-AppServ:Windows NT
    2 dbmcli_neg: no_client_software
    3 dbmrfc_c_neg: no_client_software
    4 dbmrfc_s_neg: no_client_software
    5 sql_neg
    6 work_proc: 1
    Edited by: Karen Dean on Oct 6, 2009 4:44 AM

  • How to enable Business Objects Inbox to receive reports?

    How can I enable Business Objects inbox to receive report?
    I can schedule or send report to a recipient without error, however, if I log into system as the receipient, I could not find the report in the inbox.
    Any solutions?

    Hi Simon,
    The report is not sent because of missing rights on the report or the Inbox.
    You can check this article to get minimum rights required to send to Inbox : 1612499 - What are the minimum rights required to be able to send a report object to another user's inbox on BI Launch Pad?
    I hope this helps.
    Regards,
    Yosra

Maybe you are looking for

  • Set value of zzidarea from another context node

    Hi is it possible to set the value of the zzidarea field of the context node header from the method  get_employeename of the context node employeename? Thanks!!

  • Adding a BSEG field to the FB03 dynamic selection screen

    Hello, We have a requirement wherein we want to add a field from BSEG in the dynamic selection screen of FB03. We found that the logical database behind this is BRF.  So we created a u2018CUSu2019 selection view for the logical database and added the

  • SAP Transaction in EP iView

    Hi, I am trying to create a SAP Transaction iView in EP. When using SAP GUI for HTML i am getting the error as <b>Portal Runtime Error An exception occurred while processing a request for : iView : N/A Component Name : N/A Application URL ':///webgui

  • Document windows opening under the options bar

    Argh! anyone know how to get the windows from NOT opening under the options bar? I have to zoom the window each time so I can access the document bar and it is driving me MAD!!!!See how my top gray document bar is hidden?? If I hit the zoom out then

  • IMovie '11 terribly unstable, extremely slow, freezes

    I really hope someone here has some new piece of info that can solve my continuing iMovie problems.  I've used iMovie since version 4, been through the "HD" days and the transition from the old app to iMovie '08 and now '11.  I am running on a 2011 i