Change output of abap logical database report

Hello
I have an abap report that is using a logical database to display some fields.My problem is that i have to change it and display more fields for output ,how can i control this?
Thank you

Hi,
We need to add the required (additional) fields to the internal table structure, fill the fields with relevant data and display them on the screen. How is the output fields related to using a LDB..?
Can you explain me a little bit more on the below stmt?
" I have an abap report that is using a logical database to display some fields."
I am not clear in understanding the relation b/w 'using LDB' and 'fields in output'. I dont think the fields displayed in the output screen will be restricted while using a LDB. Pls correct me if i understood wrong.
Thanks,
teja.

Similar Messages

  • Runtime error while creating logical database report pgm

    Hi,
        I have started doing pgm on Logical Database report using VBAK,VBAP and MARA. I took VBAK as the root node and VBAP& MARA  as subnodes. The actual requirement is:-  I am trying to place these tables in Application server for perfromance issue using Logical database. Based on sales, the items need to be be displayed. And based on Items, the material data should be displayed.So root node here is VBAK.
    I have created these 3 nodes in SE36 tx.code. when I go back to se36 main screen and under "subobjects"  ,I've selected "selections". I got a dialog box saying that "Nodes for which free selections are to be made". I have clicked on the radio buttons.And then clicked on "transfer" . I am getting a runtime error . Please let me know the solution.
        Please do send me the actual process to goon with logical database reporting.

    Hello
    Logically speaking, a company code can have more than one FSV as long as they share the same chart of accounts.
    When COA is common, the FSV pattern can be designed seperatly to serve the purpose of varied reporting.
    The dump you are getting is a temporary snag. Take a screen shot from SM54 after you execute the report and pass it to BASIS for analysis. They would fix that.
    Reg
    assign points if useful

  • Query regarding Logical Database reports

    Hi,
    I have started doing pgm on Logical Database report using VBAK,VBAP and MARA. I took VBAK as the root node and VBAP& MARA as subnodes. The actual requirement is:- I am trying to place these tables in Application server for perfromance issue using Logical database. Based on sales, the items need to be be displayed. And based on Items, the material data should be displayed.So root node here is VBAK.
    I have created these 3 nodes in SE36 tx.code. when I go back to se36 main screen and under "subobjects" ,I've selected "selections". I got a dialog box saying that "Nodes for which free selections are to be made". I have clicked on the radio buttons.And then clicked on "transfer" . I am getting a runtime error . Please let me know the solution.
    Please do send me the actual process to go on with logical database reporting.

    hi,
    look here <a href="http://help.sap.com/saphelp_47x200/helpdata/en/9f/db9bed35c111d1829f0000e829fbfe/frameset.htm">Editing Logical Databases</a>
    pls reward usefuls answers
    thx.
    Andreas

  • ABAP Logical Database ADA

    Hi All, I am quite familiar with Logical Databases but I need to understand the following.
    1) I am using LDB ADA, but I want to use my own Selection Screen and not the default one that the LDB provides. I know I must put something in AT SELECTION-SCREEN but am unsure what.
    2) Once I get the data, I want to store the data in an internal table - how do I go about doing this? If you can provide a code example that would be great.
    Points for any relevant help.

    Hi,
    A logical database is a special ABAP/4 program which combines the contents of certain database tables. You can link a logical database to an ABAP/4 report program as an attribute. The logical database then supplies the report program with a set of hierarchically structured table lines which can be taken from different database tables.
    Logical database structures
    There are three defining entities in an SAP logical database. You must be clear on all three in order to create and use one.
    Table structure: Your logical database includes data from specified tables in SAP. There is a hierarchy among these tables defined by their foreign keys (all known to SAP), and you are going to define a customized relationship between select tables. This structure is unique and must be defined and saved.
    Data selection: You may not want or need every item in the referenced tables that contributes to your customized database. There is a selection screen that permits you to pick and choose.
    Database access programming: Once you’ve defined your logical database, SAP will generate the access subroutines needed to pull the data in the way you want it pulled.
    Creating your own logical database
    Here’s a step-by-step guide:
    1) Call up transaction SLDB (or transaction SE36). The path you want is Tools | ABAP Workbench | Development | Programming Environment | Logical Databases. This screen is called Logical Database Builder.
    2) Enter an appropriate name in the logical database name field. You have three options on this screen: Create, Display, and Change. Choose Create.
    3) You’ll be prompted for a short text description of your new logical database. Enter one. You’ll then be prompted to specify a development class.
    4) Specify a root node, or a parent table, as the basis of your logical database structure. You can now place subsequent tables under the root table as needed to assemble the data object you want. You can access this tree from this point forward, to add additional tables, by selecting that root node and following the path Edit | Node | Create. Once you’ve saved the structure you define in this step, the system will generate the programming necessary to access your logical database. The best part is you don’t have to write a single line of code.
    Noted point is we cant add any selection criteria thru our se38 program if you are attaching any LDB to program.Ist of no use.
    If you want to change selection criteria to the existing LDB, you have to goto SE36 tcode and provide LDB name and choose "Change" mode by selecting "Selections" Radio button.
    declaration of params is different compared to normal se38 program in some aspects.
    PARAMETERS :p_curr LIKE bkpf-waers FOR TABLE bkpf OBLIGATORY.
    this BKPF table should be one of the node in the "Structure" Radio button.
    Thanks
    Sivaparvathi
    Please reward points if helpful.

  • 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.

  • Changing selection sequence for logical database

    Hi,
    One of my current report is using logical database PNP. The users are satisfy with the standard selection screen. However they would like me to change the sequence of the selection field. Example, current sequence is Personnel number, company code, employee subarea. They would like it be Personnel number, employee subarea, company code.
    Is there any way I can change the sequence of the selection screen? I tried using report catagory but it don't allow me to change the sequence. Please advise.
    Regards,
    Lanwu

    Rich is correct.. but there is a workaround..
    Use the Report Category that suppresses all the selection fields.. I the program deifne your selection screen with the fields in your own order preference. In the STARt-OF-SELECTION event.. pass the values entered to the PNP fileds.. ie suppoes you have declared S_PERNR ( for Pers No), then use PNPPERNR[] = s_pernr[]. This way you will not have to change the LDB program..
    ~Suresh

  • Changes to View in logical database(SE36) is not saved in transport.!!

    Hi ,
    Logical Database: ADA
    Selection view: CUS
    We did few changes to the view for table fields ANLAV in SE36 .
    When I press save, it is not asking for transport number.
    How i can save these entries in transport?  Do I need to manually place in the transport?
    Kindly Suggest.
    Thanks

    Hi,
    Please check below sdn link..
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0e0039a-0d79-2c10-0aaf-9f6c062c0ffb?quicklink=index&overridelayout=true
    BR,
    Vijay

  • To make selection period mandatory in Logical Database Report

    Hi All,
    My report is using customized HR Report Category with selection period as Key Date.
    My requirement is to make Key Date as mandatory field and with default value as sydatum.
    Pls help .
    Regards,
    Nibha

    Hello,
    Although the selection screen will appear from the logical database you define, you can add your validation check at the event 'At selection-screen' to check if particular field is initial or not and give proper error message.
    Other way would be at the initialisation event use the following :
    loop at screen.
    if screen-name = 'P_NAME'.
    screen-input = '1'.
    endif.
    modify screen.
    endloop.
    Also at initialisation
    s_date = sy-datum.
    Regards,
    Mansi.

  • Is it possible to change selection screen of logical database structure?

    I have to create a z report for a standard transaction FBL01N which is extracting data according to the vendor account number(LIFNR) at the selection screen. Now as per the requirement the system should extract details according to 'vendor name' keeping the same functionality.
    But the standard program is using some logical database structure KDB and the include for the selection screen is DBKDFSEL.So can I modify the selection screen of this transaction replacing Vendor No with Vendor Name.

    Hi..
    Refer this links
    http://help.sap.com/saphelp_46c/helpdata/en/9f/db9b8535c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9b8535c111d1829f0000e829fbfe/content.htm
    Hope this may b very helpful to u
    Sravani
    Plz reward points

  • Changing output device causes Logic to crash

    When I attempt to change output devices, it causes Logic to crash.  Help Please..

    I suspect the issue is due to your video format... what format are your videos? Your problem will be solved by converting them to DV-AVI. See this FAQ on conversion:
    http://forums.adobe.com/thread/415317?tstart=0

  • ABAP logical database

    Hi,
    What is Logical Database? advantages and disadvantages?
    thanks in advance?

    Hi,
    Advantages of Using Logical Databases
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db99b435c111d1829f0000e829fbfe/content.htm
    Logical databases save you having to define a selection screen and read data from the database in every program. The program does not have to specify how to retrieve the data, but instead only has to process it and display it on the screen.
    An executable program can only work with one logical database, but each logical database can be used by several programs. This offers considerable advantages over integrating the database accesses with SELECT statements into each executable program. It means that you only have to code identical access paths once. The same applies to coding authorization checks.
    When you use logical databases, most executable programs benefit from having
    · an easy-to-use and standard user interface
    · check functions, which check that user input is complete, correct, and plausible
    · meaningful data selection
    · central authorization checks for database accesses
    · good read access performance (for example, with views) while retaining the hierarchical data view determined by the application logic.
    Even though you are using central logical databases, the program itself remains flexible because:
    · You can still create your own selection screens for each program
    · You can code your own functions in any event block in the program. For example, you may want to write user dialogs for further authorization or plausibility checks on the selection screen.
    +++++
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9bed35c111d1829f0000e829fbfe/frameset.htm
    Thanks,
    Aby

  • *New to ABAP: what is Report*

    Hi Gurus,
    i am new to ABAP.If any body can explain about what is report and how many types are there to create internal tables.
    points will be reward.
    Thanks,
    Balakrishna.

    hi naidu,
    When you are working in the SAP System, you may want to access information from the database. To do this, you use reports.
    In this documentation, report refers to the report program, and list refers to the output u2013 that is, the results of the report.
    Some reports display information; others allow you to perform analyses.
    A report must be started, or executed. In many cases, the SAP System automatically executes a report. Sometimes, however, you will want to execute a report yourself.
    In addition to report programs, the SAP System provides numerous reporting tools, each of which has its own set of procedures for executing report programs.
    This documentation describes report programs only. For an introduction to the SAP reporting tools, refer to the Reporting Made Easy guidebooks (Release 4.0B). You can find these guidebooks at: www.saplabs.com/rme
    In ABAP, there are a total of 7 types of reports. They are:
    Classical
    Interactive
    Logical Database
    ABAP query
    ALV Reports (ALV stands for ABAP List Viewer)
    Report Writer/Report Painter Views (There are different types of views also)
    [Edit section] Classical Reports
    These are the most simple reports. Programmers learn this one first. It is just an output of data using the Write statement inside a loop.
    Classical reports are normal reports. These reports are not having any sub reports. IT IS HAVING ONLY ONE SCREEN/LIST FOR OUTPUT.
    Events In Classical Reports.
    INTIALIZATION: This event triggers before selection screen display.
    AT-SELECTION-SCREEN: This event triggers after proccesing user input still selection screen is in active mode.
    START OF SELECTION: Start of selection screen triggers after proceesing selection screen.
    END-OF-SELECTION : It is for Logical Database Reporting.
    [Edit section] Interactive Reports
    As the name suggests, the user can Interact with the report. We can have a drill down into the report data. For example, Column one of the report displays the material numbers, and the user feels that he needs some more specific data about the vendor for that material, he can HIDE that data under those material numbers.
    And when the user clicks the material number, another report (actually sub report/secondary list) which displays the vendor details will be displayed.
    We can have a basic list (number starts from 0) and 20 secondary lists (1 to 21).
    Events associated with Interactive Reports are:
    AT LINE-SELECTION
    AT USER-COMMAND
    AT PF<key>
    TOP-OF-PAGE DURING LINE-SELECTION.
    HIDE statement holds the data to be displayed in the secondary list.
    sy-lisel : contains data of the selected line.
    sy-lsind : contains the level of report (from 0 to 21)
    Interactive Report Events:
    AT LINE-SELECTION : This Event triggers when we double click a line on the list, when the event is triggered a new sublist is going to be generated. Under this event what ever the statements that are been return will be displayed on newly generated sublist.
    AT PFn: For predefined function keys...
    AT USER-COMMAND : It provides user functions keys.
    TOP-OF-PAGE DURING LINE-SELECTION :top of page event for secondary list.
    [Edit section] Logical Database Reports
    Logical database is another tool for ABAP reports. Using LDB we can provide extra features for ABAP reports.
    While using LDB there is no need for us to declare Parameters.
    Selection-screen as they will be generated automatically.
    We have to use the statement NODES in ABAP report.
    If there are many tables the Performance will be slow as all the table data will be read from top node to bottom node .
    [Edit section] ABAP Query Reports
    ABAP query is another tool for ABAP. It provides efficency for ABAP reports. These reports are very accurate.
    Transaction Code : SQ01
       The advantage with ABAP QUERY is logic required for classic & interactive reports system design automatically 80%.
    For ABAP QUERY handle these
    SQ01 ; QUERY
    SQ02 : INFOSET OR FUNCTIONAL AREA
    SQ03: USER GROUP.
    [Edit section] Report Writer
    Key Concept :
    Super users and end users can use Report Painter/Report Writer tools to write their own reports.
    Giving them the ability to report on additional fields at their discretion shifts the report maintenance burden to them, saving SAP support groups time and effort normally spent creating and maintaining the reports.
    Instead of using ABAP code to write a report in FI and CO, many users build a Report Painter/ Report Writer library using transaction MC27.
    However, this workaround has some drawbacks. Little known transaction GRCT solves these problems in most cases, and eliminates the need to use transaction MC27.
    ABAP Report Types
    ABAP report types are those ones available in some report's attributes screen, i.e. :
    Executable program
    Function group (containing function modules)
    Include
    Interface pool
    Class pool
    Module pool
    Subroutine pool
    Also ALV means ABAP List Viewer. Most convenient way to use it is through reuse library (cf. transaction se83) available from release 4.6 of SAP R/3.
    ALV is available in two modes: list and grid. List mode is good old list processing with standard functionnalities, and grid mode is using a new OCX object displaying grids.
    hope its clear to you,
    Reward points if usefull,
    Thanks,
    Kalyan.

  • Transport logical database

    Hello,
    I have added a new field for de logical database 'DDF'.
    I can´t transport this change.
    I have transported the structure but not the selection view. So, I don`t have the new field transported.
    Is it possible to transport new fields?
    Thanks in advance.

    Welcome to SCN.
    It is not at all advisable to change/modify the standard logical databases as it may be used in several standard programs.
    Instead use them in your report as it is and add the required functionality in the report itself.
    Still, if its require to change it then follow this SAP Link -
    http://help.sap.com/saphelp_erp2005/helpdata/en/9f/db9bed35c111d1829f0000e829fbfe/frameset.htm
    Edited by: Amit Khare on Dec 15, 2008 11:18 PM

  • ABAP Report Program Logical Database PNP

    I have a ABAP program using the logical database PNP. The report is config to run on MSS using EP. I have added code to capture the Org Unit when it is pass to the program from MSS.  My issue is how do i capture the org unit value that is passed to the program.   I have added code to capture field pnporgeh  in the START OF SELECTION event.   This works great if you are running the program from R3, but none of my edit checking against field pnporgeh works.

    Hi John,
    I am also having same trouble where in i have added a new custom(Z) report in the MSS ->My Staff -> Reporting under report category -> Time Management (MSS). I am not able to find how the value of org unit which is selected on portal screen is passed to report in R/3 which is using PNP logical db.
    I tested in debugging but selection screen parameter PNPORGEH contains nothing.
    Many Thanks in advance for the help.
    Edited by: Ankit Kashyap on Nov 17, 2010 12:40 PM

  • ABAP Objects and table processing (with logical databases)

    I have a report that is written right now using procedural abap and a logical database.  The report is structured follows (high level):
    start-of-selection.
    get pernr.
      perform get_it0001 using wtab.
      perform get_it0002 using wtab.
      perform get_it0003 using wtab.
      append wtab to itab.
    end-of-selection.
      call function 'reuse_alv_grid_display'
        exporting
          i_structure_name       = 'itabstructure'
        tables
          t_outtab               = itab.
    So basically I'm going through a bunch of personnel numbers, getting a few infotypes and outputting to ALV.  I don't see where ABAP Objects is going to help me for this particular program. 
    Can somebody show me where OO ABAP would make this easier?  Does it even make sense to use OO when you're processing with a logical database?  (Not just PNP, but any logical database in general).
    Thanks in advance.

    Hello Lee
    I assume that the routines GET_ITnnnn are written by yourself. For reading infotypes ABAP Objects provides us with same very helpful classes as shown below:
    * define data
      DATA:
        gif_employee      type ref to if_pt_employee,
        go_employee       type ref to cl_pt_employee,
        gt_infotypes      TYPE tim_tmw_itlist_tab,
        go_control        TYPE REF TO if_pt_td_control,
        go_data           TYPE REF TO if_pt_td_base,
        go_pnnnn          TYPE REF TO if_pt_td_itnnnn,
        gt_p0001          TYPE TIM_P0001_TAB,
        gt_p0002          TYPE TIM_P0002_TAB,
        gt_p0003          TYPE TIM_P0003_TAB.
    start-of-selection.
    GET pernr.
    <b>* Create employee instance</b>
      gif_employee = cl_pt_employee=>get_employee( pernr ).
      go_employee ?= gif_employee.
    <b>* Get master infotypes (0001, 0002)</b>
      CALL METHOD go_employee->get_master_data
        EXPORTING
          im_begda = id_fromdate
          im_endda = id_todate
        IMPORTING
    *      EX_I0000 =
          EX_I0001 = gt_p0001
          EX_I0002 = gt_p0002
    *      EX_I0007 =
    *      EX_I0008 =
    <b>* Append all other required infotypes to itab</b>
      APPEND '0003' TO gt_infotypes.
      CALL METHOD go_employee->get_infotypes
        EXPORTING
          i_itlist      = gt_infotypes
          i_fromdate    = id_fromdate  " start date
          i_todate      = id_todate    " end date
    *      I_FILTER      =
          i_noauthcheck = 'X'
        IMPORTING
          e_result      = gt_infty_request
          e_retcd       = gd_retcd.
    * Please see documentation of parameter e_retcd...
      LOOP AT gt_infty_request INTO go_control.
        go_data = go_control->data.  <b>" get data object</b>
    *   Casting
        TRY.
            go_pnnnn ?= go_data.
          CATCH cx_sy_move_cast_error.
            CONTINUE.
        ENDTRY.
    <b>*   Convert infotype (semi-transparent -> transparent)</b>
        CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
          EXPORTING
            prelp = lo_pnnnn->prelp
          IMPORTING
            pnnnn = gs_p0003.
        APPEND gs_p0027 TO gt_p0003.
      ENDLOOP.
    The class CL_PT_EMPLOYEE provides us already with very easy access to so-called master infotypes (000, 0001, 0002, 0007 and 0008). All other infotypes can be read using method GET_INFOTYPES.
    Using these classes we have a very convenient and standardized way of accessing all kinds of infotypes.
    Regards
      Uwe

Maybe you are looking for

  • Warning message is thrown,while raising a sales order Warning message:

    When i am raising the sales order,warning message is thrown stating "No financial document",can any one solve the problem.

  • Set the descriptio​n value for a step by using the TestStand API

    Hi, to read the description of a step there is provided a method: Step.GetDescriptionEx What about setting this value via API? I didn't found any method like 'SetDescriptionEx' ! Regards, Sunny

  • Imac still wont fully boot up.

    i dont know what to do anymore. it stays on a black screen then a blue screen and never goes naywhere else... it wont boot from the cds. what should i do?

  • ABAP List - Printing problem

    Hi,    We have a Z format Z_65_1023 assigned to the LOCL printer.  When the output is displayed using the SPOOL the format is fine.  But when the output is sent to the printer, the SAPLPD window has the following message: SAPLPD: job xxx sent to prin

  • Value based permits

    Hi Every one, I want to know that is there any possiblity at permits level like value base For Exapmle If the cost of order is blow 50,000 then this permit will be aproved by person X and when cost of order increases above 50,000 then permit will be