05-09-2016 6:52 PM
Dear experts,
When copying the report program (RFITEMAP) of the transaction, FBL1N to a custom one (i.e. ZZRFITEMAP), everything worked fine except for the GUI status. (This "copy" had to be done to fulfill a customer's specific requirement.)
Here's what I mean:-
In the report output of the transaction FBL1N, the menu options, "List -> Refresh" and "Settings -> Switch List" are enabled and they function as intended.
But in the report output of the transaction ZZRFITEMAP, the same menu options are disabled. How can I enable these options back again?
I've tried all possible options and checked all the possible GUI statuses, but I am still unable to resolve this. Any further ideas?
Appreciate your inputs here.
P/S:
In the report output of the transaction ZZRFITEMAP, I changed the value of the constant variable, C_REPID_AP to ZZRFITEMAP. I also replaced all occurrences of "RFITEMAP" to "ZZRFITEMAP".
Regards,
Deborah
05-09-2016 10:49 PM
May I know why are you copying FBL1N to custom one.
If your purpose is to add a new custom field to that report then I have a solution.
Best Regards,
Venkat
05-10-2016 3:06 AM
Hi Venkat,
Thanks for reading my post. Appreciate it.
I am aware too, that there's a method to add fields to FBL1N in the manner below:-
However, the customer required that they wanted a separate report with a different data logic - therefore, we started off with the solution by making a copy of FBL1N.
Any further ideas on how I can resolve this issue, btw?
Regards,
Deborah
05-10-2016 6:17 AM
Hi,
You need to create GUI status for your custom report same as standard one.
Goto tcode SE41, enter program name as 'SAPLFI_ITEMS' and click on copy user interface push button(CTRL+F5). A popup will appear, enter you custom report name in 'To Program' and click ok. Activate it then clicking activate icon (CTRL+F3). Hope it will help.
05-10-2016 8:42 AM
Hi Pranay,
Thanks for your input.
I have tried this as well:-
Goto tcode SE41, enter program name as 'SAPLFI_ITEMS' and click on copy user interface push button (CTRL+F5).
A popup will appear, enter 'SAPLZFI_ITEMS' in 'To Program' and click ok.
But, here, the error message appears:-
"Interface SAPLZFI_ITEMS already exists"
After activation, I tested it anyway and the menu options are still disabled
Any other ideas?
Regards,
Deborah
05-10-2016 9:08 AM
After getting Pop-Up, in 'To Program' enter your custom report i.e. ZZRFITEMAP and activate.
Otherwise, as an alternative search for FM 'FI_ITEMS_DISPLAY' in your report and pass caller_repid = 'RFITEMAP'. It will solve your issue.
CALL FUNCTION 'FI_ITEMS_DISPLAY'
EXPORTING
caller_repid = 'RFITEMAP'
acctype = c_koart_ap
x_change = x_change
i_u_save = gd_alvsave
is_u_variant = gs_variant
it_u_fieldcat = gt_fieldcat[]
it_kontab = it_accts[]
it_slbtab = it_comps[]
it_t001 = it_h_t001[]
it_lfa1 = it_h_lfa1[]
it_lfb1 = it_h_lfb1[]
x_grid = x_grid
x_inet = pa_inet
TABLES
it_items = it_pos.
05-10-2016 10:20 AM
Hi Pranay,
Thanks again.
"After getting Pop-Up, in 'To Program' enter your custom report i.e. ZZRFITEMAP and activate."
I have also done the above, but the issue still persists - the menu options are still disabled.
"Otherwise, as an alternative search for FM 'FI_ITEMS_DISPLAY' in your report and pass caller_repid = 'RFITEMAP'. It will solve your issue."
I did this as well, but with the FM, ZFI_ITEMS_DISPLAY instead.
The menu options are enabled this time, but clicking on them resulted in runtime errors instead.
See the screenshots below - G_REPID is found to be blank.
How can I resolve this further on?
G_REPID is found to be blank here, at code line 120
Regards,
Deborah
05-10-2016 10:29 AM
Why do you need to create a custom copy of FM 'FI_ITEMS_DISPLAY'? it would be better if you use standard one.
Anyway, have you not assigned your report name to g_repid variable? Use g_repid = 'ZZRFITEMAP' .
05-10-2016 10:42 AM
And when you made copy of 'FI_ITEMS_DISPLAY', i hope you have copied subroutine 'SET_PF_STATUS' and 'user_command' as well. Bcz these are being passed into ALV display FM.
05-10-2016 10:45 AM
Hi everyone,
My problem has been solved. Missed out replacing CALLER_REPID with the custom report name in one of the codelines for ZFI_ITEMS_DISPLAY.
Thanks for all your inputs here, appreciate it~
05-16-2016 1:31 PM
Did you call the FI_ITEMS_DISPLAY in your clone?
Cause those options are unavailable due to some code in the group of the module:
* list refresh and toggle: only if called by RFITEM**
if caller_repid(6) ne 'RFITEM'.
wa_extab-fcode = 'REFR'.
append wa_extab to rt_extab.
wa_extab-fcode = 'LTOG'.
append wa_extab to rt_extab.
endif.
Regards,
Raymond