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

initialization in function module

Former Member
0 Likes
1,314

hi all,

i have created one function module, one of the select option is declared as

S_BELNR TYPE RSELOPTION.

i will have in the select option as

SIGN OPTION LOW HIGH

WE want to declare SIGN and OPTION default in the code itself as

s_belnr-sign = 'I'.

s_belnr-option = 'EQ'.

Append s_belnr.

but an error has been occured as S_BELNR is table without a header line and therefore has no component called 'SIGN'.

Please let me know how to delcare them default.

thanks in advance

4 REPLIES 4
Read only

venkat_o
Active Contributor
0 Likes
921

Hi Sainath, You can define SELECT-OPTIONS like below


DATA :s_belnr TYPE RANGE OF bseg-belnr,
      w_belnr like line of s_belnr.
Thanks Venkat.O

Read only

Former Member
0 Likes
921

if i declare as

DATA :s_belnr TYPE RANGE OF bseg-belnr,

w_belnr like line of s_belnr.

getting an error as

s_belnr has already declared.

Read only

venkat_o
Active Contributor
0 Likes
921

Hi, Comment the one previously defined.It might be the below.


S_BELNR TYPE RSELOPTION.
Thanks Venkat.O

Read only

venkat_o
Active Contributor
0 Likes
921

You do not have a habit of closing threads. Thanks Venkat.O