How to write ABAP HR reports in ABAP web dynapro

Hi All,
How  to write ABAP HR reports in ABAP web dynapro? We can add HR REPORT CATEGORY in ABAP HR using logical database like PNP.How to add HR REPORT CATEGORY in ABAP Webdynapro ?
Thanks.

You can't use legacy concepts like logical databases directly in Web Dynpro ABAP.  Even if you could do so, you shouldn't.  Web Dynpro ABAP should always follow MVC - meaning that your business logic (the model) should be separated from WD as much as possible. This means calling function modules or class methods to consume the business logic and data.  So in general there should be no difference between building HR reports or any other type of report in WDA - since from the WDA side you are calling other objects to consume the data. 
This probably does mean that you will need to create classes to expose the HR data that you want in your WDA.

Similar Messages

  • How to write the folder path in standard webi report - Most Accessed Documents

    How to write the folder path in standard webi report - Most Accessed Documents
    All
       -> Public Folders
                      -> Auditor
                      -> ABCD
    I want to give path of folder 'ABCD' and all the reports/ subfolders under it?
    Prompt - 'Enter the Folder Path(Add % at the end to include Sub Folders)' ?
    Give me exact path syntax

    Hi Daniel,
    But when I give my URL as
    http://serverA:80/irj/portal??NavigationTarget=ROLES://portal_content/crm-practice/14-Feb/Test_Page
    I am able to access the iview but the thing is I am getting TLN,Toolarea,Masthead,etc.
    I will tell my requirement,
    ServerA (EP 7.0) has some iviews,pages...
    I need to access these iviews from serverB(EP 6.0)....
    In ServerB only the iviews has to be displayed in the content area but not TLN,Toolarea,etc.
    Kindly help me in this regard.
    Thanks and regards,
    Purushothaman.
    Message was edited by: Purushothaman Vyasarao

  • How to write macro's in hr abap

    Hi,
    All
    I am new to HR ABAP .Does any body give links to write macro's in HR ABAP
    Thanks in advance.
    regards
    Ram

    h,
    adding to the aboce post.
    chk this.
    Macros:
    Introduction
    Programs that process the cluster data (for example, RX) do not access the cluster independently. The data is accessed using a defined interface created with macros.
    Macro contains some part of source code which it will be useful for number of applications.  Macro is module which is stored
    Naming Conventions of Macro:
    RP-aaa-bb-cc
    •     aaa is the type of Macro. It takes two values
    o     IMP  Import Macro
    o     EXP  Export Macro
    •     bb is the Database table where the data is saved:
    o     C1 Database object PCL1
    o     C2 Database object PCL2
    o     C3 Database object PCL3
    o     C4 Database object PCL4
    •     Cc is the cluster, it may take
    o     RX Cluster object RX
    o     RD Cluster object RD
    o     B2 Cluster object B2      and so on.
    Defining and Calling the Macros
    Defining:
      There are two options for defining the Macros
    •     Macros are defined using the ABAP Commands DEFINE….END-OF-DEFINITION. A macro can be used within a report or within include. If a macro is used in a report, and the macro is defined in include with the DEFINE command, include must be integrated.
    •     Macros can also be defined as RMAC macros. The source code of these modules is stored in the function section of the control table TRMAC. The coding is grouped under a specific name in the table key.
    According to conventions, the first two letters of the name must stand for the application. The rest of the name is freely definable.
    Difference between the two methods is:
    •     If a macro is changed, each report using this macro is automatically regenerated when it is executed.
    •     When you change a RMAC macro in the table TRMAC, the reports that use this macro are not regenerated automatically. You must regenerate them manually.
    Standard HR Macros
    o     The macro RP-PROVIDE-FROM-FRST retrieves the first(start) data record which is valid in the data selection period.
    o     The macro RP-PROVIDE-FROM-LAST retrieves the last(latest) data record which is valid in the data selection period.
    o     The macro RP-READ-INFOTYPE retrieves the data record(s) which is valid in the data selection period.
    How to check whether the macro operation is successful or not
    For every macro, whether the operation was successful or not will be checked with
    PNP-SW-FOUND.
    If PNP-SW-FOUND = 1, then the operation is successful.
    Where exactly the Macro code is stored
    The program code pertaining to this macro is stored in the control table RMAC
    Guidelines for how and when to use the Standard Macros
    o     RP_PROVIDE_FROM_FRST
    Use macro RP_PROVIDE_FROM_FRST in programs for the logical databases PNP and PAP where the first data record for a period (can be a subtype) is read from an infotype table. The infotype table has been filled earlier (for example, with GET PERNR or RP_READ_INFOTYPE). This macro is only helpful if the infotype has time constraint 1 or 2.
    Prerequisites
    •     The validity begin date of the time period must be before or the same as the validity end date.
    •     Validity start and end dates are correct (preferably of the type DATE).
    •     The infotype table is sorted in ascending order. Otherwise, you would receive the first fitting table entry that might not necessarily correspond to the first time entry.
    Features
    The first entry for a specified period is placed in the table header entry from an internal infotype table.
    Parameters
    RP_PROVIDE_FROM_FRST inftytab subty beg end
    IN :     1)     Name of the internal table
         2)     Subtype required or SPACE if no subtype is being specified
         3)     Validity start date of the time interval
         4)     Validity end date of the time interval
    OUT:     1)     PNP-SW-FOUND: has the value 0 if there is no matching entry in the infotype table in the given time period. Otherwise it has the value 1.
         2)     The matching table header entry if PNP-SW-FOUND = 1 or
    the initial table header entry if PNP-SW-FOUND = 0
    Example
    (RP_PROVIDE_FROM_FRST inftytab subty beg end)
    RP_PROVIDE_FROM_FIRST P0021 '1' PN-BEGDA PN-ENDDA.
    IF PNP-SW-FOUND EQ '1'.
    ENDIF.
    or
    RP_PROVIDE_FROM_FRST P0001 SPACE PN-BEGDA PN-ENDDA.
    IF PNP-SW-FOUND EQ '0'.
    WRITE: / 'Error: Org. assignment is missing' REJECT.
    ENDIF.
    o     RP_PROVIDE_FROM_LAST
    You use macro RP_PROVIDE_FROM_LAST in programs for the logical databases PNP and PAP where the last data record for a period (can be a subtype) is read from an infotype table. The infotype table has been filled earlier (for example, with GET PERNR or RP_READ_INFOTYPE). This macro is only helpful if the infotype (or subtype) has time constraint 1 or 2.
    Prerequisites
    •     The validity begin date of the time period must be before or the same as the validity end date.
    •     Validity start and end dates are correct (preferably of the type DATE).
    •     The infotype table is sorted in ascending order. Otherwise, you would receive the last fitting table entry that might not necessarily correspond to the last time entry.
    Features
    The macro RP_PROVIDE_FROM_LAST makes sure that the last entry for a specified period is placed in the table header entry of the report output list.
    Parameters
    RP_PROVIDE_FROM_LAST inftytab subty beg end
    IN :     1) Name of the internal table
         2) Subtype required or SPACE if no subtype is being specified
         3) Validity begin date of the time interval
         4) Validity end date of the time interval
    OUT:     1) PNP-SW-FOUND: has the value 0 if there is no matching entry in the infotype table in the given time period. Otherwise it has the value 1.
         2) The matching table header entry if PNP-SW-FOUND = 1 or
    the cleared table header entry if PNP-SW-FOUND = 0
    Example:
    RP_PROVIDE_FROM_LAST P0021 '1' PN-BEGDA PN-ENDDA.
    IF PNP-SW-FOUND EQ '1'.
    ENDIF.
    OR
    RP_PROVIDE_FROM_LAST P0001 SPACE PN-BEGDA PN-ENDDA.
    IF PNP-SW-FOUND EQ '0'.
    WRITE: / 'Error: Org. assignment is missing'. REJECT.
    ENDIF.
    •     RP_READ_INFOTYPE
    You can use the macro in all programs at any point. You can also use it in function modules. In database PNP, an infotype is usually read with GET PERNR. Using macro RP_READ_INFOTYPE is an exception.
    You can also use the function module HR_READ_INFOTYPE. For information on how to use the function module, see the documentation on Function Modules.
    Prerequisites
    •     The validity begin date of the time period must be before or the same as the validity end date.
    •     Validity begin and end are correct date specifications (preferably of the type DATE).
    •     The infotype table must match the infotype number.
    •     The program using the macro must contain the include DBPNPMAC.
    Features
    The macro RP_READ_INFOTYPE makes sure that all data records for a person for the specified period are placed in an internal infotype table.
    Parameters
    RP_READ_INFOTYPE pernr infty inftytab beg end
    IN :     1)     Personnel number of the person requested
         2)     Infotype number of the required infotype
         3)     Name of the internal infotype table
         4)     Validity start date of the time interval
         5)     Validity end date of the time interval
    OUT:     1)     PNP-SW-FOUND = 0, if there is no matching record in the dataset
               PNP-SW-FOUND = 1, if there is no matching record in the dataset
         2)     PNP-SW-AUTH-SKIPPED-RECORD = 0, if the HR authorization check has not retained any records due to incorrect authorizations.
               PNP-SW-AUTH-SKIPPED-RECORD = 1 , if the HR authorization check has retained at least one record due to lack of authorization
         3)     Internal infotype table, containing all matching records for which the user is authorized (this table can also be empty).
    Example
    (RP_READ_INFOTYPE pernr infty inftytab beg end)
       INFOTYPES: 0001.
       RP-LOWDATE-HIGHDATE.
    DATA: PERNR LIKE P0001-PERNR.
    DATA: BEGDA LIKE P0001-BEGDA, ENDDA LIKE P0001-ENDDA.
    PERNR = '12345678'.
    BEGDA = LOW-DATE + 15
    ENDDA = HIGH-DATE - 5.
    RP-READ-INFOTYPE PERNR 0001 P0001 BEGDA ENDDA.
    IF PNP-SW-AUT-SKIPPED-RECORD EQ '1'.
    WRITE: / 'Insufficient authorization'. STOP.
    ENDIF.
    IF PNP-SW-FOUND EQ '0'.
    WRITE: / 'Infotype 0001 missing'. STOP.
    ENDIF.

  • How to write select within select  in ABAP

    Hi Guys
    I want to write a select statement in ABAP to select from 2 tables below is my code I want to write select within select statment in --->A and replace with ---> B
    FORM sales_production_order  USING    p_vbeln TYPE vbeln_va
                                 CHANGING p_aufnr TYPE aufnr
                                          p_rtcod TYPE sysubrc.
      CLEAR: p_rtcod,
             p_aufnr.
    A *******
      SELECT aufnr FROM aufk INTO p_aufnr UP TO 1 ROWS
        WHERE kdauf EQ p_vbeln .
    B *******
      SELECT kdauf from aufk into p_aufnr UP TO 1 ROWS
        WHERE KDAUF IN ( SELECT VBELN FROM VBAP where vbeln EQ p_vbeln) .
      ENDSELECT.
      p_rtcod = sy-subrc.
    ENDFORM.                    " sales
    T

    Hi Eslam,
    In select statements, ENDSELECT must be added when single line returned without the addition 'SINGLE'.
    The innner query in your code, returns a single record but with the addition 'UP TO 1 ROWS'. The outer query also like this only. But the outer query ended with 'ENDSELECT', not for inner query.
    Else you can add 'SINGLE' keyword.
      SELECT aufnr FROM aufk INTO p_aufnr UP TO 1 ROWS
        WHERE kdauf EQ '10' .
        SELECT SINGLE kdauf from aufk into p_aufnr
        WHERE KDAUF IN ( SELECT VBELN FROM VBAP where vbeln EQ p_vbeln) .
      ENDSELECT.
      SELECT aufnr FROM aufk INTO p_aufnr UP TO 1 ROWS
        WHERE kdauf EQ '10' .
    ***** It assigns Nth record's KDAUF to p_aufnr provided N records satisfy the condition.
        SELECT  kdauf from aufk into p_aufnr UPTO 1 ROWS
        WHERE KDAUF IN ( SELECT VBELN FROM VBAP where vbeln EQ 'p_vbeln) .
        ENDSELECT.
      ENDSELECT.
    Regards,
    R.Nagarajan.

  • How to create a crystal report using secured web service as a datasource?

    Hi All Expert,
    I having some challenges on how to create a report using secured web service as a datasource in crystal report designer (CR11 R3).
    Secured Web Service including the certificate trusting, token authentication, header and/or body encryption. All web services running on https protocal.
    Could you please suggest me on the solution?
    Thank you and Best Regards,
    Cherr

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

  • Plz help me how to write generate this Report

    hello all,
           Can anybody tell me how to do report  to display the customeru2019s daily invoice, over due not paid Invoice. 
         atleast help me wht tables should be used and how should do coding for not paid invoice ..............
        waiting for ur answers,
                                                               thanking you in advance,
                                                                                    yours sinceraly,
                                                                                    venkatesh babu

    Hi,
    Customer's daily invoice - VBRK & VBRP tables.
    Invoice cleared not cleared: BSAD(Cleared) & BSID(Not cleared)
    Formulate your logic with this info.
    Please search SCN before posting generic questions & close this thread.
    Regards,
    Amit

  • How to include the OBI reports in other web applications such as flex.

    I am currently working in Flex and java. I learnt the basics of OBI and constructed some reports. Now i want to include these reports in my Flex application as a part of dashboard. I want to know the way of doing it....

    Post Author: Argan
    CA Forum: .NET
    http://support.businessobjects.com/communityCS/FilesAndUpdates/vbnet_web_samples.exe.asp

  • How to write Sync service in ABAP

    Dear Experts,
                  i m very new to ABAP dev, can anybody help me how to write a sync service in ABAP and how to call a function module in to that sync service.
                   My requirement is i want to upload the data from the clint and download the data to client from the backend. i had written the function module to create a customer in CRM, now i want to push the data to create a customer from the client, for this i need to write a sync service for above requirement,
                plz help me out how to write a sync service.
                           Regards
                            eswar

    Hi Jyotirmoy,
    Check this thread for Subquery
    http://help.sap.com/saphelp_nw04/helpdata/en/dc/dc7614099b11d295320000e8353423/content.htm
    Correlated, non-scalar subquery:
    REPORT demo_select_subquery_1.
    DATA: name_tab TYPE TABLE OF scarr-carrname,
          name  LIKE LINE OF name_tab.
    SELECT  carrname
      INTO  TABLE name_tab
      FROM  scarr
      WHERE EXISTS ( select  *
                       FROM  spfli
                       WHERE carrid   =  scarr~carrid AND
                             cityfrom = 'NEW YORK'        ).
    LOOP AT name_tab INTO name.
      WRITE: / name.
    ENDLOOP.
    This example selects all lines from database table SCARR for airlines that fly from New York.
    Scalar subquery:
    REPORT demo_select_subquery_2.
    DATA: carr_id TYPE spfli-carrid VALUE 'LH',
          conn_id TYPE spfli-connid VALUE '0400'.
    DATA: city  TYPE sgeocity-city,
          lati  TYPE p DECIMALS 2,
          longi TYPE p DECIMALS 2.
    SELECT  SINGLE city latitude longitude
      INTO  (city, lati, longi)
      FROM  sgeocity
      WHERE city IN ( select  cityfrom
                        FROM  spfli
                        WHERE carrid = carr_id AND
                              connid = conn_id      ).
    WRITE: city, lati, longi.
    This example reads the latitude and longitude of the departure city of flight LH 402 from database table SGEOCITY.
    Thanks,
    Vinay

  • How to access SQL tables from WebDynPro ABAP application ?

    Hi,
    I am trying a scenario, where I need to send an user ID to SQL server table (update/modify/delete) from webDynpro ABAP application.
    Basically ,I am trying to know:---
    a>How to write a SQL Connection from ABAP code within webdynpro ABAP application
    b>What are the ways to do it.(by code or any other API/mechanism)
    I appreciate if anybody knows this.
    Thanks
    Praveen

    Hi,
    The EXEC CONNECT ... is usually used in the procedural ABAP code. For this you can refer to the ABAPDOCU.
    I dont have any sample code on the classes I listed try to check out them for the parameters and the methods they have.
    In WD for Java, we have these connection classes to connect to any databsae server.
    Or try to create an RFC with DESTINATION for this
    Pls check out this link for this -
    Pull data from another r3 server using abap dynpro
    Regards
    Lekha

  • How to create template for Report Designer

    I have to create 20 reports in report Designer and each one of them have same header, footer and column fields.
    Is there any way i can create a Report Template which can be used in each report?
    Kindly advice.
    Thanks

    I did create a report with header, footer and common column fields but how to add report in that?
    Aslo by the i guess you mean WAD so Can you explain how to switch dynamically..and how to fit already built report in the web template? because coloum width in template and column width in report doesnt match so i was wondering how will they fit each other. Please explain
    thanks.
    Neha

  • How to Run Oracle Reports from the web.

    How can we run Oracle Reports from the web - for example from a portal such as "Gateway"
    This is a univeristy that implements Banner - so can we run them from within Banner?

    Yes, of course. And for running the reports-server you need an OAS. Maybe here is a good starting point http://www.oracle.com/technology/documentation/reports.html

  • Calling a Report Program In Web Dynpro Using Submit statment

    Hi all,
             Can any one suggest how can i call a report program form Web Dynpro using Submit statment. I tried to call it its showing Field symbols not defined error. Is their any other ways to call Report in a Web Dynpro?. I have posted the error message when i tried using SUBMIT ZRR AND RETURN CONTROL
    Field symbol has not yet been assigned.
    The error occurred on the application server mnghcmsap_HRS_00 and in the work process 1 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Form: CHECKBOX_OUT of program SAPLKKBL
    Form: GEN_LINE_OUT of program SAPLKKBL
    Form: DATA_OUT_SIMPLE of program SAPLKKBL
    Form: LIST_OUTPUT_NEW of program SAPLKKBL
    Form: FIRST_LIST_DISPLAY of program SAPLKKBL
    Module: LIST_DISPLAY of program SAPLKKBL
    Function: K_KKB_LIST_DISPLAY of program SAPLKKBL
    Method: PRINT_BACKEND of program CL_GUI_ALV_GRID===============CP
    Method: SET_TABLE_FOR_FIRST_DISPLAY of program CL_GUI_ALV_GRID===============CP
    Form: PBO of program SAPLSLVC_FULLSCREEN
    Edited by: VINMANO on Jul 22, 2009 2:54 PM

    HI,
    Its possible to call report program from Web dunpro...
    chk out dis link,
    calling report(se38) in webdynpro abap
    By the way are using field symbol anywhere and left it unassigned?
    Thanks,
    Divya.S

  • Running Reports through a web browser

    Hi All,
    Please help me how we can run Oracle Reports 6i on web browser??
    waiting for quick reply

    Hello,
    Take a look to the document :
    Oracle Reports Publishing Reports
    Release 6i
    A73173-01
    Publishing Architecture and Concepts
    2.2.1 Web architecture: server configurations
    2.2.1.1 Processing Web reports
    http://download-uk.oracle.com/docs/html/A73173_01/output/pbr_arch.htm
    Regards

  • How to use BRF plus application in abap programs (Report or Module pool)

    Hi All,
    I have created an BRF plus application through FDT_WORKBENCH to calculate bonus of the employee with the help of SDN tutorial.
    Now my concern is that how can i use this application in my report.
    I have also read in the tutorial that we can create BRF plus application through ABAP coding but my question is, if i created an application through FDT_WORKBENCH then how can i use it in my ABAP report.
    Thanks a lot in advance.
    Regards,
    Sheelesh

    Hi,
    CALLING BRF+ FROM ABAP REPORT PROGRAM :
    I think the program may be helpful for you guys.
    *CALLING THE BRF+ FROM ABAP REPORT PROGRAM :
    REPORT Z_BRFPLUS_REPORT_01.
    PARAMETERS : P_SEL TYPE STRING .
    TYPES : BEGIN OF TYPE_PRICE ,
            NUMBER TYPE DECFLOAT16 ,
            CURRENCY TYPE STRING ,
            END OF TYPE_PRICE .
    DATA : LO_FUNCTION      TYPE REF TO     IF_FDT_FUNCTION ,
           LO_CONTEXT       TYPE REF TO     IF_FDT_CONTEXT ,
           LO_RESULT        TYPE REF TO     IF_FDT_RESULT .
    DATA : LO_MESSAGE TYPE REF TO CX_FDT .
    FIELD-SYMBOLS : <FS_PRODUCT> TYPE IF_FDT_TYPES=>S_MESSAGE .
    DATA : PRODUCT TYPE STRING ,
           LS_PRICE TYPE TYPE_PRICE .
    CLEAR LS_PRICE .
    PRODUCT = P_SEL .
    TRY .
    * GET THE BRF PLUS FUNCTION .
      LO_FUNCTION ?= CL_FDT_FACTORY=>IF_FDT_FACTORY~GET_INSTANCE( )->GET_FUNCTION('0050569E629D1ED39DD2090294D9A5BD' ) .
    * SET THE BRFPLUS FUNCTION CONTEXT .
      LO_CONTEXT = LO_FUNCTION->GET_PROCESS_CONTEXT( ) .
      LO_CONTEXT->SET_VALUE( IV_NAME = 'PRODUCT' IA_VALUE = PRODUCT ) .
    * PROCESS THE BRF PLUS FUNCTION .
      LO_FUNCTION->PROCESS(
                   EXPORTING
                     IO_CONTEXT = LO_CONTEXT
                   IMPORTING
                     EO_RESULT = LO_RESULT   ) .
    * RETRIEVE THE BRF PLUS FUNCTION RESULT .
      LO_RESULT->GET_VALUE(
                    IMPORTING
                      EA_VALUE = LS_PRICE ) .
    WRITE : LS_PRICE-NUMBER ,
            / LS_PRICE-CURRENCY .
    CATCH CX_FDT INTO LO_MESSAGE .
    ENDTRY .
    Thanks & Regards,
    Joyjit Biswas

  • How do we track back the ABAP queries/report painter used to custom report?

    Hi Experts,
    I only have some ideas about report painter and ABAP query. If a company has a number of different Z reports in production.
    1. How do we identify if it's report painter/writer or ABAP query??
    2. For ABAP query report, suppose that i can identify one. If i am given a Z tcode of that report and identify the program of that report behind it, How do i know what query that program belongs to?? What are the steps i go back in SQ03 to view that query??
    3. For report painter, starting from ztcode of the report, where do i check and track the original painter of that report??
    Please help clarify my doubts..
    Monica

    Hi Monica,
    For report painter/writer, you can identified it by go to
    Environment --> Technical information when you execute your Z-tcode.
    To refer back to the report painter/writer t-code you just need to double click oh the report group that you see by clicking the link above.
    Thanks,
    Victor.

Maybe you are looking for

  • How do I force Mail to use contact names in Address Book?

    I ~need~ Apple Mail to display sender names as I have them in Address Book. My students are Thai and have typed their sender names in Thai, so I can't recognise a thing. I've sorted all the names out in Address Book (in English) but Mail still displa

  • GUI Client for Oracle 8.1.5 on R.H. Linux!

    Hello all, I have had Oracle 8.1.5 on my Red hat Linux 6.2 server for a while now. Everything works great but I would like to know if this version of Oracle comes with a GUI client that will allow me to view tables, make changes, drop tables and such

  • Hyperion HSF Batches/Maps issue and connectivity error

    Hello, We recently migrated from 933 to 11.1.2.1 During our integration of Batches in HSF, when we try to connect to Essbase, we get a strange error: Local////Error(1051293) Login fails due to invalid login credentials Test: HSF13617: Cannot establis

  • Output type determination program or fuction module.

    HI Gurus, I'm looking for the standard program or function mudule that the SAP ERP are using for the determination of invoice output type. I want to debug why is not accepting some fields. Know anyone wich one is it? Thank you in advance. Abel

  • Howto set Column name from InstanceProperty?

    I need to use one of InstanceProperties as some of ColumnDescriptor name. I try: <ColumnDescriptor NAME="%instanceproperty_1%" TYPE="NUMBER" > and <ColumnDescriptor NAME="name_1" TYPE="NUMBER"> <Display> <Label NLSID="name_1">%instanceproperty_1%</La