Skip to Content
0
Former Member
Jun 05, 2008 at 10:28 PM

ALV Output need to send to Printer

32 Views

Hi Folks,

I need to send the ALV output to the printer. I built the ALV in OOps. The printer button is enabled in the scrren and when I give print it is goint to dump

Below I have pasted the dump.

Help me to solve this.

Points will be rewarded.

Regards,

Raj.

Short text

Field symbol has not yet been assigned.

What happened?

Error in the ABAP Application Program

The current ABAP program "SAPLKKBL" had to be terminated because it has

come across a statement that unfortunately cannot be executed.

Error analysis

You attempted to access an unassigned field symbol

(data segment 81).

This error may occur if

- You address a typed field symbol before it has been set with

ASSIGN

- You address a field symbol that pointed to the line of an

internal table that was deleted

- You address a field symbol that was previously reset using

UNASSIGN or that pointed to a local field that no

longer exists

- You address a global function interface, although the

respective function module is not active - that is, is

not in the list of active calls. The list of active calls

can be taken from this short dump.

rigger Location of Runtime Error

Program SAPLKKBL

Include LKKBLF01

Row 1,315

Module type (FORM)

Module Name CHECKBOX_OUT

ource Code Extract

ine SourceCde

1285 "<<Unicode/Doublebyte 1

1286 else.

1287 write at (rs_fieldcat-outputlen) <hf> as icon no-gap quickinfo

1288 rs_fieldcat-tooltip.

1289 endif.

1290

1291 g_tabname = l_tabname.

1292

1293 format hotspot off.

1294 *End of Orginalcoding 4.6c

1295

1296 endform. " HEADER_FIELD_OUT

1297 &----


1298 *& Form CHECKBOX_OUT

1299 &----


1300 * text *

1301 ----


1302 form checkbox_out using rs_layout type kkblo_layout

1303 r_tabname type stack-i_tabname

1304 r_sum type c.

1305

1306 data: l_mark(1) type c.

1307

1308 if not rs_layout-box_tabname is initial and

1309 rs_layout-box_tabname ne r_tabname.

1310 format color off.

1311 write at (2) space no-gap.

1312 exit.

1313 endif.

1314

>>>>> if not r_sum is initial or <box> = '-'.

1316 format color off.

1317 write at (2) space no-gap.

1318 else.

1319 format color off.

1320 if <box> = ' ' or <box> = 'X'.

1321 g_mark = <box>.

1322 if rs_layout-no_input = 'X'.

1323 write g_mark as checkbox no-gap input off.

1324 else.