How to update Location numbers of customers using BAPI_CUSTOMERCRM_CHANGE

Hi everyone,
I would like to ask how to update location numbers 1 and 2 and check digit using this bapi,
BAPI_CUSTOMERCRM_CHANGE and what are the significance of the following parameters.
CALL FUNCTION 'BAPI_CUSTOMERCRM_CHANGE'
  EXPORTING
    I_UPLOAD_ID             =
    I_DESTIN                =
    I_SFA_REL               =
    I_KEYWORD_IN            =
    I_CUSTOMER              =
    I_ADDRESS               =
    I_ADRCHANGE             =
    I_SALESORG              =
    I_TAXDATA               =
  I_BANKCHANGE            =
    I_TRANS_MODE            =
  I_ORIGIN                =
  I_CUSTCHANGE            =
  I_SALESCHANGE           =
IMPORTING
  E_STATUS                =
  TABLES
    TI_STDTEL               =
    TI_STDFAX               =
    TI_STDTTX               =
    TI_STDTLX               =
    TI_STDMAIL              =
  TI_BANK                 =
  TI_LOADING_POINTS       =
    TI_ROLES                =
  TI_BANKCHANGE           =
  TI_ROLECHANGE           =
    TI_EXTENSION            =
    TI_SFA_KEYS             =
Thanks for helping!
Regards
Jay Ags
Moderator Message: Welcome to SCN. But please search for SAP Documentation and/or sample codes.
Edited by: kishan P on Apr 6, 2011 12:09 PM

I was facing the exact same issue and just figured out the solution: the issuing storage location is only accepted if the supplying plant is passed at the same time (in the header structure). That solved the issue for me!

