‎2012 Mar 29 9:03 AM
Hi,
I have copied the standard SAP program RFITEMGL into ZRFITEMGL. But in my custom program,after executing the program, when i press F4 button for selecting layout, the dialog box is not displayed from where i can choose my layout. I have tried everything but F4 button is not working. What should i do???
‎2012 Mar 29 9:17 AM
RFITEMGL (as well as -AR, -AP) use FM FI_ITEMS_DISPLAY. In this FM an important parameter is acctype, account type, for -Gl it is 'S'. The FM will chose the "report" attached to variant from this value, it will be "RFITEMGL" by default, so in your REUSE_ALV_VARIANT_F4 or check FM use this value in variant-report field.
One question, why did you duplicate the report, and did you not try to append the RFPOSX/FAGLPOSE structures (Note 984305 - Line item: Definition of special fields (T021S))
Regards,
Raymond
‎2013 Jul 16 12:28 PM
‎2012 Mar 29 9:19 AM
Layouts are stored under the program name (see table LTDX), so your Z-copy does not find them any more. In general it is mostly a bad idea to copy standard code into the Z-range, but that is a different topic (that has been discussed before).
Maybe somebody knows a helper program to copy layouts across reports.
Thomas
P.S. just discovered that editing a post changes the initial time stamp and moves the post below other replies that were initially posted later
‎2012 Apr 02 3:19 PM