How to use HR infotypes in abap

hi i m new for ABAP HR .
how i can use or extract data from infotypes.
Thanks.

hi,
You can get data from Infotypes as like normal tables ..
ex : consider the infotypes PA0001 , PA0002.
so there will be table named as pa0001 & pa0002 correspondingly..
so ur normal SELECT  statement itself will work..
reply back for further queries..
With Regards,
S.Barani

Similar Messages

  • How to use messages in WebDynpro-ABAP

    Hi,
        How to use messages in WebDynpro-ABAP.
    Does it has any class to manage messages like IWDMessageManager or we can just use standard SAP Message types.. like E,W,X,I,S..
    I hope it have a message container to display messages.
    Thank U for Ur time.
    Cheers,
    Sam

    Hi Sam,
    U can hard code the message or u can use the Assistance class's text elements to store the messages.
    1) Code to display hard coded message:
    report message
    CALL METHOD l_message_manager->report_attribute_error_message
    EXPORTING
    message_text = "Enter the correct Connection ID"
    element = elem_flightinfo
    attribute_name = 'CONNID'.
    2) Code to display message from text element of assistance class:
    lv_text = wd_assist->if_wd_component_assistance~get_text( key = '002' ).
    report message
    CALL METHOD l_message_manager->report_attribute_error_message
    EXPORTING
    message_text = lv_text
    element = elem_flightinfo
    attribute_name = 'CONNID'.
    Where Message "Enter the Correct Connection ID" is stored in Text Element with key '002'
    Hope this helps,

  • How to use RTRIM function in ABAP

    Hey,
    I have a question on using trim function in ABAP. According to all documents, I should be able to use rtrim as
    shorttext = rtrim('abcde-xx', '-xx').
    But when I do that, it gives me an error message "Comma without preceding colon (after shorttest?)"
    Anyone can tell me why is this happening? how should I use this trim function? And for me to cut off variable's last few character, what else method can I use? 
    Thank you very much.

    DATA : T1    TYPE STRING VALUE 'abcde-xx',
                T2    TYPE STRING  VALUE '-xx'.
    REPLACE T2 INTO T1 WITH SPACE.
    WRITE :/, T1.
    result output is :    'abcde'.
    regards
    Guna

  • How to use mathematical calculations in abap

    Hi!
                                In my program,
                                 I declared one variable as w_h(2) type n.
    i am doing calculation as,
    w_h = 100 /60.
    its giving the o/p as 2(1.66...). but in 1.6 i want that 1 alone as my o/p.normally math function floor() is there to bring the o/p as 1. in abap how to use this floor function. or any other possible is there to get the o/p as 1.could anybody plz help me.

    define w_h  as i.
    data: w_h  type i.
    Edited by: mayank jain on Sep 8, 2009 9:42 AM

  • How to use FTI_TR_CASH_FLOWS ldb in abap programming.

    I want to use FTI_TR_CASH_FLOWS  logical database in existing ABAP program but i am not able to use this logical data base in the program.Please suggest how to use this logical database in the program.

    I have developed a customized report and i want to use  logical database "FTI_TR_CASH_FLOWS" into my program . i don't know how to use SAPDBFTI_TR_CASH_FLOWS  into my report. how i pass data from my report to this LDB report. plz suggest.

  • How to use Adobe forms in ABAP

    Hello Everybody,
    I have used Adobe forms in webdynpro applications. Now, i want to use adobe forms in ABAP stack. Please provide me steps and guidelines to develop Adobe forms in ABAP.
    What should be the infrastructure needed for that?
    Thanks in Advance,
    Bhavik

    Hi Bhavik,
    there is extensive documentation on creating PDF-based forms for printing in ABAP Workbench (transaction SFP) on the SAP Help Portal at http://help.sap.com/saphelp_nw04/helpdata/en/d2/4a94696de6429cada345c12098b009/frameset.htm.
    The infrastructure is identical (ADS on Java Engine) except that you need an ABAP backend (minimum 6.40) and the corresponding SAP GUI. You also need to create an HTTP connection from your ABAP system to the ADS in transaction SM59 (see ADS Configuration Guide).
    Your Adobe LiveCycle Designer installation from the NWDS should be OK, if you are working on the same frontend. (If you have difficulties with Designer, uninstall it and install it with the SAP GUI again).
    Note that Web Dynpro for ABAP integration is only supported as of NetWeaver 2004s (going into ramp-up with mySAP ERP 2005 this month), which means that interactive scenarios are more cumbersome to implement in ABAP with NetWeaver 04.
    Some of the things you get with the Web Dynpro framework (such as the return of data in interactive scenarios via the WD context) would need to be manually coded when working in SFP, which was designed for output forms.
    Hope this helps,
    Markus Meisl
    SAP NetWeaver Product Management

  • How to use external debugger on ABAP using webdynpro application?

    Hello experts,
    Im working currently on SAP Netweaver 04 ,EP 6 and R3 is 4.7
    im trying to use external debugger in the R3 system via webdynpro application.We have created Jco connections with the same user id which is available on R3 system.the problem is tht external breakpoint on ABAP code is not pinging.we r not able to use external debugger of ABAP.
    Can anyone help me out in resolving this issue?
    Thanks in advance

    Hi Latha,
         Please try to activate your Debugging using the Tcode SICF.
         To activate Goto SICF>EDIT->Debugging-->Activate Debugging
    Regards
    Vamsi

  • How to use background image in ABAP -  webdynpro

    Hi,
    My requirement is like that.
    I want to display a background image. Over the background image i want to display my ALV list or report.
    How to display my personalized image in background.
    Please assist me....
    Thanks in Adv.

    hi ,
    this is not possible:
    refer these threads :
    Background Image
    I Assign Background Image to a Group (Ans by Thomas)
    Image as Background Image possible?
    as correctly pointed above and in this thread
    use your own stylesheets
    refer this thread for more  information on styles :
    EP 7 Portal stylesheet with WD ABAP
    to display image in the foreground :
    refer this WIKI
    https://wiki.sdn.sap.com/wiki/display/stage/DisplayEmployeeImageinABAPWebDynpro+Application
    regards,
    amit

  • How to use web service with ABAP Web Dynpro

    Hi.
         do you know, how to web service with ABAP Web Dynpro?

    Hi,
    If you have a webservice ready with you then you can generate a proxy from SE80 and you can use that. You just have to create a port and assign to that generated proxy(CLASS) and you are good to go.
    Let me know if you need more information.
    Thank You,
    Gajendra.

  • How to use LDB PNP with ABAP objects in a program

    Hello,
    I am wondering if anybody has used the HR logical database(LDB) PNP with user defined ABAP objects in a program? I am using the FM- <b>LDB_PROCESS</b> but its not working. Also assigning PNP in the attributes section of the program -- so that I can use predefined fields from the LDB and then invoking the FM doesn't work -- throwing 'Logical database already active' error.
    I suppose even with the ABAP objects and the new FM -- I should still be able to utilize the pre-defined fields of the PNP database -- and also the built in authorizations. I cannot use GET PERNR and REJECT as they give errors. I understand that the use of HR-macros (RP-PROVIDE-FROM-LAST and et al.) are not allowed as they use the table work area -- which is not allowed in ABAP-OOPS.
    I would really appreciate if anyone could show me some insight regarding this. Thank you.
    Kshitij R. Devre

    Hi Kshitij
    It would be really good if we could use both together. But as I know, it is not possible. "GET pernr." is an event-like loop statement and so cannot be used in OO context. And I guess, the same restriction holds for the "LDB_PROCESS" since it uses LDB-specific processing.
    What I suggest you is to use standard and BAPI functions.
    Sorry for giving bad news...
    *--Serdar

  • How to use Webservice in Webdynpro ABAP?

    I tried searching option for importing WSDL file in WebDynpro ABAP. But I am unable to upload it in my component. In service call wizard I can see only one option i.e. to import Function module.
    We cant use Webservice in ABAP webdynpro?
    Thanks
    Nitesh Shelar

    Thanks Rich for quick answer.
    But my problem is, I have a stand alone WAS without any RFC Function modules and dictionary structures, of backend R/3, on WAS which I wanted to map in my component.
    I strongly believe that in case of stand alone WAS I need to have at least backend dictionary structures to begin with my design. I can’t use wizard, as I don’t have function modules on this system. I have to code for that manually..
    So that is why, I was looking for Webservice option..
    Thanks,
    Nitesh Shelar.

  • How to use search help in abap dynpro

    i have created a search help in dictionary and used it in my database table. now i want to use it in web dynpro component. while running my application when im clicking on input help field, it is giving an error -"The Entered Values is not on the list of Selected Values." how do i resolve it?

    hi varuna.......
         for example, create a search help for matnr in mara. create an attribute of type mara-matnr or matnr. by default you will get a search help or you can assign your own too. this is the general process.
           you might have assigned a search help of different data type to an attribute of different data type or
           you would have entered a value in the input help and then clicked the search help which is not having those values.
    ---regards,
       alex b justin

  • PCA_PLANDATA_POST -How to use this FM in ABAP

    Hi,
    I want to update Plan data using this FM.
    How do we proceed?
    data: begin of i_glpct occurs 0.
      include structure glpct.
      data: end of i_glpct.
    SELECT * FROM glpct
      INTO CORRESPONDING FIELDS OF table i_glpct
      WHERE rldnr = '8A'
      and RRCTY = '1'
      and Racct = '0000801020'
      and rvers = '001'.
    LOOP AT i_glpct.
    i_glpct-HSl01 = '33'.
      CALL FUNCTION 'PCA_PLANDATA_POST'
                           EXPORTING
                             I_DOCTY             = 'P0'
                             I_PLACT             = '1'
                             I_BATCH             = ' '
                           IMPORTING
                            E_RECORDS           = '1'
       TABLES
          t_glpct             = i_glpct
                            T_DOCUMENTS         =
                          EXCEPTIONS
                            POSTING_ERROR       = 1
                            OTHERS              = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        else.
          write:/10 'Sucessfully updated'.
      ENDIF.
    ENDLOOP.

    It works but my t-code data is not update in R/3.
    I used commit work.
    What else could be the problem?
    REPORT x.
    data: begin of i_glpct occurs 0.
      include structure glpct.
      data: end of i_glpct.
    data: begin of t_glpct occurs 0.
      include structure glpct.
      data: end of t_glpct.
      data: l_wait type BAPITA-WAIT,
            is_return_com like bapiret2.
    SELECT * FROM glpct
      INTO CORRESPONDING FIELDS OF TABLE i_glpct
      WHERE rldnr = '8A'
      and RRCTY = '1'
      and Racct = '0000801020'
      and rvers = '001'.
    LOOP AT i_glpct.
    i_glpct-HSl01 = '33'.
    modify i_glpct.
    ENDLOOP.
    read table i_glpct.
      CALL FUNCTION 'PCA_PLANDATA_POST'
                           EXPORTING
                             I_DOCTY             = 'P0'
                             I_PLACT             = '1'
                             I_BATCH             = ' '
                          IMPORTING
                            E_RECORDS           =
        TABLES
          t_glpct             = i_glpct
                            T_DOCUMENTS         =
                          EXCEPTIONS
                            POSTING_ERROR       = 1
                            OTHERS              = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        else.
    commit WORK.
    write:/10 'Sucessfully updated'.
      ENDIF.

  • How to use Structure in a ABAP Report

    Dear Sir,
    We are rqeuired to read the data from a Structure "RMCP3" . Please guide us  as how can we read the Data from Strcture using a SELECT statement and Where clause .
    It will be a great please .
    Regards
    B Mittal

    Hi
    Structures are Data Dictionary objects and they are not related to underlying database. So there is no data in a structure, They Have adta only During the Run time.
    Data: begin of itab occurs 0.
    Include structure  <Structure Name>
    Data: end of itab.
    Reward If Helpfull,
    Naresh.

  • How to use Dynamic SQL in ABAP

    If I have mara table and I have an selection screen where I have allowed user to select the fields of MARA,Now What I want is depending on his selection we should be able to execute the sql command.
    E.g.
    Tables: mara.
    selection-screen
    MATNR , ERSDA , ERNAM , MTART , MEINS.
    NOW THE OUTPUT SHOULD BE ABLE TO DISPLAY ONLY THE SELECTED FIELD VALUE.

    Hello Nandan,
    Try the following code. It works.
    tables: mara.
    data: tablename  type tabname,
          fname      type fieldname,
          fieldnames type fieldname occurs 0.
    field-symbols : <fs_tableline> type any,
                    <fs_fieldval>  type any.
    initialization.
      tablename = 'MARA'.
      assign (tablename) to <fs_tableline> .
      fname = 'MATNR'.
      append fname to fieldnames.
      fname = 'MTART'.
      append fname to fieldnames.
    select (fieldnames)
      from (tablename)
      up to 20 rows
      into corresponding fields of <fs_tableline>.
      loop at fieldnames into fname.
        assign component fname of structure <fs_tableline> to <fs_fieldval>.
        write : <fs_fieldval>.
      endloop.
      new-line.
    endselect.
    The <b>tables</b> statement is very important. You should at least have the list of the tables which you expect the user to enter.
    Please do get back if you have any doubts. If you think the question is answered, please reward the points to the useful answers and close the thread.
    Regards,
    Anand Mandalika.

