07-18-2011 8:51 AM
hi everybody
I have to add a field on the selection screen of report Z_ALR_87011963, the field anlz-pernr
I have made a copy of RABEST_ALV01 but I cant detect where the selection screen is getting populated
I have added the field in structure CI_REPRAZUGA but apparently this structure i used for output
does anybody know how to add a field on the selection screen
thanks for your help
07-18-2011 9:52 AM
Hi,
If you have copied the report RABEST_ALV01 into custom program and then you want to add the a new field?.
if yes, then you should see the selection screen statements in the starting few lines of the code of that standard program.
Thanks,
Venkatesh.
07-18-2011 12:05 PM
Hi,
While copying the standard code
check all the check boxes in the first screen.
In the next screen copy all the standard includes to Z includes.
RASORT14
RASORT_ALV04
RASORT_ALV08
RASORT_ALV10
RASORT_ALV_DATA_FIELDCAT
RASORT_ALV_MISC
RASORT_ALV_PREPARE_TABLE
RASORT_ALV_TOOLS
ZRASORT14
ZRASORT_ALV04
ZRASORT_ALV08
ZRASORT_ALV10
ZRASORT_ALV_DATA_FIELDCAT
ZRASORT_ALV_MISC
ZRASORT_ALV_PREPARE_TABLE
ZRASORT_ALV_TOOLS
Now the complete prog is with you.
In the starting lines of prog the selection screen design is done you can add the required field there.
I think this will solve your problem.
Reward points if it is helpful......
Kruthik
07-19-2011 5:29 AM
Start transaction SE80 and display the report Z_ALR_87011963. In the field list you should find all global variables (and selection parameters are global). Select one of the selection parameters and you should hit the position or include, where the parameter is defined.
An alternative: Use the search and search for 'PARAMETER' or 'SELECT-OPTION' set 'Global in Frame report'
07-19-2011 5:47 AM
Hi,
Are you able to activate the program and execute it? in that case you should be able to see the selection screen, then you can debug and check.
But If you donot find the already existing selection screen at all, as your requirement is to just add a field then you can try writing your selection screen and see if it is working or not.
Thanks,
Venkatesh.
07-19-2011 9:05 AM
Easy... the selection screen fields are set in screen 1000. Go to SE80 for program, click on screen, then select 1000.... there you will see an "element list" tab with all the fields. You have to add your field here.
Edited by: Gemini Twin on Jul 19, 2011 10:06 AM