What is repeated structure?

what is repeated structure?
Title edited by: Alvaro Tejada Galindo on Jun 12, 2008 6:46 AM

Hi,
         In many master data infotypes the data is stored in the form of repetitive structures. For example infotype 0008, the structure wage type line is available for 20 times, that is an employee is eligible for having 20 different wage types based on his benefits. When evaluating repeat structures, you must ensure that all fields are entered. In the case of the Basic Pay infotype, 20 * 5 = 100 fields are queried.
To use this method of evaluation, define a field string whose structure corresponds to the fields in one line of the repetitive structure.
Example for understanding the repetitive Structure
     Say, for an employee you want to know that for what all wage types an employee is eligible for the latest period you mentioned on the selection screen.
  Using LDB (PNP)
Program:
  Report zhr_repstru.
  Tables Pernr.
   Infotypes 0008. 
u2022     You have to declare a structure same as repetitive structure in the 0008 infotype
   Data: begin of s_wagetypes,
                Wagetype type p0008-lga01,
                Amount      type p0008-bet01,
                Hours         type p0008-anz01,
                Unit            type p0008-ein01,
                Ind             type p0008-opk01,
            End of s_wagetypes, 
u2022     Selecting data from the Data base       Get pernr
u2022     Getting the latest record based on the selection period.
      RP_PROVIDE_FROM_LAST P0008 SPACE PN-BEGDA PN-ENDDA.
u2022     Now knowing for what all wage types the employee is eligible.
Do 20 times varying s_wagetypes from p0008-lga01 next p0008-lga02.  If s_wagetypes-wagetype is initial.
o     Here the data is stored sequentially, i.e., if the employee is eligible for 5 wage types then all the 5 wage types are stored sequentially in lga01 to lga05 respectively. So, if say the lga05 is initial then it is understood that, employee is eligible for only 4 wage types and from lga05 to lga20 structures will be empty so, we need not process further
            Exit.
        Else.
           Write: / s_wagetypes-wagetype,
                        S_wagetypes-amount.
        Endif.
Enddo.

