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

Getting Dump when i press back button.

Former Member
0 Likes
5,606

Dear All,

When i press back button after displaying the ALV i am getting the dump issue. Please try to solve it.

These are the screen shots ...I am building the fieldcat using reuse_alv_fieldcat_merge.

Thanks

Pavan.n

18 REPLIES 18
Read only

Former Member
0 Likes
4,337

Dear pavan,

Check the code in the PF status modules.

can u share the code of pf status.

Read only

Former Member
0 Likes
4,337

Hi Pavan,

Check the following points :

1) In the layout you have to give the field name as

  gs_layout-box_fieldname = 'FIELDNAME'. so the field must be there in that internal table.

  gs_layout-box_tabname = 'ITAB'.

2) In the Fieldcatalog,

gs_fcat-fieldname = 'FLAG',  " whatever you have mentioned in your internal table

  gs_fcat-input = 'X'.

  gs_fcat-edit = 'X'.

  gs_fcat-checkbox = 'X'.

Hope this helps.

Cheers,

Sumit

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
4,337

How is <GT_UPLOAD> and fieldcatalog defined. In the dump it must be mentioning the fieldname. Can you please provide the same.

Read only

0 Likes
4,337

Hi Pavan,

Have you used Form ... Endform for User command and PF Status.

If not, Please use.

Regards,

Arivu.

Read only

Former Member
0 Likes
4,337

Hii pavan,

I have faced the same problem before and i solved the issue.

U just need to do a little change like below

gs_layout-box_fieldname = space.

u will get the standard selection box and it will work fine

it will solve ur issue.

regards

Syed

Read only

0 Likes
4,337

Hi Pavan,

Please use,  CHK type c in your final internal table as first field.

Definitely this will resolve your issue.

Regards,

Arivu.

Read only

0 Likes
4,337

ya it is character type

Read only

0 Likes
4,337

Can you please share your fieldcatalog and output structure?

Read only

0 Likes
4,337

Please create a one more field in your final internal table(gt_upload) as like below..

Types: Begin of wa,

               chk type c,

               field1,

               field2,

             ............

             ..........

        end of wa.

data: <gt_upload> type standard table of wa.

Regards,

Arivu.

Read only

0 Likes
4,337

Hi,

If i am passing the space i am not getting cell in the grid display

Read only

former_member188282
Active Participant
0 Likes
4,337

Hi Pavan,

Check the field catalog in DEBUG Mode. Here you have some problem in your field catalog.

Regards,

Rajesh.

Read only

Former Member
0 Likes
4,337

Hi pavan,

you r getting the dump just because of assigning CHK to gs_layout-box_fieldname and if u will go through the decription of dump then u will find that <l_box> value change problem.

So in order to sort out the dump problem while cliking BACK button assign space value to gs_layout-box_fieldname like below u can check it by doing so analyse whether it's solving ur problem or not,

gs_layout-box_fieldname = space.

Here r my dump screen shot when i put

x_layout-box_fieldname = 'X'.

and when i assign space value to

x_layout-box_fieldname = space.

then it's working fine.

regards

Syed

Read only

RaymondGiuseppi
Active Contributor
0 Likes
4,337

Before pressing BACK, dumping and posting at scn, Good Practice is to execute The Consistency Check of the ALV. (so discrepancies between passed structure should be automatically detected)

Regards,

Raymond

Read only

0 Likes
4,337

Hi,

Thanks for your reply.

If i pass space there i am not getting the cell to select the rows in the alv displayed.

then how to resolve this issue.

Please help me.

Thanks

Pavan.N

Read only

0 Likes
4,337

Hi Pavan,

Types: Begin of wa,

               CHK type c,

               field1,

               field2,

             ............

             ..........

        end of wa.

data: <gt_upload> type standard table of wa.

You have to declare CHK as variable in internal table.

Since you have used,

gs_layout-box_fieldname = 'CHK'.

Please try, definitely it will resolve the issue.

Regards,

Arivu.

Read only

0 Likes
4,337

Hi pavan,

in order to get the standard selection button your alv should be in editable mode.

You can make the entire alv in editable mode or any particular field in editable mode then you will get the row select button.

for gs_layout, u can either pass value as space or declare a variable sel type char01 and pass it.

data sel type char01.

gs_layout-box_fieldname = sel. or

gs_layout-box_fieldname = space.

This the alv output of my report with standard row select button passing space value in gs_layout-box_fieldname

So make any field in alv editable and u will get standard select button.

regards

Syed

Read only

0 Likes
4,337

Hi,

Thanks for your info. I dont want to make the field in editable mode.

Thanks

Pavan.N

Read only

0 Likes
4,337

Hii pavan,

Here is solution for u without making the alv in editable mode.

In types declaration add one more field as sel type char01 like below i did it

"Declare likp type strcuture

TYPES: BEGIN OF ty_likp,

      vbeln TYPE vbeln_vl,            "Delivery

      erdat TYPE erdat,               "Date on which Record was Created

      vkorg TYPE vkorg,               "Sales Organization

      lfart TYPE lfart,               "Delivery Type

      netwr TYPE netwr_ak,            "Net Value of the Sales Order in Document Currency

      waerk TYPE waerk,                "SD Document Currency

      sel TYPE char01,    -------------->extra field

END OF ty_likp.

DATA t_likp TYPE STANDARD TABLE OF ty_likp. ---->this is the internal table i'm displaying in alv grid.

In gs_layput pass this value as hardcode like

x_layout-box_fieldname = 'SEL'.

Here is the output of my program.

All the fields in display mode this what u want.

regards

Syed