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

Im getting unknown data error for SLIS_selfield ??

Former Member
0 Likes
2,193

Im trying to do an interactive alv report using ucomm and slis_selfield. even though I added statement "TYPE-POOLS: SLIS." in the program, I am getting an error. Please see the attachment for error and the code on which error pops up.

The error is that 'SLIS_SELFIED is unknown data or table as its not defined' But it must be a global variable, right?

1 ACCEPTED SOLUTION
Read only

mayur_priyan
Active Participant
0 Likes
1,693

Please declare the formal parameter using TYPE, instead of LIKE to rectify the syntax error.

REPORT  ZTEST_O1.

TYPE-POOLS: SLIS.

DATA: a TYPE sy-ucomm,

            b TYPE slis_selfield.

PERFORM test USING a

                                     b.

FORM test USING ucomm TYPE sy-ucomm

              selfield TYPE slis_selfield.             <<<<<<<<<< Change required

  *????

  ENDFORM.


Regards,

Mayur Priyan. S

7 REPLIES 7
Read only

Former Member
0 Likes
1,693

Make sure the data declaration is done in the top include or if no top include before the form statement.

Rob

Read only

mayur_priyan
Active Participant
0 Likes
1,694

Please declare the formal parameter using TYPE, instead of LIKE to rectify the syntax error.

REPORT  ZTEST_O1.

TYPE-POOLS: SLIS.

DATA: a TYPE sy-ucomm,

            b TYPE slis_selfield.

PERFORM test USING a

                                     b.

FORM test USING ucomm TYPE sy-ucomm

              selfield TYPE slis_selfield.             <<<<<<<<<< Change required

  *????

  ENDFORM.


Regards,

Mayur Priyan. S

Read only

0 Likes
1,693

Hi Ashik,

Please use TYPE :

form display_lineitem using ucomm like sy-ucomm

                  selfield type slis_selfield.

This should activate correctly now.

Regards,

Sapna

Read only

venuarun
Active Participant
0 Likes
1,693

Hi Ashik,

Change your  code like this.

FORM TEST USING  UCOMM TYPE SY-UCOMM

                                SELFIELD TYPE SLIS_SELFIELD.

With Regards

Arun VS

Read only

Former Member
0 Likes
1,693

THank you all, I have another small issue about USER-COMMAND field in selfield.

normally in this call function!!

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

               EXPORTING

   i_callback_program                = sy-repid

   i_callback_pf_status_set          = 'SET_PF_STATUS'

   i_callback_user_command           = 'DISPLAY_ITEM'

what should we write user-command with? In some programs I saw

   i_callback_user_command           = 'USER-COMMAND'

so what does this    'i_callback_user_command ' represents!!

Read only

0 Likes
1,693

Hi,

It represent the form name which you want to execute.

With Regards

Arun VS

Read only

0 Likes
1,693

Hi Ashik,

Its the form name which gets called back on user command. In your case its TEST i.e form name TEST gets called on user command action.

Regards,

Rama