Adrnr values
Hi,
I have 10 ADRNR(address numbers) values(rows) in my itab1 and i have passed into smartform.
call function 'fmname'
tables
itab2 = itab1.
I want to pass these ADRNRs into SAP standandard address dynamically.So i have to get 10 different address into 10 different reports.
How can i do this?
reward guaranteed
cheers
kaki
Hi Kaki,
First please check the <u>criteria to select</u> ADRNR from your internal table.
Write program lines before your address text.
Define a global varible at global data
V_ADRNR TYPE KNA1-ADRNR.
clear : V_ADRNR.
Read Itab1 with key = "define your search key for different adrnr".
V_Adrnr = Itab1-adrnr.
then pass &V_ADRNR& to address.
Lanka
Similar Messages
-
Problem in updating VBPA-ADRNR
Hello Friends
Based on our customer requirement Iam writng a ZPROGRAM to update VBPA-ADRNR entries.
We used same SH values for all header and line items but in some cases its showing sifferent ADRNR values in line item level.
So in that case I want to update that ADRNR values through ABAP program.I tried to update the values, but it shows no values are changed in BAPI_SALESORDER_CHANGE --> Return parameter..
Give me some guidance to update the values in table level.(Except Update table option).
Thanks
GowrishankarActually this is not a good idea.
It is like using medicine to relief your pain while not doing anything about the source of pain.
Cure the sickness, dont cure the symptoms.
Find out how and why this happens, then make sure it wont happen again.
Besides, the functionality of different delivery adresses on item level is nothing evil, it is wideley used.
When running your program to synchronize those adresses, how could you know at which documents it is desired like that and at which documents it just an error that happened?
When you are done with analysis and corrected the problem that makes adresses on tiem level differ, THEN you can think about correcting the documents that were produced with this error.
Maybe it´s even just a hand full, and you could do it manually faster then coding a program for it. -
Address Maintenance during new Co Code Creation
Dear Experts,
I am implementing some new additional company codes in our system. We went live few years back and have got a requirement for few new company codes to be setup.
When I copy creation of a new company code using EC01, an address pointer gets created in Table T001 in field ADRNR. However the problem for me is the value in this ADRNR field in my development system is not the latest available number in Production System. The number in Development system is already in use in Production system.
So when I send the transport request to Prod system, the ADRNR field with the value overwrites the existing address data there. In Prod system that ADRNR value might represent a vendor address or a customer address.
My question is how to tackle this ADRNR creation at the time of copying a new Co Code using EC01?
Please provide your expertise.
Regards,
Sanjay BarnwalHello
Can you re set the current number in number range series in SA01, No 01 in DEV at par to Prod
go to T code SA01
go to ststus
change the current number in DEV as per PROD.
Thanks
Kameshwar Rao -
Customer or Vendor address in SAPSCRIPT
Hi ,
From where the address data from customer and vendor are pulled ?
Common data or from the international address screen?
i.e which table and how
thanksHi Bobby,
Take the ADRNR(Addree Number) from KNA1 or LFA1 table and get the customer or vendor details from ADRC Table by giving the ADRNR value.
Reward Points if this helps,
Satish -
hai all
i am working on STO invoice ,,in that i want to display the storage of the plant,,, i found the field like LFDNR is the sequence number for storage location,,this field available in table TWLAD,,, i want to know which table they are maintaining storage address,,,
help me
by
kumarPlant details stored in T001w table.
in this table you can find few details like NAME,country etc..
still if you are specifically required other address details of a plant, do the below
TAKE ADRNR value from T001w table AND goto ADRC table and give ADDRNUMBER = T001W-ADRNR.
you will get all address related values from this table.
regards
srikanth -
Address using FM ADDRESS_INTO_PRINTFORM
Hi experts,
I am using the function module ADDRESS_INTO_PRINTFORM to fetch the address by passing the ADRNR as address_number, address_type as 1,sender_country and street_has_priority as 'X' and fetching the address from address_printform. When i am doing this for US addresses i am getting the city, region and postal code concatenated in a single line whereas for UK address city, region and postal codes are appearing on different lines. I want the UK addresses also to have city, region and postal code concatenated in a single line. Can anyone tell me the reason for this and how to solve this.Hi,
Using that ADRNR field value, u can write a select query
Select field(city)
(country)
(postalcode) into table it_adrc
where ADRNR = v_adrnr(Your ADRNR value)...
Using this internal table, u can print whatever u want with the help of work area..
if u want country in the particular line, give your work area as &wa_adrc-country&
like wise u can acheive your result
regards
vijay -
Adress number for particular purchase order number
hiii experts,
in ekpo tbale each po number have adress number (adrnr).these adrnr value maintained in which tcode.
i saw in me23n but i didn' get the adress number.Hello, the address number can come from table T001, field name is ADRNR. The usage of this field is used to change the PO's delivery address, the PO delivery address is default as the PO plant address, but you can change this address if you want to the vendor delivery according to your proposal use this field.
and it is maintained in MEAN trxn code
Check
Delivery address -
Hi All,
Can anybody tell me the table where the address for shipping point(VSTEL) is stored?
Thanks and regards,
PragyaHi,
Pass the shipping point to TVST table, i.e. TVST-VSTEL field and get the ADRNR value, pass ADRNR to ADRC-ADRNR and print the address,
Hope this helps,
Rgds, -
To select data from structure "IDWTCOMPCD" and "ADDR1_DATA"
Dear Guru,
I have configured business place (branch code) with its address. This data is kept in "ADDR1_DATA" structure. However, I want to write program to select that data. How can I select it since it is in the form of sturcture object? I have look up in SE11 and cannot find referenced table. Thank you very much.
Cheers,If you have the address number, you can go to ADRC table and get the Address details.
example: T001W plant table , you can see the Field ADRNR
use that ADRNR value and go to ADRC table and get the Address details -
Perofrmance issue on data fetch from db table
Dear Experts,
I have one requirement which explained below step wise.
Step - 1 : I have a parameter on selection screen from where i ll get my ebeln value (User Input field) and that ebeln i ll check in ekpo table for validations.
If valid i keep it in a variable gw_ebeln.
Step - 2 : Need to fetch lifnr fron ekko based on gw_ebeln value.
Step - 3 : Need to fetch adrnr from lfa1 based on lifnr (Previously fetched from ekko table in step 2)
Step - 4 : Need to fetch email field from adr6 table based on adrnr value (Previously fetched from lfa1 table in step 3)
Step - 5 : Now for these mail id , I need to send mail by given fm.
My question is : I can create structure for step 2 , step 3, step 4 and by using " for all entries " in select statement i ll fetch my mail id in step 4.
So instead of creating structure and then use for all entries , I can fetch by using "select single" statement for step 2 , step3 step 4.bcz i am fetching only one field from all 3 table.
So which one is better performance wise and why ?
I need more and clear clarifications on these difference.
Please provide me suggestions.
Thanks & Regards,
Ajit SarangiHi Ajit,
We are referring item table EKPO. Multiple entries are possible.
To append the values in final internal table, we are going to process the LOOP. Inside loop, we should not use the Select statement, that decreases the performance. Database Interaction process should not done inside Loop...Endloop.
That's why we are creating the Internal table for processing the values. Since we need limited number of fields in the particular table, we are creating our own structure in the program.
For this case, For all entries will give better performance with compare to Select Single.
Regards
Rajkumar Narsimman -
Using FM EQUIPMENT_MODIFY
I'm trying to use function module EQUIPMENT_MODIFY to insert an adrnr value. The FM looks easy enough but I can't get around message ITOB410 "Equipment cannot be blocked". Not LOCKED, BLOCKED. It doesn't matter which equipment number I use. The message is always the same.
LeoModerator message -
This is a continuation of your earlier thread Equipment record address creation via function module .
Since you have not marked that as solved (or any of your other questions). Please continue with that one instead.
Thread locked
Rob. -
Hi, Experts.
How can I find salse organization information? Such as full name of sales org., address, tel. and fax. etc.Hi,
Using T.code SE16, go to table TVKO,
Give the Required Sales Orgnization and execute that,
In that You can see a Field ADRNR ( Address) Number.
Now goto table ADRC (using T.Code SE16), and give the ADRNR value in that and Execute the table.
You will get total information pertainaing to that sales Organization.
Hope this will help.
REWARD IF HELPFUL
Regards,
Praveen -
Is it possible to change the VBAP-ADRNR item address field value?
Hi,
Is it possible to update the VBAP-ADRNR item record field value?
I am trying to update this field value from BAPI_SALESORDER_CHANGE but it is not changing the value.
I am only able to change the corresponding address for that address number.
But I need to change the address number( I want to replace with header address number) itself.
If any ideas please let me know.
Thanks,
Mohan.ajitabap wrote:
Hi
>
> Schedule Lines related Data USING BAPISDORDER_GETDETAILEDLIST Then Pass them to BAPI_SALESORDER_CHANGE Then It work and update the field.
>
> Regards
> AJIT
eh????
What's the relevance of schedule lines and ADRNR?
@OP: Don't. There is a reason why SAP gives out a new ADRNR. And manually changing the value of a primary/foreign key is never a good thing to do. -
Vendor Master - ADRNR field details.
Hi Experts,
This is regarding Vendor Master data.
Use T-code "SE16" then enter Table Name "LFA1" to see values for any particular Master record for eg. 1000.
In this you will find some Values in field "ADRNR, MCOD1, MCOD2". whereas if you open the same record with "XK02" you cannot see this values.
Even I am not entering this vause while creating records using "XK01". Can someone explain where can I see this Values.
Matter urgent.
Helpful answers will be rewarded.
Cheers
RC.If it(ADRNR) is really there in LFA2 -> Vendor data table,
Use, SE16 Transaction,
and give LFA1 Table..
press enter, if you can see a pop-up box. find out the vendor field name or else press enter
then from tool bar, set ....choose select fields and find the ADRNR filed in that
and press Execute...
Then you can see the values.
(***If any thing is there in Database**) -
Selection screen field value capturing
Hi,
I have developed a report for displaying amendment changes in a purchse order. The input are purchase order
and plant. Now they have asked for an additional input of version field, which should also have F4 field-value help.
For version field, default there is no F4 key. So, i have written code like after entering the PO number when we press the enter key, for the corresponding PO, it brings the version no in input field. But my problem is it is displaying the values for version field, but when i select some value it is not getting updated in selection-screen version field. I have attached my code below... please help me
in the below code my problem is only between
AT SELECTION-SCREEN on value-request for P_REVNO.
and
start-of-selection event...
TABLES : ekko,
ekpo,
cdhdr,
cdpos,
MEPO1325,
t001,
t166c,
t166t,
adrc,
komp, " net rate of header
konv, " net value of purchase order
zammendpodet.
TYPES : BEGIN OF ts_cdpos,
ebeln TYPE ekbe-ebeln,
ebelp TYPE ekbe-ebelp,
matnr type ekpo-matnr,
maktx type makt-maktx,
prdat type ekpo-prdat,
belnr TYPE ekbe-belnr,
budat TYPE ekbe-budat,
tkey(70),
txz01 TYPE ekpo-txz01,
ctxnr TYPE t166c-ctxnr,
desp(20) type C,
MEINS LIKE MARA-MEINS,
chtxt TYPE t166t-chtxt.
INCLUDE STRUCTURE cdpos.
TYPES : END OF ts_cdpos.
data : begin of it_makt occurs 0,
matnr like makt-matnr,
maktx like makt-maktx,
end of it_makt.
data : begin of it_maRA occurs 0,
matnr like maRA-matnr,
mEINS like maRA-mEINS,
end of it_maRA.
*Internal table declartion
DATA : it_erev TYPE TABLE OF erev WITH HEADER LINE,
it_ekko1 type table of ekko with header line,
it_konv2 type table of konv with header line,
it_ekpo TYPE TABLE OF ekpo WITH HEADER LINE,
it_ekpo1 TYPE TABLE OF ekpo WITH HEADER LINE,
it_cdhdr TYPE TABLE OF cdhdr WITH HEADER LINE,
it_t166c TYPE TABLE OF t166c WITH HEADER LINE,
it_ekbe TYPE TABLE OF ekbe WITH HEADER LINE,
IT_AMMEND TYPE TABLE OF ZAMMENDPODET WITH HEADER LINE,
IT_AMMEND1 TYPE TABLE OF ZAMMENDPODET WITH HEADER LINE,
it_komp TYPE TABLE OF KOMP WITH HEADER LINE,
it_konv type table of konv with header line,
it_konv1 type table of konv with header line,
it_cdpos TYPE TABLE OF ts_cdpos WITH HEADER LINE.
data : BEGIN OF it_erev1 occurs 0,
revno TYPE erev-revno.
data : end of it_erev1.
data : begin of it_cdpos1 occurs 0.
include structure cdpos.
data : ebeln like ekko-ebeln,
item like ekpo-ebelp,
aedat like ekpo-aedat,
matnr like ekpo-matnr,
txz01 like ekpo-txz01,
desp(20) type C,
MEINS LIKE MARA-MEINS,
item1 like ekpo-netpr.
data : end of it_cdpos1.
types : dy_temp TYPE lips-lgort.
DATA : dyfields LIKE dynpread OCCURS 1 WITH HEADER LINE, dy_value TYPE dy_temp.
DATA: progname TYPE sy-repid,
dynnum TYPE sy-dynnr,
dynpro_values TYPE TABLE OF dynpread,
field_value LIKE LINE OF dynpro_values.
*Work variable declaration
DATA : v_revno TYPE erev-revno,
revno1 type zammendpodet-revno,
w_version TYPE erev-revno,
w_erdat TYPE erev-erdat,
w_eruhr TYPE erev-eruhr,
wv_eruhr TYPE erev-eruhr,
v_tabkey TYPE cdpos-tabkey,
v_temp(5),
v_olddate(8),
v_newdate(8),
v_value_old TYPE cdpos-value_old,
V_OLD TYPE EKPO-BRTWR, " OLD VALUE FOR PURCHASE ORDER
l_ind TYPE i,
temp value 0 type i,
temp1 type i,
temp2 type i,
temp3 type i,
wa_cdpos like line of it_cdpos,
wa_cdpos1 like line of it_cdpos1,
v_tabkey1 TYPE cdpos-tabkey.
PARAMETERS : p_ebeln TYPE ekko-ebeln,
p_ebelp TYPE ekpo-ebelp.
p_bukrs TYPE t001-bukrs,
p_revno type erev-revno.
INITIALIZATION.
AT SELECTION-SCREEN on value-request for P_REVNO.
CLEAR: dyfields[], dyfields.
dyfields-fieldname = 'P_REVNO'.
APPEND dyfields.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = sy-cprog
dynumb = sy-dynnr
TABLES
dynpfields = dyfields.
READ TABLE dyfields INDEX 1.
SELECT revno
FROM erev
INTO TABLE it_erev1 WHERE edokn = p_ebeln.
IF sy-subrc = 0.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'REVNO'
dynpprog = progname
dynpnr = dynnum
dynprofield = 'P_REVNO'
value_org = 'S'
TABLES
value_tab = it_eREV1
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
START-OF-SELECTION.
SELECT SINGLE *
FROM t001
WHERE bukrs EQ p_bukrs.
IF sy-subrc EQ 0.
SELECT SINGLE *
FROM adrc
WHERE addrnumber EQ t001-adrnr.
ENDIF.
SELECT SINGLE *
FROM ekko
WHERE ebeln
EQ p_ebeln
AND frgke = 2.
select * from konv into corresponding fields of table it_konv where knumv eq ekko-knumv.
useful informations will be rewarded.
thanks and regards,
subbu.,Hi ,
Use this function module
call function 'DYNP_VALUES_UPDATE'
exporting
dyname = sy-repid
dynumb = sy-dynnr
tables
dynpfields = t_dynpfields
exceptions
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
undefind_error = 7
others = 8.
where t_dynpfields would contain name of field and value you want to update.
Please reward if useful.
Maybe you are looking for
-
Podcasts won't refresh when subscribed but will when unsubscribed?!?
The topic says it all. Win 7 Pro 64 bit / iTunes 11.3.1 (the latest) / all other hardware well ahead of spec In the past, I'd had an odd phenomenon when refreshing podcasts - old episodes would appear long after they'd been downloaded, played in thei
-
Help I am receiving error 2324 as I am trying to upgrade my I Tunes And now I can not log in?
-
Finder's Nasty Inherited ACL Bug (aka Error -41)
CNET, MacFixit, and a few other technical blogs recently reported on an apparent ACL issue which seems to have existed in OS X Snow Leopard since OS X 10.6.0, but has gotten particularly bad in OS X 10.6.5, 10.6.6, and 10.6.7 (both client and server
-
I have configure remote access feature web application proxy but not configure give the error. The remote name could not be resolved in server 2012 R2. I have configure Ad and ADFS different server and try to configure web application proxy different
-
J'ai un ? qui apparaît sur mon dock à la place de l'icône d'une application
Un ? apparaît sur mon dock à la place de l'icône de mon application. Comment dois-je faire pour faire venir l'icône?