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

How to include SLIS_T_LSITHEADER into a ZFunctionModule

hardhik_kodi
Explorer
0 Likes
1,758

I am using Z_B_ENTETE_ALV function module .

Interface locale :

*" IMPORTING

*" REFERENCE(V_PROG) TYPE SY-REPID

*" REFERENCE(V_EVE)

*" REFERENCE(V_TITRE)

*" REFERENCE(V_TYPE)

*" REFERENCE(V_FIC_SORT)

*" REFERENCE(V_FIC_ENT)

*" TABLES

*" ZT_LIST_TOP_OF_PAGE STRUCTURE SLIS_T_LISTHEADER

*" ZT_LIST_TOP_OF_LIST STRUCTURE SLIS_T_LISTHEADER

if i try to excute it .it gives " Field SLIS_T_LISTHEADER" unknown .

For that i have created a new include program and in that i declared

type-pools : slis.

and I included this inlude program in Function pool .

*******************************************************************

  • System-defined Include-files. *

*******************************************************************

INCLUDE LZTESTTOP. " Global Data

INCLUDE LZTESTUXX. " Function Modules

*******************************************************************

  • User-defined Include-files (if necessary). *

*******************************************************************

  • INCLUDE LZTESTF... " Subprograms

  • INCLUDE LZTESTO... " PBO-Modules

  • INCLUDE LZTESTI... " PAI-Modules

INCLUDE ZTEST_INCLUDE. -


>this is my include.

even though iam getting same error.

Please help.

Points rewarded.

1 ACCEPTED SOLUTION
Read only

former_member199581
Active Participant
0 Likes
1,651

The TYPE-POOLS: slis. declaration must be BEFORE the INCLUDE LZTESTUXX statement.

Otherwise, it will be not visible by Function Modules.

Hope this helps.

Roby.

13 REPLIES 13
Read only

Former Member
0 Likes
1,651

Add this statement as well

type-pools : slis.

  • WHEN USING MORE THAN ONE TABLE IN ALV WE NEEED TO DECLARE THE TYPE

  • GROUP (TYPE-POOLS--------->SLIS)

type-pools : slis.

Amandeep

Read only

0 Likes
1,651

Dear Amandeep,

Thanks for your reply.

Already I have included the statement in Zinclude_test and included in function pool.

TYPE-POOLS : SLIS.

Eventhough iam getting same error.

Let me know where can I include exactly.

regards,

hardhik.

Read only

0 Likes
1,651

Include the statement in the TOP Include.

A

Read only

former_member195698
Active Contributor
0 Likes
1,651

Try adding the Include statement ( INCLUDE ZTEST_INCLUDE. -


>this is my include. ) in the TOP INCLUDE. (LZTESTTOP) Activate the Include and then do the syntax Check...

Read only

0 Likes
1,651

Dear All,

I have included in TOP and activated.

iam getting same error.

pl give solution ASAP...

regards,

Hardhik.

Read only

0 Likes
1,651

As said, I did like this.

go to Include

 LZTESTTOP

. and key in the statement

type-pools : slis.

.

Activate the TOP include first and Activate the FM.

OR

go to the Attributes Tab

double click on the Program Name

should take you to the progrm where TOP include is declared.

double click on the TOP include and declate the Type-Pool there.

This should work without any problem.

A

Read only

0 Likes
1,651

Thanks for your quick reply,

as you said . I did

included in top and activated both.

but same problem.

regards,

Hardhik.

Read only

0 Likes
1,651

Whats the name of the function Group ?

Is it ZTEST ??

find the Include name Z<b>(NAME Of FUNCTION GRP)</b>TOP.

Include the statement there. I am not sure if you are declaring it in the correct include.

A

Read only

0 Likes
1,651

I have included the slis staement in LZTESTTOP.

but not resolved.

Read only

former_member199581
Active Participant
0 Likes
1,652

The TYPE-POOLS: slis. declaration must be BEFORE the INCLUDE LZTESTUXX statement.

Otherwise, it will be not visible by Function Modules.

Hope this helps.

Roby.

Read only

0 Likes
1,651

Hi Roby,

Thanks for your reply.

I have included the slis as you said .

still same error.

pl help.

regards,

Hardhik.

Read only

0 Likes
1,651

Didn't check your Function Module Interface. The Interface is using SLIS_T_LISTHEADER. You can use only data Dictionary objects in the interface.

Use the Table type <b>LVC_T_HEAD</b> instead of SLIS_T_LISTHEADER. It has the same structure as SLIS_T_LISTHEADER

Regards,

Abhishek

Read only

0 Likes
1,651

Thanks a lot Abhishek,

my problem resolved.

i have used LVC_T_HEAD.

regards,

Hardhik.