Similar Messages

  • How to update software on multiple iPhones using same iTunes account?

    How to update software on multiple iPhones using same iTunes account?

    SeanB15 wrote:
    Here are more details on my situation which should help clarify things...
    I purchased three iPhone 4 models back when they first came out (for my family) that all share the same iTunes account for access to apps and music, but each phone/user still has his/her custom contact list, email accts, and select lists of apps and music from the one iTunes acct library.  The problem is (as I understand it) that I can only update the software on one of the three iPhones – the primary phone I used to setup the iTunes acct without wiping out the separate contact lists, etc. As it stands today... the first (primary) iPhone associated with the iTune acct has been updated with the latest software version 5.1.1 and sync'd up with all the apps, music, etc from the one iTune acct, while the other two iPhones are still running on the original software version 4.0.2 and are experiencing problems now. I was advised by AT&T back in January that it would be necessary to setup separate iTunes accts for the second and third iPhones in order to receive system updates and still be able to manage separate contact lists, etc. If I go this route, I assume we will lose all the apps on phones #2 and #3 that we have been "sharing"... correct? Since this AT&T advice was prior to iCloud coming out, would iCloud be a better solution or at least part of the solution? I really don't yet understand how iCloud works. Hopefully, one of you can help me??
    we have 2 iphone 4's synced to the same itunes account for apps and music since the day we bought them, but each has a different icloud acct. they have both been updated on the same itunes account with every update that has come out since we bought them in december of 2010. nothing on either phone has ever been lost or duplicated. having said all that, maybe i'm missing something here, but we have had no problems. we do have itunes setup to sync manually. i do believe i'm a piker compared to lawrence finch, but i'm just telling you what happens in my house. maybe check with apple? is there a store near you?

  • HT1349 How can I locate my stolen IPad using iCloud?

    How can I locate my stolen IPad using ICloud?

    These links may be helpful.
    How to Track and Report Stolen iPad
    http://www.ipadastic.com/tutorials/how-to-track-and-report-stolen-ipad
    Reporting a lost or stolen Apple product
    http://support.apple.com/kb/ht2526
    Report Stolen iPad Tips and iPad Theft Prevention
    http://www.stolen-property.com/report-stolen-ipad.php
     Cheers, Tom

  • How to update serial numbers in function module BAPI_GOODSMVT_CREATE

    Hi,
    Can you please let me know how to update the serial numbers for the movement type 561,563 and 565 with the material, plant,  storage location, quantity and Unit of measure values using BAPI_GOODSMVT_CREATE

    Hi,
    Can you please let me know how to update the serial numbers for the movement type 561,563 and 565 with the material, plant,  storage location, quantity and Unit of measure values using BAPI_GOODSMVT_CREATE

  • How to update old records of LIPS used user exit MV50AFZ1

    To All Experts,
    I have used User Exit MV50AFZ1 and in this user exit i updated the fields
    USEREXIT_MOVE_FIELD_TO_LIPS.
    LIPS-ETENR = VBEP-ETENR.
    Its working fine for new VL0N1 t-code, but what about old recods of LIPS table ?
    How to update old records ? Pl. guide me.
    Yusuf

    Hi Yusuf,
    See SAP Note 415716 - User exits in delivery processing, it explain how these userexits work and cautions that you must have.
    Regards
    Eduardo

  • How to UPDATE MASTER DATA RECORD PA0377 using FM HR_INFOTYPE_OPERATION

    How to UPDATE MASTER DATA RECORD IN INFOTYPE 0377 DIRECTLY using function module HR_INFOTYPE_OPERATION ? When i use operation = 'MOD'  im getting an ERROR as NO DATA STORED FOR 0377 IN SELECTION PERIOD.
           Can anyone please help me how to use HR_INFOTYPE_OPERATION to UPDATE MASTER DATA RECORD.
    Thanks,
    Karthi.

    Hi,
    please check this code
    it is very useful
    infotypes: 0105.
    parameters: p_pernr type p0105-pernr,
                p_subty type p0105-subty,
                p_begda type p0105-begda,
                p_endda type p0105-endda,
                p_opera type pspar-actio,
                p_usrid type p0105-usrid,
                p_commt as checkbox.    "Useful only when NO_COMMIT is 'X'
    data: w_return type bapireturn1,    "Error handling data
          w_key type bapipakey,         "If record has been created or changed the created/ changed
                                        "record's key (PSKEY) will be populated
          v_message type string.        "For printing returned messages
    call function 'BAPI_EMPLOYEE_ENQUEUE'
      exporting
        number = p_pernr
      importing
        return = w_return.
    if w_return is initial. "Employee is not locked
      p0105-pernr = p_pernr.
      p0105-subty =
      p0105-usrty = p_subty.
      p0105-begda = p_begda.
      p0105-endda = p_endda.
      p0105-usrid = p_usrid.
    *Calls Internally HR_MAINTAIN_MASTERDATA
      call function 'HR_INFOTYPE_OPERATION'
        exporting
          infty         = '0105'
          number        = p_pernr
          subtype       = p_subty
          validityend   = p_endda
          validitybegin = p_begda
          record        = p0105
          operation     = p_opera
          dialog_mode   = '0'
          nocommit      = 'X'
        importing
          return        = w_return
          key           = w_key.
    endif.
    if w_return is not initial.
      message id w_return-id type w_return-type number w_return-number
              with w_return-message_v1 w_return-message_v2 w_return-message_v3
              w_return-message_v4 into v_message.
      case w_return-type.
        when 'A' or 'E'.
          format color col_negative. write:/ v_message.
        when others.
          format color col_heading. write:/ v_message.
      endcase.
      call function 'BAPI_EMPLOYEE_DEQUEUE'
        exporting
          number = p_pernr.
    else.
      format color col_positive. write:/ 'Record Updated Successfully.'.
      if w_key is not initial.
        write:/ 'Key contains',
              / 'Personnel Number:', w_key-employeeno,
              / 'Subtype (absence type):', w_key-subtype,
              / 'Start date of Absence:', w_key-validbegin,
              / 'End date of Absence:', w_key-validend.
      endif.
      commit work.
    endif.
    Thanks and regards
    durga.K

  • How to get location for an address using MKMapKit framework?

    Hi
    Can anybody help me, How can I get location/coordinate from address using MKMapKit framework?
    Thanks

    You have your answer iPhone warranty is NOT international it only covers
    the county of Purchase in your case the US
    You will have to take it back to an Apple Store in the US

  • How to update bulk no of records using  Batch Update

    i am trying to insert and update records into multiple tables using Statement addBatch() and executeBatch() method. But some times it is not executing properly. some tables records are inserting and some tables it is not inserting. But I want all the records need to excute and commit or if any error is there then all records need to rollback.
    This is the code i am using.
    public String addBatchQueryWithDB(StringBuffer quries, Connection conNew,Statement stmtNew) throws Exception {
    String success="0";
    try {         
    conNew.setAutoCommit(false);
    String[] splitquery=quries.toString().trim().replace("||","##").split("\\|");
    for(int i=0;i<splitquery.length;i++) {
    //System.out.println("query.."+i+".."+splitquery.trim().replace("##","||"));
    stmtNew.addBatch(splitquery[i].trim().replace("##","||"));
    int[] updCnt = stmtNew.executeBatch();
    for(int k=0;k<updCnt.length;k++){
    int test=updCnt[k];
    if(test>=0){
    success=String.valueOf(Integer.parseInt(success)+1);
    // System.out.println(".updCnt..."+updCnt[k]);
    System.out.println("success...length.."+success);
    if(updCnt.length==Integer.parseInt(success)){
    success="1";
    //conNew.commit();
    } catch (BatchUpdateException be) {
    //handle batch update exception
    int[] counts = be.getUpdateCounts();
    for (int i=0; i<counts.length; i++) {
    System.out.println("DB::addBatchQuery:Statement["+i+"] :"+counts[i]);
    success="0";
    conNew.rollback();
    throw new Exception(be.getMessage());
    } catch (SQLException ee) {
    success="0";
    System.out.println("DB::addBatchQuery:SQLExc:"+ee);
    conNew.rollback();
    throw new Exception(ee.getMessage());
    } catch (Exception ee) {
    success="0";
    System.out.println("DB::addBatchQuery:Exc:"+ee);
    conNew.rollback();
    throw new Exception(ee.getMessage());
    }finally {
    // determine operation result
    if(success!=null && success.equalsIgnoreCase("1")){
    System.out.println("commiting......");
    conNew.commit();
    }else{
    System.out.println("rolling back......");
    success="0";
    conNew.rollback();
    conNew.setAutoCommit(true);
    return success;
    }

    Koteshwar wrote:
    Thank you for ur reply,
    I am using single connection only, but different schemas. Then I am passing a Stringbuffer to a method, and First iam setting con.setAutoCommit(false); and then in that method i am splitting my queries in stringbuffer and adding it to stmt.addBatch(). After that I am executing the batch.after executing the batch i am commiting the connectionIf I am reading that right then you should stop using Batch.
    The intent of Batch is that you have one statement and you are going to be using it over and over again with different data.

  • How can I locate missing iPhone by using the phone number?

    Hi guys, we have lost one of our iPhones but we don't have iCloud account to track the iPhone.
    Is there a way to locate the missing iPhone?
    Is it possible to use my iCloud account to locate my buddies iphone using the phone number?
    Please reply soon,
    Thanks,

    "Is there a way to locate the missing iPhone?"
    No.
    "Is it possible to use my iCloud account to locate my buddies iphone using the phone number?"
    No.
    Sorry

  • Step-by-step on how to update a friend's iPad using my computer

    Recently I was asked to update my friend's iPad.   Her old computer was not usable any more!    I was very apprehansive about doing this, as I did not want to get our "stuff" mixed up and also did not want to lose any of our "stuff".
    I posted this question on the forums and a couple people replied, and even though I got some good information, I felt that it was not enough.
    So I contacted my son, who is a whiz with computers (at least I think so!) and he gave me the following very detailed instructions on how to do the update.  It went very smoothly and worked liked a charm.
    I thought I would share it, as there might be others out there that need to help someone update their iPad with OS4 to the OS5.
    Here is what my son wrote:
    Which iOS version does she have?  iPad Settings app --> General -->About --> Version
    If she already has iOS 5 or higher, then it can all be done from the iPad... it just needs a WiFi connection to download the update.  Go into Settings app --> General --> Software Update, and follow the prompts.
    If she is starting from iOS less than 5:  [Either print this email, or have it up on your iPad for quick and easy reference]
    1. Create a user account on your computer just for her so that your iTunes and iPad settings don't get mixed up with hers.
       - System Preferences --> Users & Groups --> Click the lock, and enter your name and password for that computer.
       --> Hit the [ + ] button, and create a new account with your friends name.
    2. Apple Menu --> Logout: YourName
    3. You should see either a login/password prompt, or pictures for each account.  Click or type to login to the new friend account.
    4. Start iTunes. 
    5. Store menu --> Authorize this computer...
      - enter her iTunes email and password. You should be able to figure out the email address at least from the iPad Settings screen.  (I'm not sure where exactly to find it in iOS 4... but it will be in there as the AppleID or iTunes account or something like that.  (Try Settings--> Store.)
    She'll have to know the password -- failing that, try to recover it from http://iforgot.apple.com).
    6.  Plug in her iPad
    7.  Sync.  (Say yes to any questions about copying apps and files from the iPad to iTunes).  Say no to anything about updating the software at this point.
    (This part could take an hour or more, or maybe it's the back-up, which is step 8.)
    8.  Back-up the iPad.  (In the bar on the left in iTunes, ctrl-click the iPad, and select 'Backup...'
    9.  Now, do the iOS update... in the main iPad screen in iTunes, there should be a button to trigger the update.
    10.  Keep it plugged in to your computer, and when it's done updating, do a 'Restore from Backup' (it might do it automatically).
    11.  Sync one more time for good measure...
    -- Now it should be on iOS 5.1, so all future updates can be done over the air without a computer.
    Hope this helps!
    Geraldine

    Another way to transfer photos. You can use a USB flash drive & the camera connection kit.
    Plug the USB flash drive (works the same with an SD card) into your computer & create a new folder titled DCIM. Then put your movie/photo files into the folder. The files must have a filename with exactly 8 characters long (no spaces) plus the file extension (i.e., my-movie.mov; DSCN0164.jpg).
    Now plug the flash drive into the iPad using the camera connection kit. Open the Photos app, the movie/photo files should appear & you can import. (You can not export using the camera connection kit.)
    Using The iPad Camera Connection Kit
    http://support.apple.com/kb/HT4101
    iPad: Using iPad Camera Connector with unsupported USB devices
    http://support.apple.com/kb/ht4106
    Secrets of the iPad Camera Connection Kit
    http://howto.cnet.com/8301-11310_39-57401068-285/secrets-of-the-ipad-camera-conn ection-kit/
     Cheers, Tom

  • How to update more than one table using EO

    Hi frnds,
    Can someone provide me a doc/link which explain in detail how we can we update more than one PL/SQL tables using entity objects(on which VOs are based).
    Till date I have been doing this using PL/SQL procedures but now my requirement is to achieve it thru EO.Someone suggested me use VL to achieve plz help
    Thanks & Regards,

    Hi,
    That would be very nice of you,plz send me the docs and also send me similar docs that would be beneficial for a beginner like me.
    My id is [email protected]
    Thnx for your time.

  • How to Update the OrderStatus and OrderStatusAudit using BPEL

    Hi,
    I was working on OrderStatus schema using the BPEL.
    In this I have two tables namely OrderStatus and OrderStatusAudit.
    I have Inserted a new Order into both tables. In case I want to update the existing order number in both the tables what I need to do is It must simply Update existing row of the Ordernumber in the OrderStatus table since in this table OrderNumber is primary key.
    But in the OrderStatusAudit table each time when I was updating an existing ordernumber it must insert a new row underthe same Ordername because here the Ordernumber is not the Primarykey.
    (ie) The OrderStatus table should have the Current status of the ordernumber in a single row and the OrderStatusAudit table should have the entire details of what happened eachtime for the same ordernumber.
    My schema for OrderStatus is
    OrderNumber
    OrderStatus
    CreatedDate
    CreatedBy
    ModifiedDate
    ModifiedBy
    My schema for OrderStatusAudit is
    OrderNumber
    OrderStatus
    UpdatedDate
    UpdatedBy
    It was working fine when I was checking for a single Ordernumber giving condition of Switch as particular ordernumber.
    If the Ordernumber is same as in Switch condition it will update the existing row in OrderStatus and insert a new row in OrderStatusAudit and if it is not same as given in the Switch it will Insert a new row in both the tables.
    How can I acheive the same updation if there are many ordernumbers to be updated.
    It must to be done in a single BPEL.
    Please help me.
    Regards,
    Mahes.

    Hi,
    For example you can create a simple BPEL Process and you can throw an error during running process. If input data is not valid and format is not correct you can throw error using throw activity and using catch activity you can catch particular error. The catch-all will handle all the error occurred with the scope.
    you can also refer faulthandling section in the link for more information related to exception handling.
    http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/faults.htm#sthref1188
    Regards,
    Deepa

  • How to update locate database?

    Hi Folks,
    Loving arch so far... but struggling to get the locate Db to update.
    The docs in the wiki suggest locate -u but this is failing with:
    locate: invalid option -- u
    It's also not working the same way as on Darwin / RH,
    Thanks,
    Steve

    Hey Steve,
    Have you tried "sudo updatedb".  If you're not using sudo you might have to go in as root user.
    Good luck!
    -y0sh3

  • How to update my iPad's App use computer's iTunes

    My iPad have some app need to update, I can't get Wi-Fi, I only can use usb to computer, but I found the new iTurn can't find somewhere to update the app.
    Please tell me how to use computer's iTunes to update my iPad's App.
    Thank you!

    If you are on iTunes 11 on your computer then you may want to re-enable the left-hand sidebar via View > Show Sidebar (option-command-S on a Mac, control-S on a PC), which might make it easier to navigate and my instructions may make more sense.
    If you haven't already downloaded the updates to your computer's iTunes then select the Apps part of your iTunes library and click the Check For Updates button at the bottom of it. When they've downloaded, select the iPad 'device' on the left-hand sidebar and on the right-hand side on the Apps tab click the Sync button at the bottom right of it - that should copy the updates over and onto your iPad

  • How to update two database tables when using DatabaseProvider

    I'm a begginer and I've made an application which uses a database. In one page, I have a table which I've took it from "woodstock basic" palette. I was using DatabaseProvider to populate the table with data from a database table called "copii". My code is:
    //i'm check all the rows in the table to see if the field "IDCOPIIC" =0 and if true I will put the value of "newCopiiId"
    do {
    if (copiiDataProvider.getValue("IDCOPIIC").equals
    (new Long(0))) {
    copiiDataProvider.setValue("IDCOPIIC", new Long(newCopiiId));
    newCopiiId++;
    } while (copiiDataProvider.cursorNext());
    copiiDataProvider.commitChanges();
    My problem comes now because I have another database table tided with a foreign key by this one and I want to update this one too when I'm updating the "copii" table. I don't know how to do it ...I've tried in many ways but is impossible. Can anyone help me ! I'm desperate...I cannot figure it out how I could insert, update in two tables in the same time when I'm using DataProvider .
    Thanks in advance!

    Hmm.
    Not sure where your going with the <select> menu.
    The description you made:
    "Both have an id column, which is presumably the record's primary key, but you need to create a relationship by storing the primary key of one table as a foreign key in the child (related) table. For example, you should insert the primary key of the first table in the second table as user_id. That enables you to identify which username and password are related to an individual listed in the second table"
    Seems to be the direction that I'm looking for.
    Now my question is how do I insert the primary key of the first table in the second table as user_id?
    >
    >"For example, you should insert the primary key of the first table in the second table as user_id"
    Since both tables have an id column and they both are the primary key, do I just change the name of the second tables id column to "user_id" then?
    Or is there an actual "insert the primary key to another table" function that I don't know about?

Maybe you are looking for

  • Issue Using Remote Object services

    I have three projects 'Main','project 1','project 2'. 'Main' is a FDS project and the rest are 'basic' projects whose ouput points to the corresponding folder in 'Main'. This setup exists on the company development server as well as on my local machi

  • Which is better, Raid 0 with two hdds or 1 ssd?

    Hi, I have a macbook pro Mid 2010 with two open hard drive bays (thanks to the mce optibay.) I was wondering if it would be better to put two caviar black hard drives in raid 0 on my macbook pro, or have one vertex 2 drive as a boot/applications driv

  • How do you make the whites of the eyes and teeth brighter?

    Would someone be able to offer advice on making the "whites" of the eyes and teeth brighter or whiter? Thanks!

  • Very slow log in

    I've been having this problem for a while now and now getting tired of it. From time to time when I log in it takes at least five minutes for the finder to come out of beach ball and load the desktop folders and actually be usable. I have a clean ins

  • Can I reformat Windows without repartitioning...

    Topic says it all. I have a virus on Windows and thought I should reformat. So my question is, can I reformat by booting from the Windows XP CD and reformatting my "C:" drive and re-installing windows? Or, do I have to re-partition into 1 drive then