Skip to Content
author's profile photo Former Member
Former Member

Determination of country based on Sales Org

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 11, 2007 at 01:53 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 11, 2007 at 01:32 PM

    check the table TVKO

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 11, 2007 at 02:06 PM
    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.