Similar Messages

  • Repeating structure through the receiver file adapter

    I wanted to ask wheter it is possible to create repeating structure through the SAP xi receiver file adapter. What I'm trying to accomplish is this:
    Item1
    Item2
    Item1
    Item2
    (variable number of times).
    I can accomplish the following:
    Item1
    Item1
    Item2
    Item2
    What I could do is have the Item1 and Item2 fields in the same segment in the design time, but this would mean the file adapter would write all the items on a single line instead of two.
    There is no way to define line breaks between the the receiver file adapter field parameters ?
    There is no way to support nested structures in the recordset definition ie. Item1.Item2 ?

    Henri,
    What Vishal means is following:
    Add sequences of the tag <recordset> between pairs of item1, item2:
    <documentName>
       <<b>recordset</b>>
         <item1>
           <field-item1>column-value</field-item1>
           <field-item1>column-value</field-item1>
           <field-item1>column-value</field-item1>
         </item1>
         <item2>
           <field-item2>column-value</field-item2>
           <field-item2>column-value</field-item2>
           <field-item2>column-value</field-item2>
         </item2>
       </<b>recordset</b>>
       <<b>recordset</b>>
         <item1>
           <field-item1>column-value</field-item1>
           <field-item1>column-value</field-item1>
           <field-item1>column-value</field-item1>
         </item1>
         <item2>
           <field-item2>column-value</field-item2>
           <field-item2>column-value</field-item2>
           <field-item2>column-value</field-item2>
         </item2>
       </<b>recordset</b>>
    </documentName>
    A similar problem with header and items is in this thread:
    Repeating structure through the receiver file adapter
    Hope that helps,
    Stefan

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

  • Design with repeating structure /Duplicate Structures

    I have to develop a layout in Ultiboard, which has a repeating structure (each repetition uses the same circuit). For saving time my idea was to only input one of that structure in Multisim, export that single structure into Ultiboard, develop a layout for that single structure and afterwards copy that structure as often as it is needed in the complete circuit.
    Trying to do so does not work. When I duplicate the layouted structure with Edit/Copy Paste, all Netlist information and traces for the copied structure is lost, so it looks that this is not the right way to do so.
    Is there some method so duplicate/clone parts of the layout without loosing the connection and traces?

    This may or may not be what you need, but you can group parts together and then use group replicate. I haven't tried this method so I am not sure about the nets with this method. What I have done in the past is to just window the entire area and the use the copy function. When pasting I use "paste special" and this should make a direct duplicate of everything. I know there is at least one other method, but I can't recall it at the moment.
    The one thing to watchout for is that if this pasting is done to the same board the Refdes will increment. If this is desirable then that isn't a problem, but if you are trying to create a panel board then that is not acceptable and I don't think you can do anything about it.
    I hope some of this is of use as I am remembering this off the top of my head.
    Kittmaster's Component Database
    http://ni.kittmaster.com
    Have a Nice Day

  • What bapi return structure consists

    Hi experts,
        can anybody clarify my doubt regarding bapi's used for data transfer.
    when we r using bapi for data transfer how error transactions will be handled.
    what exactly return structure consists. can we get error transactions log in the return structure.
    plz reply me.
    Regards
    Trinadh.

    Moderator message - Please search before asking
    Please do not spam the forum with this sort of question
    post locked

  • What is Organization structure in IS Utilities

    Dear Experts,
    I'm new to IS Utilities, Can any one explain bellow concepts:
    1. What is Organization Structure in IS Utilities and How it helps?
    2. How and Where can we configure that?
    3. any Building Block for this concept?
    Kindly provide me the relavent links/Docs for further understanding... many thanks in Advance
    Srujan

    Org, structure defn can be different for different industries, but in general it can be defined as mentioned below.
    Org. Structure is:
    You use the organizational structure to represent and process
    disciplinary assignments, remuneration flows and statistical aggregations.
    As asked by you 1 example for this is:
    In an insurance company, the organizational structure models the
    hierarchical picture of an organization (generally sales and distribution), in particular for
    the derivation of overriding commissions.
    One more definition for Org. Structure which can throw more light in understanding this is:
    "A hierarchy in which the organizational units in an enterprise are arranged according to tasks and functions.
    The organizational structure differs from the administrative enterprise or personnel structure, whose
    structural elements are relevant to payroll accounting and accounting."
    Please mark thread as answered if you get satisfactory answer.
    Thanks,
    Abhishek

  • What is a Structured Material, what does 317, 319 movement types do

    Hi all,
    Could you please tell me what is a structured material?
    When can we use 317, 319 movement types and on what Material types?
    Regards,
    Jyotsna Loomba

    Hi,
    Example:
    A box of the structured material S contains 3 pieces of the component K1 and 4 pieces of the component K2. The following material document items result after the material is split at goods receipt:
         Qty      Unit      Material      Movement type
         1      box      S      101 +
         1      box      S      319 -
         4      piece      K1      319 +
         5      piece      K2      319 +
    317 Creation of a structured material from constituent components (Retail)
    A material split into its components using movement type 319 can be rejoined using movement type 317.
    Movement type 317 has the same effect as a cancellation of movement type 319.
    319 Split structured material into components (Retail)
    You can enter the splitting of a structured material manually using movement type 319.
    You can configure Customizing so that a structured material (for example, (z.B. set, prepack or display) is automatically split into its components at goods receipt. The system posts the split using movement type 319. In this process, the BOM header material is posted and each of the component stocks are increased.
    Regards,
    Biju K

  • Repeat Structure in 0168 Infotype

    Hi All,
             How can i access the data from the infotype 0168 repeat structure like (ITS01 DTY01 DID01 BPT01). I need to move the this structure values into a internal table.
    Please Suggest me with some Code....
    Thanks in Advance,
    Yogesh.

    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

  • What is organizational structure?

    Hi All,
    I searched in sap help, found the definition of "Organizational Structure"(such as company code, purchase organization and so on) is hard to understand. Could you provide answers to my questions below:
    1. what is org. structure in sap?
    2. difference between in sap and a real company( in a company we have a lot of departments, we also call them as organization structure).
    3. why not sap use departments as Org structure?
    Thanks in advance! Point will be rewarded.
    Regards,
    Alex

    Dear Alex ,
        The concept of an organizational structure has already been provided by you . In SAP we depict the organization in the way it is .
       Depending on how you want to use Organizational Management, you must decide which units you want to include in your organizational structure. For a rough depiction, you can restrict the structure to the main departments. For a more detailed depiction, you can also include subsections and work groups, for example.
    According to this organizational structure, you can execute evaluations data, or , in Workflow, you can search for the agent of a task.
    You carry out assignments and restrictions in the representation of an organizational structure.
    For further understanding you may go through this pdf link :
    http://www.idi.ntnu.no/emner/tdt4730/pdf/brinkman-ch7.pdf
    pLEASE assign full points if found useful .
    Regards
    Deepesh

  • Infotype creation with repeat structure

    Hi All,
    I need to create the custom infotype with repeat structure in the PS-structure.
    There are around 90 fields need to be added in the structure. If we look in the standard structure of the repeat structure, its a include structure(p0008 and p0168 etc). I cant able to include the structure in my custom infotype. If i give the repeat structure in my PS structure( in my custom infotype structure) its throwing an error in the screen fields. How can i resolve this issue.
    Is there any way that the structure can be included in the structure.
    Please provide me the solution.
    Thanks,
    Yogesh

    Hi Yogeshwaran,
         First create a structure with the repeat structures. For eg if U want to create a repetetive structure with pernr , dat and name . Create the structure as follows:
    pernr1, dat1,name1. Next time should be like pernr2,dat2,name3. Next time should be like pernr3,dat3,name3.....
    Note: Even if it is a repetetive structure U should not provide the same name for all the repetetive fields.

  • What is gain structure?

    Someone answered one of my other threads and said to ask my teacher from recording school (when I go in Jan. 2008) what is the best gain structure?
    My question had to do with using a mbox mini and Logic. I guess what is the best gain structure between Logic and PTLE?
    What is gain structure? Thanks.
    NN

    You are supposed to ask your professor about that. . . not us.
    And if you plan on doing any recording on your own, I wouldn't suggest getting the Mbox Mini, even though it is less expensive. I wouldn't settle for anything less than the Mbox Pro when it comes to Mboxes. Can't beat the low latency firewire. I love mine. . . never had a problem with it. Plus, it has two headphone outs. . . SO useful.
    Seriously. . . you will regret spending less money once you REALLY get going and realize how much you need the features in the Mbox Pro. It's more than twice as expensive, but all the Mbox Mini is is a dongle with a preamp in it - I plan on buying one only so that I can plug it into my laptop to work with protools on the road cause I don't feel like having my Mbox Pro hanging off my laptop.
    Because you MUST have a PT piece of hardware to run PT, and most stuff is kinda big and obtrusive for the road, in my opinion, the only worth of the Mini is for road use. Small, unobtrusive. . . and has the ability to plug stuff into it just in case. Firewire over USB any day.

  • What is the structure

    what is the structure for screen how it wil be usefull in report and when

    Hello Naresh,
    Below are the fields of screen.
    NAME
    GROUP1
    GROUP2
    GROUP3
    GROUP4
    REQUIRED
    INPUT
    OUTPUT
    INTENSIFIED
    INVISIBLE
    LENGTH
    ACTIVE
    DISPLAY_3D
    VALUE_HELP
    REQUEST
    VALUES_IN_COMBO
    COLOR
    and some brief description about screen...
    LOOP - Loop on screen fields
    Basic form    LOOP AT SCREEN.
    Effect        All fields of the current screen are stored in the system
                   table SCREEN with their attributes.
                   The LOOP AT SCREEN statement places this information in the
                   header line of the system table.
                   If you want to change the attributes, you must put back the
                   changed header line with MODIFY SCREEN. However, you can only
                   do this in the PBO module of a screen.
                   If you use this statement for step loop processing, the
                   information (and any changes) apply only to the current
                   steploop line. Outside step loop processing, the information
                   for a step loop field applies to the complete column.
                   You can also modify fields in the loop processing of a table
                   control using this loop statement. Unlike a step loop,
                   modifications before the loop have no effect, since the system
                   gets the initial values for the columns from the column table
                   of the table view.
                   Step loop fields should never be changed after the
                   corresponding step loop processing has been performed.
                   You can use the CONTINUE statement to leave the current loop
                   pass prematurely and continue with the next loop pass.
    Reward If Useful
    Sasi.

  • What could repeatedly trigger iTunes - when I'm watching some online video - despite my repeatedly closing it?

    what could repeatedly trigger iTunes - when I'm watching some online video - despite my repeatedly closing it?
    I have iTunes 11.1.3 and Lion 10.7.5

    i Founfd this exact behaviour with 1080p mivies on my machine. I redownloaded as 720p and all was fine. I think my computer is getting a little dated.
    If this is true for you then Select Preferences, Store and When downloading High Definition videos, prefer and select 720p. Then red donload form the Purchased link under Quick Links in iTunes Store

  • What is ITCSY structure

    Hi
    what is ITCSY structure
    Regards
    Suresh

    hi,
    itcsy is a structure.
    when u want to fetch additional data to pritn in u r layout with out changing the standard driver program
    then we have to use this structure through suroutine pool program.
    syntax is
    FORM<FORM>TABLES IN_TAB STRUCTURE ITCSY
    OUT-TAB STRUCTURE ITCSY.
    ENDFORM.
    HERE IN_TAB IS INTERNAL TABLE
    and one more example is
    The structure ITCSY contains field name and field value.
    The system does not execute the PERFORM command within
    SAPscript replace modules, such as TEXT_SYMBOL_REPLACE or TEXT_INCLUDE_REPLACE.
    The replace modules can only replace symbol values or
    resolve include texts, but not interpret SAPscript control commands.
    Syntax in a form window:
    /: PERFORM <form> IN PROGRAM <prog>
    /: USING &INVAR1&
    /: USING &INVAR2&
    /: CHANGING &OUTVAR1&
    /: CHANGING &OUTVAR2&
    /: ENDPERFORM
    plz reward me if helpful...

Maybe you are looking for