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
What are the advantages and disadvantages of using views in abap programming ?
What are the user groups?
How the Sy-Mandt value gets updated in the table and Is this having any foreign key relationship.
What are internal tables? How do you get the number of lines in an internal table?
What is the difference between pnp and pnpce? : abap hr
Why do we declare a method of a class final? What can be the purpose? Give a scenario.
What is personnel sub are
What is meant by performance analysis? Have done anything to improve the performance?
Is it possible to run host command from SAP environment? How do you run?
What is ole?
What is transparent table?
What is tcode se16? For what is it used.
How to load data from ms excel sheet to sap by using bdc method ? : abap bdc
How to find the return code of a statement in abap programs?
What are the problems in processing batch input sessions? How is batch inputprocess different from processing online?