‎2007 Nov 29 6:14 AM
Hi,
I am working on modulepool with screen BADI . In my Program as per the client standards i should not use <b>TABLES</b> statement declaration. But in my select query where condition i have to refer the field which will start with D/B talbe name.
code is like this.
<b>Tables lfa1.</b>
SELECT lifnr
ktokk
FROM lfa1
INTO CORRESPONDING FIELDS OF TABLE i_lfa1
WHERE lifnr = <b>lfa1-lifnr</b>
AND ktokk = <b>lfa1-ktokk</b>.
In the above where condition lifnr & ktokk are screen field in standard layout for XK02 Tcode and these fields carrying some values which need to capture at runtime.
Plese tell how to remove the TABLES statement from the code.
*Points sure for correct soution*
Thanks in Advance,
Anil.
‎2007 Nov 29 6:30 AM
Hi anil,
I do not think it is required to declare a tables statement for the standard table,you can directly fetch the data from the required fields.
Please reward if useful.
Thank you.
‎2007 Nov 29 6:32 AM
Hi,
No it is must to declare the <b>TABLES</b> declaration in the code.
Thanks,
Anil.