Best way to update RBSELBEST table for invoice

what is the best way to update RBSELBEST table for PO invoice? Is there any BAPI or FM for this?

Thanks. I tried this one also, but it does not update the table.
in case if someone used this, what parameters i need to pass for this to work?

Similar Messages

  • Best way to update custom table

    Hello experts,
    Iu2019m writing a report program and after pulling data from a custom table Iu2019m modifying certain fields within internal table and then eventually update custom table. The way Iu2019m updating custom table is working fine. However Iu2019m concern about performance issues because Iu2019m doing update on custom table within loop.
    Here is my code for reference.
    *&      Form  update_contracts
          text
    -->  p1        text
    <--  p2        text
    FORM update_contracts .
    Update record in an internal table first
      loop at izsc_compliance into wa_zsc_compliance..
        wa_zsc_compliance-zapproval = c_accepted.
        wa_zsc_compliance-CHANGED_DT = sy-datum.
        wa_zsc_compliance-CHANGED_TM = sy-uzeit.
        wa_zsc_compliance-CHANGED_BY = sy-uname.
        modify izsc_compliance from wa_zsc_compliance index sy-tabix.
        write:/ sy-tabix, wa_zsc_compliance-vbeln_new, wa_zsc_compliance-zapproval.
        if p_test is initial.
          move wa_zsc_compliance to zsc_compliance.
          update zsc_compliance.
        endif..
      endloop.
    Write records to database
      if p_test = 'X'.
        skip.
        write:/ 'Test mode'.
      endif.
    ENDFORM.                    " update_contracts
    Iu2019m not certain if there is any better way by not doing update within loop and update custom table outside this loop.
    Many thanks in advance.

    Hi,
    Yes, there is a better way to update the custom table. That will be more performance oriented and will be a much cleaner approach. As, I am not much aware of the custom table structure which you have in your program, the best way that I can suggest is to remove the update statement from that check. I guess you are checking against the mode - test or production. Once you have done the check, put the selected entries in an internal table which is same as database table. And then in a single command - a single array operation as it is commonly called, you can update the custom table.
    Have a look at the following link
    [Overwriting Several Lines Using an Internal Table|http://help.sap.com/saphelp_bw33/helpdata/en/fc/eb3a94358411d1829f0000e829fbfe/content.htm]
    [Inserting or Changing Lines|http://help.sap.com/saphelp_bw33/helpdata/en/fc/eb3ac8358411d1829f0000e829fbfe/content.htm]
    You can also scan the forum for multiple links and references and sample examples.
    Hope this will help. The above approach will be much more performance oriented and will help to optimize. Also, check where exactly you are providing the locking feature if at applicable in your business functionality.
    Regards,
    Samantak.

  • Best way to update a table with disinct values

    Hi, i would really appreciate some advise:
    I need to reguarly perform a task where i update 1 table with all the new data that has been entered from another table. I cant perform a complete insert as this will create duplicate data every time it runs so the only way i can think of is using cursors as per the script below:
    CREATE OR REPLACE PROCEDURE update_new_mem IS
    tmpVar NUMBER;
    CURSOR c_mem IS
    SELECT member_name,member_id
    FROM gym.members;
    crec c_mem%ROWTYPE;
    BEGIN
    OPEN c_mem;
    LOOP
    FETCH c_mem INTO crec;
    EXIT WHEN c_mem%NOTFOUND;
    BEGIN
    UPDATE gym.lifts
    SET name = crec.member_name
    WHERE member_id = crec.member_id;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN NULL;
    END;
    IF SQL%NOTFOUND THEN
    BEGIN
    INSERT INTO gym.lifts
    (name,member_id)
    VALUES (crec.member_name,crec.member_id);
    END;
    END IF;
    END LOOP;
    CLOSE c_mem;
    END update_new_mem;
    This method works but is there an easier (faster) way to update another table with new data only?
    Many thanks

    >
    This method works but is there an easier (faster) way to update another table with new data only?
    >
    Almost anything would be better than that slow-by-slow loop processing.
    You don't need a procedure you should just use MERGE for that. See the examples in the MERGE section of the SQL Language doc
    http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_9016.htm
    MERGE INTO bonuses D
       USING (SELECT employee_id, salary, department_id FROM employees
       WHERE department_id = 80) S
       ON (D.employee_id = S.employee_id)
       WHEN MATCHED THEN UPDATE SET D.bonus = D.bonus + S.salary*.01
         DELETE WHERE (S.salary > 8000)
       WHEN NOT MATCHED THEN INSERT (D.employee_id, D.bonus)
         VALUES (S.employee_id, S.salary*.01)
         WHERE (S.salary <= 8000);

  • Best Way To Update Intersection Tables

    Hi,
    I'm surprised I haven't been able to find anything on this,
    but I was wondering if I could get some advice as to the most
    efficient way to update an intersection table, i.e. a M:N
    resolution table.
    My example...
    Say I have a M:N relationship between tables Cars and Colors.
    To resolve, I form table Cars_Colors with Car_ID and Color_ID as
    PFK's from their respective table.
    So on my form, say we're dealing with record "Ford Ranger,"
    I'll have a bunch of checkboxes with colors, in which multiple
    colors can be selected or de-selected. How should I handle this
    update?
    Currently, I just delete all the existing colors for the
    specific car, and then re-add the list of colors from the form...
    basically a delete then insert on the table... I don't use any
    update sql. But this is a nightmare when trying to keep audit
    history on data changes in the table.
    Any advice? Thanks in advance,
    Mark

    Thanks everyone for your help. Your code samples gave me the
    start to to get this working by using CF code that produced the
    following query in Oracle 8i:
    INSERT INTO Cars_Colors (Car_ID, Color_ID)
    SELECT 2, AA.iNewColorID
    FROM
    SELECT 1 AS iNewColorID FROM dual UNION
    SELECT 2 AS iNewColorID FROM dual UNION
    SELECT 4 AS iNewColorID FROM dual
    ) AA
    WHERE AA.iNewColorID not in (
    select color_id from cars_colors where car_id =2
    )

  • Best method to update database table for 3 to 4 million rows

    Hi All,
    I have 3 to 4 million rows are there in my excel file and we have to load to Z-Table.
    The intent is to load and keep 18 months of history in this table. 
    so what should be best way for huge volume of data to Z-Table from excel file.
    If is from the program, is that the best way use the FM 'GUI_DOWNLOAD' and down load those entries into the internal table and directly do as below
    INSERT Z_TABLE from IT_DOWNLOAD.
    I think for the huge amount of data it goes to dump.
    please suggest me the best possible way or any psudo code  to insert those huge entries into that Z_TABLE.
    Thanks in advance..

    Hi,
    You get the dump because of uploading that much records into itnernal table from excel file...
    in this case, do the follwowing.
    data : w_int type i,
             w_int1 type i value 1.
    data itab type standard table of ALSMEX_TABLINE with header line.
    do.
       refresh itab.
       w_int = w_int1..
       w_int1 = w_int + 25000.
       CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      EXPORTING
        FILENAME                      = <filename>
        I_BEGIN_COL                   = 1
        I_BEGIN_ROW                   = w_int
        I_END_COL                     = 10
        I_END_ROW                     = w_int1
      TABLES
        INTERN                        = itab
    * EXCEPTIONS
    *   INCONSISTENT_PARAMETERS       = 1
    *   UPLOAD_OLE                    = 2
    *   OTHERS                        = 3
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    if itab is not initial.
    write logic to segregate the data from itab to the main internal table and then
    insert records from the main internal table to database table.
    else.
    exit.
    endif.
    enddo.
    Regards,
    Siddarth

  • Best Way to Update datbase table

    Hi, I got a customer table ZTEST , and a internal table iTAB with same structure as ZTEST.
    Currently there is 3 record for example.
    Record 1: AAA, BBB, CCC
    Record 2: DDD, EEE, FFFF
    Record 3: GGG, HHH, III
    At  beginning of program iTAB is populated from ZTEST, so iTAB get the same 3 records as ZTEST. Then,
    iTAB will possilbe get more new records/modify some old recrds/delete some old records, now iTAB is, for example.
    Record 1: AAA, BBB, DDD  (Changed)
    Record 2: DDD, EEE, FFFF (no change)
    Record 3: JJJ, KKK, LLL (new record, and the record GGG,HHH, III has been deleted)
    So, now I'd the like to make same update  tabel ZTEST to make it consistent with iTAB .
    Is there any easier / quicker way to do this (combined with INSERT / DELETE / UPDATE)?
    Thanks in advanced

    Leo,
    At the beging of the program you are extractibng the records from  ztest to itab.
    DELETE ZTEST FROM TABLE ITAB.
    After your changes .
    INSERT ZTEST FROM TABLE itab.
    Pls. mark if useful.

  • Best way to update firmware?

    Hi everyone,
    I just wanted to ask you which is the best way to update the firmware for my phone?I mean with usb cable,FOTA etc.
    Thanks in advance!
    Regards 

    Nokia seems to be comitted to improve the user experience... Its really good to know that... They have to do it to survive... BTW Nokia N78 latest firm ware is a little better. The operations seems to be fast. 
    It has just been a day with the firmware.. So far no problem... I faced a few problems while updating the USB get disconnected when the update is about to begin... but the latest software update program has all required warning... It asked me to restart my pc and my cell phone... And try again ... I did it Alas it worked ... got it updated ...
    I found a few things new :
    The icons for videos (The one in old version was better) and search are all new.
    I am from india. I brought this phone seeing the FM transmitter option. But after i brought the phone i found it missing.
    But with this software update i got the option under the music menu :-) thanks a lot nokia.
    Few problems with the camera still remains... music volume has come down a bit... the gps seems to be working a little faster.

  • Best way to update individual rows of a Table?

    I've taken a look at some examples, though haven't gotten any clarification on this.  I am looking to have something close to a listbox or table to where I can update just a single column of row values at a 1 time per second pace.  I am looking to display our data-acquisition values in a table or listbox.  The single listbox seemed to work good for this, but I was unable to use row headers to list the channel names next to the channel values.  I was thinking about connecting the cursor values of two list-boxes to do this, but didn't find any info on this for the single list-box.
    I have a few questions:
    1) I have a 1D array to where I want to use that array of data to constantly update the first column (with a multitude of rows) of a table.  I am looking for the best route so as not to take up too much processing time in doing this.
    What is the best way to update individual rows of a table?   Invoke Node "Set Cell Value" ... or is there another method?
    2) Why is it that after every other iteration the row values are erased? 
    Also, for adding additional strings to the original arrray ... is it best to use the "Array Subset" and then the "Build Array" function, or the "Array Subset" and "Insert Into Array" function?
    See the attached example.
    Thanks.
    Solved!
    Go to Solution.
    Attachments:
    Table Example.vi ‏19 KB

    Jeff·Þ·Bohrer wrote:
    2) Why is it that after every other iteration the row values are erased?
    Classic race condition.  dump the for loop and p-node and just wire the 2D array to the table terminal.!
    I'm not seeing the race condition.  What I am seeing is the table emptying after the last element was written to it on every other run.  I saw watched this with highlight execution on.
    But I'm in full agreement with just writing to the terminal.  It is a 1D array, so you will need to use a build array and transpose 2D array in order for it to write properly.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • What is the best way to update an ALV tree?

    Hello all of you
    What is the best way to update an ALV tree?
    In my case, by double clicking on a branch, a table is updated and an icon should be updated in the alv tree.
    I use the class CL_SALV_TREE
    Thanks for your help

    Call method REFRESH!

  • Best Way to Define Employee Numbering For Different Countries

    HI all
    I am working on for a project which will be for Multiple countries.But Each country has different Instances.Now the questions is What could be the Best way to Define Employee numbering for all the Regions ? As for as My knowledge goes It would be Number prefixed by Country.Then How we can have Alpha numeric in employee Coding ? We need to have Fast Formula to Ahieve this task.If any body has come across this scenario please share your thoughts .Any thoughts are greatly Appreciated.
    Cheers
    Kumar cs

    If you have each country on a different instance and you want employees to retain their employee number on transfer between countries, I believe you have two options:
    i) Use manual numbering. One recent change to the system is that you can update the numbering profile from Auto to Manual and back to Auto again. So you could potentially leverage this manual workaround when a cross BG transfer happens.
    ii) Bespoke module to export all emp numbers into a 'central repository', e.g., flat file, that can be accessed by all instances, imported regularly and then referenced by your Fast Formula. You would also need processing to determine when a person is a transfer from another BG or a new hire; probably have to be some control field on flex. Basically, this is a requirement made difficult by the decision to host each legislation on a different instance; I would never recommend clients to go down this route but I guess it's too late in your case.
    If cross BG transfers are not common, e.g., less than 5 a week, I would recommend option 1.

  • Best way to update a PRA file with changes to P6 schedule?

    Hello,
    I've spent some time looking at user manuals and video tutorials to try and become familiar with how to use Primavera Risk Analysis. I come from an @RISK user background so there were some concepts that were a little different between the two applications.
    One thing of particular interest to my company is how to use PRA with a constantly evolving and updating P6 project schedule? I know there are ways to import/export user defined fields to store the min/most likely/max values for each task. I also know that the risk register can be imported/exported from Excel. My concern can perhaps be demonstrated by this example (based on my current understanding of PRA and P6)
    1. Start PRA and import a copy of a P6 schedule. This is not a "live" link but rather a copy made for use with PRA.
    2. Set-up the risk register, link to project tasks. Set-up activity min/most likely/max, assign to a distribution (triangle)
    3. Run Monte Carlo simulations, review results etc.
    4. At this point I could export the min/most likely/max durations back to P6 as user defined fields and I could update the duration in P6 with the most likely. I'm not sure what would happen with risk activities that created new project activities but I assume they would import as new tasks to P6?
    After going through steps 1-4, the P6 schedule might continue to evolve further with new tasks, new dependencies, new durations, etc. At some point, I may be asked again to perform another risk analysis on the project and here is where my question comes in: Do I have to start all over and import everything into a new PRA? I know that I could get the min/max most likely from P6 user defined fields, I know I could import the risk register from Excel but are there other things that I would lose by having to start over (for example, links between risks in the risk register and the tasks in the P6 schedule?) Or... is there a way to re-use an existing PRA file and update the P6 schedule while preserving the info (like risk register, etc.)?
    Thank you for your reply

    >
    This method works but is there an easier (faster) way to update another table with new data only?
    >
    Almost anything would be better than that slow-by-slow loop processing.
    You don't need a procedure you should just use MERGE for that. See the examples in the MERGE section of the SQL Language doc
    http://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_9016.htm
    MERGE INTO bonuses D
       USING (SELECT employee_id, salary, department_id FROM employees
       WHERE department_id = 80) S
       ON (D.employee_id = S.employee_id)
       WHEN MATCHED THEN UPDATE SET D.bonus = D.bonus + S.salary*.01
         DELETE WHERE (S.salary > 8000)
       WHEN NOT MATCHED THEN INSERT (D.employee_id, D.bonus)
         VALUES (S.employee_id, S.salary*.01)
         WHERE (S.salary <= 8000);

  • Best way to update a solaris jumpstart OS image.

    Hi all,.
    Ive been recently building some v240's but have run into trouble with the rather out of date 02/02 instance of Solaris 8 (yes, i did say solaris 8 - it's a political thing..)
    Anyhow, I have cd images of Solaris 8 02/04 and have a copy of the Sun Blueprints Jumpstart book by "Howard and Noordergraph".
    On page 92, it says to use the "setup_install_server" script with the -b option for /jumpstart/OS/Solaris-xx-xx-xx.
    Ive done that without any probs, then it goes on to say if you want an install server do the same command again without the -b switch.
    Problem is that it spews out this message.
    733 root&#64;bbs00080 # ./setup_install_server -b /jumpstart/OS/Solaris_8_02-2004/
    Verifying target directory...
    setup_install_server:
    The target directory /jumpstart/OS/Solaris_8_02-2004/ is not empty. Please choose an empty
    directory or remove all files from the specified directory and run
    this program again.
    So i chose an empty directory and it goes and does it.
    Is this an errata?
    I already have /jumpstart/OS/Solaris_8_02-2002/ and I wanted to update the files so that I can boot the v240r.
    Except 02/02 doesnt let me do that as it doesnt support the v240r arch.
    Sun told me this, but I'm lost because my existing profile for this box, lists all the packages I want to install, but it whinges about not being able to find a .cdrom toc file.
    I already have three flash archives which i created from good builds from 02/02, in my rules file which work, but this pesky update for the 240r is getting to be a little tricky.
    So far, ive tried copying all the packages from 02/02/Products directory into 02/04/Products but some of them don't install despite being there.
    Can anyone suggest the best way to update my 02/02 with the 02/04 boot loader for the v240?
    Thanks in advance and sorry for any confusion.
    D.

    I'm sorry. I meant. Say my array of x positions is 3, 4, 9. I change 9 to 30. How can I make the polygon see that change?

  • What is the best way to follow the scenario for Out look integration with share point using SAP Gateway?

    1)what is the best way to follow the scenario for Out look integration with share point using SAP Gateway?
    2)workflow concepts for Purchase order?
    3)Email triggering from out look for an approval process of PO? how these scenario can be best implemented with updated functions in Duet Enterprise.

    Hi,
    I do not have much idea on gateway integration with outlook but found out this document GWPAM Workflow Template which can be helpful for you to start with.
    also you may want to post your question in SAP Microsoft Interoperability forum
    Regards,
    Chandra

  • Best way to update audio files in library

    I have quite a few audio files in the library for a Captivate project.  I just modifed a bunch of them, and I am wondering the best way to update the library.
    If I delete the files in the library, I lose all the links to which audio went with which slide.
    If I go into each slide and replace the audio, that is more time consuming, and still a problem when the old audio file is still in the library
    I don't see an option for directly replacing the audio in the library; if I put the new version (same name) it just adds it with a (2), i.e. audioclip and audioclip(2)
    The update option does not give me what I need, unless I am missing something.  First of all, I am using both a Windows computer at the client site, and my own Mac, so the paths are different.  To use the update I would have to update the path for each audio file, which is more trouble that updating every file manually.
    Any ideas?
    Thanks.

    Hi there,
    The recommended way is to go to that slide and import the slide audio again, new audio will replcae the old.
    Once you have replaced all the audios, the audio files that are not in use in the project will still show up in Library.
    You can get rid of all unused items from the library, by clicking on the icon for unused icon and then delete icon:
    Thanks.

  • Best way to update drivers?????

    I'd like to get advice on the best way to update my MB drivers.
    If I update my NVIDIA nForce4 System Driver, does that update my AMD 64 4000+ CPU? or do I need to go to AMD's site and get that update??????
    I'm new to this building PC's so please bear with me.  Thanks==db

    No, it does not update the drivers for your CPU, you have to go to the AMD site to get the drivers for the CPU, and also get the drivers from nVidia.
    Be well....

