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

Syntex error in Function Module

Former Member
0 Likes
395

Hi,

I am getting following error in this Function Module ,

code is : go_uexit = ybc_uexit_check_01=>get_instance( fcs_accit-budat ).

Error: You can only omit the parameter name if the method only has a non-optional parameter or an optional IMPORTING parameter that is identified by "PREFERRED PARAMETER". by "PREFERRED PARAMETER".

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
348

hi ,

can you send signature of 'get_instance' method ?

example: you can set PREFERRED PARAMETER to import parmeters to that you can use the short form

METHODS meth

[IMPORTING parameters [PREFERRED PARAMETER p]]

[EXPORTING parameters]

[CHANGING parameters]

[{RAISING|EXCEPTIONS} exc1 exc2 ...].

if a parameter is defined as PREFERRED then you can use the short form will calling i.e. meth (a)

1 REPLY 1
Read only

Former Member
0 Likes
349

hi ,

can you send signature of 'get_instance' method ?

example: you can set PREFERRED PARAMETER to import parmeters to that you can use the short form

METHODS meth

[IMPORTING parameters [PREFERRED PARAMETER p]]

[EXPORTING parameters]

[CHANGING parameters]

[{RAISING|EXCEPTIONS} exc1 exc2 ...].

if a parameter is defined as PREFERRED then you can use the short form will calling i.e. meth (a)