Application Development 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: 

user exit

Former Member
0 Kudos
95

i am using the user exit apocf005 , in the function module i see a table it_matkey under the tables parameter , i am supposing it contains all the products details and want to use that in the include . I have to write the code in another include inside the standard include. I am trying to declare a work area for the table

DATA : wa_matkey like it_matkey but it says field it_matkey is unknown. I appreciate if anyone can suggest me how to proceed with this.

1 ACCEPTED SOLUTION

former_member583013
Active Contributor
0 Kudos
71

IT_MATKEY is an Internal Table, that's why you can use it...You should look for the declaration of that table and use it in your code...

Greetings,

Blag.

3 REPLIES 3

former_member583013
Active Contributor
0 Kudos
72

IT_MATKEY is an Internal Table, that's why you can use it...You should look for the declaration of that table and use it in your code...

Greetings,

Blag.

0 Kudos
71

The table is declared like this in the function EXIT_/SAPAPO/SAPLCIF_PROD_001

IT_MATKEY STRUCTURE /SAPAPO/CIF_MATKEY

Can i use it in my program for retrieving the product details like this

LOOP AT it_matkey INTO wa_matkey.

i have declared wa_matkey as

DATA : wa_matkey TYPE /SAPAPO/CIF_MATKEY.

I am getting an error saying it_matkey is unknown . Cant i use it to get the product details . How do i do this? I appreciate your help.

Former Member
0 Kudos
71

instead of referring to the table, try to create the work area referring to the structure of the table. you can find the structure in the tables section of the function module.

Thanks.