Maybe you are looking for

  • View of one component need to be used in another component.

    Hi Experts, I have created a view in component  BP_DATA . I want to use this view in component "BP_HEAD". Can anyone please help me with the steps needed to make the view available in  BP_DATA. Do i need to do any type of binding for this.

  • Note function on pdfs opened in preview

    When I add notes to pdfs opened in preview, they are placed in the middle of the page and text. Is there a way to move these around so that they don't cover the text?

  • Using YTD in BEx

    Hi, Fairly new to BEx. I'm trying to create a query that has the columns of Total and YTD and rows that show the past 3 years. My Total is being pulled directly from my multiprovider--so no issues. My YTD column is a restriction of this Total field,

  • Net-SNMP 5.0.9 used in Solaris 10 sma

    We are using AgentX protocol in an application sub-agent According to Net-SNMP change log, AgentX protocol support was experimental up to release 5.0.7 but going to the following link: http://net-snmp.sourceforge.net/tutorial/tutorial-5/toolkit/demon

  • What does hardware model iPad 3,3 mean?

    My iPad is a 3rd generation GSM model. But the diagnostic data sent by my iPad to the apple server(it's a built in feature) states that my hardware model Is iPad 3,3. So far I know for CDMA model they use 3,3 but for GSM it should be 3,2. Am I wrong?