2007 Jul 16 6:00 PM
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.
2007 Jul 16 6:06 PM
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.
2007 Jul 16 6:06 PM
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.
2007 Jul 16 6:32 PM
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.
2007 Jul 16 6:26 PM
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.