Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ADRC table is not getting updated

0 Kudos

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

19 REPLIES 19

Former Member
0 Kudos

Did you use BAPI_TRANSACTION_COMMIT FM after your FM if not please use this.

Thanks

Sudharshan

Former Member
0 Kudos

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.

former_member181995
Active Contributor
0 Kudos

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.

asik_shameem
Active Contributor
0 Kudos

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.

0 Kudos

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.

0 Kudos

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

0 Kudos

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.

former_member181995
Active Contributor
0 Kudos

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

0 Kudos

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.

0 Kudos

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

0 Kudos
I need to update street1 street2 and street3 for the customer

i cannot see street1 street2 and street3 for the customer in XD03!

0 Kudos

Hi

If u see these structure U will not find those fields which I want!!

0 Kudos

Ya thats what I am telling you

These fields are there is ADRC table. I need to update those!!

0 Kudos
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.

0 Kudos

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.

0 Kudos

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

naimesh_patel
Active Contributor
0 Kudos

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

0 Kudos

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

0 Kudos

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.