2 Logical Databases in one report - urgent

Hi all,
I need to use PNP and PCH databases in my report.
In Attributes of an abap program, i can define just one logical database.
so does it mean that we can use only one logical database in our report?
Regards,
Aisha Ishrat
ICI Pakistan Ltd.

Just check LDB_PROCESS documentation in SE37 and this link
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/64/237f8cd43711d1950b0000e8353423/content.htm">http://help.sap.com/saphelp_nw04/helpdata/en/64/237f8cd43711d1950b0000e8353423/content.htm</a>
But I dint work in that so not sure whether it will work or not just try this.
Regards
shiba dutta

Similar Messages

  • How to get the selection parameters from logical database into one of the t

    Hi Sap ABAP Champians,
    How to get the selection parameters from logical database into one of the tab in the tabstrip selection-screen.
    Please help me for this
    Thanks
    Basu

    Hi
    Thanks, that will work, but then I'll have to insert code into all my reports.
    I can see that "Application Server Control Console" is able to rerun a report.
    This must mean that the Report Server has access to the runtime parameters.
    But how?
    Cheers
    Nils Peter

  • Need to restrict selection screen entries in logical database in HR report

    After creating custom HR Report Category using Logical database, I need to restrict the options available in the in the selection Screen
    for example- for company code i m getting 182 entries, but after running the program, selection-options for company code, i need only first 3 entries, don't want remailing entries
    how can i do this?

    Hi
    You can retrieve the required entries into an internal table and use FM F4IF_INT_TABLE_VALUE_REQUEST to provide them under F4 help.
    Regards
    Raj

  • Customize selection screen of logical database AFI of report RIAUFK20 ?

    Hi Experts,
    I have to customize the report RIAUFK20 which use logical database AFI.
    I have to do the following:
    - Change the field labels of some fields in the selection screen.
    - Add more field into selection screen which does not appear in the nodes of logical database structure, for example TIDNR in table EQUZ.
    So what is the best way to achieve that result?
    I intended to copy the AFI into ZAFI and change, but still struggle with add fields which does not appear in the structure of logical database.
    Any help is appreciated, thanks!

    Specify your logical database on Program "attributes".
    It will display the standard selection screen of LDB. Now in your report, create selection screen as in other programs for the additional fields.
    It will first display the field of LDB, followed by fields provided by your selection screen.

  • Copying logical database from one server to another

    Hello All,
    I have one logical database name as KDF in my test server which has become inconsistent due to some reason . In my live server tht logical database is consitent now what is the option to copy the same from my live server to test server .
    If i copied will it work properly or is there any other solutions or options.
    Thanks
    Sunny

    Hi Suny,
    First of all, we cannot create a transport request in Prodcution server and then transport it to the Development Server.Else, it is the other way round,one can create a request in development,then transport it to Test and then to the Production server.
    That is why I said that if the SAP standard LDB is disturbed in Development as well,then you will have to manually look in for the modifications between the Production and the Test Server,and change them in the developemt and then transport it to Test server and then Production.
    Hence,the best solution is to manually check for the inconsistencies and modify in the development server and then transport.
    The path for copying that you are following is correct anyways.
    In case you have any further clarifications,do let me know.
    Regards,
    Puneet Jhari.

  • Using PNP logical database in report

    Hi i'm using the PNP logical database in my report, and i want to hide all fields in the 'Period' frame.
    is there any way to do it automatically or is it necessary to hide them one by one??
    Thanks in advance.

    If you can put them all in the same screen group, you may be able to do this. But you might run into problems when you re-generate.
    Rob

  • Mandatory field in selection screen of pnp logical database report

    Hi experts,
         Im using pnp logical database in my report.
    It give the standard selection screen. I need to make some fields in the selection screen as mandatory like pnpwerks.
    How its possible. Give me some solution.
    Thanks,
    Priya.

    how about if u do this step
    1. Goto- Attribute.
    2. Click "Change"
    3. Click 'HR Report Category'
    4. Click 'Create Report Category'
    5. Click 'new entries' for careating Report Category
    5. Select newly create report category
    6. Click the folder 'Definition of Organizational Selection'.
    7. Click 'New entries'.
    8. Here you assign the required fields to be displayed, for eg pywerks - personal area.
    9. finally assign this newly created 'report category' in the screen you will get upon clicking 'HR report Category' button in the Program attribute screen.
    Hope this may help you.  I am not much into hr abap. but sharing the info which i am aware.

  • Select statement in Logical Database

    hi,
       i need to select particular fields(not select * )
      from bsis table in my Logical database. how can i write code for this?
    for eg,
       In Ordinary report , we can write (select belnnr into
      itab_bsis-belnr)  like this.
       but in Logical Database how can i write the code ?
       Neptune.M

    Hi,
    I am new to ABAP.Currently I'm practicing logical database. I am facing a similar problem like what Neptune is having.
    I have created a logical database 'Z03_SAMPLEDB5' using tables KNA1, KNB1,KNB4,KNB5 and KNKK.
    I have defined the Database program and selections.Now I would like to use this logical database in one of my programs.
    Please find the code of the program in which I'm using this logical datbase  :
    REPORT  Z03_SAMPLELDB5.
    tables : kna1.
    data: begin of t occurs 0,
    kunnr like kna1-kunnr,
    land1 like kna1-land1,
    bukrs like knb1-bukrs,
    end of t.
    start-of-selection.
    get kna1.
    clear t.
    move-corresponding kna1 to t.
    append t.
    end-of-selection.
    write: /20 'Customer No.', 40 'Country code', 55 'Company Code'.
    ULINE.
    loop at t.
    write: /20 t-kunnr, 40 t-land1, 55 t-bukrs.
    endloop.
    In the output screen I could get data for only 'Customer No' and  'Country code' .'Company Code' is blank.
    Please let me know what I need to do to get data for 'Company Code'  as well.
    Thanks,
    Prasuna

  • How to hide selection fields when using logical database PNP

    hi.
    i m using a logical database PNP and report catagory 1PY_DEF in my program.
    but when i execute it , it shows to selection box. one name is period and second is selections.
    but i just want to show only period box selection fields , not the selection box fields.
    how it iz possible.

    HI,
    In my case i haved used the PNP logical database..in the selection box i don't wnat to display Contorling area,Cost Center & Organizational Unit. i have written this code to hide those fields..
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-name CS 'PNPKOKRS' OR
           screen-name CS 'PNPKOSTL' OR
           screen-name CS 'PNPORGEH'.
          screen-active = '0'.
          screen-invisible = '1'.
          MODIFY SCREEN.
          CLEAR screen.
        ENDIF.
      ENDLOOP.
    Try modify hide the total block instead of individual fields in that block.

  • HR Logical Database

    Hi,
      Is it common to use logical database for HR report??  How about other module such as SD/MM??
    Regards,
    Kit

    Hi,
    Logical databases are special ABAP programs that retrieve data and make it available to application programs. The most common use of logical databases is still to read data from database tables by linking them to executable ABAP programs.
    However, from Release 4.5A, it has also been possible to call logical databases using the function module LDB_PROCESS. This allows you to call several logical databases from any ABAP program, nested in any way. It is also possible to call a logical database more than once in a program, if it has been programmed to allow this. This is particularly useful for programs with type 1.
    Logical databases contain Open SQL statements that read data from the database. You do not therefore need to use SQL in your own programs. The logical database reads the program, stores them in the program if necessary, and then passes them line by line to the application program or the function module LDB_PROCESS using an interface work area.
    Logical Databases - Views of Data
    A logical database provides a particular view of database tables in the R/3 System. It is always worth using logical databases if the structure of the data that you want to read corresponds to a view available through a logical database.
    The data structure in a logical database is hierarchical. Many tables in the R/3 System are linked to each other using foreign key relationships. Some of these dependencies form tree-like hierarchical structures. Logical databases read data from database tables that are part of these structures.
    The diagram illustrates how the R/3 System might represent the structure of a company. A logical database can read the lines of these tables one after the other into an executable program in a sequence which is normally defined by the hierarchical structure. The term logical database is sometimes used to mean not only the program itself, but also the data that it can procure.
    Tasks of Logical Databases
    As well as allowing you to read data from the database, logical databases also allow you to program other tasks centrally, making your application programs less complicated. They can be used for the following tasks:
    Reading the same data for several programs.
    The individual programs do not then need to know the exact structure of the relevant database tables (and especially not their foreign key relationships). Instead, they can rely on the logical database to read the database entries in the right order during the GET event.
    Defining the same user interface for several programs.
    Logical databases have a built-in selection screen. Therefore, all of the programs that use the logical database have the same user interface.
    Central authorization checks
    Authorization checks for central and sensitive data can be programmed centrally in the database to prevent them from being bypassed by simple application programs.
    Improving performance
    If you want to improve response times, logical databases permit you to take a number of measures to achieve this (for example, using joins instead of nested SELECT statements). These become immediately effective in all of the application programs concerned and save you from having to modify their source code
    Reward Points if useful
    Raghunath.S
    9986076729

  • How to suppress the Selection Screen of Logical Database

    Hi,
    I am using one Logical Database for my report.
    I want to show my customized selection Screen.
    How can I hide the Selection Screen of Logical Database?

    Hi,
    Check the attributes of the report program where you assign the LDB. You can see the parameter Selection Screen press the F4 and check the LBD is provided any Blank screen or not.
    For some LDB's you can find the Report Category in the attribute section of the report. either you can create the new screen or standard screen might be provided with Blank.
    Check there ..
    If you don't find you can use LOOP AT SCREEN..ENDLOOP to hide the fields of LDB.
    Which LDB you are using.

  • Logical database excess problem

    hi frends,
    is it possible to make single report for using multiple logical databases ?

    Logical database as the name suggests is a logical combination of related tables along with their common selection criteria and database access routines. Now if you want to use more than one logical database, then you are basically accessing unrelated tables (or at least as per the definition of a logical database) and that defeats the purpose of a logical database which offers some benefits of reusable selection criteria and faster database access.
    That is the reason why SAP gave you an option to specify only one logical database in the attributes. Apart from this there may some technical limitations in providing such a feature, for instance what if you use 100 logical databases in a report, can the combined selection screens of all the logical databases be generated and handled? Can all the database access routines be loaded at the same time into the memory? So it may be both technical implementation limitations as well as logical reasoning that lead SAP to limit it to one LDB.

  • LOGICAL DATABASE IN HR ABAP PRPGRAMMING

    Hi Friends,
    what is use of LOGICAL DATABASE IN HR ABAP PROGRAMMING
    AND END-OF-SELECTION EVENT IN HR PROGRAMMING PROGRAMMING???
    regards,
    vijay.

    hi
    HR Logical Databases
    In Human Resources (HR), the following logical databases can be used as a data source for HR InfoSets:
    PNP (PNPCE)
    PAP
    PCH
    By selecting a logical database, you determine the HR data that can be reported on using an InfoSet.
    Logical Database PCH
    This logical database generally enables you to report on all HR infotypes. However, you are advised not to use this logical database unless you want to report on Personnel Planning data.
    Logical Database PNP (or PNPCE)
    Use logical database PNP to report on HR master data. It is possible to use logical database PCH to access this data, but PNP meets such reporting requirements more quickly because it is best suited to the task of selecting persons.
    Logical database PNP enables you to access HR master data and infotypes from Personnel Planning. For example, you have the following options:
    Reporting on the costs, number of attendees booked, and instructor for a business event on which an employee is booked
    Reporting on working time and planned compensation for a position that an employee occupies
    Reporting on the validity and proficiency of a qualification that an employee fulfils
    From a technical perspective, this means you can use PNP to report on all of the infotypes that exist for objects (infotype 1000) that have a direct relationship (infotype 1001) with the Person object.
    The ability to access infotypes from Personnel Planning using logical database PNP is a special feature that you can only use in the context of SAP Query and Ad Hoc Query. You cannot use this functionality for ABAP reports you programmed yourself.
    You can also use logical database PNP to report on data from Personnel Time Management (infotypes 2000 to 2999) and Payroll (special payroll infotypes for the USA and customer infotypes; for more information, access Customizing for the Human Resources Information System and see Payroll Results).
    Logical Database PAP
    Logical database PAP enables you to access data from Recruitment.
    regards
    navjot
    reward if helpfull

  • HR - Programming without Logical database

    Hi All
    I have some doubts, I am mainly using Logical database while creting Reports in HR, if I want to use HR function modules and BAPI do they use logical database,
    question is when we have to do HR programming with Logical database and when without Logical database.
    cheers
    AJ

    Hi Srinivas
    If I am doing some Enhancement on ESS/ MSS , using Webdypros, I cant define Logical database anywhere, so I have to use Function modules or BAPIs ........???
    But usually in Reporting you can define the Logical database in the Program attributes.........so I think Logical database can only be used when it can be defined in the program attributes........if you have any other scenarios........please let me know
    regards
    AJ

  • Logical database HR

    Dear Gurus,
    I m trying to debug a report which is done using logical database programig.
    Report is rnning for all employees and checking whetere for thsi employee contract is expring in 30 days or not.if expring iys just displaying data.
    Report is running using statement Get Pernr.
    I m new to abap..i jsut want to execute an ddebug teh prograom for 1 emplyee,...but when i started debugging its reading employeess 1 by 1 through get pernr...and looping..
    but i just want to debug for 1 employee...and see hoe its working...
    I diont have option to select on selection screen..
    Is this possible as otherwise its taking a long time to debug...
    Please suggest
    Regards
    Manish

    Put a break point on GET PERNR statement.
    So when you execute the report the program will stop on this statement.
    You can look at the field PERNR-PERNR to find out for which employee the code is being run.
    remember from GET PERNR event till END OF SELECTION event its like a loop. So after END OF SELECTION the employee number will get changed at GET PERNR event.
    hope this was usefull
    cheers
    AJ

Maybe you are looking for

  • A problem with my ipod shuffle and vista

    Hello all, was wondering if anyone could offer some ideas on this. My flat mate just moved and I was using his mac for my ipod shuffle. I have just bought a Dell with windows vista and have put itunes on it. When I put my ipod in the USB port, vista

  • Downloading  camera raw 5.4

    I've downloaded camera raw 5.4 for CS4.  I have a Canon Ti1.  When I try to install the update, I keep getting the message to close the following application and retry to continue installing update.  The application is Adobe Bridge.  I don't have it

  • PSE 11 Trial Crashes

    My trial version of PSE 11 continues to crash every few minutes and/or keeps replacing thumbnails with the broken file icon. It is only the organizer that continues to crash, the editor thus far has been fine. Any idea why this continues to happen?

  • White Space in Table

    Hi all, I have created a gallery http://www.davewharton-toastmaster.co.uk/new_site/gallery1.html but the white space is not consistent, there is more vertically than horizontally and looking at the HTML and CSS I can't see what is causing it, could s

  • Unable to change bookmarks

    Hi; I am trying to rename or delete some of my bookmarks but Safari is telling me that I can't change bookmarks now because they are being synchronized. But I am not connecting any device nor I am synching with any web service. What is the problem? T