03-02-2005 10:18 AM
Hi,
I am getting a Print dump when I want to print the Output list of ALV Report. I have given the checkbox for print on the selection screen default ''. An I am also passing 'X' for the Print in the initialization and passing the structure to FM REUSE_ALV_GRID_DISPLAY. And II'm getting dump 'GETWA_NOT_ASSIGNED' ,
The current ABAP/4 program "SAPLKKBL " had to be terminated because
one of the statements could not be executed. Could any of you help one this problem.
Regards,
Mira
03-02-2005 11:01 AM
Hi Mira,
this is possibly because you declared that your ALV list should have a checkbox, but defined no field as "checkbox" into your internal table. (Or, if you used hierarchical ALV, and declared an expand button, you did not defined an "expand" field into your itab)
Please let us know if it helped. BR,
Alvaro
03-02-2005 10:40 AM
Hi Mira,
Could you please post here how exactly you call the FM REUSE_ALV_GRID_DISPLAY, with the parameters?
That would help spot the issue immediately.
Regards,
Anand Mandalika.
P.S : By the way, I have a hunch that the dump is not elated to the print parameters as such. Don't you get the dump when you comment out the print parameters?
03-02-2005 11:19 AM
Here's the FM REUSE_ALV_GRID_DISPLAY which I am using
FORM sub_show_alv_list.
l_save = 'X'.
l_variant-report = sy-repid.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
i_buffer_active = 'X'
i_callback_program = l_repid
i_callback_pf_status_set = l_status "PF_STATUS_SET'
i_callback_user_command = l_user_command
I_CALLBACK_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
i_background_id = 'ALV_BACKGROUND'
i_grid_title = 'Delivery DueList Report'
I_GRID_SETTINGS =
is_layout = lf_layout
it_fieldcat = lf_fieldcat[]
IT_EXCLUDING =
it_special_groups = lf_sp_group
it_sort = it_sort
IT_FILTER =
IS_SEL_HIDE =
i_default = 'X'
i_save = l_save
is_variant = l_variant
it_events = lf_events[]
IT_EVENT_EXIT =
IS_PRINT = lf_print
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IT_ALV_GRAPHICS =
IT_ADD_FIELDCAT =
IT_HYPERLINK =
I_HTML_HEIGHT_TOP =
I_HTML_HEIGHT_END =
IT_EXCEPT_QINFO =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = it_vepvg_final
EXCEPTIONS
program_error = 1
OTHERS = 2.
.
IF sy-subrc <> 0.
LEAVE TO SCREEN 1000.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " SUB_SHOW_ALV_LIST
07-19-2005 5:55 AM
Did you check the l_repid parameter value has the same program name you run.
Prabhu Rajesh.
03-02-2005 11:01 AM
Hi Mira,
this is possibly because you declared that your ALV list should have a checkbox, but defined no field as "checkbox" into your internal table. (Or, if you used hierarchical ALV, and declared an expand button, you did not defined an "expand" field into your itab)
Please let us know if it helped. BR,
Alvaro
03-02-2005 11:58 AM
How would you know you declared that your ALV list should have a checkbox in the FM REUSE_ALV_GRID_DISPLAY.
For Print I'm using,
SELECTION-SCREEN: BEGIN OF BLOCK immed WITH FRAME TITLE text-imm.
SELECTION-SCREEN: BEGIN OF LINE.
SELECTION-SCREEN: COMMENT 1(31) text-c01. " Output directly to printer?
PARAMETERS: pa_print AS CHECKBOX DEFAULT ''.
SELECTION-SCREEN: END OF LINE.
SELECTION-SCREEN: END OF BLOCK immed.
data: lf_print TYPE slis_print_alv.
under INTITIALIZATION.
PERFORM print_build USING lf_print. "Print PARAMETERS
FORM print_build USING gs_print TYPE slis_print_alv.
gs_print-print = pa_print. "PRINT IMMEDIATE
and in the ALV FM u can see above how I am passing the structures.
ENDFORM. " PRINT_BUILD
03-02-2005 12:06 PM
Hi Mira,
well, before you call the REUSE_ALV_GRID_DISPLAY, you should fill a few parameters, for instance "is_layout". This one has a field "box_fieldname", into which you have to enter the name of the field of the internal table that will store the 'X' when the checkbox is checked.
I hope I'm not mistaken . If so, please answer back.
BR,
Alvaro
03-02-2005 12:20 PM
Hi Alvaro,
Here's the structure of the Layout:
u_lf_layout-box_fieldname = 'SELK'. " Checkbox
u_lf_layout-zebra = 'X'.
u_lf_layout-colwidth_optimize = 'X'.
u_lf_layout-confirmation_prompt = 'X'.
u_lf_layout-get_selinfos = 'X'.
u_lf_layout-f2code = '&ETA' .
u_lf_layout-detail_titlebar = 'Delivery Due List'.
u_lf_layout-key_hotspot = 'X'.
u_lf_layout-info_fieldname = 'COL'.
and this is the structure of my final internal table that I'm passing to the FM.
TYPES: BEGIN OF t_vepvg_final,
name1 LIKE kna1-name1, " Name 1
ort01 LIKE kna1-ort01, " Destination
sortl LIKE kna1-sortl,
kdmat LIKE vbap-kdmat, " Customer material number
arktx LIKE vbap-arktx, " Description
trgqty LIKE packpo-trgqty, " Unit Load
labst LIKE mard-labst, " Quantity in stock
zdeviation LIKE vbep-wmeng, " Deviation
edatu LIKE vbep-edatu, " Arrival date at customer
wadat LIKE vepvg-wadat, " Delivery date
wmeng LIKE vbep-wmeng, " Quantity
zqpalat LIKE packpo-trgqty, " Number of Pallets
bstkd LIKE vbkd-bstkd, " Customer order number
etart LIKE vbep-etart, " Release code
END OF t_vepvg_final.
Now do u mean that I'll have to pass the 'SELK' to the internal table.
03-02-2005 12:26 PM
Hi Mira,
What I mean is that the declaration of internal table t_vepvg_final should contain a field "SELK(1) TYPE C".
If there is no such field, you will get the dump.
Br,
Alvaro
07-19-2005 5:34 AM
Mira,
I am facing a similar problem. The program terminates with a msg 'GETWA_NOT_ASSIGNED' when the Expand button in hierarchical ALV is clicked.
Could you advise what could be wrong ?
Thanks in advace,
Priya.