Maybe you are looking for

  • Wireless keyboard does not work after waking up from idle

    After MacBook Air went to sleep, wireless keyboard does not properly connect to MacBook - I can wake the MacBook up, but meaningless numbers are sent, and I cannot type in my password. Have to "open" MacBook, and use keys - disconnect and re-connect

  • Sort a row in Numbers for iPad

    I have a list of names along the header row of a table in Numbers for iPad. I'd like to put them in alphabetical order from left to right. Bearing in mind that I'm a newby to apple, could anyone help? (If I were using MS excel I'd use sort data and s

  • JPG to DNG mistake

    I was messing around with importing fresh install of LR 1.1 and ended up converting jpg to DNG for some files. Other than they are much larger is their any other issues. If I export as JPG high quality will they be the same or should I go looking for

  • Default IdentityAsserter doesn't get X509 certificate

    I'm use JAAS on the client side to grab a certificate and login. Subject.doAs() runs an action that performs a JNDI lookup of a remote interface. Isn't the subect serialized and sent the the server and shouldn't the default identity server be called

  • Problem in using formulaes

    Hi All, There are 3 columns (Formulas), Formulae 1: KF1KF2KF3 Formulae 2: NDIV0 ( 'KF 4'  %A  'formulae 1' ) this comes in terms of % Formulae 3: NDIV0 ( NOERR ( 'Formulae 2 (%)'  *  'Formulae 1 ($)' ) ) / 100 in the 3rd column (Formulae 3) the formu