Hi,how to call reports in bdc

hi experts,
please tell me how to call reports in bdc.
nobody give me replay  for this .
thank u in advance.

Hi..,
Your question is incorrect !!.. what do you mean by calling programs in BDC.. we usually call transactions in BDC .... BDC means a program (report) in which we call a sequence of screens of a particular  transaction <b>programatically not manually</b>.
check this program..
data :
  t_bdcdata type standard table
              of bdcdata
         initial size 0.
data:
  wa_bdcdata type bdcdata.
  perform bdc_dynpro      using 'SAPLSETB' '0230'.
  perform bdc_field       using 'BDC_CURSOR'
                                'DATABROWSE-TABLENAME'.
  perform bdc_field       using 'BDC_OKCODE'
                                '=ANZE'.
  perform bdc_field       using 'DATABROWSE-TABLENAME'
                                'EKPO'.
  perform bdc_dynpro      using '/1BCDWB/DBEKPO' '1000'.
  perform bdc_field       using 'BDC_OKCODE'
                                '=SEOP'.
  perform bdc_field       using 'LIST_BRE'
                                '250'.
  perform bdc_field       using 'MAX_SEL'
                                '200'.
  perform bdc_dynpro      using 'SAPMSSY0' '0120'.
  perform bdc_field       using 'BDC_CURSOR'
                                '06/04'.
  perform bdc_field       using 'BDC_OKCODE'
                                '=DMA2'.
  call transaction 'SE16' using t_bdcdata mode 'A'.
       Start new screen                                              *
form bdc_dynpro using program dynpro.
  clear wa_bdcdata.
  wa_bdcdata-program  = program.
  wa_bdcdata-dynpro   = dynpro.
  wa_bdcdata-dynbegin = 'X'.
  append wa_bdcdata to t_bdcdata.
endform.                               "Form BDC_DYNPRO
       Insert field                                                  *
form bdc_field using fnam fval.
    clear wa_bdcdata.
    wa_bdcdata-fnam = fnam.
    wa_bdcdata-fval = fval.
    append wa_bdcdata to t_bdcdata.
endform.                               " Form BDC_FIELD
regards,
sai ramesh

