Application Development 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: 

Urgent

Former Member
0 Kudos

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

gopi_narendra
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

former_member404244
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi,

Try this.


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

Srinu