How to pick the wage type (repeat structure) in pa0008 infotype.

Hi all.
     Iam writing code we pick the data from Pa0008-lgart Pa0008-brt01.
    these two field are repeat structure.
   here iam given code what we writen.
select pernr
          lgart
          betrg
            from pa0014
            into table it_p0014
          for all entries in it_p0001
            where pernr = it_p0001-pernr.
           and   it_p0014-lgart  = '1507'
           or   it_p0014-lgart = '1508'
           or   it_p0014-lgart = '1509'.
if sy-subrc ne 0.
  message e063.
endif.
endif.
***---> Using wage types.
*loop at it_p0008
DO 20 TIMES VARYING lgart FROM it_p0008-lgart NEXT it_p0008-lgart
            VARYING betrt FROM it_p0008-betrg NEXT it_p0008-betrg.
WRITE:/ lgart, betrg.
case it_p0008-lgart.
    when '1001'.        " HOURLY RATE.
      write:/ it_p0008.
    when '1500'.        " HOURLY RATE.
      write:/ it_p0008.
    when '1008'.        " RED CIRCULE HOURLY RATE.
      write:/ it_p0008.
endcase.
ENDDO.
here i am getting o/p it featch the all the data.
but i need only  1001,1500and 1008 records only.
here iam using DO varing condition.
please help me.
and one more thing
as well i featch the data from 14 infotype same lgart and betrg
in 00014 infotype i need only 1507,1508,1509 recorde along with betrg.how to write code .  
Regards,
Krishna.

DO 20 TIMES VARYING lgart FROM it_p0008-lgart NEXT it_p0008-lgart
VARYING betrt FROM it_p0008-betrg NEXT it_p0008-betrg.
WRITE:/ lgart, betrg.
<b>case LGART.
when '1001'. " HOURLY RATE.
write:/ betrg.
when '1500'. " HOURLY RATE.
write:/  betrg.
when '1008'. " RED CIRCULE HOURLY RATE.
write:/  betrg.
endcase.</b>ENDDO.
check this.
Regards
Prabhu

