‎2010 Sep 28 8:25 PM
Hi SAPMASTER,
Please, I need your help!!!!
Forgive my stupid doubt.
I need to export a table from FM.
Below is my FM:
FUNCTION ZZEXPORTA.
*"----
""Local Interface:
*" EXPORTING
*" VALUE(OUT1) TYPE ZZSTRU_ZZQTDMAT
*"----
DATA: itab TYPE TABLE OF ZZSTRU_ZZQTDMAT,
wa LIKE LINE OF itab.
wa-material = '123'.
wa-descricao = 'nothing'.
wa-unidade = 'ea'.
wa-quantidade = 123.
MOVE-CORRESPONDING wa to out1.
CLEAR wa.
wa-material = '234'.
wa-descricao = 'all'.
wa-unidade = 'xyz'.
wa-quantidade = 456.
MOVE-CORRESPONDING wa to out1.
CLEAR wa.
ENDFUNCTION.
The result is just the "last" data that I put in wa (this is right).
Please, how can I add 2 "registers" to structure ?
I tried APPEND but I got an error message:
"out1 is not a internal table".
I appreciate your help.
Regards,
Edson Luiz
‎2010 Sep 28 8:42 PM
Hello,
you can change EXPORTING parameter to TABLES parameter...
then you will be able to do APPEND
Cheers!
‎2010 Sep 28 8:42 PM
Hello,
you can change EXPORTING parameter to TABLES parameter...
then you will be able to do APPEND
Cheers!
‎2010 Sep 28 8:50 PM
Hi Krishnendu Laha,
Thank you for your help but I have already put in TABLES tab.
SAP did not permit. I got the error message:
"TABLE is OBSOLETE".
So, I put in Export tab.
Please, is there any way to put in the TABLES tab?
Regards,
Edson Luiz
‎2010 Sep 28 8:54 PM
Hello,
Create one table type from SE11 and declare output (exporting table) ref. of that table type. Let us know if you have any issue.
Thanks,
Naveen Inuganti.
‎2010 Sep 29 1:25 PM
Hi Naveen Inuganti,
Thank you so much for your answer.
Now everything is ok.
Best Regards,
Edson Luiz