Similar Messages

  • How to call Reports in oracle forms 10g

    Dear All,
    How to call Reports in oracle forms 10g.
    I am using Oracle Forms 10g Reports 10g and Database 10 and and Operating system Windows XP.
    Please give me the Solution.
    Thanks and Regards,
    Faziludeen

    Hi Omkar,
    Please check the following code.
    DECLARE
      repid REPORT_OBJECT;
      v_rep VARCHAR2(100);
      rep_status VARCHAR2(20);
      plid ParamList;
    BEGIN
      plid := Get_parameter_List('tmp');
      IF NOT Id_Null(plid) THEN
      Destroy_parameter_List( plid );
      END IF;
      plid := Create_parameter_List('tmp');
      add_parameter(plid,'p_parameter',text_parameter,to_char(:POLICY.POLICY_NO));
      Add_parameter(plid, 'PARAMFORM', TEXT_parameter, 'NO');
      repid := FIND_REPORT_OBJECT('POL_REP');
      SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
      SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
      SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
      SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER, 'paramform=no');
      v_rep := RUN_REPORT_OBJECT(repid,plid);
      rep_status := REPORT_OBJECT_STATUS(v_rep);
      WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
      LOOP
      rep_status := report_object_status(v_rep);
      END LOOP;
      WEB.SHOW_DOCUMENT('http://'||'LENOVO-428E9E41'||'8889'||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?
      '||'server=prod_report_server&P_parameter='||:POLICY.POLICY_NO||
      '&paramform=no');
    END;
    I am used to Start the Report sever   'Rwserver Server=prod_Report_Server Start'
    OracleAS Report Services
    Version :-   10.1.2.0.2
    Name    :-   prod_report_server
    Status  :-   Server is Shutting down
    Jobs in Queue  0
    Active Engines  0
    I got the Following Error when I trying to run the Report
    FRM-41211: Integration error:SSL failure running another product
    Thanks and Regards,
    Faziludeen

  • How to call Report 6i/9i Oracle Standard Report into Discoverer 10g

    How to call Report 6i Standared report into Duscoverer 10g as there is a requirement to create or transfer Oracle Standard report into Discoverer.
    1) Account Analysis Subledger Details(180 Char) - Standard Report 6i as i want the same report in Discoverer 10g.
    2) Aging Report -- 7 bucket --Standard report in 6i,how to transfer in Discoverer 10g.
    Is is possible to Transfer from Report 6i to Discoverer or How to Create this report in Discoverer 10g.
    Please advice,
    Sushant

    Well, if I had to do it, here's how I'd start.
    1. Get the SQL from the Oracle Report and then create a database view that's more generic based on the SQL but still gets the answers.
    For example, you'd not code many conditions, etc. but the database view would be pointing to the correct Oracle Apps tables / views.
    Once you've got the view, bring it in to Disco Admin, etc. and create a report from it that now adds the extra conditions needed. That way you can use the underlying concept without hard coding things like dates, etc. which you would ask the user at run time.
    However ... as you may well know ... Oracle Reports can do some 'strange and/or powerful things' on the fly and, for example, it may be something like a temporary table generated for the report, etc. so may become a much bigger issue.
    2. If you have NoetixViews views then they'll most likely already have the views for these queries already created as they're reasonable for what's needed in an Oracle environment.
    3. I'd see if there is already a pre-defined BIS view that covers this as well. Again, you're in an area that's pretty popular so if a BIS view already covers much of the same info then you've got a create view 'head start' already. Check views owned by Apps starting with the application plus FV or FG (the one you'd really want) such as: GLFG_Budgets_To_Actuals to see what I mean.
    Russ

  • How to call Report output in Modulepools

    hi
    can any one suggest me
    How to call Report output in Modulepools
    i have a push button in modulepool after clicking that pushbutton i need a report output
    how to do this
    Thanks & Regards
    kalyan

    Hi Kalyan,
    From Module pool program you have to go display A Report output..
    So at User-Command of PAI use LEAVE TO LIST PROCESSING.
    Regarding this check the Demo program DEMO_LEAVE_TO_LIST_PROCESSING.
    And for further reference please check this SAP Help
    http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9d2f35c111d1829f0000e829fbfe/frameset.htm
    For more help please check this thread
    Re: LEAVE TO LIST-PROCESSING
    Hope this would help you.
    Good luck
    Narin

  • How we call  reports in script

    hi gurus.
    please tell me how we call  reports in script.
    thanks,
    subhasis

    Hi,
    we can call report thro' sapscripts by following way,
    Calling ABAP Subroutines: PERFORM
    for eg.
    Say if you have to add the unit price (KOMVD-KBERT) then in the main window whereever tat value is picked write this routine
    /: DEFINE &TOT_PRICE&
    /: PERFORM F_GET_PRICE IN PROGRAM <subroutine prog name> /:USING &KOMVD-KBERT& /:CHANGING &TOT_PRICE& /:ENDPERFORM
    Then write the variable where ever you want it to be printed (mostly it will be in footer window)
    Then create subroutine pool program and you have to write the code.
    FORM F_GET_PRICE tables int_cond structure itcsy
    outt_cond structure itcsy. data : value type kbert.
    statics value1 type kbert.
    Read int_cond table index 1.
    value = int_cond-value.
    value1 = value1 + value.
    Read outt_cond table index 1.
    outt_cond-value = value1.
    Modify outt_cond index 1.
    ENDFORM.
    To know more, have a look at this thread ..
    Re: SAP Script: Display Total calculated  on page 2 in page 1

  • How to call reports 6i or forms 6i directly from oracle procedure

    Hi,
    Hi,
    Env: 6.0.8.25.2 (forms 6i/reports 6i)
    Database: Oracle 10g r2
    We are running a client server environment and not web based.
    I want to run the forms 6i or reports 6i directly from a database procedure/function and not by creating a procedure inside a form and then call a report.
    Looking for calling forms6i/reports 6i directly from sql*plus commands used inside the PLSQL database procedure/function. (Just like we create a stand alone package/procedure/function).
    I have developed many forms and reports and very comfortable in calling reports from forms 6i.
    My question was completely different but looks like i was not able to explain properly:
    I want to call the forms 6i or reports 6i directly from sqlplus* prompt and through stand alone oracle database procedure/function (procedure created directly in database but not as a program unit within form or report).
    There is a requirement to call the form through database scheduling by passing fixed parameters and then generate the report pdf and email automatically to various users.
    Also, is there any way to schedule a report automatically so that the report runs automatically in the scheduled time and send out reports to the users. I have developed a email program but looking for scheduling the report or forms 6i.
    Thanks,
    Srinivas

    Hi,
    There are couple of existing reports and forms developed in 6i and users are using them when required.
    For certain MIS reports, management wants them to be generated on daily/weekly basis and email to be sent to them as PDF files.
    Have a program which will convert to PDF and email to users but not able to trace on how to call the forms 6i or reports 6i and pass the report parameters so that the report is called directly through pl/sql so that i can schedule them.
    All the forms and report executables are located on server1 and database server is located in server2 and running on client/server architecture.
    Database version is 10g r2 and Forms/Reports version is 6i.
    Any code samples would be of great use.
    Srinivas

  • How to call report rdf with parameter passing..

    Hai
    I am using 10g developer suite and 10 g report. I want to call some report in the when_button_pressed trigger. like c:\ report\ test.rdf file. we don't have separate application server.more than 10 users using forms and report. Without application server (dedicated application server ) we are using oracle.
    How to call the report rdf file from form ? how to pass the parameters ? how to start the report server ? I tried many answers I am not getting correct coding plese help me to find out correct code .. run the report perfectly... from form.
    digging here not get correct coding... please help me.. urgent
    vasanth.

    Hai,
    It seems same 6i reports coding, I am not aware of that.. Soon I will tell you..
    Thanks a lot.
    regards
    vasanth

  • How to call report program from WebDynpro Application

    HI
    How call  report program in WDA.
    1. To extract the xml files and store the data in to data base table, program name is "zprogram_application".
          When run the se38 it's working fine and save the data in database.
    2. When i click "SUBMIT" button the web dynpro application automatically run the Report program "zprogram_application" and save the data into data base table. This is my requirement please give me suggestions.
    3. I want run the report program in web dynpro application.
    Thank you
    V.VENKATESH

    From within the WDA Event handler you can call the program using SUBMIT ... AND RETURN.  You might have to be careful with what the program does.  It must run as though it is in the background.  There is no connection to the client machine - so no SAPGUI calls.  You might also consider the addition VIA JOB job NUMBER n...  to the SUBMIT command.  That will allow you to start the submitted program as a background job.  Your WDA can then continue processing as the submitted job runs in parallel.

  • How to call reports from JSP/HTML application

    Hi,
    We have a web application developed in JSP, I'd like to use Oracle Reports writer to generate reports (Since our back office application is developed using Oracle forms and Reports - 6i).
    I don't know how to place a request to Oracle Reports server and view the output. Can someone please help me with this.
    Thanks in advance.
    Best Regards,
    Karthik

    Hello Karthik,
    You have a web application developed in JSP. In that you are calling Reports though URL through your JSP.
    User views the source of the HTML page, in browser which is the result of execution of JSP. So Client will see the
    HTML output, but not the real JSP.
    Still if you donot want to hard code the user/password in file, have a form and ask client to enter user/password.
    Or you can combine your JSP with other Java components , like Java bean or Servlets to get user/password at run time.
    With Regards
    Sachin

  • How can call report 9i from form9i

    i need to ask about report9i
    i try to call report from form9i by button
    from there but not success
    i write the code blow
    RUN_REPORT_OBJECT('c:\test.rdf','p1_id');
    best regard

    Hi ,
    I am pasting an example of how to call the RUN_REPORT_OBJECT and what all need to be set for it to function properly. You can use the code, but remember to edit some of the details that you are supposed to fill before trying to run.
    DECLARE
    Report_Id REPORT_OBJECT;
    Report_Job_Id VARCHAR2(20);
    Report_Status VARCHAR2(80);
    Report_Svr VARCHAR2(20);
    BEGIN
    Report_Id := FIND_REPORT_OBJECT('&lt;your_report_object&gt;');
    Report_Svr := '&lt;your_report_server&gt;';
    SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_EXECUTION_MODE, BATCH);
    SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_FILENAME, '&lt;your_report_file&gt;');
    SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_COMM_MODE, SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_DESTYPE, CACHE);
    SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_DESFORMAT,'PDF');
    SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_SERVER, Report_Svr);
    SET_REPORT_OBJECT_PROPERTY(Report_Id,REPORT_OTHER, 'blankpages=no paramform=no ...');
    Report_Job_Id := RUN_REPORT_OBJECT(Report_Id);
    Report_Status := REPORT_OBJECT_STATUS(Report_Job_Id);
    WHILE Report_Status IN ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
    Report_Status := REPORT_OBJECT_STATUS(Report_Job_Id);
    END LOOP;
    IF Report_Status = 'FINISHED' then
    WEB.SHOW_DOCUMENT('http://&lt;machine&gt;:&lt;port&gt;/reports/rwservlet/getjobid' || substr(Report_Job_Id, length(Report_Svr) + 2, length(Report_Job_Id)) || '?server=' || Report_Svr);
    END IF;
    Hope this helps.
    Thanks,
    Vinod.

  • How to call report through URL(without displaying userid info) ?

    I want to call report in my APEX application.
    I can get it run like this :
    http://hostname:port/reports/rwservlet?module=invoice.rdf&userid=oe/oe@tnsalias&destype=cache&desformat=pdf But showing the userid in the url would have serious security problem.
    How could I configure the report to set the default userid, so that I don't need to define that in the url ?
    And is there any way to integrate this authorization with my APEX application ?

    frank1018 wrote:
    I want to call report in my APEX application.
    I can get it run like this :
    http://hostname:port/reports/rwservlet?module=invoice.rdf&userid=oe/oe@tnsalias&destype=cache&desformat=pdf But showing the userid in the url would have serious security problem.
    How could I configure the report to set the default userid, so that I don't need to define that in the url ?
    And is there any way to integrate this authorization with my APEX application ?Hi frank
    Check this http://docs.oracle.com/cd/E12839_01/bi.1111/b32121/pbr_run013.htm
    Hope this helps

  • HOW TO Call REPORT from FORM usning a Button ?

    Hi All,
    Please Help me and Help other Beginers in this :
    Hot to call a report from a form using WHEN_BUTTON_PRESSED trigger (using Oracle 10g R1)
    Should i save the report as .rdf or .jsp ?
    Should i save the report in a specific path ?
    Should i add the path to the REPORTS_PATH in the registery ?
    What about the Report Server ? should i install it first ?
    What about the report properties ? what should i change ?
    Please Help with Steps to make this sample report with the most important thing which is the PLSQL code we will type in the WHEN_BUTTON_PRESSED trigger.
    Regards,
    PS. i tried to search in the forum .. but u can imagine how hard it is to look within Messages: 164,066 - Threads: 46,773 - Pages: 3,119 :)

    Hi there,
    Most of the things do not come for free. You need to spend some effort in order to obtain results.
    Check run_product, run_report_object built-in.
    Also, download the documentation library and go through:
    http://www.oracle.com/technology/documentation/devsuite.html
    The example of how to use the run_product directly from the book "Oracle Forms Developer Form Builder Reference, Volume 1 - Release 6i.pdf":
    RUN_PRODUCT examples
    ** Built-in: RUN_PRODUCT
    ** Example: Call a Report Builder report, passing the
    ** data in record group ’EMP_RECS’ to substitute
    ** for the report’s query named ’EMP_QUERY’.
    ** Presumes the Emp_Recs record group already
    ** exists and has the same column/data type
    ** structure as the report’s Emp_Query query.
    PROCEDURE Run_Emp_Report IS
    pl_id ParamList;
    BEGIN
    ** Check to see if the ’tmpdata’ parameter list exists.
    349
    pl_id := Get_Parameter_List(’tmpdata’);
    ** If it does, then delete it before we create it again in
    ** case it contains parameters that are not useful for our
    ** purposes here.
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    ** Create the ’tmpdata’ parameter list afresh.
    pl_id := Create_Parameter_List(’tmpdata’);
    ** Add a data parameter to this parameter list that will
    ** establish the relationship between the named query
    ** ’EMP_QUERY’ in the report, and the record group named
    ** ’EMP_RECS’ in the form.
    Add_Parameter(pl_id,’EMP_QUERY’,DATA_PARAMETER,’EMP_RECS’);
    **Pass a Parameter into PARAMFORM so that a parameter dialog
    will not appear
    **for the parameters being passing in.
    Add_Parameter(pl_id, ’PARAMFORM’, TEXT_PARAMETER, ’NO’);
    ** Run the report synchronously, passing the parameter list
    Run_Product(REPORTS, ’empreport’, SYNCHRONOUS, RUNTIME,
    FILESYSTEM, pl_id, NULL);
    END;
    Hope it helps,
    Michael

  • How to call Report from SAP Script

    Hi,
    I want to know how can we call a report from a SAPscript .
    Regards,
    Ramanji

    the best u can do is
    write a perform
    perform sub_XXX in program ZXXX.
    endperform.
    se38...
    report zXXX.
    form sub_XXX.
    submit ZXXX1.
    endform.
    santhosh

  • How to Call Report RBDMON00/ Tcode BD87 and copy output in to externel DB

    Hello,
    for a student project y have to to write the output of some ABAP Reports and Function Modulesin an externel Database.
    This time its about the Transaction Code "bd87" programmname "RBDMON00".
    I've tried to write an RFC Function Module which calls the programm with:
    SUBMIT RBDMN00
    EXPORTING LIST TO MEMORY AND RETURN.
    CALL FUNCTION 'LIST_FROM_MEMORY'
    CALL FUNCTION 'LIST_TO_ASCI'
    But theres always an exception Raise in the Function 'LIST_FROM_MEMORY' that theres nothign in the List.
    I don't understand why, with other reports it works great.
    Or is there any other way the get the output from Tcode bd87.
    Is ther any body outher who can help me?
    Thank you very.
    Greets
    JP

    Sorry I'm realy new in SAP and ABAP, can you show me an example how to read out the the Idoc headers out of EDIDC table.
    Or is there any other way to get the entries for example from the table "IDoc entries in tRFC queue" and the other tables behind bd87?
    thanks for your patience.

  • How to call report by click application toolbar button?

    I need to know the way to call a report by click a button in application toolbar?
    BR,
    Ali
    Moderator message: next time, please (re)search yourself instead of asking basic questions.
    Edited by: Thomas Zloch on Aug 31, 2010 11:44 AM

    Hi Ali,
    Selection-screen function key is used to add push buttons on application tool bar.
    Syntax:
    selection-screen functuin key<num>
    Where num is ranging from 1 to 5.
    whenever application toolbat components are added using above statement,tables are defined in the structure "SSCRFIELDS" as "Functxt_01","Functxt_02","Functxt_03","Functxt_04","Functxt_05" for the related function key numbers.
    eg:
    Tables SSCRFIELDS.
    Selection-Screen pushbutton/10(10 lb1 user-command pb1.
    Selectiong-Screen Function key1.
    Selectiong-Screen Function key2.
    Selectiong-Screen Function key3.
    Selectiong-Screen Function key4.
    Selectiong-Screen Function key5.
    Initialization.
    sscrfields-Functxt_01 = 'first".
    sscrfields-Functxt_01 = 'fifth".
    At Selection-Screen.
    case sy-ucomm.
    When 'first'.
    Sumbit zreport.
    endcase.
    Hope it solves your problem.
    Regards,
    Amarnath S

Maybe you are looking for

  • Save pdf to folder as JPG fails

    I have completed the update process so I am running Yosemite and Aperture 3.6 When I try to use the automator work flow that was installed with Aperture (Save pdf to folde as JPG) , I get an error message that "Retrieve Disk Item References encounter

  • Download GOS attachment to PDF

    Hi all! I need to download a jpg image, which is attached to a Notification by GOS, into a PDF document. Anybody knows if it is possible? Thanks

  • Reply action in OSB

    Hi, I need to create a message flow in the following way in OSB 11g. Service Callout -> Send Reply back to consumer -> Another Service Call in Async Way. Does the reply activity after the first service callout works? Thanks Siva

  • I want to use two keyboards, each with a different language. Is this possible?

    I work in Norway and use a Norwegian keyboard and keyboard layout for most daily activities. However, I code quite a bit and the Norwegian keyboard/layout is ridiculously inefficient for this. Is it possible to have two keyboards linked up to my iMac

  • Using  Imessage only with icloud email on ipad???

    I only have an icloud email, and when i set up my ipad to use imessage , it´s not working?? Works great in my iphone, guess  it´s because it´s also using my phone number? Mistake in the set up