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

how to get vendor and company code based on logistic invoice document

how to get vendor and company code based on logistic invoice document in abap/4?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2008 at 06:16 AM

    Hi,

    Plz try like this...

    select LIFNR BUKRS into table <internal table> from RSEG where belnr = <lv_belnr> and gjahr = <lv_gjahr>.

    Hope it will helps

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2008 at 06:17 AM

    try this functin module.

    SUPO_GET_VENDORID_COMPANYCODE

    jithendra

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 21, 2008 at 06:27 PM

    Hello Kumar

    When you call BAPI_INCOMINGINVOICE_GETDETAIL using

    INVOICENUMBER = <number of invoice> 
    FISCALYEAR = <fiscal year>

    the returned HEADERDATA contains what you are looking for:

    HEADERDATA-COMP_CODE
    HEADERDATA-DIFF_INF

    Regards

    Uwe

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2008 at 05:55 AM

    Hi Uwe,

    Thanks for response. But I want select statement for this query and what are the tables used for this select statement?

    Thanks & regards,

    kumarraju.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 22, 2008 at 06:03 AM

    try table EKBE.

    plz dont create duplicates.

    regards

    Prabhu

    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.