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

Master data Routine

Hi Friends,

I need to write an End routine at DSO level to populate an Info object( List amount) with Master data Info object (0BPARTNER) from its Q Table,

Key fields are 0Bpartner,Objver and Date to.Can somebody please give me the code.

Thanks,

Sahasra

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 13, 2012 at 09:13 AM

    Hi Sahasra,

    You can directly assign the objects in the transformation and use option "Read from master Data".

    However you can write the code as below:

    data: i_tab type standard table of /BI0/QBPARTNER,

    wa_tab type /BI0/QBPARTNER.

    Select * from /BI0/QBPARTNER into table i_tab

    for all enteries in result_package

    where bppartner = result_package-bpartner and

    objver = 'A' and

    date_to = result_package-date_to.

    loop at result_package assigning <result_fields>.

    read table i_tab into wa_tab with key

    bpartner = <result_fields>-bpartner

    date_to = <result_fields>-date_to.

    if sy-subrc = 0.

    <result_field>-list amount = wa_tab-list amount.

    endif.

    endloop.

    Hope it helps.

    Regards,

    Satyam

    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.