on 05-22-2009 4:52 AM
Hi,
i want to enhance 2lis_02_acc datasource. basically this data source based on EKKO,EKKN AND EKPO. i want to add PSPNR from PROJ Table and where EKKN.PRCTR = PROJ.PRCT.
please provide me the step by step solution for this. after adding the field to the datasource i want to extract the data for this field from PROJ.
regards
Hi
data : begin of it_proj,
PRCTR like PROJ-PRCTR,
PSPNR like PROJ-PSPNR,
end of it_proj.
data : <FS_PROJ> like table of PROJ.
select PRCTR PSPNR from PROJ into corresponding fields of table it_proj
for all entries in ct_data where PRCT = ct_data-PRCTR.
loop at ct_data
read table it_proj with key PRCTR = ct_data-PRCTR.
if sy-subrc = 0.
move it_proj-PSPNR to <FS_PROJ>-PSPNR
endif.
Hope this ll be helpful.
Thank-You.
Regards
Vinod.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You need to append a structure and add the field first in the datasoruce and then write code to populate it..
Chk this article..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
9 | |
9 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.