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

regarding ALV out put problem

Former Member
0 Likes
1,137

hi

i have a internal table with the following structure

TYPES: begin of ty_final.

types: b_bseg type bseg.

types: k_kna1 type kna1.

types: l_lfa1 type lfa1.

types: s_ska1 type ska1.

types: a_anlu type anlu.

TYPES: End of ty_final.

DATA: lt_final TYPE STANDARD TABLE OF ty_final ,

wa_final TYPE ty_final.

after i fill my final internal table i need to get the output in ALV grid , i tried to pass the internal table to ALv Grid function module but I am getting shortdump .

is it possible to to get the output with this complex structure?

Moderator message: please choose more descriptive subject lines for your posts.

Edited by: Thomas Zloch on Jun 8, 2011 4:38 PM

Hi kiran i like to know weather this deep strucuture works in ALV GRID DISPLAY or not ,

if it works then how to pass the deep structure to ALV FUNCTION MODULE ???

TYPES: begin of ty_final.

types: b_bseg type bseg.

types: k_kna1 type kna1.

types: l_lfa1 type lfa1.

types: s_ska1 type ska1.

types: a_anlu type anlu.

TYPES: End of ty_final.

DATA: lt_final TYPE STANDARD TABLE OF ty_final ,

wa_final TYPE ty_final.

7 REPLIES 7
Read only

Former Member
0 Likes
964

sorry, but that is not possible for deep structures, but only for FLAT structures.

Read only

former_member212713
Contributor
0 Likes
964

Hi Kapilskumars;

Can you give us shortdump message for better help you.

Whatever, I think you check primarily fieldcat. ALV problems are being usually about fieldcat.

Best regards.

Read only

0 Likes
964

here is the short dump , I think the ALV program doesnt get the internal table value , because the value resides in deep structure . if i am wrong correct me.

-


Short text

Field symbol has not yet been assigned.

-


-


What happened?

Error in the ABAP Application Program

The current ABAP program "SAPLSLVC" 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 32821).

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.

-


-


Trigger Location of Runtime Error

Program SAPLSLVC

Include LSLVCF36

Row 3.267

Module type (FORM)

Module Name FILL_DATA_TABLE

-


-


Source Code Extract

-


Line

SourceCde

-


3237

alv_style_align_center_top.

3238

endif.

3239

3240

append ls_lvc_data to ct_lvc_data.

3241

endif.

3242

3243

3244

  • Column per Fieldcat Entry

3245

3246

loop at it_fcat_local assigning <ls_fcat>.

3247

clear: ls_lvc_data-href_hndl,

3248

ls_lvc_data-drdn_hndl,

3249

ls_lvc_data-style,

3250

ls_lvc_data-style2,

3251

ls_lvc_data-style3,

3252

ls_lvc_data-style4,

3253

ls_lvc_data-maxlen.

3254

3255

clear: lt_color_lvc, lt_color_slis.

3256

3257

add 1 to ls_lvc_data-col_pos.

3258

3259

if not <ls_fcat>-indx_field is initial.

3260

assign component <ls_fcat>-indx_field

3261

of structure <ls_data> to <l_field_value>.

3262

else.

3263

assign component <ls_fcat>-fieldname

3264

of structure <ls_data> to <l_field_value>.

3265

endif.

3266

>>>>>

macro_cell_data_get

3268

<ls_fcat>

3269

<ls_data>

3270

<l_field_value>

3271

ls_lvc_data-value.

3272

3273

*>>> new API

3274

if ir_salv_adapter is bound.

3275

clear ls_lvc_data-style.

3276

3277

  • color

3278

if g_gui_type ne 1.

3279

if <ls_fcat>-key eq abap_true.

3280

ls_lvc_data-style = alv_style_color_int_key.

3281

elseif l_style_color is initial

3282

and ( <ls_fcat>-emphasize is initial or

3283

<ls_fcat>-emphasize = '$' ).

3284

if <ls_stin>-counter is initial.

3285

ls_lvc_data-style = alv_style_color_normal.

3286

else.

-


Read only

Kiran_Valluru
Active Contributor
0 Likes
964

Hi.,

You are using Field Symbols in your code.. Isn't it.? The error is you didnt assigned field symbol. Run the program.. After Short Dump., Goto ST22 Transaction and check the source code ., you can see '>>>>>>' at the line where error occured. try to correct it., else post your code here..

hope this helps u.,

Thanks & Regards,

Kiran

Read only

0 Likes
964

Hi kiran i like to know weather this deep strucuture works in ALV GRID DISPLAY or not ,

if it works then how to pass the deep structure to ALV FUNCTION MODULE ???

TYPES: begin of ty_final.

types: b_bseg type bseg.

types: k_kna1 type kna1.

types: l_lfa1 type lfa1.

types: s_ska1 type ska1.

types: a_anlu type anlu.

TYPES: End of ty_final.

DATA: lt_final TYPE STANDARD TABLE OF ty_final ,

wa_final TYPE ty_final.

Read only

0 Likes
964

Hi kiran i like to know weather this deep strucuture works in ALV GRID DISPLAY or not ,

if it works then how to pass the deep structure to ALV FUNCTION MODULE ???

TYPES: begin of ty_final.

types: b_bseg type bseg.

types: k_kna1 type kna1.

types: l_lfa1 type lfa1.

types: s_ska1 type ska1.

types: a_anlu type anlu.

TYPES: End of ty_final.

DATA: lt_final TYPE STANDARD TABLE OF ty_final ,

wa_final TYPE ty_final.

Read only

0 Likes
964

Hi.,

TYPES: begin of ty_final.

types: b_bseg type bseg.

types: k_kna1 type kna1.

types: l_lfa1 type lfa1.

types: s_ska1 type ska1.

types: a_anlu type anlu.

TYPES: End of ty_final.

This is normal structure only rite..!! what is special in this., Ofcourse It will work.. You create Field catalog and pass fieldcatalog and internal table to your ALV Grid..

Thanks & Regards,

Kiran