Skip to Content
0
Former Member
Jan 12, 2012 at 07:03 AM

CMOD-Datasource Enhancement

365 Views

Dear Experts,

i am doing the enhancement for the master data datasource 0CUSTOMER_ATTR.

i am using For All Entries when i am selecting the required data from the application table KNA1 and here the key field was KUNNR.

in the where condition which table we need to provide for " For All Entries" first i used the table I_T_DATA generally this will give us the data from the datasource.

i declared one internal table with type extract structure of datasource 0CUSTOMER_ATTR and used the same in For All Entries.

i am looping the table I_T_DATA and getting the required data from internal table which i fetch from KNA1.

I am getting data for enhanced field when i checked teh same from RSA3,but when i debugged the code i am getting all the entries from KNA1 because the internal table whcih i used in For All Entries is blank.Since i am reading the Internal table from KNA1 only for each entry in I_T_DATA ,i am getting data only for selected records.

Please correct me if i am wrong and which table needs to be provided exactly in the where condition and the reason iam using the "For All Entries" to restrict the database for each record in I_T_DATA.

Regards,

Sunil Kumar.B