‎2009 Jun 05 12:59 AM
Hi ,
i copied a program to another name and checked the copy variants, included documentaion and all
so the program is copied and i activated it but the problem is in the copied version there is no standard tool bar and application tool bar which is there in the original version .i activated all the includes as well.
even i went to the pf-status standard01 and activated it as well .
when i executed the copied report along with the output iam getting the folowing message
status STANDARD01 of the user interface SAPLKKBL missing.
‎2009 Jun 05 2:57 AM
Hi Revanth,
I Used one time similar requirement,
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID
IS_LAYOUT = LAYOUT
IT_FIELDCAT = FIELDCAT
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
I_CALLBACK_PF_STATUS_SET = *'PF_STATUS_SET'*
TABLES
T_OUTTAB = L_AFKO.
FORM PF_STATUS_SET USING UT_EXTAB TYPE SLIS_T_EXTAB. "#EC CALLED
DELETE UT_EXTAB WHERE FCODE = GC_REFRESH.
SET PF-STATUS 'STANDARD_FULLSCREEN' OF PROGRAM 'SAPLKKBL'
EXCLUDING UT_EXTAB.
ENDFORM. "pf_status_set
‎2009 Jun 05 2:49 AM
Hi Revanth,
It is simple.
Just follow the steps.
1. Normally when you copy the programs , pf-status is not copied.
2. Search with SET PF-STATUS in the copied program, If you find the statement like below
3. Take that satus XYZ.
4. Go to SE41 and give Original program name as Program.
5. Click on COPY STATUS button in Application toolbars(CTRL+F6).
6. Once status is copied from original program, Activate Copied program status by giving program and status in the SE41 transaction code.
I hope that you will solve the problem.
Thanks
VenkatSET PF-STATUS 'XYZ'.
‎2009 Jun 05 2:57 AM
Hi Revanth,
I Used one time similar requirement,
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID
IS_LAYOUT = LAYOUT
IT_FIELDCAT = FIELDCAT
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
I_CALLBACK_PF_STATUS_SET = *'PF_STATUS_SET'*
TABLES
T_OUTTAB = L_AFKO.
FORM PF_STATUS_SET USING UT_EXTAB TYPE SLIS_T_EXTAB. "#EC CALLED
DELETE UT_EXTAB WHERE FCODE = GC_REFRESH.
SET PF-STATUS 'STANDARD_FULLSCREEN' OF PROGRAM 'SAPLKKBL'
EXCLUDING UT_EXTAB.
ENDFORM. "pf_status_set
‎2009 Jun 05 3:00 AM
yeah i changed the program name now in the call back program and it is working fine now