09-02-2008 5:58 AM
Hello Friendz
I am using BAPI_BUPA_ADDRESS_ADD function module to update ADRC table for address details.
When test this function module with one customer passing the parameter the ADRC table is not getting updated.
Can anybody tell me which parameter I have pass to get the ADRC table updated.
Regards
Manisha
09-02-2008 6:09 AM
Did you use BAPI_TRANSACTION_COMMIT FM after your FM if not please use this.
Thanks
Sudharshan
09-02-2008 6:09 AM
Hi,
Try to Use the FM 'BAPI_BUPA_ADDRESS_CHANGE'
If you use this FM,You can change the existing Addresses of the Partners,customers,etc...
Regards,
Rama.
09-02-2008 6:12 AM
Are you getting the values in ADDRESSGUID which is export parameter?ADDRESSGUID uniquely identifies the address over all systems.
if you are only changing the address than you can also use BAPI_BUPA_ADDRESS_CHANGE.also commit your work.
09-02-2008 6:12 AM
Hi
You have to do BAPI COMMIT then only it will update the table.
In SE37, menu Function Module --> Test --> Test Sequences.
There give FM 'BAPI_BUPA_ADDRESS_ADD' first and then 'BAPI_TRANSACTION_COMMIT' next and then execute.
09-02-2008 11:19 AM
Hi Friendz
I am using function module BAPI_BUPA_ADDRESS_CHANGE
but adrc table is not getting updated. I am getting error message from bapiret2 as business partner does not exist.
Can anybody tell me what parameter I have to pass to BAPIBUS1006_HEAD-BPARTNER, Rright now m passing Kunnr.
Plz help.
Regards
manisha.
09-02-2008 11:57 AM
Hi,
Why are you passing Customer No[Kunnr] to field Business Partner.Check the check table[BUT000] for this field and pass the similar value to this field.
Thanks
Sudharshan
09-02-2008 12:33 PM
Hi Sudarshan
I want to update customer address details in ADRC table for that I am using the above function module. In this case what will be the parameter for BAPIBUS1006_HEAD-BPARTNER
or is there is anyother function module that can be used.
Thanx and regards
Manisha.
09-02-2008 12:40 PM
Manisha,
are you looking to update only customer address.
why not you used BAPI_CUSTOMER_CHANGEFROMDATA1 and pass all parameter of customer address in BAPIKNA101_1
09-02-2008 1:21 PM
Hi Amit
I need to update street1 street2 and street3 for the customer which is there is ADRC table. So I need to update the ADRC table.
Do you know any other way??
Regards
Manisha.
09-02-2008 1:31 PM
Yes you can update from below fm itslef
BAPI_CUSTOMER_CHANGEFROMDATA1
Parameter should be used:
BAPIKNA101_1
BAPIKNA101_1X
and sales area:
BAPIKNA102-SALESORG
BAPIKNA102-DISTR_CHAN
BAPIKNA102-DIVISION
09-02-2008 1:49 PM
I need to update street1 street2 and street3 for the customer
i cannot see street1 street2 and street3 for the customer in XD03!
09-02-2008 1:44 PM
Hi
If u see these structure U will not find those fields which I want!!
09-02-2008 1:56 PM
Ya thats what I am telling you
These fields are there is ADRC table. I need to update those!!
09-02-2008 2:07 PM
I need to update street1 street2 and street3 for the customer which is there is ADRC table
Though These fields are not in above Bapi but still you desparate to update them than you need to write one small utility in se38 for update ADRC.
your code some looks like :
select from adrc into table itab where adrnr = <kna1-adrnr>
than
update ADRC from itab.
PS:structure of itab shold be same as ADRC.
09-02-2008 2:33 PM
In this bapi which is BAPI_BUPA_ADDRESS_CHANGE all the fields are there. Only the thing is m not able to see the changes in ADRC table I dont know.
m passing all the parameters in this bapi but cannot see changes in adrc table.
09-02-2008 2:40 PM
I bang my head.
Post your code once.
which you wrote for BAPI_BUPA_ADDRESS_CHANGE .
But still am not sure whether BAPI_BUPA_ADDRESS_CHANGE impect in ADRC or not.
Edited by: Amit Gujargoud on Sep 2, 2008 3:40 PM
09-02-2008 2:51 PM
I don't think BAPI_BUPA_ADDRESS_ADD updates ADRC table.
To update the Customer's Adress (which is in ADRC) you can use the BAPI_CUSTOMER_CHANGEFROMDATA1.
Regards,
Naimesh Patel
09-02-2008 2:57 PM
Hi
I have tested both of these function module but I cannot see changes in ADRC table. Then How I can update these fields.
PLzzzzzzzzzzzz help!
my requirement is I need to update street1, 2, and 3 from adrc table for the customer.
what can I do for it.
Regards
Manisha
09-02-2008 3:14 PM
Manisha,
As i already said am not sure whether FM you are using is responsible to update ADRC or not.
Again am asking Why why why you are not ready to code one small utility for that in se38????
here is below ready to make code for you:
TABLES:kna1,adrc.
data:i_kna1 TYPE TABLE OF kna1 WITH HEADER LINE,
i_adrc TYPE TABLE OF adrc WITH HEADER LINE.
PARAMETERS:p_kunnr LIKE kna1-kunnr.
select single * from kna1 where kunnr = p_kunnr.
SELECT SINGLE * from adrc into i_adrc where ADDRNUMBER = kna1-adrnr.
i_adrc-STR_SUPPL1 = '<your street1 address>'.
i_adrc-STR_SUPPL2 = '<your street2 address>'.
i_adrc-STR_SUPPL3 = '<your street3 address>'.
IF sy-subrc = 0.
UPDATE adrc from i_adrc.
commit WORK.
ENDIF.
pls dont say me as can you pls paste a code for me in my se38 editor
Amit.