2015 Mar 14 10:28 PM
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?
2015 Mar 16 5:08 AM
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
2015 Mar 15 6:50 PM
Make sure the data declaration is done in the top include or if no top include before the form statement.
Rob
2015 Mar 16 5:08 AM
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
2015 Mar 16 5:21 AM
Hi Ashik,
Please use TYPE :
form display_lineitem using ucomm like sy-ucomm
selfield type slis_selfield.
This should activate correctly now.
Regards,
Sapna
2015 Mar 16 5:26 AM
Hi Ashik,
Change your code like this.
FORM TEST USING UCOMM TYPE SY-UCOMM
SELFIELD TYPE SLIS_SELFIELD.
With Regards
Arun VS
2015 Mar 16 6:45 AM
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!!
2015 Mar 16 6:57 AM
Hi,
It represent the form name which you want to execute.
With Regards
Arun VS
2015 Mar 16 7:03 AM
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