12-18-2006 4:47 PM
I try to define internal table in parameters but get error message "the nested data type is not allowed", please see below code and help to give me the solution.
types: prodnr(3) type n.
types: pnr TYPE STANDARD TABLE OF prodnr WITH DEFAULT KEY.
PARAMETER: lt_prodnr type pnr.
Thanks!
Yu
12-18-2006 4:49 PM
12-18-2006 4:49 PM
12-18-2006 4:51 PM
12-18-2006 4:52 PM
HI,
u can give directly....
Data prodnr(3) type n.
parameters: pa_prodnr like prodnr.
Regards
Cnu
12-18-2006 5:00 PM
oic! Thanks Rich.
Originally I want to define internal table PARAMETERS in the program with NO-DISPLAY and then SUBMIT this program by WITH v1 = value1...
Then if I want to pass internal table to the program which will be submitted in background, how can I do?
Yu
12-18-2006 6:42 PM
I think the easiest way would be to have the submitting program export the internal table to memory and have the submitted program import it.
Rob
12-18-2006 6:51 PM
You can do this using the EXPORT and IMPORT statements.
data: itab type table of mara.
export itab = itab to memory id 'ZRICHTEST'.
SUBMIT zrich_0002 and return.
Then in the submitted program......
data: itab type table of mara.
import itab = itab from memory id 'ZRICHTEST'.
loop at itab.
write:/ itab-matnr, itab-mtart.
endloop.
Regards,
Rich HEilman
12-18-2006 4:51 PM
Hi Yu,
Try like this. Instead of Parameter use Data to define the field lt_prodnr.
types: prodnr(3) type n.
types: pnr TYPE STANDARD TABLE OF prodnr WITH DEFAULT KEY.
<b>DATA</b>: lt_prodnr type pnr.
This should work.
Reward points if helpful.
Regards,
Biju