12-26-2008 10:55 AM
Dear EXperts,
I herewith attached my codings how to display the output in a smaller area, it is displaying fully, i want with some specific dimensions to be displayed as standard report.. how to do that can any one modify my code so that it wll be very useful for my issue.,,
Thanks in Advance,
Thirukumaran. R
&----
*& Report ZALV_FOR_POSITION
*&
&----
*&
*&
&----
REPORT ZALV_FOR_POSITION.
TYPE-POOLS SLIS.
DATA : BEGIN OF WA,
KUNNR TYPE KUNNR,
NAME1 TYPE NAME1,
END OF WA,
IT LIKE TABLE OF WA.
DATA : IT_fCAT TYPE SLIS_T_FIELDCAT_ALV,
WA_FCAT LIKE LINE OF IT_FCAT.
SELECT KUNNR NAME1 INTO TABLE IT UP TO 10 ROWS FROM KNA1.
PERFORM FCAT USING '1' 'KUNNR' 'CUTOMERNUMBER' .
PERFORM FCAT USING '1' 'NAME1' 'CUTOMERNAME' .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = SY-CPROG
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
I_CALLBACK_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_TOP_OF_PAGE = '12'
I_CALLBACK_HTML_END_OF_LIST = 1
* I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS =
IS_LAYOUT =
IT_FIELDCAT = IT_FCAT
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 10
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 10
I_SCREEN_END_LINE = 0
I_HTML_HEIGHT_TOP =
I_HTML_HEIGHT_END = 0
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
IR_SALV_FULLSCREEN_ADAPTER =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = IT.
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
&----
*& Form FCAT
&----
text
----
-->P_0052 text
-->P_0053 text
-->P_0054 text
----
FORM FCAT USING FP_COL_POS
FP_FIELDNAME
FP_SELTEXT_M.
WA_FCAT-COL_POS = FP_COL_POS.
Wa_FCAT-FIELDNAME = FP_FIELDNAME.
WA_FCAT-SELTEXT_M = FP_SELTEXT_M.
APPEND WA_FCAT TO IT_FCAT.
CLEAR : WA_FCAT.
ENDFORM. " FCAT
12-26-2008 11:07 AM
Hi,
Pass these paramters while using the 'REUSE_ALV_GRID_DISPLAY'.
I_SCREEN_START_COLUMN
I_SCREEN_START_LINE
I_SCREEN_END_COLUMN
I_SCREEN_END_LINE
Regards,
Nagaraj
12-26-2008 11:54 AM
hi,
The report itself getting positioned, i want to position the area of list to be displayed just execute the standard report t-code
s_ahr_61015512
and execute that i wanr to position my screen like that
Thanks and Regards,
Thirukumaran. R
Edited by: thirukumaran rajendran on Dec 26, 2008 12:54 PM
12-26-2008 12:22 PM
Hi,
the s_ahr_61015512 output screen is a custom module pool screen created. you cannot replicate this screen with simple report output. You will have to design your own screen with reference to the standard program. If the standard report is having same functionality, you cal just call it from your porgram using submit and return.
Regards,
Dev.
12-26-2008 11:13 AM
Hi,
In the function module 'REUSE_ALV_GRID_DISPLAY',
There are 4 parameters as:
I_SCREEN_START_COLUMN
I_SCREEN_START_LINE
I_SCREEN_END_COLUMN
I_SCREEN_END_LINE
Make use of these parameters to set your grid in ur desired dimentions.
Reragds,
Nitin.