The "DEFINING DATABASE ldb " addition in "REPORT" statment

Hi all
I wonder what the "DEFINING DATABASE ldb " addition in "REPORT" statment is involve to?
cause I didn't understand the SAP help of this addition!
Thanks.

When defining logical databases (via SE36), the underlying database program needs to have this addition to the REPORT statement. See SAPDBSDF for logical database SDF as an example.
Greetings
Thomas

Similar Messages

  • Defining database

    first line of the abap editor is report statement,in that report statement we use line-size,line-count,message-id & defining database.what is defining database?

    Hi,
    The defining database :
    This addition shows that the current program is the database program of the logical database ldb. The name of this logical database has a maximum length of 20 characters. Logical databases are maintained with the tool Logical Database Builder of the ABAP Workbench, in which the framework program is generated automatically including the statement REPORT. The name of the framework program is SAPDBldb.
    Example
    Introduction of the logical database F1S.
    REPORT sapdbf1s DEFINING DATABASE f1s.
    Hope it is useful.
    Thanks,
    Sandeep.

  • 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

  • Is there a way to have a search form for the CRM database?

    I know there is a search form provided for the Web Apps. I can't seem to find how to create a search form for the CRM database. I have created a membership site, and also extended the CRM database with additional fields. I would like the users to be able to search on selected fields in the CRM database including the extended database fields. For example, I have a field called membership type in the extended database. I would like to be able to search on that in a search form. Is that possible?
    Thanks

    Sidney,
    Your input is very helpful to put me on the track to find a workaround. As I tried using Web App approach, I get into a road block that hopefully you can help throw some light on.
    This my scenerio: I created a Web App for holding the profile fields (called it Profile). I created a Page to display the Customer record (Names, usernames, email, etc, and I would also want to display the fields from the Profile Web App. I am at lost how to do that. Seems like I can only insert the web item list in that page but I actually want to display the Detall Layout instead of the List layout. To display the Detail Layout, I need to first manually choose the item before it will direct me to the Detail layout. I am trying to find a way to do this automatically based on the fact I have only one Profile web app item for each customer.
    The question is whether there is a way to pull up a specific Profile web app item based on the customer's id or something that link the two together, using javascript or whatever method. Is there a tag to gives me the customer record id? If I can get that id, I could insert that id into one of the fields in the Profile Web App during creation of profile. Perhaps I can then pull up the profile item based on this id.
    Thanks for all the help
    Steve

  • Use SAP defined methods instead of Logical Database(LDB)

    Hi All,
    I gonethrough some documents related to new HR ABAP programing without using logical database.  we can replace the logical databased with SAP defined methods for all the infotypes.  Appreciate if anyone let me know how do this.
    Thanks in advance.
    Thanks,
    -suresh

    Yes.. we can use the Infotype reader class.. you can use the following sample code & go from there.. fyi I wrote this on a 47 system..
    *& Report  ZP_INF_CL                                                   *
    *&  read an infotype using ABAP Objects                                *
    report  zp_inf_cl line-size 1000.
    infotypes: 0001,0008.
    parameters: p_infty type infty,
                p_pernr type pernr_d.
    constants: c_a type tclas value 'A',
               c_true value 'X'.
    data: w_infotype_reader type ref to if_hrpa_read_infotype,
          t_inftab type hrpad_prelp_tab,
          w_missing_auth type boole_d,
          w_data_exists  type boole_d,
          rec_infty like line of t_inftab.
    * init infotype reader
    call method cl_hrpa_read_infotype=>get_instance
      importing
        infotype_reader = w_infotype_reader.
    call method w_infotype_reader->read
      exporting
        tclas         = c_a
        pernr         = p_pernr
        infty         = p_infty
        begda         = sy-datum
        endda         = sy-datum
        no_auth_check = c_true
      importing
        infotype_tab  = t_inftab
        data_exists   = w_data_exists
        missing_auth  = w_missing_auth.
    loop at t_inftab into rec_infty.
      call method cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
        exporting
          prelp = rec_infty
        importing
          pnnnn = p0001.
      append p0001.
    endloop.
    loop at p0001.
      write:/ p0001-orgeh.
    endloop.
    ~Suresh

  • Reporting data in the Archive Database

    Environment: 10gR3 StandAlone Enterprise.
    I successfully configured Archiving and I can see data being written to the archiving database. I want to now report on the data present in this database. My reports need to be more detailed than what the Archive Viewer displays.
    1. Is there any document that defines the Archive schema?
    2. Are there any SQLs available that make the proper joins against the tables to present the data?
    For example, one report would be to list every completed instance below which would be listed the activities and participant who completed them.
    thanks

    Any help with archive database SQL is appreciated.
    thanks

  • How to define the PLD of a Query generator report

    Hi All,
    I want to define the PLD of a Query Report. Currently I am Convertning it to Excel format. But my client wants it in PLD format.  so please tell me the process of defining the PLD for a Query generator Report.
    Thanks & Regards
    Pankaj Sharma.

    Hi,
    When u wrote yr query at that time save yr query
    Now yr query is save in "Query Manager"
    Open Query Manager > select yr query
    There is a button "Create Report"
    Create USer Report Window is display "define yr name" and select "Base Temple"
    once u save it double click and edit yr PLD....
    Hope it a best way to create uer PLD
    Thanks
    Kevin

  • Reporting Services Server cannot connect to the DPM database. ( dpm 2010 )

    Reporting Services Server cannot connect to the DPM database.
    To repair the configuration, follow steps for repairing DPM from DPM Setup Help.
    ID: 3001
    i can not try the Recommended action from error codes catalog because i did not found Change reporting
    password

    Hi,
    We have had several customers report this after installing DPM 2012 R2.
    To get past the below error while scheduling reports to be mailed.
    Reporting Services Server cannot connect to the DPM database.
     To repair the configuration, follow steps for repairing DPM from DPM Setup Help.
     ID: 3001
    Perform the following steps as necessary:
    1. Created a new local group called "DPMDBReaders$<DPMServerName>"
    2. Created a new user called, "DPMR$<DPMServerName>" and added this user to DPMDBReader group that we created on step 1.
    3. Open SQL management studio and  add the DPMDBReaders$<DPMServerName  group to Logins under Security in SQL Management Studio.
    4. Modify the properties and under General – change the default database to the current DPMDB name.
    5. Under User Mapping – select the current DPMDB name and check the db_datareader checkbox.
    6. In SQL Management Studio, navigate to the Databases > DPMDB > Security > Users > and select the DPMDBReaders$<DPMServerName>" group.  
    Right-click the DPMDBReaders$<DPMServerName>" group and select properties. Under the
    Securables section, click on Search. On the add objects dialog, click OK. 
    On the Select Objects dialog, click the Objects type, then check the
    stored procedure checkbox. Browse and add the following two stored procedures
     “Prc_MOM_Heartbeat_Get” and “prc_MOM_ProductionServer_Get”.    Grant the Execute permission for both of the stored procedures added. 
    7. In SQL Reporting Services Configuration manager, under Report Manager URL - click on the link to open the portal (http://localhost/Reports)
          i. Click on the DPMReoprts_GUID to open the DPM reports.
          ii. Click on the DPMReporterDataSource
          iii. On the poperties page, enabled "Credentials stored securely in the report server" on DPMReporterDataSource configuration page and added “DPMR$<DPMServerName>” user account that we created in step 2. 
          iv.  tick "Use as Windows credentials when connecting to the data source." 
          v.   Click ‘Test connection’ on the same page to verify whether it can connect successfully.
    8.  In SQL Reporting configuration manager - change the Service Account to use build-in account: Network Service
    9. Reboot the DPM Server.
    10. You should then be able to schedule e-mailed reports.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT] This
    posting is provided "AS IS" with no warranties, and confers no rights.

  • REP-501: Unable to connect to the specified database in Report Server

    I Get a 'REP-501: Unable to connect to the specified database' error, when trying to call a report from a button on a Forms 10g application, through a report object:
    A portion of the code button:
    report_id := find_report_object('REPORT');
    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, p_server);
    set_report_object_property(report_id, report_filename, 'report.rep');
    report_job_id := run_report_object(report_id, lista_p);
    rep_status := report_object_status(report_job_id);
    job_number := length(servidor_rep) + 2;
    WHILE rep_status IN ('RUNNING', 'OPENING_REPORT', 'ENQUEUED') LOOP
    rep_status := report_object_status(report_job_id);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    web.show_document('http://'||server_name||'/reports/rwservlet/getjobid' ||
    substr(report_job_id, job_number) || '?server=' || p_server,'_blank');
    ELSE
    message('Error');
    END IF;
    The TSNMAMES configured in the OAS is as follows,
    LISTENERS_PROD =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = zurquivip.coope.local)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = poasvip.coope.local)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = irazuvip.coope.local)(PORT = 1521))
    DB01 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = zurquivip.coope.local)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = poasvip.coope.local)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = irazuvip.coope.local)(PORT = 1521))
    (LOAD_BALANCE = yes)
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = DB01.COOPE.LOCAL)
    (FAILOVER_MODE =
    (TYPE = SELECT)
    (METHOD = BASIC)
    (RETRIES = 180)
    (DELAY = 5)
    This application does not fail in other databases, only in which I have the problem.
    The connection to the database through the SQLPLUS and other applications works well. The error is presented only when calling reports from the application.
    Another point is that the problem is presented with some users and not with others even they have the same conditions as roles, profiles, grant objects, etc.
    If i run my report with the following url applying directly on address bar of web browser then it run fine on web browser
    http://hostname.domain:port/reports/rwservlet?report=myreport.jsp&userid=un/pw@db&destype=cache&desformat=PDF
    OAS 10g and Database are on different machines.
    Please... any idea about this problem?
    Thanks!!

    I use a report object, imagine that sends connect information when creating the Job in the reports server.
    However the same problem happens if I call to report from the Internet Explorer with all parameters of connectivity, for example;
    http://hostname.domain:port/reports/rwservlet?report=myreport.rep&userid=un/pwdb@&destype=cache&desformat=PDF
    The only difference in this database is that it is configured in a RAC and as I mentioned the problem occurs with some users and not with others, even if they are identical.
    Thank for your help!

  • Why am I getting  'Unable to signon to the Source Database.' just prior to 'Running the DBTSFIX Report' step.

    We are upgrading from Tools 8.53 to Tools 8.54 in HCM. I am receiving logging event 'Unable to signon to the Source Database.' just prior to 'Running the DBTSFIX Report' step. I found case 1545297.1 where it said to choose initial move as opposed to move

    For Tools only upgrades, while creating the jobs, you should choose 'Initial' and not 'Move to production'
    An excerpt from http://docs.oracle.com/cd/E56736_01/psft/acrobat/Getting_Started_on_Your_PeopleTools_Upgrade_08_2014.pdf is given below
    MTP indicates that this step runs only in Move to Production upgrade passes. The step is not applicable to the initial pass. This is not applicable for PeopleSoft PeopleTools-only upgrades.

  • How to use the backup database to create report or update testing

    Hi,
    I have a fully backup of production database in the last month, and I have using Oracle 8.1.7. I want to known how can I use
    this backup to generate a new instance so that I can reproduct some report from the last month data or doing some update testing
    from the backup database with the both production instance and last month instance is opened at the same time. I have tried to
    create a new instance by using the oradim and startup the new sid with mount option and then use the alter database function
    to change the datafile name to the new directory. After this i also create the local service name and change to listerner. I can
    startup the new instance but when i start the production database. I got the error that I can open the database with exclusive.
    I do this in Oracle 7.3.4 and it works. But how can i setting it in Oracle 8.1.7. Anyone can help me and many thanks.

    Hi,
    Create the Second instance thro' Database Configuration Assistant, and Replace with Back up files.Now you can run two instances at parallel.

  • The report terminated with error:  REP-501: The specified database cannot b

    Dear All,
    We are usning forms and reports 11g in weblogic . while running the reports from forms
    frequently getting the error The report terminated with error: REP-501: The specified database cannot be connected..
    Can anyboby help me to solve this problem

    REP-501 typically means that Oracle Reports are unable to locate any available Oracle Databases. By default, Oracle Reports (similar to Oracle Forms) will only look for available databases in tnsnames.ora. Not only that, but the Reports environment by default will always look for the tnsnames.ora file in %ORACLE_INSTANCE%\config ($ORACLE_INSTANCE/config in Unix). I have seen these scenarios happen before especially if the TNS_ADMIN variable for your Forms environment variables is a directory different from %ORACLE_INSTANCE%\config. This would be the first place I would look.
    If tnsnames.ora is located in %ORACLE_INSTANCE%\config, do all generated reports fail with this message or a select amount of them? If only a select amount of them, are there any similarities with these reports (e.g, size, parameters, etc.)?
    Thanks,
    Scott
    http://pitss.com/us

  • How do we create user defined Task in OM & Which report we run for the Task

    Hi
    How do we create user defined Task in OM & Which report we run for the Task.
    Regards
    Rajesh

    You can create tasks using PFCT or path: Human resources> Organizational management> Expert mode> Task catalog in Easy access.
    Check this link may be useful for you: http://help.sap.com/saphelp_40b/helpdata/pt/fb/135d89457311d189440000e829fbbd/content.htm

  • Why does the DB Tools List Columns.vi only report -1 for the defined column size?

    I am using LabVIEW 8.2.1 with the database connectivity toolset with an SQL Server 2000 database. I would like to see how large a full record could be, so I used the DB Tools List Columns.vi in the database toolset. It easilly displays the column name and the column type, but only returns a -1 for the defined size. Of course when I add up the defined size elements, it gives me -351, which is the number of columns in that particular table. The vi I am using is very simple. I open a database connection, retrieve the data, and close the connection. The retrieved data is an array of clusters. I index it by running it through a for loop, and unbundeling each of the three parameters, and reforming arrays at the end of the for loop. This is as about the simplest vi I have ever made, but only part of it works.
    Attachments:
    Table size.vi ‏23 KB

    SciManStev-
              I don't know if this gets you the functionality you want because I don't have access to your file, but I would have code it this way (see attached picture). I would have used a Array to Cluster.vi to convert the column info ouput array into a cluster so I could use Unbundle by name. I think this is what you are wanting because from what I see, you only access the file once everytime the VI runs (right?). Try this and let us  know how it works out. Thanks!!
    Grant H.
    National Instruments
    LabVIEW Product Marketing Manager
    Attachments:
    untitled.JPG ‏29 KB

  • Defining default value for financial reports display in the workspace (9.3)

    Hi
    I need to change the default value for financial reports workspace preview mode, for every workspace user. It is actually set on html, and I would like to have pdf instead.
    This option can be changed when logged on the workspace, in file->preferences->financial reporting->default preview mode. However I want every user to start with the right settings, so they dont have to change anything manually.
    I have tried to do it with Shared Services : under projects, BI+, assign preferences. From there I can change the default folder and the start page (the general preferences), however I cannot find the options for financial reporting.
    Is there a way to change these values with hyperion tools ?
    If not, is it possible to change it directly in the repository DB ?Thanks and best regards

    We looked at this about 2 years ago - from memory, you can only set preferences when the users are first setup in Shared Services, under the manage preferences section of the wizard.
    I can't remember if there is a settings file you can edit for the default users - i think there is, but again this must be set before users are set up.
    We looked at changing users preferences, but gave up on the idea as all users had been provisioned already :-(
    Cheers, Iain

Maybe you are looking for