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

Query on BSEG for Vendor Code with the ref. of Document Number

Hi,

How can i Pick Vendor Code with the ref. of Document Number....whereas my query of picking Vendor code is on other table...

Means, i m picking Vendor Code from a Table like BSIK...but few reocrds r not coming properly...so i want to query from BSEG for few queries....for which document no. & Vendor Code not found with BSIK table...

Thanks...

Don't post duplicate threads continue with your old thread

Edited by: Vijay Babu Dudla on Jan 16, 2009 4:35 AM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Jan 16, 2009 at 08:53 AM

    Hello Prince,

    Did you follow up with your previous post ?

    Suhas

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      Ur requirement is not clear.

      In my understanding ,

      select lifnr and belnr from bsik table into one internal table(it_bsik) and select lifnr and belnr from bseg into another internal table(it_bseg).

      Loop at it_bseg into wa_bseg.

      read table it_bsik into wa_bsik with key belnr eq wa_bseg-belnr.

      If sy-subrc ne 0.

      move: wa_bsik-lifnr to wa_result-lifnr,

      wa_bsik-belnr to wa_result-belnr "another internal table

      append wa_result to it_result.

      endif.

      endloop.

      If my understanding is correct then above code will be helpful to u.

      Thanks.

  • Posted on Jan 16, 2009 at 09:23 AM

    Hello Prince,

    I do not understand why do you have to select data from BSEG?

    Which are the fields that are not available with BSIS but available in BSEG?

    Plz revert back.

    BR,

    Suhas

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 16, 2009 at 02:16 PM

    BSEG contains LIFNR.

    Rob

    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.