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

F4 not working for layout in custom program

arindam_samanta
Participant
0 Likes
1,005

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???

4 REPLIES 4
Read only

RaymondGiuseppi
Active Contributor
0 Likes
706

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

Read only

0 Likes
706

Raymond Sir Your Answer Is HelpFull

Than q.

Regards,

uday..

Read only

ThomasZloch
Active Contributor
0 Likes
706

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

Read only

0 Likes
706

Standard program to copy ALV variants is RKKBALVC

Regards,
Raymond