Skip to Content
0
Former Member
Jul 22, 2010 at 03:16 PM

Add column

37 Views

Hi all,

If I want to add 2 new field : mtbez from ty_summary and xrate from ty_summaryc to itab table, may I know what should I do? How am I going to declare it? Currently the output display in normal report and I want to add another option for alv report . For the alv report all output data will store in itab.

Below is the existing code before i do any enchancement:

DATA: BEGIN OF itab OCCURS 0,

lifnr LIKE lfa1-lifnr, " vendor no

xblnr LIKE rbkp-xblnr, " inv no

matnr LIKE ekpo-matnr, " part no

ebeln LIKE rseg-ebeln, " order no

land1 LIKE lfa1-land1, " Vendor's Country SN001+

wemng LIKE ekbez-wemng, " rcv-qty

menge LIKE mseg-menge, " str-qty

uprice(9) TYPE p DECIMALS 4, " unit-price

waers LIKE rbkp-waers, " cur

wrbtr LIKE rseg-wrbtr, " amount

kursf LIKE rbkp-kursf, " rate

belnr LIKE rbkp-belnr, " inv doc no

buzei LIKE rseg-buzei, kursf_c(13),

END OF itab.

TYPES: BEGIN OF ty_summary.

TYPES: landx LIKE t005t-landx,

mtbez LIKE t134t-mtbez,

prdha LIKE mara-prdha,

knttp LIKE ekpo-knttp,

mtart LIKE mara-mtart.

INCLUDE STRUCTURE itab.

TYPES: END OF ty_summary.

TYPES: BEGIN OF ty_summaryc.

TYPES: curr LIKE rbkp-waers,

mtbez LIKE t134t-mtbez,

prdha LIKE mara-prdha,

knttp LIKE ekpo-knttp,

mtart LIKE mara-mtart,

xrate(10).

INCLUDE STRUCTURE itab.

TYPES: END OF ty_summaryc.

Many thanks!!