Vendor address change

Hi All,
I want change the vendor address using bapi_addressorg_change.
Please give me the example.
regards,
rakesh.

Change, delete and add a telephone number
DATA: objtype LIKE bapi4001_1-objtype,
obj_id LIKE bapi4001_1-objkey,
obj_id_ext LIKE bapi4001_1-extension,
context LIKE bapi4001_1-context,
address_number LIKE adrc-addrnumber,
bapiadtel LIKE bapiadtel OCCURS 0 WITH HEADER LINE,
bapiadtel_x LIKE bapiadtelx OCCURS 0 WITH HEADER LINE,
return LIKE bapiret2 OCCURS 0.
Assign the following object type and object key to a main customer
address
objtype = 'KNA1'.
obj_id = <customer number>.
obj_id_ext = ' '.
context = '0001'.
Get existing data by calling, e.g. FM 'BAPI_ADDRESSORG_GETDETAIL'
Enter the reference structure data
The telephone number with serial number '002' is to be deleted and
the one with serial number '003' updated
CLEAR: bapiadtel, bapiadtel_x.
bapiadtel-consnumber = '002'.
bapiadtel_x-updateflag = 'D'.
APPEND: bapiadtel, bapiadtel_x. "Delete entry
CLEAR: bapiadtel, bapiadtel_x.
bapiadtel-consnumber = '003'.
bapiadtel-extension = '77733'.
bapiadtel_x-extension = 'X'.
bapiadtel_x-updateflag = 'U'
APPEND: bapiadtel, bapiadtel_x. "Update entry
CLEAR: bapiadtel, bapiadtel_x.
bapiadtel-telephone = '06227'.
bapiadtel-extension = '11111'.
bapiadtel_x-updateflag = 'I'.
APPEND: bapiadtel, bapiadtel_x. "Insert new entry
call change module
CALL FUNCTION 'BAPI_ADDRESSORG_CHANGE'
EXPORTING
obj_type = objtype
obj_id = obj_id
obj_id_ext = obj_id_ext
context = context
IMPORTING
address_number = address_number
TABLES
bapiadtel = bapiadtel
bapiadtel_x = bapiadtel_x
return = return.
Errors and warnings are in the RETURN table. If successful, the
organization address and its communication data are now updated
in the system.
The adress number is in the ADDRESS_NUMBER field.
Notes
To delete, e.g. a telephone number in the table of existing telephone
numbers for an address, the 'UPDATEFLAG' field in the associated reference structure line must contain 'D'.
To create an entry, this field must contain 'I' and the data to be inserted must be passed.
All new lines to be inserted (I) and their reference structures must be after all entries to be changed (U) and deleted (D).
Change data key fields must always be filled, and are taken intoaccount as far as possible. It is not significant whether, e.g. alltelephone number comments are followed by fax number comments as changedata, or vice versa; only the sequence among entries with the same key
is significant, unless you pass only some or no communication address or comment serial numbers, in which case the data sequence issignificant .
The key fields are:

