2006 Oct 10 10:48 AM
hello all,
Fieldcatalog & internal table were populated but still
i am not getting any display.
please help me in this code.
IF G_CUSTOM_CONTAINER IS INITIAL.
CREATE OBJECT G_CUSTOM_CONTAINER
EXPORTING CONTAINER_NAME = G_CONTAINER.
CREATE OBJECT GRID
EXPORTING I_PARENT = G_CUSTOM_CONTAINER.
X_SAVE = 'X' .
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
I_STRUCTURE_NAME = 'G_STRUCT'
CHANGING
CT_FIELDCAT = GT_FIELDCATALOG.
append GT_FIELDCATALOG to LT_FIELDCATALOG.
CALL METHOD GRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
I_BUFFER_ACTIVE =
I_BYPASSING_BUFFER =
I_CONSISTENCY_CHECK =
I_STRUCTURE_NAME =
IS_VARIANT = GS_LAYOUT
I_SAVE = X_SAVE
I_DEFAULT = LV_DEF
IS_LAYOUT =
IS_PRINT =
IT_SPECIAL_GROUPS =
IT_TOOLBAR_EXCLUDING =
IT_HYPERLINK =
IT_ALV_GRAPHICS =
IT_EXCEPT_QINFO =
IR_SALV_ADAPTER =
CHANGING
IT_OUTTAB = GT_BPSTAB[]
IT_FIELDCATALOG = GT_FIELDCATALOG
IT_SORT =
IT_FILTER =
EXCEPTIONS
INVALID_PARAMETER_COMBINATION = 1
PROGRAM_ERROR = 2
TOO_MANY_LINES = 3
OTHERS = 4
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
hello all,
Fieldcatalog & internal table were populated but still
i am not getting any display.
please help me in this code.
IF G_CUSTOM_CONTAINER IS INITIAL.
CREATE OBJECT G_CUSTOM_CONTAINER
EXPORTING CONTAINER_NAME = G_CONTAINER.
CREATE OBJECT GRID
EXPORTING I_PARENT = G_CUSTOM_CONTAINER.
X_SAVE = 'X' .
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
I_STRUCTURE_NAME = 'G_STRUCT'
CHANGING
CT_FIELDCAT = GT_FIELDCATALOG.
append GT_FIELDCATALOG to LT_FIELDCATALOG.
CALL METHOD GRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
I_BUFFER_ACTIVE =
I_BYPASSING_BUFFER =
I_CONSISTENCY_CHECK =
I_STRUCTURE_NAME =
IS_VARIANT = GS_LAYOUT
I_SAVE = X_SAVE
I_DEFAULT = LV_DEF
IS_LAYOUT =
IS_PRINT =
IT_SPECIAL_GROUPS =
IT_TOOLBAR_EXCLUDING =
IT_HYPERLINK =
IT_ALV_GRAPHICS =
IT_EXCEPT_QINFO =
IR_SALV_ADAPTER =
CHANGING
IT_OUTTAB = GT_BPSTAB[]
IT_FIELDCATALOG = GT_FIELDCATALOG
IT_SORT =
IT_FILTER =
EXCEPTIONS
INVALID_PARAMETER_COMBINATION = 1
PROGRAM_ERROR = 2
TOO_MANY_LINES = 3
OTHERS = 4
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
2006 Oct 10 10:50 AM
did u try my code in ur last post??
for fieldcatalog use square brackets
CHANGING
IT_OUTTAB = GT_BPSTAB[]
IT_FIELDCATALOG = GT_FIELDCATALOG<b>[]</b>
2006 Oct 10 10:51 AM
2006 Oct 10 10:58 AM
Is the struture of both are same'G_STRUCT' and GT_BPSTAB.
Also check that the container are created properly from
CREATE OBJECT G_CUSTOM_CONTAINER
EXPORTING CONTAINER_NAME = G_CONTAINER.
CREATE OBJECT GRID
EXPORTING I_PARENT = G_CUSTOM_CONTAINER.
Regards,
Prakash.
2006 Oct 10 11:29 AM
2006 Oct 10 11:35 AM
IS_VARIANT = GS_LAYOUT
I_SAVE = X_SAVE
I_DEFAULT = LV_DEF
IS_LAYOUT =
In layout nothing is passed but the same is passed inside the IS_VARIANT.
Once try to populate the field catalog without the FM LVC_FIELDCATALOG_MERGE.
Also comment these three lines and try:
IS_VARIANT = GS_LAYOUT
I_SAVE = X_SAVE
I_DEFAULT = LV_DEF
Check the standard programs:
BCALV_GRID_01
BCALV_GRID_02
BCALV_GRID_03
BCALV_GRID_04
BCALV_GRID_05
BCALV_GRID_06
BCALV_GRID_07
BCALV_GRID_08
BCALV_GRID_09
BCALV_GRID_10
BCALV_GRID_11
Regards,
Prakash.
2006 Oct 10 11:36 AM
Hi,
Can you show your Full Code. You Might missed some thing.
Did you give the same name for Control in the SE51 and In SE38. that also will cause the Problem
Regards
vijay
2006 Oct 10 10:59 AM
Hi ,
Have you created a custom control on the userdefined screen <xxxx> and calling these methods in PBO and PAI of that screen
Hope this may be the mistake
even then it s not giving the display menas check the fieldcatalog once
regards,
2006 Oct 10 1:04 PM
Hi Johnn,
if you are going for ALV display through OOPS then you can also do it without creating a fieldcatalog you can directly mention the name of structure in function module
CALL METHOD GRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
I_BUFFER_ACTIVE =
I_BYPASSING_BUFFER =
I_CONSISTENCY_CHECK =
<b>* I_STRUCTURE_NAME =</b> 'structure name' within quotes
and remove the fm 'LVC_FIELDCATALOG_MERGE'
and the name of Fieldcatlog(GT_FIELDCATALOG) where ever you have used it.
and if it did not works out then please check the name of conatiner in the program and in screen painter.
if does not works please post your whole code so that we can debug it and let you know the exact cause.
Thanks
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |