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

how to track records from data dictionary?

2029


How do you display a data in a detail list?

944


How to insert a line into abap internal tables?

1022


When a function module is activated syntax checking is performed automatically. State yes or no. : abap modularization

1014


In sap script how to print bar code in vertical manner

3174


Can you delete data element, which is being used by table fields?

1287


What are the organizational related Infotypes

2025


What is hotspot?

1370


What is the difference between call transaction and session method? : abap bdc

1142


What is buffering in abap?

1151


What is bdc? : abap bdc

977


What is the use of the statement leave to list-processing?

931


What is a size category? : abap data dictionary

1036


what are the important fields while preparing sales order,inquiry?

2250


Explain the difference between get and get late?

1019