what is the code for basic list to 2ndry list?

Answer Posted / vijaypamulapati

Hi first retrive the data for basic list(from KNA1) after
that write the fallowing code.

AT LINE-SELECTION.

CASE SY-LSIND.
WHEN ‘1’.
SELECT KUNNR
VBELN
ERDAT
ERNAM
NETWR
FROM VBAK INTO TABLE T_VBAK WHERE KUNNR =
W_KNA1-KUNNR.

SORT T_VBAK BY VBELN.
NEW-PAGE LINE-COUNT SY-SROWS.

LOOP AT T_VBAK INTO W_VBAK.
WRITE:/10 SY-VLINE, W_VBAK-VBELN ,
35 SY-VLINE, W_VBAK-ERDAT,
55 SY-VLINE, W_VBAK-ERNAM,
67 SY-VLINE, W_VBAK-NETWR, 90 SY-VLINE .
HIDE W_VBAK-VBELN.
WRITE:/10 SY-ULINE(81).

Regards,
Vijay

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the Difference between At Line selection and At user-command?

850


What is a subroutine?

801


What is the significance of hide?

751


What are the different types of the variable in the sap abap?

776


Difference between user exit and badis?

820


Difference between function group and function module?

825


State the differences between database view & projection view? : abap data dictionary

802


Explain the Inportance of pa30? : abap hr

974


What are the events used in abap in the order of execution?

746


What are the differences between a database index and a match code? : abap data dictionary

886


performance tuning concepts

1144


What are the events used in interactive reports?

827


How to find the return code of a statement in abap programs?

828


What is asynchronous and synchronous update?

757


What are the layers of data description in r/3? : abap data dictionary

859