Hello Experts,
First please be gentle with coding explanation, I am not Abap. I'm trying to call a function from infoset, the function output it's a table (I wrote the code into the coding space for an additional field). I don't know how to print this results in the ALV report.
My source code is:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
DATA: OR_EDELNR TYPE MDPS-DEL12.
DATA: OR_EMATNR TYPE MT61D-MATNR.
DATA: OR_EWERKS TYPE MT61D-WERKS.
data: begin of mdrqx occurs 50.
include structure mdrq.
data: end of mdrqx.
OR_EDELNR = PLAF-PLNUM.
OR_EWERKS = PLAF-PLWRK.
OR_EMATNR = PLAF-MATNR.
CALL FUNCTION 'MD_PEGGING_NODIALOG'
EXPORTING
EDELKZ = 'AE'
EDELNR = OR_EDELNR
EMATNR = OR_EMATNR
EWERKS = OR_EWERKS
TABLES
IMDRQX = mdrqx
EXCEPTIONS
error = 1
no_requirements_found = 2
order_not_found = 3
others = 4.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
I've been trying to loop the table with different statements like
write:/ mdrqx-matnr.
However the structure MDRQX has more that one line, and the results in the ALV is printing just the final line.
Thanks for your helping