Application Development and Automation 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: 
Read only

Urgent

Former Member
0 Likes
686

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

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

4 REPLIES 4
Read only

gopi_narendra
Active Contributor
0 Likes
656

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

Read only

Former Member
0 Likes
656

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

Read only

former_member404244
Active Contributor
0 Likes
656

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

Read only

Former Member
0 Likes
656

Hi,

Try this.


DATA : tvko_addr LIKE tvko.
    SELECT SINGLE
          adrnr FROM tvko INTO tvko_addr
          WHERE vkorg = vbak-vkorg.

Srinu