How to get customer and update them to KNVV from customer mastrer?

Hello Friends,
I have a requirement to check customer and then update them.
I have a customer numbers in my internal table iIT_KUNNR.
I want to check how many customers are from the IT_KUNNR are in the KNA1 and how many are not in kna1.
if some of them are in kna1 then check for how many of them are in KNVV table.
If some of them are in already in KNVV then UPDATE those else INSERT remaining to KNVV.
So, Is there any function modules for these check and get records?
Regards,
RH

hello there ,
try this way
1.loop at it_kunnr into ls_kunnr(header line)
select single kunnr
into kna1-kunnr
from kna1 where
kunnr = ls_kunnr-kunnr.
if sy-subrc = 0.
select single kunnr
from knvv
knvv-kunnr
where  kunnr = ls_kunnr-kunnr.
if sy-subrc = 0.
  update <here>
else.
<insert <here>
endif.
endif.
endloop.
Edited by: BrightSide on Mar 3, 2009 11:20 PM

Similar Messages

  • How to get new and updated data into LO Excel in Xcelsius

    Dear Experts,
    I have created dashboard on top of webi report by using Live-Office connection. Latest data of webi report is imported into excel and mapped data with components and generated SWF file and exported into server.
    To day my webi report has latest instance with new and updated data. But until unless by clicking "Refresh All Objects" i am not getting updated data into excel.
    When i am trying to open dashboard in BI Launch Pad/CMC it is showing data whatever exist in excel(i.e yesterday data). But here we need to show data of latest instance of webi report.(i.e New and updated data as of now).
    I have selected option "Latest instance: From latest instance scheduled by" in "refresh options".
    My Question & Doubts:
    1) Is it mandatory to open dashboard every day and need to click on "Refresh All Objects" to get updated data into excel or dashboard.
    2) Is there any option to automate this process.
    Regards,
    PRK.

    Hi,
    Schedule the webi report to get the latest data from the source. To answer your query no is doesn't require to open the dashboard every time to refresh the excel to get the latest data.
    Please use the Refresh Before Components are Loaded: Select this option to refresh the data each time the model loads and to use that data as the initial data for the model (using a Reset Button component, it will reset the data to the values from the last time the model was loaded).
    You are using the Live Office  so here automatic refresh is not possible without touch the swf file, you need to use the refresh but to get the latest data. If you are using QAAWS, Web Service & XML then automatic refresh is possible.
    For more information please check the below document for in-depth idea on the design pattern.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b02e31fb-3568-2e10-e78f-92412c3c0a96?overridelayout=t…
    Kindly revert for more clarification!!!
    --SumanT

  • How To : Get subdirectories and show them in a JList()

    Hello again ..
    Some of you might have noticed it: I already had a question yesterday.
    Today it's a problem of the same kind. This time there are Dukes assigned to it !
    The problem :
    - I'm pretty new to Java ( following a course @ school for 2 months now)
    - I'm working on an application that gives me a view of all the movies I have in a directory.
    What I want : My application has to search in that directory ( "D:\\Movies\" ) and display the name of each subdirectory in a JList()
    (don't forget that I need the full path saved somwhere so that I can open it later. Why? So that I can watch the movie by just clicking on a button)
    What I do now is: Fill a Db with all the details and then put it into a JList --> .equals("NOT THE BEST WAY ME THINKS");
    Any ideas/tutorials ...
    Thanks

    I told you I would read it later but I forgot :X
    I've read it now ... and to create the list I just use this :
    public String[] setListTitles()
              File directory = new File("D:\\Movies\\");
              if(!directory.exists())
                   return null;
              return directory.list();
         }I'm also using a JFileChooser someone recommended me on this forum. First time I use this and it causes problems hehe
    public void chooseDirectory()
              JFileChooser chooser = new JFileChooser();
              chooser.setDialogTitle("Choose The Directory That Conatains The Movies");
              chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
              chooser.showOpenDialog(this);
              System.out.println(chooser.getCurrentDirectory());
         }I've learned all methods of that class and ... when I select for example : D:\Movies\ ---> It prints D:\
    What am I doing wrong AGAIN?
    Thanks

  • How to get Header and footer in PDF file from a report program

    I am generating spool from ALV GRID DISPLAY. Only the body of a report is coming in the SPOOL. I mean content of the TOP_UP_PAGE event is not coming in the SPOOL. Please suggest me.
    Coding I am pasting here.
    * Begin of modification(+) by I080845 ( Prasanta Maiti ) 12/23/2011 Defect# 17821
        IF sy-batch IS NOT INITIAL
    * Begin of modification(+) by I080845 ( Prasanta Maiti ) 01/19/2012 Defect# 18155
        and i_final is NOT INITIAL.
    * End of modification(+) by I080845 ( Prasanta Maiti ) 01/19/2012 Defect# 18155
    * The print parameters are retrived and validate
          CALL FUNCTION 'GET_PRINT_PARAMETERS'
            EXPORTING
    *           ARCHIVE_TEXT          = c_check
    *           AR_OBJECT             = c_check
    *          ARCHIVE_REPORT         = c_check
    *          COVER_PAGE             = c_check
              in_archive_parameters  = v_arcpar
              in_parameters          = v_pripar
              destination            = 'LOCL'
              layout                 = 'X_65_512/2'"c_layout
              line_count             = '65'  "60
              line_size              = '1024'
              no_dialog              = c_check
            IMPORTING
              out_archive_parameters = v_arcpar
              out_parameters         = v_pripar
              valid                  = v_val
            EXCEPTIONS
              archive_info_not_found = 1
              invalid_print_params   = 2
              invalid_archive_params = 3
              OTHERS                 = 4.
    IF v_val  NE space AND sy-subrc = 0.
            v_pripar-prrel = space.
            v_pripar-primm = space.
            NEW-PAGE PRINT ON NEW-SECTION PARAMETERS v_pripar
            ARCHIVE PARAMETERS v_arcpar NO DIALOG.
            NEW-PAGE.
    **    displaying output in PDF
    *    PERFORM f_show_record.
    *   ALV Display
            PERFORM f_alv_display.
            NEW-PAGE PRINT OFF.
            CALL FUNCTION 'ABAP4_COMMIT_WORK'.
          ENDIF.
          IF NOT sy-spono IS INITIAL.
            "Declarations
            v_spool_id = sy-spono.
    * Checking the flag for too large spool
    *    IF v_too_large IS INITIAL.
            CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
              EXPORTING
                src_spoolid              = v_spool_id
                no_dialog                = space
              IMPORTING
                pdf_bytecount            = v_bytecount
              TABLES
                pdf                      = i_pdf
              EXCEPTIONS
                err_no_abap_spooljob     = 1
                err_no_spooljob          = 2
                err_no_permission        = 3
                err_conv_not_possible    = 4
                err_bad_destdevice       = 5
                user_cancelled           = 6
                err_spoolerror           = 7
                err_temseerror           = 8
                err_btcjob_open_failed   = 9
                err_btcjob_submit_failed = 10
                err_btcjob_close_failed  = 11
                OTHERS                   = 12.
    Edited by: Thomas Zloch on Feb 10, 2012

    Hi,
    Try with ALV LIST DISPLAY. I dont thing so its possible with ALV GRID DISPLAY.

  • How Adobe gets DATE and its format?

    Hello,
    I am getting current (todays) date by using below JS in some flds, and by using below FormCalc for some flds into my_form,
    JS:
    var currentTime = new Date()
    Form Calc:
    $.rawValue = num2date(date(), DateFmt(MM/DD/YYYY))
    But, i dont have much idea that how adobe is getting this date? For my company this is the very first form, hence they are asking me how adobe gets date and its format whether,
    1) From local IP/Interner provider address's date, format?
    2) or user PC/laptop's LOCAL settings date, format? if so, for example, if Germany user (Laptop settings) has a DD.MM.YYYY configured, if this user comes to US on a busines trip and if that user opens the form, then how the date looks like for this user? as per user laptop settings DD.MM.YYYY or local internat provider date format MM//DD//YYYY?
    Thank you

    Hi,
    the date() function returns the number of days since 01.01.1900 for the local date of the current system (related to the system clock of the OS).
    If you travel from Germany to the US but don't update your date/time settings, then it returns the same date in the US as in Germany.
    You can check the behavior by changing your local date/time setting or the timezones.

  • HT4962 Any ideas how to get my software updated on my IPOD 3rd Generation when my computer times out?  I have tried several times and it appears to take 30 plus hours. How Frustrating, not to mention the kids are too!

    Any ideas how to get my software updated on my IPOD 3rd Generation when my computer times out?  I have tried several times and it appears to take 30 plus hours. How Frustrating, not to mention the kids are too!

    If the iTunes purchases are not in your iTunes library you can redownload them by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    If you restore from backup, not that synced media like apps and music are not included in the backup and thus if those items are not in the iTunes library they can't be restored to the iPod during the latter part of the restore process.

  • How can I get the last updated email address of the customer ??

    Dear All,
    Please let me know, How can I get the last updated email address of the customer ??
    Also, I am trying to read CDHDR table where OBJECTCLAS is ADRESSE, however what value should be passed into OBJECTID field, looks like it is ADRNR with a Suffix BP.
    Please confirm me what value should be passed into OBJECTID field.
    Thank you.
    Anitha

    Hi Anitha,
      Check if this is something that helps you:
    Change documents in BAS
    CDHDR
    address type 1
    objectclass = ADRESSE             
    objectid = addrgroup + addrnumber     (ADRC-ADDR_GROUP + ADDRNNUMBER) !!
                     'BP  000xxxxxx'
    private address (address type 2)
    objectclass = ADRESSE2
    objectid =  'BP  000xxxxxx000yyyyyyy'   
                            persnumber+adrnr private
    address type 3
    objectclass = ADRESSE3
    objectid =  'BP  000xxxxxx000zzzzzzz'
                              persnumber +comp.address
    The above details is from the link: http://wiki.sdn.sap.com/wiki/display/ERPLO/LO-MD-BP
    Regards,
    Swarna Munukoti

  • I have lost sound on my iPad in apps unless I use headphones ,does anyone know how to get sound back without them .I have used the mute volume on the bar at bottom of screen and the slider volume control there only shows when headphones are plugged in !

    I have lost sound on my iPad in apps unless I use headphones ,does anyone know how to get sound back without them .I have used the mute volume on the bar at bottom of screen and the slider volume control there only shows when headphones are plugged in !
    I also tried resetting settings all to no avail ...I looked up some advice and watched utube video advice on how to fix without success..
    The volume control button on side does not work ,I got the iPad last August and wonder if it is a fault that means I must return it for replacement from where it was purchased ?

    The Retrospect you used way back when is no longer around. The company was sold and that company produced a new version of Retrospect - Retrospect 8.x
    So, as you've been told, you would have to be running a Tiger system with an old version of Retrospect software (5.x or 6.x - you would need to know) assuming you can find the software.
    As best I can remember you cannot extract files from a Retrospect backup except using the software since Retrospect did not normally make a file by file backup rather it created an archive of the files in the backup. I'm assuming that the EMC/Retrospect people have told you that old Retrospect backups are not accessible by Retrospect 8.x?

  • How to get Capacity And Custom Attribute Data Through Powershell

    how to get Capacity And Custom Attribute Data Through Powershell

    Hi Nitesh,
    Great command from Martin.
    Also find a article to configure the Quota:
    http://technet.microsoft.com/en-us/library/aa998353(v=exchg.141).aspx
    Thanks
    Mavis Huang
    TechNet Community Support

  • :)- I canceled the update from Snowleopard to Lion by cleaning my keys ^^. Hit the wrong key i thing. Now i'm very weird ...only can start in Windows and dont know how to get my Lion Update now...Cant start in Mac OS X (Snowleopard) now :((

    Hey Folks...i'm totally ****** off !
    ^^
    I canceled the update from Snowleopard to Lion by cleaning my keys ^^. Hit the wrong key i thing. Now i'm very weird ...only can start in Windows and dont know how to get my Lion Update now...Cant start in Mac OS X (Snowleopard) now
    Please tell me what i have to do know
    greets
    < Edited By Host >

    Hello fuchs (guess), If you cancelled while downloading the 4GB Lion, no problem, download again. Snow Leopard should run (start holding the option key).
    If you cancelled during the install process, I do not know. In this case you could try to start with the CMD + R keys pressed, and choose the restore, which may work if the creation of the restore partition of Lion has finished.
    If that does not work, reinstall Snow Leopard with the CD (start holding the C key), after that download the Combo Update 10.6.8 to update the Snow Leopard completely, then redownload Lion (App Store, click "purchases" while holding the Option Key, find Lion, click "install"). If you want to have your own copy of the Lion installer, you have to copy the installer to a Memory stick or burn to DVD before you install, see else where.
    Lex

  • How to get the latest credit limit values per each customer in the report.

    Hi All,
    Can anybody give me an idea on how to get the latest credit limit values per each customer in the report.
    I have below requiremnt.
    I have cube which is having transactional data on document and customer level .and it also having master data info object in the cube which is credit management view having all the customer numbers .
    This credit management view is master data info object having credit limit key figure as attribute.These credit limit are per each customer.
    So we need these credit limits in the report as dynamic values .(I mean whatever be the current credit limit in the master data table for that paricular customer that should show up in the reporting).
    one more thing these credit limits should roll up correctly at the HTR level.
    One HTR having number of customers .
    for example HTR 100 can have customer number 200,300,400.
    Those 200,300,400 customer credit limits should roolup correctly at the HTR 100 level.
    Example below :
    Cube DATA :
    HTR Customer Doct number Credit managment view
    100 200 10001 200
    100 200 10002 200
    100 300 10004 300
    100 300 10005 300
    100 400 10006 400
    100 400 10007 400
    100 400 10008 400
    Master data tabel (P Table)(Credit managment view)
    Credit managment view Credit limits
    200 1000.00
    300 50000.00
    400 90000.00
    Please remeber :
    We can not make these credit limits as navigational becasue these are keyfigure attributes not characteristics.
    one more thing we can not make them as charatistics because we need use these credit limits to derive other calkculation. so it is not possibel to derive calculations on charactristics .

    Create a formula variable of type replacement path with reference as attibutes of Credit management view and choose your key figure credit limit,say zcredit.
    Now create a formula or CKF and use zcredit.
    This should display the credit limit in your report as normal key figure.
    I didnot get this part "one more thing these credit limits should roll up correctly at the HTR level.", may be the above will solve this too.Try it.
    Hope this helps.

  • Get and update information of service from osb by wlst/jmx

    I want to get some information of business service or proxy service,fox example endpoint URI, and update them ,use jmx.
    how to do?
    thanks.
    Edited by: iseeyou on 2012-2-24 上午12:41
    Edited by: iseeyou on 2012-2-26 下午7:36

    @phanai, are you using PHP? If so, you'll want to see this document: <http://www.rootmanager.com/iphone-ota-configuration/retrieving-iphone-response -with-php.html>

  • I am trying to update my iphone 3GS software but itunes just says that this is the current version of itunes, it does not see the phone update - anyone know how to get the phone updated?

    I am trying to update my iphone 3GS software but itunes just says that this is the current version of itunes, it does not see the phone update - anyone know how to get the phone updated?

    Mike
    I have done that and it is through pressing that update, which tells me that there is anew version of iphone software, that the prompt comes telling me that this is the current itunes?

  • How do I get games and music on my phone from iTunes

    How do I get games and music on my phone from iTunes

    See here  >  http://support.apple.com/kb/HT1386
    From Here  >  http://www.apple.com/support/iphone/syncing/

  • I was updated my Iphone 4s from computer(ITunes).ITunes get error and update failed.(When Iphone is preparing.).And now ı can't use my IPhone.At the screen there is a USB cable and up of the screen there is ITunes' logo.PLEASE HELP!

    I was updated my Iphone 4s from computer(ITunes).ITunes get error and update failed.(When Iphone is preparing.).And now ı can't use my IPhone.At the screen there is a USB cable and up of the screen there is ITunes' logo.PLEASE HELP!

    Read what i say. Put iPhone in DFU mode. Connect with USB cable and restore.
    Read:
    http://www.apple.com/support/iphone/assistant/restore/

Maybe you are looking for