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

Sample Code for MasterData Datasource Enhancement

Hi Experts,

Can anyone write a sample code to enhance Masterdata Datasource by adding 5 fields from std table to it. I am refering to the code going into "Include ZXRSAU02".

Thanks,

SB.

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Mar 19, 2008 at 08:21 PM

    You may check this - Enhancing LO Datasource Step by Step with screen shot and code:

    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b0af763b-066e-2910-a784-dc6731660f46

    assign points if it helps.

    Edited by: Moderator on Mar 19, 2008 3:34 PM

    • Please don't ask for points on forum replies

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 20, 2008 at 01:20 PM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 20, 2008 at 01:25 PM

    Hi Sid,

    Go through this code.

    Data Declaration starts

    DATA : l_biw_knvv_s LIKE biw_kna1_s.

    DATA : zz1payer LIKE knvp-kunn2, zz1pcc_area LIKE knkk-kkber,

    zz1pind_cd2 LIKE kna1-bran2,zz1pterm LIKE knvv-zterm,

    zz1pcustgrp LIKE knvv-kdgrp.

    Logic to be added

    when '0CUSTOMER_ATTR'.

    clear i_counter.

    loop at i_t_data into l_biw_kna1_s.

    Selection of Payer against “Sold to” of Customer

    select * from knvp

    where kunnr = l_biw_kna1_s-kunnr

    and VKORG = l_biw_kna1_s-vkorg

    and VTWEG = l_biw_ kna1_s-vtweg

    and SPART = l_biw_kna1_s-spart

    and parvw = 'RG' .

    if sy-subrc eq 0.

    l_biw_kna1_s-zz1payer = knvp-kunn2.

    Else

    l_biw_kna1_s-zz1payer = l_biw_kna1_s-kunnr.

    Endif

    In the similar way you will enhance the extractor

    Regards

    Karthik

    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.