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

Excluding fields

Former Member
0 Likes
1,696

Hi Experts,

I have a requirment in that i have 2 exclude certain fields

for example-----

DATA WA_KNA1 LIKE KNA1.

it gives me exct structure like kna1 with all fields in header or work area say among 50 fields i want 2 exclude 10 fields how can i do that is any syntax or way without declaring structure.

thnx..

ketan...

2 REPLIES 2
Read only

Former Member
0 Likes
897

NO.

when you declaring that way that means youwant entire structure of kna1.If you dont want certain fields then you gotto declare structure explicitly.

Read only

Former Member
0 Likes
897

Hi,

- Use the FM DDIF_NAMETAB_GET to get the list of all fields of the required DB table.

- Delete all the fields which needs to be excluded

- Write the logic to build the internal table dynamically with the remaining fields.