Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Modulepool

Former Member
0 Likes
513

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.

2 REPLIES 2
Read only

Former Member
0 Likes
414

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.

Read only

0 Likes
414

Hi,

No it is must to declare the <b>TABLES</b> declaration in the code.

Thanks,

Anil.