Similar Messages

  • VENDOR ADDRESS CHANGE BY PERIOD SPECIFIC

    HI,
    We have an requirement with same vendor Code the different Address need to be maintained by Period Specific. For example:
    Vendor Code: 1000001
    Period: 01.04.2007 to 02.04.2008
    Address 1
    Peiod: 03.04.2008 to 31.12.2008
    Address 2
    Since by chaging this Address with same vendor code the existing transaction should not affect for the previuos period.
    Any Body can throw light on this.
    Tks
    Mani.

    hi
    you can do this ,use MK12 where you can maintain planned changes
    enter ur vendor
    enter the date from which you want to make changes
    and select type of data you want to change
    hopes this will solve ur problem
    reward points if helpful
    regards
    chetan

  • "Error in Process" for POs after changing Tax codes and Vendor address

    All,
    We are in extended classic scenario and we have 2 POs with status "Error in Process"
    PO 1:
    The PO was ordered with 3 line items, Confirmed, Inovoiced. Later our accoutnig team realized there should not be tax for one of the line item in the PO. So they created Credit memo and asked our purchasing dept. to change PO from Taxable to Tax except.
    Now the porblem is, when PO chages to tax except in SRM, it is going to "Error in Process".
    What could be the reason?
    PO 2:
    The PO have 10 line items and Confirmed, No invoice is generated.
    Now the Purchsing want to change vendor address in the PO, they changed the vendor address in the PO.
    Now the porblem is, when PO changes in SRM, it is going to "Error in Process".
    I checked the RZ20 Traansaction in SRM, both POs have same errors:
    Backend application errors "Indicator for GR-based invoice verification used not allowed"*
    We removed 'Confirm Performance of Service/Goods Receipt' tick mark for the PO in SRM under follow on documents and it is throwing error saying it must be checked.
    Did any one got this error, what i need to check for this errors?. any help?
    Thanks
    Rams

    Hi,
    Once the PO is created . Confirmation made and invoice .Tax change will not be allowed.
    First reverse the Invoice.
    Cancel the confirmation
    then change in the P.O
    Do the Confirmation and invoice it will allow
    Regards
    G.Ganesh Kumar

  • Change of vendor address in PO

    Hello,
    Problem:  End user can change the Vendor address at the time of creation of PO.
    According to me the system fetch all vendor details in PO form vendor master.
    In reference of above issue i want to put a check in the system so that end user cannot able to change any information which comes in the PO through Vendor master.
    Thanks & regards
    Varun Bisaria.

    > Problem:  End user can change the Vendor address at the time of creation of PO.
    >
    > According to me the system fetch all vendor details in PO form vendor master.
    >
    > In reference of above issue i want to put a check in the system so that end user cannot able to change any information which comes in the PO through Vendor master.
    Hi,
    If you are referring to vendor address at the header, you can restrict this by suppressin gthe address field in IMG> Mat Mgt> Purchasing> PO> Define Screen Layout @ doc level > and double click ME21N and double click on Reference data header set the field Address as Display which will solve your problem
    Regards
    Shiva

  • Address Change in Customer/Vendor Master upon creation or change Master

    Hi Expert,
    We need to change some Address  fields( *ADR6-SMTP_ADDR , ADRC-DEFLT_COMM, KNA1-TELTX, KNA1-TELX1*) in Customer Master based on some condition while creation/change the Master Data. I need to do same fields in Vendor Master as well. 
    I tried all the Possible exit Here.
    If you know a Proper exit /BADI or one possible solution to solve my problem?
    If anyone can provide any BAPI name which is used to Modify any customer/Vendor address will be very much helpful as well.
    Thanks in Advance for your help.
    Suman Adhikari

    Hi Kesav,
    For customer  BAPI_"CUSTOMER_CHANGEFROMDATA" and "BAPI_CUSTOMER_CHANGEFROMDATA1" both Sales Organization is a required filed. Here we need to change some fileds(standard communication filed , Customer Email address, and Telex No)  based on telex filed of customer for Customer irrespective of Sales Organization or any other constraints. The same requirement is for Vendor as well. If there is any proper exit/badi where KNA1 and address structure ADRC,ADR6 etc are available that will we good.
    I just need to modify some address fields for customer as well as vendor. If there is any BAPI for change address(customer/Vendor) then that will also be helpful.
    Suman Adhikari

  • Prevent changes to ship-to and vendor address in Process Purchase Orders

    Hi SRM experts,
    I have recently used BBP_UI_CONTROL_BADI to affect the displays of fields and buttons in the shopping cart. I now need to change the displayed fields in the Process Purchase Order screens (Vendor Address and Ship-To address) to prevent edit. I've debugged in method BBP_PO_UI_CTRL and see screens 1000, 2200... 3000 etc. but can't see the screens and fields I need to affect. I suspect that I might be at the limitation of using the BADI or am I looking in the wrong place?
    Can anyone help?

    Hey,
    i believe you have filter for shopping cart (BUS2121) in BBP_UI_CONTROL_BADI. you need to do a seperate implementation for PO (BUS2201), Which should/must work for your requirement.
    Cheers, Renga
    **Award points for helpfull answers**

  • Check on vendor email address change before saving PO

    Hi All,
        I need to check Is there any change in Vendor Email address in PO before
    saving. I am trying to find userexits.
    I found some like EXIT_SAPMM06E_012, But here I am not getting complete
    Vendor address...
    Req: I am maintaing multiple email address for Vendor at PO header level.
    Here is the path:  PO Header --> Address tab --> Click on Address Details
    --> Here we can maintain(Insert/ Delete/Change) multiple e mail address.
    So I need to check is there any change in email address before saving.
    Could you please any body help me on this....
    Thanks
    Rays

    Hello Rays,
    One base question,
    Are you going to check the vendor email address manually before saving the PO?
    The vendor address in the puchase order is copied from the vendor master so you can maintain email address (single or multiple) in the vendor master before creating the purchase order. At the time of purchase order creation/save, you can change the default email address and use this to trigger PO to vendor.
    By the way, user exit EXIT_SAPMM06E_012  (Check Customer-Specific Data Before Saving) is used for custom field not for SAP std field.
    Hope this helps.
    Arif Mansuri
    Reward the points if answer is helpful.

  • I need to be change plant customer and Vendor address as per plant setup.

    Hi
    I need to be change plant customer and Vendor address as per plant setup.
    Pls tell me the t-codes and process configuration to setup these changes.
    I have already change Plan & shipping point address in configuration.
    Regard
    vicky

    Hi Vicky ,
    Use OX10 for Changing Plant Address.
    For Customer - XD02
    For Vendor Add : XK02.
    Regards
    Ramesh Ch

  • Change vendor address using bapi

    Hi all,
    How to change vendor address using bapi.
    The address,and vendornumber coming from XL file.
    Based on the vendor number I want to change the address.
    Please give me the example.
    regards,
    rakesh.

    Hi Vijay,
    Please help me in the following.
    As Vendor/Customer Master dont have all the address fields ( like Street4-5), we use FM BAPI_ADDRESSORG_SAVEREPLICA to overcome this problem.
    In my case i have created one Custom load program to upload address data using
    BAPI_ADDRESSORG_SAVEREPLICA and then LSMW project to upload rest of the data.
    In this case when i upload rest of the data by LSMW using BI standard program ( having NODATA indicator "/" in my source file for the fields already uploaded using BAPI above) , address data which uploaded through FM should get populate automatically (by concept of Central Address management) but in my case <b>for some of the Account Group it is not getting populated,</b> please suggest.
    regards
    Sonal

  • Updating a vendor table when address changes in infotype 6

    hello all,
    when an employee changes his personal information in the PZ02 service, it updates the infotype 6, as soon as the update is done it has to update the LFA1 or LFB! vendor table.
    is there a workaround for this
    BR
    venu

    thanks for the reply.
    whenever there is an address change in IT6 it should update the vendor table(for eg: if changes are done in PA30 and not from ess, so its kind of generic version that i have to create to update the vendor table either from ess or PA30).
    i am already using the HR_ESS_ADDRESSDETAIL and HR_ESS_ADDRESSLIST for changing the fields on the iview.
    (t77www_sc)and linking it to pz02.so what u mean is i can go ahead and write the code in the same module for updates.
    is this is the only way to do it, or we can do it by BAPI_address_change.
    I am trying to know all the different ways it can be done.
    a)can i use a BAPI if so which one?
    b) can i do it thru workflow.
    c)or user exit.
    Please help me out with details
    thanks
    venu

  • Vendor address not updated in Scheduling Agreement

    I have a peculiar problem where the vendor address is not being updated in all scheduling agreements. I have multiple SAs against a vendor. When i change the name of the vendor, the name changes only in one of the SA. All the remaining SA carry the old name of the vendor. I tested with another vendor on the test system and the names on all the agreements change as soon as I make the change in the vendor master.
    Does anyone have any explanation on why the system is behaving strangely?
    Thanks

    Hi,
    I am more surprised that the name changed automatically on the ones that DID change.
    I would not have expected this to update in this way. The main idea is that outline agrements can have different data to the master records because they are specific agreements and often relate to very specific data.
    If you wanted to change the address of a vendor it should NOT change the address of existinmg VSAs etc. automatically because the document is  a =fixed contract that is agreed between you and the vendor and should ONLY be changed manually.
    We had a similar question earlier today asking why the system does not change the short description on a contract when the short description on the material master changes. My reply was basically the same, it SHOULDN'T change it automatically because the agreement is a legal document and cannot be changed by just ONE of the parties involved.
    So I would be asking  why the one VSA changed automatically (and the ones in the test syste) not why the others didn't change.
    Just trying to lok at this from all angles.
    Steve B

  • How to remove vendor address from T. Code S_ALR_87012103 - List of Vendor

    Hi Guru's
    There is one report called S_ALR_87012103 - List of Vendor Line Items, after executing this report it will give Vendors line item with vendors name & address with it.
    But I dont want to show the address of the vendors address in the out put?
    How can one remove this?
    Please help me.
    Thanks & Regds,
    Santosh Rothe

    Hii
    need to go for ABAPER help...
    or else u can try out by changing the layout try if it works
    sejal

  • What are the message types available for Vendor Address?

    Hi Everybody,
    I need to read the all the change pointers of Vendor Address using the function moudle 'CHANGE_POINTERS_READ'. To call this FM  I need to pass Address's Message Type. I am passing ADRMAS as message type. but i am not getting any records into change pointers internal table.
    Pls help me out by informing the message type of Vendor Address.
    Regards,
    Nagaraju Maddi

    Hi,
             The address group is in the segment E1BPAD1VL1-ADDR_GROUP.
    Check the table <b>TSAD7 for Address groups</b> (central address management)
    <b>Reward points</b>
    Regards

  • Email upload in vendor master change

    Hi all,
    I have to do emails upload in vendor master change but when i do through shdb recording i am not able to see the communication screen to enter the values. Can any one of you please guide me step by step.
    Thanks & regards,
    Kumar

    Hi,
    you have to use table BAPICOMREM. Just go to one testing customer and add email address with note to this customer. Then go to SE37 and call BAPI BAPI_ADDRESSORG_GETDETAIL. This BAPI has same structure as BAPI_ADDRESSORG_CHANGE. Hence you will see how you have to fill all structures to change email address and also note.
    Cheers

  • Sapscript - email form - vendor address

    Hello all,
    we are emailing our purchase orders out of SAP to one of our email addresses, it is always the same address. As configuration, we have setup a new vendor X and use this vendor to enter the recipient email address.
    We then enter this vendor number as partner into the output message in the purchase order. Partner type is VN for vendor, medium external send and we created a new output type. Once the output is triggered, email is sent to our email address.
    The vendor address is also on the sapscript form:
    /: ADDRESS PARAGRAPH AS
    /: TITLE &LFA1-ANRED&
    /: NAME &LFA1-NAME1&, &LFA1-NAME2&,
    /: STREET &LFA1-STRAS&
    /: POBOX &LFA1-PFACH& CODE &LFA1-PSTL
    /: CITY &LFA1-ORT01&, &LFA1-ORT02&
    /: POSTCODE &LFA1-PSTLZ&
    / :REGION &LFA1-REGIO&
    Now the LFA1 table seems to contain the address of our vendor X that has been setup for email only. Meaning it prints the physical address of our email vendor on the form. But it should show the address of the actual vendor of the purchase order, which is in &EKKO-LIFNR&.
    How can we show the correct address on the form?
    Thanks
    Anne

    Hi,
    ok, I think I got it now. Please see below code. The sapscript and the subroutine pool are activated. I have set a break point into the subroutine pool, but whenever I start the output of the PO, it doesn't stop at the break point. So I guess it never reaches the subroutine.
    Any suggestions why?
    THANKS
    Anne
    :/ DEFINE &WA_ADRNR& = ' '
    :/ PERFORM GET_ADDRESSNUMBER IN PROGRAM Z_PO_VENDOR_ADDRESS
    :/ USING &EKKO-LIFNR&
    :/ CHANGING &WA_ADRNR&
    :/ ENDPERFORM
    *& Subroutine pool   Z_PO_VENDOR_ADDRESS                               *
    PROGRAM  Z_PO_VENDOR_ADDRESS.
    TABLES: LFA1.
    *&      Form  GET_ADDRESSNUMBER
    *       get the addressnumber value for EKKO-LIFNR from LFA1
    FORM GET_ADDRESSNUMBER TABLES fp_it_intab STRUCTURE itcsy
                                  fp_it_outtab STRUCTURE itcsy.
      LOOP AT fp_it_intab.  <-- BREAKPOINT
        SELECT * FROM LFA1
             WHERE LIFNR = fp_it_intab-value.
        endselect.
        IF SY-SUBRC = 0.
          MOVE LFA1-ADRNR TO fp_it_outtab.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    "GET_ADDRESSNUMBER
    Edited by: Anne on Aug 4, 2010 3:56 PM

Maybe you are looking for

  • While trying to edit a word document in Word online i receive the error message "Cannot open page safari cannot open the page because the address is invalid

    I am using One Drive for business on my ipad.  When I tryo to edit a word document in Word Online I receive the following message ... Cannot Open Page Safari cannot open the page because the address is invalid.  How do I correct?

  • Error message in triggers

    i hav created a trigger which does not allow to delete rows on a particular day of the week. in the trigger body i hav given the raise_application_error with a user defined error number . now when somebody tries to delete a row on that day the the tr

  • ANN: XML Parser for C - Version 1.0.1

    Oracle announces the release of version 1.0.1 of the XML Parser for C now available for free download on the Oracle Technology Network. This version is compliant for the XML 1.0 and Namespaces 1.0 W3C Recommendations. Versions are available for Solar

  • Delete Cost Element after Plan data posted

    A user created Cost Elements in error and posted fiscal 2010 Plan data, however the business users wish to track these particular accounts by profit center, not by cost center.  We'd like to delete the cost elements so users will not be prompted for

  • Strange behaviour of sql loader

    Hi Experts, Enivroment Details: database : Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 OS : Solaris 10 We are having problems with inserting data into a table using sqlldr. Here is how we use sqlldr. We get csv files to a location in th