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: 

Determination of country based on Sales Org

Former Member
0 Kudos

Hi Friends,

I have sales Organization , I need to determine the country (Land1 field )

, which table I need to check to that,

Is there any direct relationship to get this or please provide the path forward to get this.

Cheers

Prashant

1 ACCEPTED SOLUTION

Former Member

just select the fields vkrog and BUKRS from TVKO

and now select the Land1 from T001 giving BUkrs as the input .

u need to make use of both the tables TVKO and T001 to get land1 .

regards,

vijay

3 REPLIES 3

Former Member
0 Kudos

check the table TVKO

Former Member

just select the fields vkrog and BUKRS from TVKO

and now select the Land1 from T001 giving BUkrs as the input .

u need to make use of both the tables TVKO and T001 to get land1 .

regards,

vijay

Former Member
0 Kudos
parameters : p_vkorg like tvko-vkorg.


data : v_vkorg like vbak-vkorg.
data:  v_bukrs like ekpo-bukrs.
data:  v_land1 like kna1-land1.

       select single vkorg bukrs into (v_vkorg , v_bukrs)
               from tvko where
                    vkorg = p_vkorg.

                    if sy-subrc eq 0.
                    write:/ v_vkorg, v_bukrs.
                    else.
                    write:/ 'Invalid sales org'.
                    endif.

       select single land1 into v_land1 from t001 where bukrs = v_bukrs.

       write:/ 'Country', v_land1.

check this ..

regards,

vijay.