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

Table For Material Document

Hi Guru,

My requirement is that I have to fetch Dmbtr field from MSEG table for the current period and movement type. But I dont have filed perios in MSEG table. But I have documnet number (MBLNR ) in MSEG. So is there any link so that I can fetch DMBTR for the particular period and movement type.

Maximum pts will be rewarded.

Thanks,

Sandeep Garg

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 10:50 AM

    Hi

    Before reading the items (table MSEG) u should extract the header (MKPF) selecting for posting date: MKPF-BUDAT.

    If you need to know which documents are posted in a certain period, it means to extract all documents posted in a certain range of day.

    So u need to calculate the first and last day of the current period: these usually are the first and last day of the months.

    So u can create a join beetween MKPF and MSEG in order to extract all items of a certain moviment type and posted in a certain period.

    Max

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 10:53 AM

    pass mkpf-budat in function

    ' BAPI_COMPANYCODE_GET_PERIOD ' to get period.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 10:55 AM

    Hi,

    MKPF is the table for material document.

    Regards,

    Sharath

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 11:00 AM

    hi,

    u can find from table mkpf

    fields - mblnr, budat,bldat

    Rgds.,

    subash

    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.