Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Logical database fetching datas

Former Member
0 Likes
631

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

                    1. for name1 where 'K' is there.

How to fetch datas from logical database and map it there.

Regards,

Bathri

4 REPLIES 4
Read only

Former Member
0 Likes
578

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

Read only

0 Likes
577

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

Read only

Former Member
0 Likes
577

Try move : lfa1-name1(30) to gs_alv_output_detail-name.

Read only

0 Likes
577

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.