11-05-2007 7:20 AM
Hi All,
<i>Get the sales organization number From VBRK-VKORG
Take the SalesOrganisation number, get the <text> in V_TVKO-TXNAM_KOP
Take the <text>, get the text of Sales Organisation Name</i>
<b>How to Develop code for above steps</b>
<u>Reward points for helpful answer</u>
Thanks
SEK
11-05-2007 7:28 AM
select <fields> from VBRK into table it_vbrk.
select SPRAS VKORG VTEXT from TVKOT into table it_tvkot
for all entries in it_vbrk where vkorg = it_vbrk-vkorg.
IT_TVKOT contains the names of the sales organisations.
Regards
Gopi
11-05-2007 7:29 AM
Hi SEK,
Get Sales organisation text V_TVKO-VTEXT only by passing the vkorg only.
Or u can get it in SO by using FM read_text.
Reward pts if it is helpfull
Regards
Srimanta
11-05-2007 7:31 AM
Hi
do like this
select vkorg from vbrk into table i_vbrk.
if not i_vbrk[] is initial.
select text from tvkot into table i_tvko for all entries in i_vbrk
where vkorg = i_vbrk-vkorg.
endif.
Reward if helpful.
Regards,
Nagaraj
11-05-2007 7:51 AM
Hi,
Try this.
DATA : tvko_addr LIKE tvko.
SELECT SINGLE
adrnr FROM tvko INTO tvko_addr
WHERE vkorg = vbak-vkorg.
Srinu