‎2009 Dec 30 9:22 AM
Hi,
I am using RFBPET00 standard program,in that fieldname name1 values are not coming.
For that if bseg-koart = 'K' i need to fetch values from LFA1 and I have to insert values in the detail list.
I need to move values to gs_alv_output_detail-name1.
I have used the following code.
get lfa1.
check lfa1-lifnr = dkonto.
*******This is the place where all gs_alv_output_detail are appended.
if bseg-koart = 'K'.
move : lfa1-name1 to gs_alv_output_detail-name.
endif.
Start Of Insertion by C5053612
APPEND gs_alv_output_detail TO gt_alv_output_detail.
clear gs_alv_output_detail.
while I executing the program I am getting the values
for name1 where 'K' is there.
How to fetch datas from logical database and map it there.
Regards,
Bathri
‎2009 Dec 30 9:30 AM
Check data type of lfa1-name1 and gs_alv_output_detail-name.
Also check in database table that lfa1-name1 value exist or not.
Edited by: Harsh Bhalla on Dec 30, 2009 3:01 PM
‎2009 Dec 30 9:36 AM
Hi Harsh ,
In this data type for gs_alv_output_detail-name is char 30
and data type for lfa1-name1 is char 35.
Could you please suggest further to get the result.
Regds,
Bathri
‎2009 Dec 30 9:43 AM
‎2009 Dec 30 9:51 AM
Hi Harsh,
Thanks for your reply.
I tried this.
move : lfa1-name1(30) to gs_alv_output_detail-name.
But still I am getting ########### for name.
I have one doubt.
get lfa1.
check lfa1-lifnr = dkonto.
After this whether I need to pass any values for name.
Regards,
Bathri.