Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 are the advantages and disadvantages of using views in abap programming ?

1162


What are the user groups?

1066


How the Sy-Mandt value gets updated in the table and Is this having any foreign key relationship.

2456


What are internal tables? How do you get the number of lines in an internal table?

1112


What is the difference between pnp and pnpce? : abap hr

1701


Why do we declare a method of a class final? What can be the purpose? Give a scenario.

1493


What is personnel sub are

2103


What is meant by performance analysis? Have done anything to improve the performance?

1043


Is it possible to run host command from SAP environment? How do you run?

1171


What is ole?

1187


What is transparent table?

1125


What is tcode se16? For what is it used.

1162


How to load data from ms excel sheet to sap by using bdc method ? : abap bdc

1327


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

1145


What are the problems in processing batch input sessions? How is batch inputprocess different from processing online?

1122