Get HR ABAP fields

Hi all,
Can anyone sugess me from where i get the basic pay amount
(It's not available in PA0008) and cost center text and job text(Position) in Hr Abap.
Points will be sured for valuable answers.
Thanks
Sanket sethi

To Read the Pay try to analyse this code and apply for yourself
    DO 40 TIMES
                   VARYING w_plgart-lgart
                      FROM p0008-lga01 NEXT p0008-lga02
                   VARYING w_plgart-betrg
                      FROM p0008-bet01 NEXT p0008-bet02
                   VARYING w_plgart-anzhl
                      FROM p0008-anz01 NEXT p0008-anz02
                   VARYING w_plgart-ein
                      FROM p0008-ein01 NEXT p0008-ein02
                   VARYING w_plgart-opken
                      FROM p0008-opk01 NEXT p0008-opk02
                   VARYING w_plgart-indbw
                      FROM p0008-ind01 NEXT p0008-ind02.
      CLEAR w_t511.
    SELECT SINGLE * FROM t511 INTO w_t511                   "#EC *
                       WHERE molga = '40'
                       AND   lgart = w_plgart-lgart
                       AND   endda GE sy-datum
                       AND   begda LE sy-datum.
        MOVE-CORRESPONDING w_t511 TO wa_p0008_wage.         "#EC ENHOK
        MOVE-CORRESPONDING w_plgart TO wa_p0008_wage.       "#EC ENHOK
        wa_p0008_wage-waers = 'INR'.
        APPEND wa_p0008_wage TO it_p0008_wage.
      ENDIF.
    ENDDO.
Evaluate indirect wagetypes
    CALL FUNCTION 'RP_EVALUATE_INDIRECTLY_P0008'
      EXPORTING
        pbegda                       = w_letter_date
        pmolga                       = '40'
        pp0001                       = p0001
        pp0007                       = p0007
        pp0008                       = p0008
        ppernr                       = pernr-pernr
      TABLES
        ptbindbw                     = it_p0008_wage
      EXCEPTIONS
        bad_parameters               = 1
        error_at_indirect_evaluation = 2
        OTHERS                       = 3.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
To Get the Position & Cost Center Text use following FM
  CALL FUNCTION 'HR_READ_FOREIGN_OBJECT_TEXT'
    EXPORTING
      otype                   = 'S'
      objid                   = p0001-plans
      begda                   = sy-datum
      endda                   = sy-datum
      reference_date          = sy-datum
    IMPORTING
      short_text              = w_short
      object_text             = w_stext
    EXCEPTIONS
      nothing_found           = 1
      wrong_objecttype        = 2
      missing_costcenter_data = 3
      missing_object_id       = 4
      OTHERS                  = 5.
  IF sy-subrc <> 0.
  ENDIF.
For Position OTYPE is S & for cost Center it is K
Pass the Position No/Cost Center No to OBJID
Regards,
Chandrashekhar

Similar Messages

  • Is there any way to copy proxy filed structures to ABAP field structure?

    Hi All,
    We are getting message from  XI using inbound proxy and sending response asynchronously by outbound proxy.
    my question: " is there any way to copy or to move incoming proxy fields to ABAP backend fields?"
    for ex: we are getting Name structure from proxy wit fields firstname and lastname.
    and proxy will generate some structures for name. backend ABAP system will have structure name with two fields having fname and lname as data elements.
    so how can we directly move proxy fields to ABAP fields? ( here in example there are only two fields but real scenario we will have thousands of fields for which we cannot map manually from proxy fields to ABAP fields.)
    please help me in this regard.
    Thanks in advance.
    Regards,
    Ujwalkumar

    Hi Ujwalkumar,
    if you have control over the proxy:
    Create your interface at XI like the structure in backend system. Same structure and same fieldnames. If you regenerate your proxy you can use abap order "MOVE CORRESPONDING" to map all fields.
    Regards,
    Udo

  • Catalog codes not getting displayed in Field- QS41

    During my customisation activity, codes of catalog profiles are not getting displayed in SAP screen. Field for codes are showing as blank grey area in QS41 Tcode. If I try creating same codes again, system throwing error saying "key for entry is exisying already".
    Another observation is in the initial screen of QS41 if I select catalog and codes from folders all codes we can see for selection in initial screen, but same is not getting displayed in field for codes in QS41, its showing blank grey fields. Could anyone tell me what might be reason. Its happening for standard catalog profiles also.
    Could anyone tell me what might be the reason.

    Hello Vineeth,
    could you please apply note [1078292|https://service.sap.com/sap/support/notes/1078292] in your system this should resolve the discribed issue.
    Regards,
    Isabelle

  • How to get an user field in a sap form

    SBO2004
    I'm trying to get an user field in a sap form(651).
    My code is:
    Dim FrmT As SAPbouiCOM.Form
    Dim Itm As SAPbouiCOM.Item
    FrmT = GestorSAP.SBO_Application.Forms.GetForm("651", 1)
    If (Not FrmT Is Nothing) Then       
       Itm = FrmT.Items.Item("U_Project")
    End If
    Frmt is not nothing, but itm is ever nothing and gives me an exception(item not valid). If i go to sap and look at this form, with debugging info activated, i see:
    Form=651 Itm=U_Project Variable=1 OCLG,U_Project
    What am i ding wrong?

    Hi Miguel Angel.
    Try with form "-651".
    UDF form is the negative sap form.
    HTH
    Juli
    P.S:I'm not sure your code works, I never work with GetForm method, but yes with UDF form

  • How can I get the "text" field from the actionEvent.getSource() ?

    I have some sample code:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.ArrayList;
    public class JFrameTester{
         public static void main( String[] args ) {
              JFrame f = new JFrame("JFrame");
              f.setSize( 500, 500 );
              ArrayList < JButton > buttonsArr = new ArrayList < JButton > ();
              buttonsArr.add( new JButton( "first" ) );
              buttonsArr.add( new JButton( "second" ) );
              buttonsArr.add( new JButton( "third" ) );
              MyListener myListener = new MyListener();
              ( (JButton) buttonsArr.get( 0 ) ).addActionListener( myListener );
              ( (JButton) buttonsArr.get( 1 ) ).addActionListener( myListener );
              ( (JButton) buttonsArr.get( 2 ) ).addActionListener( myListener );
              JPanel panel = new JPanel();
              panel.add( buttonsArr.get( 0 ) );
              panel.add( buttonsArr.get( 1 ) );
              panel.add( buttonsArr.get( 2 ) );
              f.getContentPane().add( BorderLayout.CENTER, panel );
              f.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
              f.setVisible( true );
         public static class MyListener  implements ActionListener{
              public MyListener() {}
              public void actionPerformed( ActionEvent e ) {
                   System.out.println( "hi!! " + e.getSource() );
                   // I need to know a title of the button (which was clicked)...
    }The output of the code is something like this:
    hi! javax.swing.JButton[,140,5,60x25,alignmentX=0.0,alignmentY=0.5,
    border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@1ebcda2d,
    flags=296,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,
    disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=2,left=14,bottom=2,
    right=14],paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=true,
    rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=first,defaultCapable=true]
    I need this: "first" (from this part: "text=first" of the output above).
    Does anyone know how can I get the "text" field from the e.getSource() ?

    System.out.println( "hi!! " + ( (JButton) e.getSource() ).getText() );I think the problem is solved..If your need is to know the text of the button, yes.
    In a real-world application, no.
    In a RW application, a typical need is merely to know the "logical role" of the button (i.e., the button that validates the form, regardless of whether its text is "OK" or "Save", "Go",...). Text tends to vary much more than the structure of the UI over time.
    In this case you can get the source's name (+getName()+), which will be the name that you've set to the button at UI construction time. Or you can compare the source for equality with either button ( +if evt.getSource()==okButton) {...}+ ).
    All in all, I think the best solution is: don't use the same ActionListener for more than one action (+i.e.+ don't add the same ActionListener to all your buttons, which leads to a big if-then-else series in your actionPerformed() ).
    Eventually, if you're listening to a single button's actions, whose text change over time (e.g. "pause"/"resume" in a VCR bar), I still think it's a bad idea to rely on the text of the button - instead, this text corresponds to a logical state (resp. playing/paused), it is more maintainable to base your logic on the state - which is more resilient to the evolutions of the UI (e.g. if you happen to use 2 toggle buttons instead of one single play/pause button).

  • Get all the field's value of addressbook entry using c++ api

    How can i get all the field values of address book entry in groupwise using c++ api.

    You should be able to do that via the Token API. There is an AddressBookGetEntry method. You could createsome sort of AddressbookEntry class that fetches (via iteration over the defined ABFields) all the innformation.

  • How to get multiple selected fields in list

    Hello all,
    I am trying to get multiple selected value from a list but i dont know how to get multiple selected fields from a list though AS3.
    Actually i want to pass the selected fields to php, so for that i need to get the selections and send to php.
    Thankx..

    i want to put the selected fields of list in an array through AS3....
    actually......i figured it out how to do that...........
    Its simple......use
    list.selectedItems[index]
    and to get the number of items selected......
    list.selectedItems.length
    simple.....

  • How to Find out the from which table we can get the following fields?

    The following fields are from invoice data
    How to  know or from which table we get the following fields:
    Header Details:
    Manifest:, Finance Control #:, Alternate SID:, Carrier:, Container/Trailer #:, Hazmat Code:, Harmonizing Code, Freight Forwarder, Fiscal Rep., Ship From,  Notify Party
    Item Details:
    VAT/Tax Rate %, VAT/Tax Amount, Measurements, Net Weight, Gross Weight
    thanks

    Dear Krishnama
    Place your mouse on the required fields and press F1.  A box with header Performance Assistant will appear in front of you where you select "Technical information" (icon like hammer and spanner). 
    You can now see what table it is.
    thanks
    G. Lakshmipathi

  • How to get the text field in the header for only first page of the report

    Hi,
    I am developing reports in BI Publisher Enterprise where i am facing problem i.e., i have to get some text field in header,for only first page in the result but it is displaying in all the other pages of the report in result.So,please if you have any idea of how to solve it, please reply.It is required as early as possible.
    Thanks in Advance

    Invalid path? What are you doing? Writing the report output to an invalid directory?
    Where are your terms and conditions? It would be very easy just to put them in a database table and select them in your report query.

  • Finder's "Get Info" Creator field not the same as "Creator Code"??

    Can someone explain what the difference is between the "Creator Code" associated with a file, and what the Finder's "Get Info" shows as the "Creator" (in the "More Info" section)?? I have a program that will not process a file unless a specific application has created the file. But if I change the "Creator Code" with a utility like "Type & Creator Changer" from AlphaOmega, the "Get Info" command shows no difference in the "Creator" field of the "Get Info" window.
    What is going on? What is the difference between these two "Creator" pieces of information of a file?
    How can one change what is in the "Get Info" "Creator" field??
    Thanks for your help...
    -Bob

    I don't think what you are talking about is the same as what I asked. I looked at the file that works with HexEdit and there is some other info about "CreatorTool" and "Creator" that in the case of the file that works is set to "ScanSnap Manager" and this is what appears in the "Creator" field of "Get Info" (in the "More Info" part of the GetInfo window). This is what I am guessing the Abbyy FineReader program is looking for to allow it to process the file. Without it it will not convert a PDF image file to a searchable text PDF file. Files that work and don't work can both have the "Open With" set to the same thing, so don't think that this has anything to do with the issue. Both can have the same "CreatorCode" too, so this is not it.
    In fact I just verified that if I change the "Creator" info in a file that works, the FineReader software will not process it. But the problem is that just changing the "Creator" info in a file to "ScanSnap Manager" is not enough. Bummer...
    So my dilemma is I can print a PDF file onto paper, then turn right around and scan it on the ScanSnap scanner and then FineReader will process it. But this is silly to have to print a file I already have the PDF of, let alone kill a few trees for the paper to print it on, in order to do the FindReader processing. Any suggestions??
    So, the question still is, what exactly is the FineReader looking for and how do I change a PDF file to have it so that FineReader will process it??? Is there a utility that will add/edit this other CreatorTool and/or Creator info in the file???
    Thanks...
    -Bob

  • How to get readonly text field value in backing bean?

    Below is my code in JSF.
    <h:inputText id="prodLine" value="#{fbackingBean.value}" required="true" styleClass="readOnlyField" readonly="true"/>
    This is a readonly field, and the value will been pass in by a pop up window. after the value had been passed in, i try to store the data which i had selected, but the value in readonly field (which show in above) return a null value.
    May i noe how can i get the readonly field value in backing bean? thanks!

    Why not keep track of the value in the backing bean? If it's a read only value set from a backing bean it should be simple to retrieve from a backing bean.
    I'm new to JSF, but one thing that I have figured out is to try to put everything in the backing beans possible and to do as little as possible within the JFS web page components.

  • Name of the table where can get the two fields Valid-From and Valid-to for

    Hi gurus
    I want name of the table where I can get the two fields Valid-From and Valid-To and their relation ship with the header table in BOM
    Regards
    Kaisar

    You can only get the Valid from date from the table STKO.
    To get the valid to date, you have to take one day less than the valid-from date of the next record for the same BOM.
    Alternatively use the Function module:
    CSAP_MAT_BOM_READ
    It will give both valid from and valid to dates in the tables parameter: T_STKO
    Regards,
    Ravi
    Edited by: Ravi Kanth Talagana on Jul 2, 2008 4:37 PM

  • Get the custom fields data at the time of save

    Hi,
    We have added few fields in the ICWC for the complaint screen.
    At the time of save i am trigering a BADI.
    I would like to check the data that is entered in those fields of complaint screen.
    Is there any FM which can be used to get the data from the buffer ?
    I have the header GUID available to me .
    Thanks.
    R

    Hi,
    Let me elaborate a bit.
    Users would create the complaints in the ICWC.We have addeded few custom fields in the complaint screen.
    CRMT_CUSTOMER_H_WRKT is extended with the custom fields.
    At the save i am trigerring the Partner Determination BAdi.
    Here i have the complaint guid at run time.
    I would like to check the data entered in the custom field in the complaint screen. Based on this i would like to determine one more partner.
    My question is how can i get the custom field data in the complaint screen in this BAdi.
    The FM:  CRM_ORDER_READ is not returning this data.Is there any FM to get this ?
    Thanks.
    R.

  • Can't get a text field to atuo populate based upon a dropdown selection

    I have a drop down box with 3 values that can be selected:
    Dropdown2 = 101-3 subd.A
                          101-3 subd.B
                          101-3 subd.C
    I am trying to get a text field to auto populate based upon the selection:
    if Dropdown2 = 101-3 subd.A then Text4 = "ValueA"
    if Dropdown2 = 101-3 subd.B then Text4 = "ValueB"
    if Dropdown2 = 101-3 subd.C then Text4 = "ValueC"
    I have tried to create a custom calculation script for Text4:
    var v= getfiled("Dropdown2").value;
    if (v="101-3 subd.A") event.value = "ValueA";
         else if (v="101-3 subd.B") event.value = "ValueB";
         else if (v="101-3 subd.C") event.value = "ValueC";
         else event.value = " ";
    I have entered this script and the syntax appears to be correct.(At least to Acrobat XI.  I'm know programmer and have just enough knowledge to be dangerous).  When I select a value in Dropdown2 nothing happens.  No value appears in Text4.  I have checked the "commit selected value immediately" in the option of Dropdown2 per some google'ing.  I just can not understand why the values do not appear.  Any help would be appreciated.
    Thanks

    I made the changes and added the == to my if statements.  When I select a value in Dropdown2, Nothing appears in Text4.  I don't understand.  Is there something else that I need to do beside event.value="Some Value";?
    I know it has to be something simple that I am missing, but I just can't seem to see it.
    Text4 - Custom Calculation Script:
    var v= getfiled("Dropdown2").value;
    if (v=="101-3 subd.A") event.value = "ValueA";
         else if (v=="101-3 subd.B") event.value = "ValueB";
         else if (v=="101-3 subd.C") event.value = "ValueC";
         else event.value = " ";

  • It is possible to get giving parameter field name in function module

    i have one question like below .
    at main report .
    call funciton Fm1
      exporting
         var1 = W_A
         var2 = W_B
    at function module i want to get  giving  parameter field name, in here  value was  "W_A" and "W_B"  .
    plz give me some hints or any advise .

    Only a hint:
    If you have a fm with an unspecified parameter like
    FUNCTION ZTESTBABLFM.
    *"*"Lokale Schnittstelle:
    *"  IMPORTING
    *"     REFERENCE(INPUT)
    type-pools: sydes.
    data: fieldinfo type SYDES_DESC.
      describe field input into fieldinfo.
    ENDFUNCTION.
    you can get some information from DESCRIBE FIELD  either using INTO as above or with other options as LENGTH, TYPE ...

Maybe you are looking for

  • Import multiple records into a PDF document?

    I'm not sure I'm using the correct terms, but let me spell out my problem. I have a PDF document with several text forms named with the same names as columns in an Excel spreadsheet saved into txt format. The forms are duplicated onto several pages s

  • ITunes has encountered a problem and needs to close.  We are

    I've had it with these guys! I recently upgraded to itunes 6, and have had awsome problems ever since. First it stopped my pc from booting up completely, which I had to start in Safe in order to quick restore. Then everything would freeze when I trie

  • Cant connect iPOD to WRT160N v3--please help

    I have a new WRT 160N router that I have set up and works well with my wireless laptop.  However, I cannot get my IPOD to work with this router.  I put in the security code and it will not accept.  Can anyone help?  THanks.

  • Photostream loading and photo sharing contacts

    I'm still trying to figure out this iCloud thing. Two questions 1. When setting up a photo share stream, do the recipients need to have an actual @icloud.com email for their emails? Both me and my parents use gmail addresses for our icloud devices. 2

  • Adjustment defaults on aperature 2

    Ok, I did something somewhere now I can not have the default adjustment area contain more than enhance,color, highlight and sharpen,,,I wnat to add more adjustments but everytime I do and then click to the next picture it defaults back to only 4 boxe