‎2013 Oct 21 5:01 AM
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
‎2013 Oct 21 5:15 AM
Dear pavan,
Check the code in the PF status modules.
can u share the code of pf status.
‎2013 Oct 21 5:36 AM
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
‎2013 Oct 21 5:51 AM
How is <GT_UPLOAD> and fieldcatalog defined. In the dump it must be mentioning the fieldname. Can you please provide the same.
‎2013 Oct 21 6:06 AM
Hi Pavan,
Have you used Form ... Endform for User command and PF Status.
If not, Please use.
Regards,
Arivu.
‎2013 Oct 21 6:06 AM
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
‎2013 Oct 21 6:08 AM
Hi Pavan,
Please use, CHK type c in your final internal table as first field.
Definitely this will resolve your issue.
Regards,
Arivu.
‎2013 Oct 21 6:15 AM
‎2013 Oct 21 6:16 AM
Can you please share your fieldcatalog and output structure?
‎2013 Oct 21 6:19 AM
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.
‎2013 Oct 21 8:05 AM
Hi,
If i am passing the space i am not getting cell in the grid display
‎2013 Oct 21 7:44 AM
Hi Pavan,
Check the field catalog in DEBUG Mode. Here you have some problem in your field catalog.
Regards,
Rajesh.
‎2013 Oct 21 8:08 AM
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
‎2013 Oct 21 8:14 AM
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
‎2013 Oct 21 8:25 AM
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
‎2013 Oct 21 8:32 AM
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.
‎2013 Oct 21 9:28 AM
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
‎2013 Oct 21 9:32 AM
Hi,
Thanks for your info. I dont want to make the field in editable mode.
Thanks
Pavan.N
‎2013 Oct 21 9:58 AM
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