Similar Messages

  • How to pick the wage type (repeat structure) in pa0008 infotype and Pa0014.

    Hi all.
         Iam writing code we pick the data from Pa0008-lgart Pa0008-brt01.
        these two field are repeat structure.
       here iam given code what we writen.
    select pernr
              lgart
              betrg
                from pa0014
                into table it_p0014
              for all entries in it_p0001
                where pernr = it_p0001-pernr.
               and   it_p0014-lgart  = '1507'
               or   it_p0014-lgart = '1508'
               or   it_p0014-lgart = '1509'.
    if sy-subrc ne 0.
      message e063.
    endif.
    select pernr
           lga01
           bet01
             from pa0008
             into table it_p0008
             for all entries in it_p0001
             where pernr = it_p0001-pernr.
    if sy-subrc ne 0.
      message e063.
    endif.
    ***---> Using wage types.
    DO 20 TIMES VARYING lgart FROM it_p0008-lgart NEXT it_p0008-lgart
                VARYING betrt FROM it_p0008-betrg NEXT it_p0008-betrg.
    case lgart.
        when '1001'.        " HOURLY RATE.
          write:/ it_p0008.
        when '1500'.        " HOURLY RATE.
          write:/ it_p0008.
        when '1008'.        " RED CIRCULE HOURLY RATE.
          write:/ it_p0008.
    endcase.
    ENDDO.
    here i am getting o/p it featch the all the data.
    but i need only  1001,1500and 1008 records only.
    here iam using DO varing condition.
    please help me.
    and one more thing
    as well i featch the data from 14 infotype same lgart and betrg
    in 00014 infotype i need only 1507,1508,1509 recorde along with betrg.how to write code .  
    Regards,
    Krishna.

    DO 20 TIMES VARYING lgart FROM it_p0008-lgart NEXT it_p0008-lgart
    VARYING betrt FROM it_p0008-betrg NEXT it_p0008-betrg.
    WRITE:/ lgart, betrg.
    <b>case LGART.
    when '1001'. " HOURLY RATE.
    write:/ betrg.
    when '1500'. " HOURLY RATE.
    write:/  betrg.
    when '1008'. " RED CIRCULE HOURLY RATE.
    write:/  betrg.
    endcase.</b>ENDDO.
    check this.
    Regards
    Prabhu

  • How to create the sub type field in hr abap infotype

    hi ,
        how to create the sub type field in hr abap infotype.
    regards,
    venkat.

    Try like this also
    creating of infotype please follow these steps ...
    Step 1: Create Infotypes
    i. Goto Transaction PM01 – To create Infotypes:
    ii. Enter the Infotype Number and say create all.
    iii. The following message would display:
    i. PSnnnn Does not exist. How do you want to proceed?
    iv. Click
    v. A maintain Structure screen appears.
    Fill in the short text description and the PS structure of the Infotype.
    Since the fields Personnel No, Employee Begin Date, End Date, Sequential Number,Date of Last Change, Name of user who changed the object are available in the PAKEY and PSHD1 structure, define the PSnnnn structure with only the fields you required.
    vi. Once the PS Structure is created, save and activate the structure.
    vii. In the initial screen of PM01, now click on .
    Create a new entry for the infotype.
    Fill in the values as mentioned below and save.
    Infotype Characteristics:
    Infotype Name of the infotype_ Short Text: __Short Description________
    *General Attributes :
    Time constraint = 1
    Check Subtype Obligatory
    Display and Selection:
    Select w/ start = 3 “Valid record for entered data
    Select w/ end = 5 “Records with valid dates within the period entered
    Select w/o date = 6 “Read all records
    Screen header = 02 “Header ID
    Create w/o end = 1 “Default value is 31.12.9999
    Technical Data:
    Single screen = 2000
    List screen = 3000; List Entry Checked.
    viii. In the initial screen of PM01, now click on .
    Choose the infotype entry in the list.
    Fill in the values as mentioned below and save.
    Technical Attributes:
    In tab section,
    The following attribute values are given:
    Applicant DB Tab = PAnnnn “Infotype Name
    Subtype field = SUBTY
    Subtype table = T591A
    Subty.text tab. = T591S
    Time cnstr.tab. = T591A
    Prim. /Sec. = I Infotype
    Period/key date = I Interval
    and .
    ix. Infotype Screen Modification:
    Edit Screen 2000 from PM01 for the Infotype.
    ABAP Editor for the Infotype Program MPnnnn00 will be displayed.
    Click . Flow Logic will be displayed. There string coding of your own logic.
    Regards
    Pavan

  • How to change the document type while creating a PO by ME59N

    Hi,
    I  have 2 groups of PR's, for group one the document type is picked as NB and PO is created and for the group 2 it should pick as XYZ and PO should be created using ME59N tcode.
    How to change the document type for group 2 in ME59N? Which user exists to use to change the document type while creating PO in ME59N? 
    Can any one suggest me.

    Hi,
    There a config area, where you can define default PO doc types for a particular Pr doc type. If you maintain the settings properly there, then your requirement can be fulfilled.
    SPRO->IMG->MM->Purchasing->Purchase requisation->Define doc types.
    This will serve your purpose.
    Thanks,
    Srinu

  • HR-PY: How To Deduct Time Wage Type Amount From Salary?

    Dear All,
    How to deduct a time wage type amount from the total gross?
    Now I have a time wage type, "Unpaid Leave".
    If an employee have an unpaid leave in a month, payroll will calculate the unpaid amount and put it into Wage Type "Unpaid Leave", and the amount will be deducted from his salary.
    What is the approach to deduct the unpaid leave amount from his salary?
    Thanks.

    I've done the part of Absence Valuation.
    During payroll simulation, I can get the correct number of absence day and the correct amount of unpaid absence in the wage type.
    However, I do not know any following steps on how to deduct that amount from the salary.
    Do you mean I should use factoring to do the deduction?
    Thanks.

  • How to create Technical Wage types

    Hi to All,
    How to Create Technical Wage types, what are the pre-requisite information required for creating and how it works
    Bhaskar

    Hai..
    Pls come up with ur requirement......In order to copy tech wage types... u need to know the func of each series of tech wage types..
    •     0** – valuation
    •     /1** – cumulation
    •     /2** – averages
    •     /3** – country-specific, usually for social insurance
    •     /4** – country-specific, usually for tax
    •     /5** – legal net
    •     /700 – wage/salary plus ER shares
    •     /8** – period factoring
    •     /84* – cost accounting
    •     /A** – outgoing wage types in retroactive accounting period
    •     /Z** – incoming wage types from the previous period
    Now based on ur requirement u need to select a std tec wage type, and copy it in the customer range series

  • How to default the wage tyes

    hi gurus,
    I have wage components like
    Basic : 19000
    H r a : 8000
    Con : 800
    Speciall allowance : 2638
    Bonus : 1000 (regular bonusu2026.this has to display in the pay slip every month)
    Education allowances : 0
    Shift allowance : 0
    Other allowance : 0
    this wage types has to defaulted in the payslip, Can you explain clearly & let me know how to configure.
    thanks
    padmasree

    Basic : 19000 - copy from MB40
    H r a : 8000 - copy from M230
    Con : 800 - copy from M220
    Speciall allowance : 2638  copy from M500
    Bonus : 1000 (regular bonusu2026.this has to display in the pay slip every month)
    Education allowances : 0 - copy from M260
    Shift allowance : 0
    Other allowance : 0
    Copy the wage types from standards, be clear onething, in which infotype you want to be store these all are wage types?
    Configure the wage types and maintain the groupings, maintain the customer wage types in your form.
    Good luck
    Devi

  • [svn:osmf:] 13113: Changing to not use an embedded font by default, and adding instructions on how to use the free 'type writer' bitmap font.

    Revision: 13113
    Revision: 13113
    Author:   [email protected]
    Date:     2009-12-21 01:08:10 -0800 (Mon, 21 Dec 2009)
    Log Message:
    Changing to not use an embedded font by default, and adding instructions on how to use the free 'type writer' bitmap font.
    Modified Paths:
        osmf/trunk/libs/ChromeLibrary/.flexLibProperties
        osmf/trunk/libs/ChromeLibrary/src/org/osmf/chrome/controlbar/widgets/ScrubBar.as
        osmf/trunk/libs/ChromeLibrary/src/org/osmf/chrome/controlbar/widgets/URLInput.as
    Added Paths:
        osmf/trunk/libs/ChromeLibrary/src/org/osmf/chrome/fonts/
        osmf/trunk/libs/ChromeLibrary/src/org/osmf/chrome/fonts/Fonts.as
    Removed Paths:
        osmf/trunk/libs/ChromeLibrary/assets/images/stop_up.png_1

    Your site was built using tables, whose sizes are defined in your site.
    If we look at your first table definition, we can see:
    <table width="861" height="1449" border="3" cellpadding="0" cellspacing="0" bordercolor="#868787">
    Your table has a width of 861 pixels and an overall height of 1449 pixels. Anything you put into that overall box must fit those dimensions, else
    it won't be visible. Anything you add above it will push everything down. You can redefine your sizing to let you edit more inside of the table elements.
    This is why, when you type in more text, things act weird. If you are in Dreamweaver, you must find the right cell to put your text into and then enter
    text there. Unfortunately, this is going to push things around, which were all lined up using tables. And this gets everything offset with respect to
    everything else in your website.
    And that is why everyone is saying, "Start Over!"
    I just inherited a website that has been put together using tables. I'm going to have to expend considerable effort in rewriting the entire design of the
    website because of that. because everything I intend to add to the pages on the site is going to need to be deconstructed in order to get it to work
    properly if I'm adding text and pictures that need to line up with each other.
    You need something done quick and dirty and the only way I can recommend you do that is to use Dreamweaver to show you the tables you have
    and put what you need in a new table that is defined above or below the tables you all ready have defined. Do that and then get back to someone here
    who knows how to make a website correctly to clean up your entire website and make it editable -- which will cost you some money, but it will be
    money well-spent.
    I like to quote this maxim: Good, Fast, Cheap. Pick any two. This works for website design. You can get it fast and cheap, but it won't be good. I
    think you may have chosen that route.

  • How to compare two wage types?

    What is the best way to compare two wage types?
    For example, if I see the wage type attribute screen, I need to select M010 and M110 , one by one and
    compare visually only the wt attributes. It doesn't show the processing classes etc.
    Is there a report or tool to compare and list everything about two wage types?
    Thanks,

    Thanks Arun.
    RPDLGA40 is NOT doing what I was asking. But helps a lot to learn about a given wage type.
    RPDLGA20 has many uer interactions and I am yet to learn how to understand them
    Thanks,

  • How to get the values from repeated frame?.

    Hi
    how to get the values from repeated frame?. i have to disply the first 3 digits in another place in my report.
    i have field empno in repeated frame and i want to disply first 3 digits in another place in the same report.
    thanks

    How often do you need to display it? It sounds like you might want to base a summary on that formula with a function of first or last. If it's a per page basis, it can be a page level summary. If it's at a higher level repeating frame, then you can create the summary at that level. I'd suggest taking a look at the online help for summaries using the first/last functions.
    Hope that helps,
    Toby

  • How to change the NAT type to Open on a Imac using bridged connections

    Hey everyone I have a problem. I play xbox live with my friends and i just moved and dont have a wireless adapter anymore. so i have bridged connections with my imac and xbox via ethernet. It works perfectly, but the only problem is that when i connect it say that my NAT type is strict. To play with all my friends i need a open NAT type. Does anyone know how to make the NAT type on the Imac open. And i do have a D-link router model DIR-625. When i called D-link they said to port forward, i did and it still didnt work, they said it must be the fire wall on the mac, microsoft said the same thing, that it might be the fire wall. I checked the fire wall and it said "All Incoming connections are allowed".
    I would really much appreciate it if someone helped me. Thank you!

    Yes, most likely. Microsoft has provided a list of XBox LIVE!-compatible routers. Since the OS X Internet Sharing feature is limited, there is no way to configure port mapping or placing the XBox in a DMZ with it. Typically, you either use a compatible router or configure port mapping/DMZ for non-compatible routers.

  • How to use the customer types in customer master data

    how to use the customer types in customer master data?
    menu path is Extras -> account group info -> customer types

    hi,
    This is an option given to you to choose (if you need to) the way you perceive this customer.Here you get options including ompetitors,Salespartner, prospect,
    default sp ,consumer.
    See it helps you to differentiate between prospect(which you may use for quotation or inquiry purpose)Sales partner and the competetor.
    I hope this clarifies your quiery.Reward points if so.
    Thanking you,
    Best regards,
    R.Srinivasan

  • HOw to view the records in a structure qaqee ?

    hi every one ,
    we can view the tble through SE16 
    HOw to view the records in a structure qaqee ?
    Thanks in advance

    Hello,
    Please check the link
    http://help.sap.com/saphelp_erp60_sp/helpdata/EN/90/8d7301b1af11d194f600a0c929b3c3/content.htm
    You can view the struture in SE11 t-code for its components.
    Regards,
    Shailesh

  • How to change the paper type in printer settings?

    Does anyone know how to change the paper type in printer settings?  I'm trying to have the ability to change it to photo paper from Photoshop Elements.  I can't find the option in printer settings or through Elements.  I'm assuming I could save an additional printer setting for photo printing, but can't find how to even select a different paper type.
    thanks!

    It would help to know which OS you are running as the answer will be different if it's Lion or the previous OS's. You are not running iOS 5.0.1 on your MacBook Pro so provide the correct information.

  • How  to change the billing type Rv to DG

    Dear all,
    when ever we are doing the return order to a sales we will create a customer credit memo through the VF01 T-code.where billing type will be customize one that is credit memo..
    once we save that the in customer G/L we are getting the document type as RV instead of DG.
    please tell me how to change the document Type in customer Ledger.
    regards,
    chethan

    Hi,
    Just to draw your attention that DG is doc.type used to issue credit memo from FI (t.code FB75), where it does not involve the inventory movement.
    Whereas the credit memo generated from OTC cycle (i.e.VF01) involves inventory movement. Ideally, both of these types of credit memos should have different doc. types, so that users can distinguish the returns based on doc. types later on.
    So, after explaining the above, please check with your business thoroughly if they really need to use DG instead of RV. I would suggest to create new doc. type 'ZC' and set up through VOFA.
    Thanks,
    Nirav

Maybe you are looking for