Application Development and Automation 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: 
Read only

Importing memory id into parameter defined as an integer.

Former Member
0 Likes
310

Can I pull a Memory ID into a parameter defined as integer using the memory id option of the Parameter statement.

PARAMETER: p_lineno     LIKE zsd_oms_orders-line_no     MEMORY ID lineno

I have set the memory id to using  a type n field, but the parameter is always zero.

1 REPLY 1
Read only

Former Member
0 Likes
274

Hi Daryl,


Suppose your declaration like this:


Data: lineno type i.

PARAMETER: p_lineno     LIKE zsd_oms_orders-line_no     MEMORY ID lineno.

I`m right? The initial value of this variable 'lineno' definitely is zero.

If you declaration like this:

Data: lineno type i value 3.


then you can 'SET parameter id 3 fields xxx'.


regards,

Archer