Record with highest sy-tabix

Hi,
In an internal table I have 10 records for a field like
A
A
B
C
D
E
E
D
E
D
Is it possible to get the records D and E which has highest sy-index.
good solution will be rewarded.
Thanks and Regards,
Neerup.

Neerup,
Neerup wrote:
Is it possible to get the records D and E which has highest sy-index.
but in your question you mention as :
Record with highest sy-tabix
any ways:
just sort decending then fetch the first record then exit from loop.

Similar Messages

  • Map input schema with highest id value in the node to output schema

    <job job_reference="4444">
    <jobnotes/>
    <appointments>
      <appointment id="1" slot_id="1" slot_ref="0830-1030" slot_start_time="08:30" slot_end_time="10:30" slot_description="0830-1030" date="19/02/2014" time="" tk_rowid="7367"
    kept="" reason_code="" narrative="" status="DEL" scheme_id="1" day="4" created_by="" creation_date="19/02/2014 11:58:09" amended_by="" amended_date="19/02/2014 11:58:15"
    apb_exported="N" />
      <appointment id="2" slot_id="2" slot_ref="1030-1230" slot_start_time="10:30" slot_end_time="12:30" slot_description="1030-1230" date="19/02/2014" time="" tk_rowid="7368"
    kept="" reason_code="" narrative="" status="ENT" scheme_id="1" day="4" created_by="" creation_date="19/02/2014 11:58:38" amended_by="" amended_date="19/02/2014 11:58:38"
    apb_exported="N" />
    </appointments>
    </job>
    The above is the input schema. I need to map the elements in appointment node with highest ID to the elements in the output schema. Of the two appointment nodes above, I should only pick up one node with highest ID and map the elements of it to
    the output schema.

    My apologies for not giving the input schema right.
    <jobs>
    <job job_reference="4444">
    <jobnotes/>
    <appointments>
      <appointment id="1" slot_id="1" slot_ref="0830-1030" slot_start_time="08:30" slot_end_time="10:30" slot_description="0830-1030" date="19/02/2014" time="" tk_rowid="7367"
    kept="" reason_code="" narrative="" status="DEL" scheme_id="1" day="4" created_by="" creation_date="19/02/2014 11:58:09" amended_by="" amended_date="19/02/2014 11:58:15"
    apb_exported="N" />
      <appointment id="2" slot_id="2" slot_ref="1030-1230" slot_start_time="10:30" slot_end_time="12:30" slot_description="1030-1230" date="19/02/2014" time="" tk_rowid="7368"
    kept="" reason_code="" narrative="" status="ENT" scheme_id="1" day="4" created_by="" creation_date="19/02/2014 11:58:38" amended_by="" amended_date="19/02/2014 11:58:38"
    apb_exported="N" />
    </appointments>
    </job>
    <job>
    <job job_reference="1111">
    <jobnotes/>
    <appointments>
      <appointment id="1" slot_id="1" slot_ref="0830-1030" slot_start_time="08:30" slot_end_time="10:30" slot_description="0830-1030" date="19/02/2014" time="" tk_rowid="7367"
    kept="" reason_code="" narrative="" status="DEL" scheme_id="1" day="4" created_by="" creation_date="19/02/2014 11:58:09" amended_by="" amended_date="19/02/2014 11:58:15"
    apb_exported="N" />
      <appointment id="2" slot_id="2" slot_ref="1030-1230" slot_start_time="10:30" slot_end_time="12:30" slot_description="1030-1230" date="19/02/2014" time="" tk_rowid="7368"
    kept="" reason_code="" narrative="" status="ENT" scheme_id="1" day="4" created_by="" creation_date="19/02/2014 11:58:38" amended_by="" amended_date="19/02/2014 11:58:38"
    apb_exported="N" />
    </appointments></job></jobs>
    I should pick up details of the appointment with Higesht ID for every job. For every job one record should exist as the ouput.
    With the existing mapping, i am getting just one record as output no matter how many input jobs are there.
    Input schema has got multiple jobs and within each job there are many appointments. So in each job I should pick up the one
    with highest ID

  • Filter records with month and date

    Hi,
    i have records as follows in the table.
    custno trn_dt amount
    1 01-jan-06 100
    1 10-jan-06 200 --->
    1 15-feb-06 300
    2 15-dec-06 111
    2 15-jan-06 222 --->
    2 01-fen-06 333
    If i specify the runtime parameter as JAN-06 the output of the report should be with 2 records indicated with arrows above.
    the query should pick up the record with the highest date for a specific customer.
    in the above example for customer "1" 10-jan-06 is highest date and for customer "2" 15-jan-06 is the highest date.
    hope the requirement is clear.
    thanks in advance

    SELECT custno, trn_dt, amount
    FROM TABLE
    WHERE (custno,trn_dt) IN
    (SELECT custno, MAX(trn_dt)
    FROM TABLE
    GROUP BY custno)
    There are many examples on this in SQL and PL/SQL forum.

  • Showing error records with colors

    Hi all,
    I have requirement like,
    1. need to upload the file into Ztable ,if there  is any error in updating into the table
      it should display the record with red color in the GRID and with error text in GRID.
    How to display the records which are in error  with colors and how to get the error text why it is actually not update in table .
    Regards,
    Madhavi

    Madhavi,
    1.How are you going to update Ztable based on that you have to get error messages.
    2. To get records colored, Just check the sample program.
    Check the program and check the comments inside the program. You can come to know what to do to get the rows colored.
    REPORT  zvenkat_alv_color_row_col.
    " Declaration
    " To get color for row
    " 1.Define color variable with length 3 type char in the final internal
    "   which is displayed
    " 2.build layout structure type slis_layout_alv by specifying
    "   info_fieldname = 'COLOR' and pass layout structure thru FM REUSE*ALV*
    " 3.Poplate Final internal with color values for the field COLOR.
    "types
    TYPES:
         BEGIN OF t_pa0001,
           color(3) TYPE c,      "1.Declare this
           pernr    TYPE pa0001-pernr,
           ename    TYPE pa0001-ename,
         END OF t_pa0001.
    "Work area
    DATA:
          w_pa0001 TYPE t_pa0001.
    "Internal tables
    DATA:
          i_pa0001 TYPE STANDARD TABLE OF t_pa0001.
    * ALV Declarations
    * Types Pools
    TYPE-POOLS:
       slis.
    * Types
    TYPES:
       t_fieldcat         TYPE slis_fieldcat_alv,
       t_events           TYPE slis_alv_event,
       t_layout           TYPE slis_layout_alv.
    * Workareas
    DATA:
       w_fieldcat         TYPE t_fieldcat,
       w_events           TYPE t_events,
       w_layout           TYPE t_layout.
    * Internal Tables
    DATA:
       i_fieldcat         TYPE STANDARD TABLE OF t_fieldcat,
       i_events           TYPE STANDARD TABLE OF t_events.
    *&START-OF-SELECTION
    START-OF-SELECTION .
      PERFORM get_data.
      PERFORM color_the_row. "Populate Color like this based on ur conditions
    *&END-OF-SELECTION
    END-OF-SELECTION.
      PERFORM fieldcat.
      PERFORM layout_build.
      PERFORM dispaly .
      " Form  fieldcat
      "emphasize ===== Set this to highlight column in color
      " Value range: SPACE, 'X' or 'Cxyz' (x:'1'-'9'; y,z: '0'=off '1'=on)
      " 'X' = The column is highlighted in the default color for color highlighting.
      " 'Cxyz' = The column is highlighted in the coded color:
      " C: Color (coding must start with C)
      " x: Color number
      " y: Intensified
      " z: Inverse
    FORM fieldcat .
      CLEAR :
      w_fieldcat,i_fieldcat[].
      w_fieldcat-fieldname = 'PERNR'.
      w_fieldcat-tabname   = 'I_PA0001'.
      w_fieldcat-emphasize = 'C71'.
      w_fieldcat-seltext_m = 'Employee No'.
      w_fieldcat-no_zero   = 'PERNR'.
      APPEND w_fieldcat TO i_fieldcat.
      CLEAR w_fieldcat.
      w_fieldcat-fieldname = 'ENAME'.
      w_fieldcat-tabname   = 'I_PA0001'.
      w_fieldcat-seltext_m = 'ENAME'.
      APPEND w_fieldcat TO i_fieldcat.
      CLEAR w_fieldcat.
    ENDFORM.                    " fieldcat
    *&      Form  dispaly
    FORM dispaly .
      DATA :l_program TYPE sy-repid.
      l_program = sy-repid.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program          = l_program
    *      i_callback_top_of_page      = 'TOP_OF_PAGE'
          i_callback_html_top_of_page = 'TOP_OF_PAGE'
    *      IT_EXCLUDING                = i_extab
          is_layout                   = w_layout
          it_events                   = i_events
          it_fieldcat                 = i_fieldcat
        TABLES
          t_outtab                    = i_pa0001.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " dispaly
    *&      Form  get_data
    FORM get_data .
      DO 20 TIMES.
        SELECT pernr ename
        FROM pa0001
        APPENDING CORRESPONDING FIELDS OF TABLE i_pa0001
        UP TO 10 ROWS.
      ENDDO.
    ENDFORM.                    " get_data
    *&      Form  layout_build
    FORM layout_build .
      w_layout-info_fieldname = 'COLOR'. "Pass COLOR field name like this.
    ENDFORM.                    " layout_build
    *&      Form  color_the_row
    FORM color_the_row .
      LOOP AT i_pa0001 INTO w_pa0001.
        IF sy-tabix > 3.
          w_pa0001-color = 'C31'.
          MODIFY i_pa0001 FROM w_pa0001 INDEX sy-tabix.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " color_the_row
    *&      Form  top_of_page
    FORM top_of_page USING document TYPE REF TO cl_dd_document.
      DATA:
            l_text TYPE sdydo_text_element.
      l_text = 'xyz'.
      CALL METHOD document->add_text
        EXPORTING
          text         = l_text
          sap_emphasis = cl_dd_document=>strong
          sap_style    = cl_dd_document=>key.
      CALL METHOD document->new_line.
      l_text = 'lmn'.
      CALL METHOD document->add_text
        EXPORTING
          text         = l_text
          sap_fontsize = cl_dd_document=>medium
          sap_color    = cl_dd_document=>list_positive
          sap_style    = cl_dd_document=>key.
      CALL METHOD document->underline.
    ENDFORM.                    "top_of_page
    I hope that it helps u .
    Regards,
    Venkat.O

  • Importing to iMovie: How do I use an external usb mic when recording with the built-in FaceTime HD Camera?

    Hello all
    I'm scheduled to work with a friend this week; I'm going to help him make a simple audition DVD.  I promised him I had the necessary equipment and such.
    I was importing from the webcam using iMovie.  If I can't use my external mic to record for the video, there is more involved in the editing process.   I was hoping to record the video and audio into one package.  I'm using the built-in FaceTime webcam on my macbook pro and a ZoomH1 on usb.
    I've tried changing the audio in system preferences: input to H1.  This works when recording with audacity or anything else.  I even changed the input on FaceTime to H1.  There aren't any preferences I can find in iMovie to change the input for importing video directly from the webcam.
    How do I change the audio input for direct import on iMovie?   
    OR
    Is there something else I can do to have HD video and HQ audio captured in one video file on my macbook pro?
    I suppose I can record the video and audio separately but that is usually much more involved.  This is why I got this usb microphone lol.
    Thanks in advance,
    -Seth

    I just found using QuickTime Player to record a movie works great.  I can easily change the audio input.  iMovie is silly. lol
    If I missed anything let me know.
    Thanks
    -Seth

  • Recording fios tv to DVD recorder with tivo/fios cablecard

    ok this post is for my dad....and if ur thinking why the hack does he want a dvd recorder when they already have a tivo...don't ask my dad is kinda weird he still "tapes" shows on VHS tapes using vcr, and tapes radio shows on cassettes....then again he also still pyas his bills with a pen, a check and the us postal service.....
    anyway, I didn't know much about the world of dvd recorders before a couple days ago, so I have a few questions before and if I actually decide to get him one.
    Question 1: we currently have an HD TV with an HD tivo connected and a multistream verizon fios cablecard. My question is regarding copyright limitations....what prevents you from just recording any tv program onto dvd, as you still can onto a VHS? and what percentage of the channels/shows have this protection? like would he only be able to record from the original 12 or so broadcast channels? this is my main concern....he watched a lot of the sports channels like espn espn2 golf channel nbatv etc....
    Question 2: also, when doing my research I thought of another benefit a dvd recorder may have. I have been putting all the family home videos which are on vhs onto dvd, but it's a bit of a process. I use an external usb capture device made by Hauppage hooked up to the VCR then the computer captures it realtime and generates an mpeg video file on my hard drive, THEN I have to spend the 1 or 2 hours it takes to convert to DVD format and burn with Nero so it can be played on a regular DVD player......so....question being....
    can a standalone DVD recorder hook up to a VCR to transfer video direct to a DVD, or do you have to buy a DVD recorder with a built in VHS deck?
     Question 3: oh and someone once told me that you can only play the recorded DVD's on the recorder, and not other regular DVD players...I couldn't believe this was actually true...but was he right?
    TIA!

    Answers:
    Question 1: if the DVD recorder is connected to the TIVO there shouldn't be anything prohibiting him from recording. The signal sent out from the TIVO is an unencrypted feed that can be processed by anything (TV, VCR, DVD recorder, ETC). As long as theres no restrictions within the DVD recorder itself, you should be fine to record anything. This also means you have to record realtime (press play on TIVO and record on the DVD recorder and wait the amount of time for the event to end before pressing stop)
    Question 2: You would need to talk to the tech support for your DVD recorder. Its going to depend on what types of video streams and formats it will accept as a source
    Question 3nce again this is a question for the DVD recorder tech support, not Verizon. It depends on the file format that the recorder saevs the file as. Not only that, but different players also can read different formats. So you have to take a look at the recorder and the dvd play back device
    Anthony_VZ
    **If someones post has helped you, please acknowledge their assistance by clicking the red thumbs up button to give them Kudos. If you are the original poster and any response gave you your answer, please mark the post that had the answer as the solution**
    Notice: Content posted by Verizon employees is meant to be informational and does not supersede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or plan

  • How-To allow records with Overlapping Time from SAP R/3

    Hi guys,
    Made reference to SAP Note 336229.
    Maintained my Transfer Rules of <b>Data Source 0HR_PA_PA_1</b> to <b>Info Source 0HR_PA_PA_1</b> and all is green! Unfortunately, still <b>NO</b> data and error IDOC message is " <i>The data request was a full update. In this case, the corresponding table in the source system does not contain any data</i>."
    "<i>The extractor of the DataSource reads the master data tables of the Employee (0EMPLOYEE) and person (0PERSON) InfoObjects and makes changes to these time-dependent attributes available as headcount changes</i>"...<b>says SAP</b>
    Info Object person (0PERSON) works!!!, however Info Object(0EMPLOYEE) is giving me problem whereby <b>in SAP R/3</b> Data Source (Employee - Education and Training) 0EMPLOYEE_0022_ATTR <u>allows</u> time overlapping of records, <b>BUT BW</b> generates an error " The time interval ['99991231'/'19930104'] & (from/to) for the data records 46 and 47 overlaps in characteristic 0EMPLOYEE "
    For example, lets assume there is Employee X with the following entry in SAP R/3.
    Begin Date||| End Date ||| SubType
    01.09.2003||| 01.09.2004||| Professional Cert.
    01.09.2003||| 01.09.2006||| Degree
    SAP R/3 allows this overlapping of time records however, BW does NOT. How can I tackle this overlapping issue in SAP BW?
    With much appreciation!

    Hi guys,
      Please assist to resolve this.
      I attempted to assigned 0DATETO and 0DATEFROM to my attributes of 0EMPLOYEE, but it gives me the following error
    <b>  Characteristic 0EMPLOYEE: Attribute 0DATETO cannot be used w. time-dependent attribte</b>
    <b>  InfoObject 0DATETO cannot be used as an attribute if attibutes already exist that are time-dependent. Attribute 0ANSALARY is such an attribute. A field in the InfoObject 0DATETO is automatically generated in the master data table.</b>
      Once again, what I want is to be able to allow the Records with HighDate in R/3 into my BW Cubes.
      Please please assist !

  • How do I use a song in my iTunes library to record with in garage band on my iPhone?

    How do I use a song in my iTunes library to record with in garage band on my iPhone? Like music from my library I want to use invGarageBand to record over.

    Short answer:
    Click Hide Song(s), it is what you wanted to do...
    Long answer:
    iTunes in the Cloud is a feature of your iTunes store account that allows you to redownload or stream your past purchases. When you delete a purchased track that is downloaded to your computer (like the first one shown here) you are asked if you also want to hide the song from iCloud. This would remove it from the computer and also stop it showing up with the iCloud symbol as the other tracks from that album (which are not downloaded) do.
    If a track shows with the cloud symbol you can play (stream) it by double-clicking the title, or click the cloud symbol to download a local copy to your library. If you try to delete one of these tracks you get a slightly different message confirming that you want to hide the track. Clicking hide will remove the listing from the library and any other device that shows your past purchases.
    Should you want to retrieve any item hidden in this way at a later date use Store > View My Account > iTunes in the Cloud > Hidden Purchases > Manage.
    To hide all your previous purchases that are not downloaded to your computer use Edit > Preferences > Store and untick Show iTunes in the Cloud purchases.
    tt2

  • How can I make a report of all records with the date in the last two weeks?

    Hi!
    I have records with a date field, I want to create a report that only includes records with a date which is within the last two weeks of the system date, is this possible? Surely this is a basic database function, I would have thought, but I can find no help about it and there's very little in Mac Help about doing anything other than simple stuff with reports.
    I'm not a genius with databases, so help with any required formula or what have you would be great!

    Hi Jonathan,
    Here's a formula you can use with the Match function. 'Date' is the name of the date field, which must be a "Date" type field.
    'Date'>NOW()-14
    Match will select (highlight) all records matching the query. You'll then need to use Organize > Hide Unselected to show only the matches.
    Unfortunately, I haven't found a way to make the NOW() function work in a Find request, and neither Match requests nor Hide Unselected can be included in a recorded search, either of which would reduce repeating the report to a one-button operation.
    Regards,
    Barry

  • Is there a way for the Yosemite maps app to add address to an existing contact (in contacts app) instead of creating new contact record with blank name (not useful)?

    I was using the maps app in yosemite to look up an address, once I was able to verify the address, I wanted to add that address to an existing contact record in the contacts app.  When I clicked on the option to add address to contacts, it unfortunately creates a new record with the address in it, however, the rest of the contact is blank. 
    My question is: is there a way to prompt the user (me), to select whether they want to create a new contact or add it to an existing contact?
    Thanks in advance for your help!
    Regards,
    Peter

    I was using the maps app in yosemite to look up an address, once I was able to verify the address, I wanted to add that address to an existing contact record in the contacts app.  When I clicked on the option to add address to contacts, it unfortunately creates a new record with the address in it, however, the rest of the contact is blank. 
    My question is: is there a way to prompt the user (me), to select whether they want to create a new contact or add it to an existing contact?
    Thanks in advance for your help!
    Regards,
    Peter

  • Loading Hex Files with multiple records with each line starting with : record marker, how do I load this hex file into a front panel table ? thanks in advance, Jeff.

    I have written a routine that loads a Hex file, checks for record marker,length,address etc then loads the data into a table on front panel. However, my routine only loads single record hex files. I need to be able to load multiple record files, I need to identify the ':' colon record marker start for each record in the hex file, I just can't see how to loop my routine so that all records with ':' prefix marker are loaded.

    Jeff,
    I'm not exactly sure of what you are trying to do. Is it possible you could post your code, or a screen shot of the diagram in question, so that I can get a better understanding, and possibly offer some assistance?
    I am familiar with hex files, but not with the : marker separating records. This may be able to be solved with simple text parsing, and as I am not familiar with how you are retrieving and/or displaying the files, I require more information.
    Thanks

  • Printing only one line record with total of all items through alv

    hi experts,
    i am facing a problem while printing a list through alv.
    requirement is, suppose i have 3 line items under one document no.
    i have to print only one record with total amount of all items.more clearly...
    1001  10  1000/-
    1001  20    234/-
    1001  30   540/- these records in internal table then i am passing it to reuse_alv_grid_display.
    i need to display only 1001  1774/-(means sum of all the items)
    please tell me how to do this.
    thanks in advance,
    manasi

    hi ansari,
    contains in itab
         3000000004     02.11.2000     5550     27.95     27.95     0
         3000000004     02.11.2000     5550     10.95     10.95     0
         3000000005     02.11.2000     5550     27.95     27.95     0
         3000000005     02.11.2000     5550     10.95     10.95     0
         3000000006     02.11.2000     3020     52.99     52.99     0
         3000000006     02.11.2000     3020     64.99     64.99     0
         3000000006     02.11.2000     3020     49.5     49.5     0
         3000000007     02.11.2000     3730     2,228.00     2,228.00     0
         3000000007     02.11.2000     3730     1,698.00     1,698.00     0
         3000000007     02.11.2000     3730     532     532     0
    now please tell me how to print the data
    output will be
    3000000004     02.11.2000     5550     38.90     38.90       0
    3000000005     02.11.2000     5550     38.90     38.90       0
    3000000006     02.11.2000     3020     117.19     117.19     0
    like that
    please help me out
    manasi

  • Facing Problem in creation on Customer Master Record with reference

    Dear SAP Experts,
    I am making a New Customer master record with referenec to existing one. Account  Group """ Stock Transfer - Depot""" do not use internal no assignment, we put external no to customer code. but when we enter the customer master with reference to existing one, system shows the error.....enter a no between A001 and Z999.
    Customer Record Details-
    Account Group - Stock Transfer Depot
    Customer - 1101
    Compnay Code- 1000
    Sales Organisation - 1000
    Distribution Channel -20
    Division - 01
    Reference:
    Customer - 2001
    Comapny Code - 2000
    Sales Organisation - 2000
    Distribution Channel - 20
    Division - 01
    Error: ENTER A NO BETWEEN  A001 AND Z999
    I m not getting why system showing this type of error, should i need to configure new customer code sumwhere in IMG if yes please let me know.
    Lokking forward for your quick response on the same.
    Regards
    Parul Deshwal

    Hi Parul Deshwal,
    - The number range is created in XDN1.
    - The number range is assigned to the account group "Stock Transfer - Depot" in SAP Customizing Implementation Guide>Financial Accounting>Accounts Receivable and Accounts Payable>Customer Accounts>Master Data>Preparations for Creating Customer Master Data>Assign Number Ranges to Customer Account Groups
    Remember - If you are entering an external number it generally means the number is created in an external system and replicated to your system.
    Help - Check what external number was used last by doing SE16 on table KNA1 and use the account group "Stock Transfer - Depot" as a selection parameter.
    Best regards,
    Glynn

  • Business Partner records with large numbers of addresses -- Move-in issue

    Friends,
    Our recent CCS implementation (ECC6.0ehp3 & CRM2007) included the creation of some Business Partner records with large numbers of addresses.  Most of these are associated with housing authorities, large developers and large apartment complex owners.  Some of the Business Partners have over 1000 address records and one particular BP has over 6000 addresses that were migrated from our Legacy System.  We are experiencing very long run times to try to execute move in's and move out's due to the system reading the volume of addresses attached to the Business Partner.  In many cases, the system simply times out before it can execute the transaction.  SAP's suggestion is that we run a BAPI to cleanse the addresses and also to implement a BADI to prevent the creation of excess addresses. 
    Two questions surrounding the implementation of this code.  Will the BAPI to cleanse the addresses, wipe out all address records except for the standard address?  That presents an issue to ensure that the standard address on the BP record is the correct address that we will have identified as the proper mailing address.  Second question is around the BADI to prevent the creation of excess addresses.  It looks like this BADI is going to prevent the move in address from updating the standard address on the BP record which in the vast majority of cases is exactly what we would want. 
    Does anyone have any experience with this situation of excess BP addresses and how did you handle the manipulation and cleansing of the data and how do you maintain it going forward?
    Our solution is ECC6.0Ehp3 with CRM2007...latest patch level
    Specifically, SAP suggested we apply/review these notes:
    Note 1249787 - Performance problem during move-in with huge addresses
    **applied this ....did not help
    Note 861528 - Performance in move-in for partner w/ large no of addresses
    **older ISU4.7 note
    Directly from our SAP message:
    use the function module
    BAPI_BUPA_ADDRESS_REMOVE or run BAPI_ISUPARTNER_CHANGE to delete
    unnecessary business partner addresses.
    Use BAdI ISU_MOVEIN_CUSTOMIZE to avoid the creation of unnecessary
    business partner addresses (cf. note 706686) in the future for that
    business partner.
    Note 706686 - Move-in: Avoid unnecessary business partner addresses
    Does anyone have any suggestions and have you used above notes/FMs to resolve something like this?
    Thanks,
    Nick

    Nick:
    One thing to understand is that the badi and bapi are just the tools or mechanisms that will enable you to fix this situation.  You or your development team will need to define the rules under which these tools are used.  Lets take them one at a time.
    BAPI - the bapi for business partner address maintenance.  It would seem that you need to create a program which first read the partners and the addresses assigned to them and then compares these addresses to each other to find duplicate addresses.  These duplicates then can be removed provided they are not used elsewhere in the system (i.e. contract account).
    BADI - the badi for business partner address maintenance.  Here you would need to identify the particular scenarios where addresses should not be copied.  I would expect that most move-ins would meet the criteria of adding the address and changing the standard address.  But for some, i.e. landlords or housing complexes, you might not add an address because it already exists for the business partner, and you might not change the standard address because those accounts do not fall under that scenario.  This will take some thinking and design to ensure that the address add/change functions are executed under the right circumstances.
    regards,
    bill.

  • I am getting error message "SSL received a record with an incorrect Message Authentication Code" when trying to access a secure site

    I am having difficulty in accessing secure sites with Firefox v6.0.2 operating in Windows 7. I get the error message "Secure Connection Failed." SSL received a record with an incorrect Message Authentication Code. Error code: ssl_error_bad_mac_read. This happens will all https sites.

    It works after I disabled IPv6 in Firefox. Thank you for your help :)

Maybe you are looking for

  • After iPhoto update

    I applied the update and wham, it seemed to group all 16 of my events in the last event I loaded. Makes no sense. Albums are still there. Mike

  • How far back does a car loan show?

    I got repo'd back in 1976, and bailed on a lemon in the middle '90's. Simply put, are auto loans ALWAYS there for lenders to see or find?

  • Regarding file export

    Hi, I have some problem regarding file export from java to some word or excel. I have a Jtable in which I fill the data dynamically now I wan't to get that data into an excel sheet with just one click. Regarding .doc I am writing the file but how to

  • PS Elements 10 quits

    PS elements quits working after every photo and I have restart the software.

  • Photoshop Elements 13 Editor doesn't use the monitor description, loading a RAW-picture

    I'm using a Lenovo ThinkPad, Windows 7 pro, 64 bit. Loading a jpeg, all Parameter of the Monitor are used. Loading a RAW-file, not.