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

interactive alv issue

Former Member
0 Likes
667

hi this is saroj.

i have done interactive alv report for vbak and vbap.i am getting VBELN ERDAT and double clicking on VBELN i am getting VBELN POSNR.MY issue is :

SELECTION-SCREEN.:

S_VB : FROM(FIELD) TO(FIELD).

after F8 I am getting VBELN ERDAT and after double clicking on VBELN i am getting VBELN POSNR.

LAY OUT OF GRID: VBELN ERDAT ( BASIC LIST) => VBELN POSNR

4969 21.09.2010 4969 20

BUT AFTER COMING BACK TO BASIC LIST AND AGAIN DOUBLE CLICKING ON VBELN I AM GETTING TWO GRIDS OF VBELN POSNR.

LAY OUT: VBELN POSNR VBELN POSNR

4969 20 4969 20

SO MY ISSUE IS I SHOULD GET ONE SECONDARY LIST WITH ONE LAY OUT I.E VBELN POSNR

4969 20

CAN ANY ABAPER GIVE SOME CODES REGARDING THIS.WAITING FOR REPLY.

REGARDS

SAROJ

7 REPLIES 7
Read only

Former Member
0 Likes
643

Hi,

Check the columns in the field catalog used for ALV Grid Display.

Regards

Vinod

Read only

0 Likes
643

binod in fieldcatalog we are specifying the fields we want.i think there is nothing to do with fieldcatalog.my issue is NOT TO GET THE PEPEATED FIELDS LIKE VBELN POSNR VBELN POSNR.

I THINK THERE IS A PROBLEM WITH SY-LSIND.BUT I COULDNOT FIND OUT WHAT SHOULD BE THE CODE FOR THIS.

I HAVE TRIED THIS CODE.: DATA: T_IND TYPE SY-LSIND.

MOVE SY-LSIND TO T_IND.

CLEAR FCODE.

CASE FCODE. "(FCODE TYPE SY-UCOMM.)

WHEN '&IC1'.

PERFORM FIELDCAT.

PERFORM EVENT.

PERFORM GETDATA.

PERFORM DISPLAY.

CLEAR T_IND.

ENDCASE.

SO CHECK THIS AND PLZ GIVE ME CORRECT CODE IF IT IS WRONG.

REGARDS

SAROJ

Read only

0 Likes
643

Hi,

Hope your problem is repetative columns for VBELN and POSNR when you double click on the primary list. Still i feel the problem is the way you populate the field catalog. Hope you REFRESH the field catalog internal table while executing code in

PERFORM FIELDCAT.

Regards

Vinod

Read only

0 Likes
643

ok i will check it.but the code i have given is correct or not.

saroj

Read only

Former Member
0 Likes
643

Hi,

The code you have given is ok.

Check your PERFORM FIELDCAT and the other PERFORMs.

Edited by: benumartin on Sep 22, 2010 10:44 AM

Read only

0 Likes
643

Hi,

After your PERFORM DISPLAY

Clear : Your internal Table[](Secondary list Internal table),

Fieldcat internal table[].

This will solve your Problem.

Read only

Former Member
0 Likes
643

answered