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

Enhancement SLIN errors

Former Member
0 Likes
2,214

Hi all,

I have a structure with enhancement category (deep).

In the function module i have called submit statement as follows:

submit program with p_struc = is_structure.  (where is_structure is Enhanced with Deep)

when i do SLIN check, it is giving warning, in the above submit statement.

Please suggest me how can i avoid this SLIN error. Thanks.

Regards,

Venkat

7 REPLIES 7
Read only

Former Member
0 Likes
1,728

Hi Venkata,

You have not explained the issue you are facing in your post.

Regards,

Swati

Read only

Chintu6august
Contributor
0 Likes
1,728

Hi,

use PRAGMAS to overcome warnings

Table SLIN_DESC contains all the Pseudo code which can be used to suppress various errors and warnings from the Extended Program Check (SLIN).

thanks!!

Read only

0 Likes
1,728

Hi,

Thanks for the table info.

For my error PRAGMA value is 'NOCOMMENT'.

Then i have used as below in my function module where the problem exists.

Submit program with p_struc = is_structure.  "EC NOCOMMENT

But still the same error is coming. Please correct me if i am using it wrongly.


Regards,

Venkat

Read only

0 Likes
1,728

use ##NOCOMMENT.

thanks!!

Read only

0 Likes
1,728

Hi,

run the extended program check..it will enlist the warning and errors..double click on them, system will suggest you how to hide those warning and errors using pragmas.

like this

thanks


Read only

CreyJ
Participant
0 Likes
1,728

Dear Venkat,

looking at your code, it looks like you are passing a deep structure to a parameter of a report, which is a single field. This looks a little bit strange to me and I'm wondering how this is working at all.

To get it working you should only pass only that part of the flat part of the structure to the parameter that fits the fragment view of the input parameter.

So, if the parameter is a character field, you should only pass the relevant characters, and not the strings/internal tables or numerical fields, e.g. by using a group in the structure definition.

Regards

-Jürgen-

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,728

Could you replace the called report type program with a method of a class or at least a function module. Why did you use a report, is it a standard one?

We can pass such structure to report with a NO-DISPLAY parameter, but that's not good practice for many reasons...

Regards,

Raymond