on 2008 Mar 19 8:01 PM
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.
You may check this - Enhancing LO Datasource Step by Step with screen shot and code:
assign points if it helps.
Edited by: Moderator on Mar 19, 2008 3:34 PM
Please don't ask for points on forum replies
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sid Batti,
Check here..........
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/bi/step%2bby%2bstep%2bmaster%2bdata%2benhancement
Regards,
Vijay.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
11 | |
10 | |
10 | |
10 | |
8 | |
7 | |
7 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.