Assigning numbers by group within a table

...I've found a few solutions on the internet, all of them using MYSQL specific functions though :(
Here's my table as it stands:
Account     Box     Outletnumber
1234     12345          
1234     43244                         
1234     43543
1235     32432
1235     45454
1236     23432
1237     34535
1237     45435
1237      32432
...for each unique 'account' I need to assign a sequential number to the outlet. So I should end up with:
Account     Box     Outletnumber
1234     12345     1
1234     43244     2                    
1234     43543     3
1235     32432     1
1235     45454     2
1236     23432     1
1237     34535     1
1237     45435     2
1237      32432     3
..I'm really lost on how to achieve this, anyone got any ideas?
Many thanks in advance!
Adam

You can use merge. If you've 10g, you may not need WHEN NOT MATCHED.
MERGE INTO <yourtable> t1 USING
(SELECT account, box, row_number() over (partition by account order by box) rno
FROM <yourtable>) t2
ON (t1.account = t2.acount
    AND t1.box = t2.box)
WHEN MATCHED THEN
     UPDATE SET outletnumber = t2.rno
WHEN NOT MATCHED THEN
     INSERT(account) VALUES(null)

Similar Messages

  • ASSIGN AN AUTHORIZATION GROUP TO MANY TABLE

    Hello,
    I have several hundreds table to assgin an authorization group zaut.
    Is there any easy way to do it?
    I do not want to go se54 and change all table authorization group one by one.
    Please help.
    Thanks,
    Jeongbae

    Use Tcode SM30V_DDAT to assign the Authorization Group to multiple tables.
    Regards,
    Naimesh Patel

  • Subject area security validating users and groups from external table

    Hi all.
    I don't have practice to put question here, but there is one problem, that seems don't work correctly in OBIEE.
    I'm trying to put users in groups within external table and this works fine.
    I put security on the subject area level like this:
    SA1 -> GroupA allow, Everyone not allow
    SA2 -> GroupB allow, Everyone not allow
    External table:
    User----------Group
    A---------GroupA;GroupB
    B---------GroupB
    Users A, B and GroupA, GroupB exists in the RPD, but I didn't put users inside them, I want this from table.
    From the init block, external table I'm taking users and join them in the group. Same name users and groups are also in the presentation service.
    When i connect with user A i don't see any subject area, when go to My Account i see in Group Membership/GroupA and GroupB, so it's readed from the external table.
    Why in this case the subject area permission is not working?
    It works if I explicitly put users in groups, in the RPD.
    I have read this blog entry http://kpipartners.blogspot.com/2009/07/groups-webgroups-and-delivers.html and it is said that this works, but I'm interested how.
    What should we have in the presentation part, administration, Manage Privileges -> Access within Oracle BI Answers option for those two subject area?
    This doesn't work or something is missing:
    Re: Security on Subject Areas
    Regards
    Goran
    http://108obiee.blogspot.com

    What should we have in the presentation part, administration, Manage Privileges -> Access within Oracle BI Answers option for those two subject area?Yes, you should remove Everyone and add the relevant groups to each Subject Area. You don't need to set privileges in the RPD, in fact that's probably why it doesn't work for you. Leave your RPD Presentation Catalog as "Everyone" = Read as you will controlling access from the Presentation Services and it should work.

  • Numbers ought to keep check box that allows carriage return within a cell universally within a table

    Apple really fell asleep at the switch when releasing its latest version of Numbers 2013 (3.2), because it ignored the universal learning styles of human beings who have used the software in earlier releases and seemed to change features with little consideration for the community as a whole.
    For example, why would you delete the feature that allows a user to turn-on or turn-off the "carriage return within a cell".  It seems smart of them to add the abilityt to simply press the Option key and hit return at the same time to allow a carriage return within a cell, but why would you DELETE the feature that allows returns within a cell universally within a table? 
    And then the Inspector got completely revised.
    Time saved in creating technologies gets eaten up in having to relearn technology every time a new release is created that doesn't build on the previous release very well.

    Adamo,
    You are complaining to fellow users.  It is best to post your feedback to Apple using the menu item
    "Numbers > Provide Numbers Feedback"

  • Program to assign auth group to the tables?

    Hi everyone,
    Does anyone of you know if there is a program that I can use to assign the auth group to the SAP std table(in case if I need to) and customized tables. I know I can goto Se54 and assign an auth group there but was hyst wondering if there is a program like RSCSAUTH which we can use for assigning the auth group to the programs.
    Please suggest.
    Thanks,
    Raj

    Hello Raj,
    You donot assign auth. group to tables but rather to the Maintenance Generator.
    I think SAP will not provide any std. program for this.
    Maybe other SDNers have some better ideas to share.
    BR,
    Suhas

  • SE54: Assigning an authorization group to table &SM31&

    Has anyone out there tried to assign an authorization group to the symbolic table &SM31& in transaction SE54?
    Any success in using it?
    Cheers,
    Julius

    Thanks Bernhard!
    > But what I did find was [SAP Note 42563|https://service.sap.com/sap/support/notes/42563] .
    > ...-->it's from 1997....!!
    Note that the SM31 refered to in the note is not the SM31 we know today. It looks like SAP renamed it to SM31_OLD and replaced by a new SM31 (and the current settings option). The alternative having been changing miles of code, this seems reasonable but can be confusing (release dependently).
    > Don't know if this is still used, as the check is in Rep.s SAPMSTBM, which is used in TX SM31_OLD, SM32, SM33 only.....
    My rule of thumb is: If something is possible, then someone out there is either already doing it, or still doing it...
    Cheers,
    Julius

  • Block individual field within a table

    Hello everyone,
    Is there an option to block a specific field within a table observed by SE16, without building a "view" for it?
    I'll explain myselfu2026. There is a table containing credit card numbers, but this table also containing critical data for my client, that can not be drawn from elsewhere.
    I'm looking for an option that would allow him to watch the whole table through  the SE16 , without the credit card numbers.
    Thanks,
    Julia

    Hi Julia,
    The alternative option is to use SAP Queries using SQVI transaction code. You have an option to select the required fields for the table.
    Further, you can assign the query to a transaction code in SE93 and assign the same to the users. Below are the steps to create a transaction code.
    1. Goto SE93
    2. Enter the transaction code name and description.
    3. Select the option "Transaction with Parameters"
    4. Transaction should be START_TRANSACTION.
    5. Check Skip initial screen
    6. Under the default values, enter the following:
    D_SREPOVARI-REPORTTYPE     AQ
    D_SREPOVARI-EXTDREPORT     Query name
    D_SREPOVARI-REPORT     Query user group to restrict (not SU01 user groups)
    However, the users should be assigned to the query user groups. These are further maintained using SQ03 transaction code.
    Ofcourse, my recommendation would be to stick to SE16 views and restrict the authorization to the table views
    Hope this helps!!
    Regards,
    Raghu

  • Loop at Conditions within internal table

    I have not been ABAPing long so primarily have been using keyword help...
    I am trying to loop round an itab and only select and process unique keys from within the table!
    However the table I am using to obtain the records has multiple records with the same reference and I am only interested in each unique occurrence of the IBASE_COMPONENT_GUID field.
    So there could be four items for one Appliance and four for another one. So of the eight records, I would only need to loop round and select the unique GUIDS.
    So there would only be two unique appliances I need to extract the records for.
    Basically I am trying to do something like this:
        LOOP AT GT_ITEM_DATA INTO GS_ITEM_DATA WITH UNIQUE KEY IBASE_COMPONENT_GUID.
    Is there a way to select each unique occurrence?

    Basically, I use the COLLECT statement when I need to get the unique field (character only) field from the internal table.
    Create a table with only one field, GUID.
    LOOP through your main table, assign its GUID to new table's field GUID
    Use COLLECT new_table.
    Other option is,
    Sort the table by GUID
    Loop through it and use AT NEW GUID or AT END OF GUID
    Fill out the table with this GUID.
    Regards,
    Naimesh Patel

  • Grouping within a group in XSLT 1.0

    Hi,
    I have the below XML, from which I need to generate multiple groups within groups.
    My sample XML:
    <XmlContent>
    <SalesInvoices2>
    <NewDataSet>
    <Table>
      <F1>ID</F1>
      <F2>NumberOfEntries</F2>
      <F3>JournalID</F3>
      <F4>Description</F4>
      <F5>TransactionID</F5>
      <F6>SourceID</F6>
      <F7>RecordID</F7>
      <F8>AccountID</F8>
      <F9>CreditAmount</F9>
      </Table>
    <Table>
      <F1>1</F1>
      <F2>4</F2>
      <F3>10</F3>
      <F4>53-IX-90 Volkwagen Golf 1</F4>
      <F5>1</F5>
      <F6>4</F6>
      <F7>1</F7>
      <F8>100</F8>
      <F9>1000.28</F9>
      </Table>
    <Table>
      <F1>1</F1>
      <F2>4</F2>
      <F3>10</F3>
      <F4>53-IX-90 Volkwagen Golf 1</F4>
      <F5>1</F5>
      <F6>4</F6>
      <F7>2</F7>
      <F8>101</F8>
      <F9>1089.87</F9>
      </Table>
    <Table>
      <F1>1</F1>
      <F2>4</F2>
      <F3>10</F3>
      <F4>53-IX-90 Volkwagen Golf 1</F4>
      <F5>1</F5>
      <F6>4</F6>
      <F7>3</F7>
      <F8>102</F8>
      <F9>1090.87</F9>
      </Table>
    <Table>
      <F1>1</F1>
      <F2>4</F2>
      <F3>10</F3>
      <F4>53-IX-90 Volkwagen Golf 1</F4>
      <F5>2</F5>
      <F6>6</F6>
      <F7>4</F7>
      <F8>103</F8>
      <F9>1091.87</F9>
      </Table>
    <Table>
      <F1>1</F1>
      <F2>4</F2>
      <F3>10</F3>
      <F4>53-IX-90 Volkwagen Golf 1</F4>
      <F5>2</F5>
      <F6>6</F6>
      <F7>5</F7>
      <F8>104</F8>
      <F9>1092.87</F9>
      </Table>
    <Table>
      <F1>3</F1>
      <F2>4</F2>
      <F3>12</F3>
      <F4>53-IX-90 Volkwagen Golf 5</F4>
      <F5>3</F5>
      <F6>5</F6>
      <F7>6</F7>
      <F8>105</F8>
      <F9>1093.87</F9>
      </Table>
    <Table>
      <F1>3</F1>
      <F2>4</F2>
      <F3>12</F3>
      <F4>53-IX-90 Volkwagen Golf 5</F4>
      <F5>3</F5>
      <F6>5</F6>
      <F7>7</F7>
      <F8>106</F8>
      <F9>1094.87</F9>
      </Table>
    <Table>
      <F1>3</F1>
      <F2>4</F2>
      <F3>12</F3>
      <F4>53-IX-90 Volkwagen Golf 5</F4>
      <F5>3</F5>
      <F6>5</F6>
      <F7>8</F7>
      <F8>107</F8>
      <F9>1095.87</F9>
      </Table>
    <Table>
      <F1>3</F1>
      <F2>4</F2>
      <F3>12</F3>
      <F4>53-IX-90 Volkwagen Golf 5</F4>
      <F5>3</F5>
      <F6>5</F6>
      <F7>9</F7>
      <F8>108</F8>
      <F9>1096.87</F9>
      </Table>
    <Table>
      <F1>3</F1>
      <F2>4</F2>
      <F3>12</F3>
      <F4>53-IX-90 Volkwagen Golf 5</F4>
      <F5>4</F5>
      <F6>7</F6>
      <F7>10</F7>
      <F8>109</F8>
      <F9>1097.87</F9>
      </Table>
    <Table>
      <F1>3</F1>
      <F2>4</F2>
      <F3>12</F3>
      <F4>53-IX-90 Volkwagen Golf 5</F4>
      <F5>4</F5>
      <F6>7</F6>
      <F7>11</F7>
      <F8>110</F8>
      <F9>1098.87</F9>
      </Table>
    </NewDataSet>
      </SalesInvoices2>
      </XmlContent>
    Expected Output:
    <!-- Journal- Repeats for each unique set of journal ID (F3) -->
     <Journal>    
          <JournalId>
            <xsl:value-of select="F3"/>
          </JournalId>
          <Description>
            <xsl:value-of select="F4"/>
          </Description>
          <!-- Transaction - Repeats for each unique set of transaction ID (F5) within Journal-->
          <Transaction>
            <TransactionId>
              <xsl:value-of select="F5"/>
            </TransactionId>
            <SourceID>
              <xsl:value-of select="F6"/>
            </SourceID>
            <!-- Line - Repeats within each Transaction for each Record ID(F7)  -->
            <Line>
              <LineNumber>
                <xsl:value-of select="F6"/>
              </LineNumber>
              <OrderDate>
                <xsl:value-of select="F7"/>
              </OrderDate>
              <ProductCode>
                <xsl:value-of select="F8"/>
              </ProductCode>
              <ProductDescription>
                <xsl:value-of select="F9"/>
              </ProductDescription>
            </Line>
          </Transaction>
     </Journal>
    I had tried the below XSLT - which is not working as expected, however with slight changes to the approach, I am able to get the one outer loop , i.e., Journal would get repeated twice, but not other elements within that.
    <?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
    >
      <xsl:output method="xml" indent="yes"/>
      <xsl:template match="/">
        <xsl:apply-templates select="XmlContent/SalesInvoices2"/>
      </xsl:template>
      <xsl:key name="EntryId" match="Table" use="F3" />
      <xsl:template match="NewDataSet">
        <NewDataSet>
          <xsl:apply-templates select="//Table[position()>1 and generate-id(.) = generate-id(key('EntryId', F3)[1])]" />
        </NewDataSet>
      </xsl:template>
      <xsl:template name="Table" match="Table">
        <NumberOfEntries>
            <xsl:value-of select="F2"/>
          </NumberOfEntries>
        <!-- Repeats - Journal -->
        <Journal>
          <JournalId>
            <xsl:value-of select="F3"/>
          </JournalId>
          <Description>
            <xsl:value-of select="F4"/>
          </Description>
          <!-- Repeats - Transaction -->
          <xsl:for-each select="key('EntryId', concat(F3,'|',F5[1]))">
            <Transaction>
              <TransactionId>
                <xsl:value-of select="F5"/>
              </TransactionId>
              <SourceID>
                <xsl:value-of select="F6"/>
              </SourceID>
              <!-- Repeats - Line -->
              <xsl:for-each select="key('EntryId', F3)">
                <Line>
                  <LineNumber>
                    <xsl:value-of select="F6"/>
                  </LineNumber>
                  <OrderDate>
                    <xsl:value-of select="F7"/>
                  </OrderDate>
                  <ProductCode>
                    <xsl:value-of select="F8"/>
                  </ProductCode>
                  <ProductDescription>
                    <xsl:value-of select="F9"/>
                  </ProductDescription>
                </Line>
           </xsl:for-each>
            </Transaction>
            </xsl:for-each>      
        </Journal>
       </xsl:template>
    </xsl:stylesheet>
    In the given sample - Journal should get repeated twice and within first Journal set of elements - I should get two transaction set of elements within the first set of transaction there should be 3 Line set of elements and in the second transaction set there
    should be 2 Line set of elements.
    Could you please help me on the solution, how I can have multiple groups and loop though the group and create another group within already constructed groups.
    Rpaul

    Hi,
    >>how I can have multiple groups and loop though the group and create another group within already constructed groups.
    For this statement, it is not clear to know what it represts, maybe this link is helpful:
    http://www.microhowto.info/howto/group_xml_elements_by_key_using_xslt1.html

  • Authorization issue within a table in BI

    Hello All,
    Here is my authorization issue :
    We have set up an authorization on infoobject Zapplication. End user is allowed to choose "HR" only.
    In Rsecadmin, infoObject Zapplication is restricted to "HR"
    Then, this authorization object has been assigned to end user.
    This user go to a specific table to select an application and a date.
    When user display the possible value he only see "HR". Which means our authorization is correct.
    However, this user can enter another value such as "SD". This value does exist in infoObject Zapplication. So, it means that there is an issue with our authorizations settings.
    We have added a control table, it's even worse in this case, authorization are not checked at all and all available values are displayed.
    Any idea to prevent the user to entered a value within this table ?
    Why our authorization does not check the value entered directly in the table ?
    Thanks &
    Regards
    Cath

    Hello
    For info we manged to restrict acces on this table by using event table from table maintenance and we have combined it with a specific authorisation object.
    Regs
    C.

  • Placing Subtotals within a Table - assistance needed!

    Hi Experts,
    I have a requirement for a change in a report that is created using XML Publisher and the output is from Release 12.
    There are a table of values where the output presently looks like this (not every column included, to ease clarity):
    Payee     Site     Amount Discount Payment Total Payable
    GROUP A     MILTON KE .00     70.50     .00     70.50
    GROUP A     MILTON KE .00     483.06     .00     483.06
    GROUP B     DIRECT DE .00     209.40     .00     209.40
    GROUP B     DIRECT DE .00     209.40     .00     209.40
    GROUP A     MILTON KE .00     141.00     .00     141.00
    GROUP B     DIRECT DE .00     172.98     .00     172.98
    GROUP B     DIRECT DE .00     244.65     .00     244.65
    GROUP A     MILTON KE .00     512.95     .00     512.95
    Totals          GBP     40,519.87     .00     .00     40,519.87     .00     40,519.87
    The code for this presently is:
    <?for-each:PARENT?>
    -- Output each row with the fields listed in table
    <?end for-each?>
    -- The output the Final Totals row (this is not a calculated total, but a total field listed in the XML output)
    An example of the XML is:
    - <PARENT>
    <PARTY_SITE_NAME>MILTON KEYNES</PARTY_SITE_NAME>
    <PAYEE>GROUP A</PAYEE>
    <INVOICE_NUM>A10008075</INVOICE_NUM>
    <DUE_DATE>19-SEP-07</DUE_DATE>
    <AMOUNT_REMAINING>739.92</AMOUNT_REMAINING>
    <WITHHELD_AMOUNT>0</WITHHELD_AMOUNT>
    <DISCOUNT_AMOUNT>0</DISCOUNT_AMOUNT>
    <INTEREST_AMOUNT>0</INTEREST_AMOUNT>
    <PAYMENT_AMOUNT>739.92</PAYMENT_AMOUNT>
    <AMOUNT_REMAINING_FM>739.92</AMOUNT_REMAINING_FM>
    <WITHHELD_AMOUNT_FM>0.00</WITHHELD_AMOUNT_FM>
    <DISCOUNT_AMOUNT_FM>0.00</DISCOUNT_AMOUNT_FM>
    <INTEREST_AMOUNT_FM>0.00</INTEREST_AMOUNT_FM>
    <PAYMENT_AMOUNT_FM>739.92</PAYMENT_AMOUNT_FM>
    <SELECTED_PS_TOTALS>739.92</SELECTED_PS_TOTALS>
    <SELECTED_PS_TOTALS_FM>739.92</SELECTED_PS_TOTALS_FM>
    </PARENT>
    - <PARENT>
    <PARTY_SITE_NAME>MILTON KEYNES</PARTY_SITE_NAME>
    <PAYEE>GROUP A</PAYEE>
    <INVOICE_NUM>H10001663</INVOICE_NUM>
    <DUE_DATE>07-SEP-07</DUE_DATE>
    <AMOUNT_REMAINING>66.24</AMOUNT_REMAINING>
    <WITHHELD_AMOUNT>0</WITHHELD_AMOUNT>
    <DISCOUNT_AMOUNT>0</DISCOUNT_AMOUNT>
    <INTEREST_AMOUNT>0</INTEREST_AMOUNT>
    <PAYMENT_AMOUNT>66.24</PAYMENT_AMOUNT>
    <AMOUNT_REMAINING_FM>66.24</AMOUNT_REMAINING_FM>
    <WITHHELD_AMOUNT_FM>0.00</WITHHELD_AMOUNT_FM>
    <DISCOUNT_AMOUNT_FM>0.00</DISCOUNT_AMOUNT_FM>
    <INTEREST_AMOUNT_FM>0.00</INTEREST_AMOUNT_FM>
    <PAYMENT_AMOUNT_FM>66.24</PAYMENT_AMOUNT_FM>
    <SELECTED_PS_TOTALS>66.24</SELECTED_PS_TOTALS>
    <SELECTED_PS_TOTALS_FM>66.24</SELECTED_PS_TOTALS_FM>
    </PARENT>
    My requirements for this are:
    1) To sort the table by Payee, grouping similar Payees together. This I have achieved by adding the below after <?for-each:PARENT?>.
    <?sort:PAYEE?>
    2) With the Payees grouped, to add a subtotal of each of the groups WITHIN the main table, something like this:
    Payee     Site     Amount Discount     Payment      Total Payable
    GROUP A     MILTON KE .00     70.50     .00     70.50
    GROUP A     MILTON KE .00     483.06     .00     483.06
    Subtotal= 553.46
    GROUP B     DIRECT DE .00     209.40     .00     209.40
    GROUP B     DIRECT DE .00     209.40     .00     209.40
    Subtotal= 418.80
    ..etc
    Totals          GBP     40,519.87     .00     .00     40,519.87     .00     40,519.87
    I am having trouble with getting this subtotal of each group to be within the table. My Psuedo-code I was thinging of was:
    Declare variable sub_total = 0
    Declare variable temp
    For-Each Row
    temp = this_row_payee
    if(temp = next_row_payee) then
    sub_total = sub_total + Total_Payable
    Output this row
    else
    Output the subtotal
    temp = next_row_payee
    sub_total = 0
    end if
    End For-Each Row
    I have tried using the for-each-group and using the Sum with current_group() but I am new to XML Publisher and would greatly welcome any feedback.
    Thanks!
    Mark

    I have solved it, many thanks for your reply which has provided me with the solution.
    <?for-each-group:PARENT; PARTY_NAME1?>
    <?sort: PARTY_NAME1?>
    <?for-each: current-group()?>
    -- Then list the placeholder fields e.g.
    <?PARTY_SITE_NAME?>
    <?INVOICE_NUM?>
    ... etc
    <?end for-each?>
    <?sum (current-group()/TOTAL_PAYABLES)?>
    <?end for-each-group?>
    This sorts the Payees into alphebetical order and then groups, then lists every row within the group, then and at the end of the group, the total pyables field is added up and provided as a subtotal.
    Thanks,
    Mark

  • Group by ODS table

    Hi experts,
    Some doubts, please advice.
    I am trying to send aggregate value of one column in ODS table into an internal table. I am using the following code.
    select carrid connid AVG( seatsocc ) as seatsocc
    from /BIC/ODSTable
    into corresponding fields of table itab
    where fldate = sy-datum group by carrid connid
    But either because there is no header line in ODS table, or because I did use right column names in the internal table itab, I got "0" in all rows. Could anyone please tell me which is the reason of my error?
    I tried to skip "corresponding fields of table itab ", and using internal table, however, i got an syntax error.
    I saw some ABAP book using working area. Is it the only solution? I am not familiar with working area and someone told me I should be very careful of working area. what's the deal with working area? Can I append working area to an internal table?
    Any suggestion will be really appreciated.
    Jenny

    Hi,
    If your Internal table itab has someother fields other than these 3 fields that you are updating then you need to specify ‘into corresponding fields of itab’. Whereas if your itab contains only these three fields then ‘into table itab’ will work.
    Work Area is a data object that should be compatible with the line type of the Internal table. It is an interface to the entries in the Internal table.
    When you write data to internal table, the data is first written to the work Area and then transferred to appropriate entries in the table.
    When you read data from an internal table to work Area, the record is over written to the work Area and it is used in the program.
    You can also access an internal table using field symbols. In this case you do not need to copy the data into a work area. You can assign a line of an internal table to a field symbol. Ideally, the field symbol will have the same type as the line type of the internal table. Once you have assigned the entry to the field symbol, working with the field symbol has exactly the same effect as accessing the corresponding line directly.
    Regards,
    Prema

  • Assignment of activity group to work center

    Hi,
    We want to assign activity type to work center more than six,
    how we can assign activity type more than six to work center?
    i have created activity type group in klh1,
    in activity group i have assigned activity type more than six,
    How we can assign activity type group in work center?
    Regards
    Gajjen

    HI
    It is not possible to assign more tha six actvities to a cost center as per SVK defined in the WC.
    Check with the business process field for assign  with your CO guy in thw WC.
    A business procedure within an enterprise that uses resources and can involve activities from a number of different cost centers in a controlling area.
    When executing a business process, activities can be utilized for several cost centers of a controlling area.
    Check and revert
    Regards
    Anupam Sharma

  • Group by internal table

    Hi ..
    How can  I group an internal table instead of a similar field. For example I want to move internal table columns by same belnr's .

    Hi Yusuf
    Am not sure if this is what you are looking for, but please try with offset.
    Eg:
    Considering an example whereby Int.Table IT_VBAK holds VBELN(Sales Document Numbers) & Int.Table IT_OBJNR holds the Status object numbers.
    Fields in both internal tables might not match to group but field OBJNR has sales document numbers as a part.
    In this case we can go as below:
    LOOP AT it_objnr.
         READ TABLE it_vbak WITH KEY vbeln = it_objnr-objnr(10). <--- First 10 chars of OBJNR is sales document number
    ENDLOOP.
    In the above example, field lengths are different, hence we use OFFSET operations to compare.
    Considering another example, Plant is reffered as WERKS in few tables and as BWKEY in few tables in this case we can approach this way:
    LOOP AT it_marc.
         READ TABLE it_mbew WITH KEY matnr = it_marc-matnr
                                     bwkey = it_marc-werks.
    ENDLOOP.
    Hope this is what you are looking for.
    Do correct me if my understanding is wrong.
    Kind Regards
    Eswar

  • Auth group to a table

    Hi All,
    We need to assign an auth group to one of our custom table,,,can you please tell me how can I do that ??
    The only way that I know is to go to se11->utilities->table maintenance generator and there we can assign the auth group. but when I tried doing this I found that Auth group can be of only 4 character long.... but when we created the auth groups for our program we could able to create upto 8 character long.. is the auth grp for the program and table are the same? and if not is there a way where we can see what auth groups are assgined to table (as for a program we can go to table trdir)
    Thanks,
    Rajeev

    Hello
    You can use se54 to create an auth group for a custom table.
    Search the forum for more details
    Regards
    Greg Kern

Maybe you are looking for