‎2006 Nov 02 3:15 PM
Dear Guys
I am using a function module READ_TEXT to read cost center and Location.
I am using this code.
call function 'READ_TEXT'
exporting
id = '001'
language = EN
name = vedor
object = 'LFA1'
importing
header = delvryacct
tables
lines = line
exceptions not_found = 1 others = 2.
The above function returning is Cost center and Location for all vendors. But for few particular vendors its not returning the results. That is not founding the cost center and location for those and raising exception.
I dont know from which transation I can maintain those cost center and location in SAP so that READ_TEXT can read them.
Please explain where I can maintaing the cost center and lcoation for a particular vendors so that READ_TEXT can read it.
Thnx
‎2006 Nov 02 3:29 PM
This is interesting, it seems that these must be maintained in long text which is usually not the case, but if you are getting the data using READ_TEXT for some of your vendors, then I guess this is how it is in your system. Any way, go to transaction XK02 with one of your vendor numbers that you can see some data for using READ_TEXT, then look at the texts in this transaction to see where it is entered, then you can simply use the same tcode to maintain the text for you other vendors.
Regards,
Rich Heilman
‎2006 Nov 02 3:29 PM
This is interesting, it seems that these must be maintained in long text which is usually not the case, but if you are getting the data using READ_TEXT for some of your vendors, then I guess this is how it is in your system. Any way, go to transaction XK02 with one of your vendor numbers that you can see some data for using READ_TEXT, then look at the texts in this transaction to see where it is entered, then you can simply use the same tcode to maintain the text for you other vendors.
Regards,
Rich Heilman
‎2006 Nov 02 3:33 PM
Hi Adnan,
I understand that, your compnay has decided to follow a convention that the long text maintained has a meaning of costcenter and location as those two field are not in the vendor master.
For the vendors which do not return the value using read text, go to XK02 transaction and display the header long text.
If it is empty(I'm sure it must be empty), maintain the cost center and location values in that text and save it.
Regards,
ravi
‎2006 Nov 02 3:48 PM
Than a Lot for replying.
I have already seen XK02 and didnt found any Text or Field where the cost center or location is attached with any vendor.
Is there some other Transaction where it can be located. I have also chekced HR Master data but dletion and additon of cost center there are not effectiing the results of READ_TEXT.
Is there some other area where it can be located or can u explain the particulare field and screen of XK02 where u think it can be present.
Thnx again for such a quick response.
‎2006 Nov 06 4:07 PM
Thnx to all of you.
Problem is solve in Vendor Master data XK02 there is menur with name Extra which has a sub menu with name of TEXT containing all these fields.
Thnx