ADRC Table
Hi ,
I created a customer from XD01 and also filled the street field in same transaction but i did not fill street2 and street3 fields. I want to update street2 and street3 fields from an abap program.
I am trying to fill the customer's street2 and street3 field in ADRC table.
But sy-subrc = 4. It is failing.
UPDATE adrc SET str_suppl1 = 'street1'
str_suppl2 = 'street2'
WHERE addrnumber = 63534.
can someone tell y subrc is 4? why it is not getting updated?
Thank u
Hi,
Rather going to update adrc table directly, go for BDC of XD02 to update street2 and street3 into ADRC table. it will update into all relative tables of customer master like knc1. And if u use update query only on ADRC then it will show inconsistancy into data base and give u sy-subrc = 4.
<b>Rewards points if it is useful.</b>
Regards,
Kinjal Rathod
Similar Messages
-
Function Module to get address from adrc table
Hi,
Is there any Function module which is retrieving data from ADRC table by passing address number.
I tried in SDN and I got address_read but its obsolete.Hi,
Please try this piece of code
data: wa_addr1_sel like addr1_sel,
wa_addr1_val like addr1_val.
clear : wa_addr1_sel, wa_addr1_val.
wa_addr1_sel-addrnumber = it_adrnr-adrnr.
call function 'ADDR_GET'
exporting
address_selection = wa_addr1_sel
importing
address_value = wa_addr1_val
exceptions
parameter_error = 1
address_not_exist = 2
version_not_exist = 3
internal_error = 4
others = 5.
if sy-subrc eq 0.
it_addr-adrnr = wa_addr1_val-addrnumber.
it_addr-name1 = wa_addr1_val-name1.
it_addr-street = wa_addr1_val-street.
it_addr-city = wa_addr1_val-city1.
it_addr-region = wa_addr1_val-region.
append it_addr.
clear it_addr.
endif.
Regards
Hiren k.Chitalia -
Dear All ,
we are printing a Tax invoice , and our Z program is picking our plant address from ADRC table .
can Anybody pl guide me from which master or Configuration data this ADRC table is getting the data .
Pl guide , i have tried with changing the address of Plant in SPRO enterprise structure but not replicated to ADRC table.
regardsHello,
This is SAP Standard, there is no config involved.
Every Address of a Object (Customer, Vendor or Plant) is assigned a Address Number. In case of Customer it is KNA1 - ADRNR, for Vendor it is LFA1 - ADRNR, similarly for Plant & other Organizational objects.
Now the actual address is stored in ADRC table & it can be pulled by using the Address Number (ADRNR) of the object, i.e. Customer / Vendoer etc...
Hope this helps...
Thanks,
Jignesh Mehta -
Craeting data fiel for data from KNA1 and ADRC table...
Hi,
I want to create a data file (tab delimited) which will have data from two tables, KNA1 and ADRC. The customer number, Name1 and Name2 fields data will come from KNA1 but the Street field data will
come from ADRC table. The ADRNR number will be a linkage between two tables KNA1 and ADRC.
I don't want to write a reprot for this. Can someone tell me if I can use SQVI for this and then go to options download in excel sheet directly from the menu.
Is there any other smarter way to do it ?
Regards,
Tushar.Use an inner join between KNA1 and ADRC...The use <b>GUI_DOWNLOAD</b> FM to download the file...
Greetings,
Blag. -
Update the Street field in ADRC table.
Hello !! Please I need some help.
I have to update the Street field in ADRC table.
I have this list.
Where I can put a Flag and an Update to do it.
Im really newbie. Im doing it in IDES, to test it first.
Help !
REPORT Z_LIST_ADRC LINE-SIZE 190
LINE-COUNT 65
NO STANDARD PAGE HEADING.
TABLES: ADRC.
DATA: BEGIN OF ITAB OCCURS 0,
ADDRNUMBER LIKE ADRC-ADDRNUMBER,
date_to like ADRC-date_to,
NAME1 LIKE ADRC-NAME1,
CITY1 LIKE ADRC-CITY1,
CITY2 LIKE ADRC-CITY2,
STREET LIKE ADRC-STREET,
MC_NAME1 LIKE ADRC-MC_NAME1,
MC_CITY1 LIKE ADRC-MC_CITY1,
MC_STREET LIKE ADRC-MC_STREET,
END OF ITAB.
SELECT ADDRNUMBER DATE_TO NAME1 CITY1 CITY2 STREET MC_NAME1 MC_CITY1 MC_STREET
FROM ADRC INTO TABLE ITAB.
LOOP AT ITAB.
WRITE : /001 ITAB-ADDRNUMBER,
007 ITAB-DATE_TO,
016 ITAB-NAME1,
040 ITAB-CITY1,
070 ITAB-CITY2,
090 ITAB-STREET,
120 ITAB-MC_NAME1,
150 ITAB-MC_CITY1,
170 ITAB-MC_STREET.
ENDLOOP.
TOP-OF-PAGE.
ULINE.
WRITE: /001 'n-addr',
007 'date',
016 'name',
040 'city1',
070 'city2',
090 'street',
120 'name-s',
150 'city1-s',
170 'city2-s'.
ULINE.HI,
data : itab like standard table of adrc.
select * from adrc into table itab.
loop at itab.
itab-street2 = 'New value'.
modify itab index sy-tabix.
endloop.
if not itab[] is initial.
modify adrc from table itab.
endif. -
Accessing Address from ADRC table
Hi,
When inputting a delivery address in a PR the three options are to search by customer, vendor, or input an address. My questions is how do you access inputted addresses? These inputted addresses are saved in the ADRC table, but when creating a new PR how can I search and retrieve these addresses for use?
Thanks for your help!Hi,
Please try this piece of code
data: wa_addr1_sel like addr1_sel,
wa_addr1_val like addr1_val.
clear : wa_addr1_sel, wa_addr1_val.
wa_addr1_sel-addrnumber = it_adrnr-adrnr.
call function 'ADDR_GET'
exporting
address_selection = wa_addr1_sel
importing
address_value = wa_addr1_val
exceptions
parameter_error = 1
address_not_exist = 2
version_not_exist = 3
internal_error = 4
others = 5.
if sy-subrc eq 0.
it_addr-adrnr = wa_addr1_val-addrnumber.
it_addr-name1 = wa_addr1_val-name1.
it_addr-street = wa_addr1_val-street.
it_addr-city = wa_addr1_val-city1.
it_addr-region = wa_addr1_val-region.
append it_addr.
clear it_addr.
endif.
Regards
Hiren k.Chitalia -
Hi ABAP experts!!!
I'm a CRM consultant and a dont know ABAP enough so your help is appreciated!
I have a big problem, my ADRC table dosent update any Persons BPs, only organizations...
I need to use the filed FLAGCOMM6 in a CRM functionality (segment builder), in fact i need to know wath BPs dosent have emal filed but i cant use the SMTP ADDR - ADR6 for example because the CRM functionality dosent have a filer "null" or "blank" for example.
Please, no one knows what can be happen?
Thanks a lotCheck the Link
How do i use the FM : ADDR_UPDATE?
Kanagaraja L -
HI all,
Please help me in this issue
I am fetching data from Adrc table using a key address no . but During select i am able to get only one address i.e english or germen etc. here the key field nation consitis of differt natins so for single address no there will many language addresses. so i am unable to get those all addresses .i am able to get any one.how can i acheive all the addreses
Regards
Balu
Message was edited by:
k reddyHi k reddy,
you will ghet all addresses if you supply all address numbers.
It depends on where you are: If it is in the SAP business partner scenario, you always have one STANDARD address but you can have several addresses for different roles and validity time the business partner takes according to business specifications. Look at table BU020 for different address numbers for one business partner.
First you should describe the business scenario where you want those addresses for what purpose. Then you may be able to derive the answer yourself or you come back and ask more specific.
Regards,
Clemens -
ADRC table update during Vendors creation
Hello Everyone ,
I want to know in which include/module of SAPMF02K program is used to insert/update entries of the ADRC table while creating vendors (XK01).
Our purpose is to update a Z field in ADRC table capturing the value from LFA1-SCACD.
Regards,
Prakash S.Hi Prakash,
You may check function module "ADDR_SINGLE_SAVE"
in form "ZAV_SINGLE_SAVE" of include "MF02DFZA". -
Regarding the ADRC table entry
Hi friends,
i have one customer in KNA1-kunnr as '1000' .and his address number is ADRNR is 2000. now the thing is i want to add the value R to the field NATION in the table ADRC. but i cant add it directly to ADRC table. so from which screen i need to enter?
Regards,
Venkat.Go to XD02 (Change customer master) transaction and and provide custiomer number in adresss tab you will find international versions button.you click this button and provide R here .
so it carries same value in adrc table in field nation
if you have to do the same operation for more than some records then choose bdc for the saem thing
Please reward if useful
Sivaparvathi
Message was edited by: Sivaparvathi
If this doesnt helps you, feel free to ask
Message was edited by:
Siva Parvathi -
Function module for updating vendor:ADRC table
Hi all,
Please guide me how to update the database ADRC with using function module.
I need to use this function module in IDOC inbound.
Thanks.I am not sure about dependent database tables....but definitely the following BAPI will update dependent database tables also...
BAPI_ADDRESSORG_CHANGE
Refer the below link for using this BAPI...or search in SCN..
http://abap.wikiprog.com/wiki/BAPI_ADDRESSORG_CHANGE -
Vendor Address is not updating in ADRC table by LSMW IDOC method
Hi,
I'm updating Vendor address data by LSMW IDoc method
for this i'm using ADRMAS as msg type and ADRMAS02 as Idoc type.
In partner profiles Process code given as BAPI for this.
i maintained entry in TSADOBJ table LFA1 as OBJTYPE,1 as ADDR TYPE,0001 as context,LFA1 as TABLENAME,ADRNR as FIELDNAME, ADRC as TABLE PERS, ADDRNUMBER as FIELD PERS
Idoc generating sucessfully.
But data is not updating in database.
i think the problem in TSADOBJ config.
Please give exact configuration which can update vendor data.
Thanks in advancebe open minded. SAP gives several import methods to load vendors. one of them is per IDOC.
But the vendor master IDOC does not automatically create the adress master.
And even more important, if you migrate data from one SAP system to another, the IDOC method is more straight forward than the batch input, because you can send the IDOCs from legacy system to new system, you will then have a 1:1 relation of the structure in LSMW and you can create vendor masters by knowing the new vendor number from an internal number range already in LSMW, long before you actually post the vendor. With batch input you can either post with numbers from external number range, or you just dont know the new number already in LSMW.
And you dont need to download the data to Excel. And further, the LFA1 adress data has less information than the ADRC adress data. -
Field selection from adrc table
HI all,
Actually selecting some fields into say table t_likp based value entered for vbeln.
by takin t_likp-vbeln i can go to vbpa and select adrnr from vbpa for parvw eq 'sh'. my question is can i take this vbpa-adrnr
and go to adrc directly for detailed address or
is it necessary for me to go to kna1 from vbpa-kunnr and get the adrnr number form kna1 to go to adrc?
plz help.
thnks n regards,
AhmitaHi,
try this way..
* Fetching Sales order number
SELECT SINGLE * FROM ekkn INTO w_ekkn
WHERE ebeln = xekko-ebeln
AND ebelp = xekpo-ebelp.
* If sales order number exist for PO and PO item then looking
* for Address number to get the details and modifying
* (Overwriting)the Existing Address Details in segment 'E1EDKA1'
IF sy-subrc = 0 AND w_ekkn-vbeln IS NOT INITIAL.
SELECT SINGLE *
FROM vbpa
WHERE vbeln = w_ekkn-vbeln
AND posnr = '000000'
AND parvw = 'WE'.
IF sy-subrc = 0.
SELECT SINGLE * FROM adrc WHERE addrnumber = vbpa-adrnr.
ENDIF.
ENDIF.
Prabhudas -
Hi experts,
I have en error in EDM calculation workbench. There is formula allocation 201 and when I start process of calculation, there is error: no entries in the table ADRC.
Can anyone help me?
Thanks!ADRC is address table, so first thing to verify is how address is relevant to your formula allocation/calculation.
-
Selection problem on ADRC Table.
Dear Exparts.
please see the Query:
select country city1 from adrc
into CORRESPONDING FIELDS OF wa_country
where
country = p_country
and
city1 = p_city.
append wa_country to it_country.
endselect.
In this selection, when I send p_country = AE and p_city = Dubai I cannot get any data. But there have data In DB.
But when I send p_country = DE and p_city = Berlin I can get porper data.
Can anybody solve this problem.
Your regards
rayhanJust paste the below code and check either getting value or not
DATA wa_country TYPE adrc.
PARAMETERS: p_city TYPE adrc-city1 DEFAULT 'Dubai',
p_countr TYPE adrc-country DEFAULT 'AE'.
SELECT SINGLE * FROM adrc INTO wa_country WHERE country = p_countr
AND city1 = p_city.
IF sy-subrc = 0.
WRITE : / wa_country-city1, / wa_country-country.
ENDIF.
Kanagaraja L
Maybe you are looking for
-
Is there a way to disable the itunes video pop up for music videos in itunes 11?
I'm wondering if there is a way to disable the video window from popping up everytime I change a music video track in itunes in previous versions I always used play in artwork viewer but I accidentally updated and now that option is no longer there.
-
My wifi on my ipod touch isnt working
a few days ago i was trying to change the dns on my wifi settings to get the american netflix on my ipod and somehow it has messed up the whole entire wifi on my ipod.
-
Macbook pro sound defaults to right speaker only
How do I set the sound output to not change to the right speaker only by default? It resets itself every so often.
-
Why do i keep getting this Heap Zone error
I have been trying and trying to export this movie i made in iMovie to iDVD. It is 35 min long and every time i try to export it to iDVD it gets like 3/4 of the way done and then it gives me this heap zone error. The movie is all pictures and are all
-
SCCM 2012 client push occurs from site server or from distribution point?
I would like to set up client push in SCCM 2012 and I have a remote site with about 80 workstations that I would like to deploy the clients to using client push, but this remote site is VERY slow, as in less than 3Mbps slow. There is a remote DP loca