‎2008 Aug 21 3:27 PM
Hi,
i am searching for the fieldcatalog of this standard report. The output in standard gives for example the BELNR.
The fieldcatalog while debugging shows me these FIELDNAMES
SYM_AUGP
ICO_AUGP
ICO_DUE
ICO_DUE1
ACTIV
STAKZ
XAUGP
COLOR
XZAHL
LONGNUM
which doesn't belong to the valuefields.
Where can i get the value of fields which were shown in the output.
I want to write a Z-Programm where RFITEMGL is the base, so i want to to output the schown values.
‎2008 Aug 21 3:35 PM
Hi,
Please check for structure RFPOSXEXT
Please the following the piece of code in program RFITEMGL where in which fieldcatalog get created.
call function 'REUSE_ALV_FIELDCATALOG_MERGE'
exporting
i_buffer_active = 'X'
i_program_name = g_repid
i_structure_name = 'RFPOSXEXT'
changing
ct_fieldcat = it_max_fieldcat
exceptions
inconsistent_interface = 1
program_error = 2
others = 3.
a®
‎2008 Aug 21 3:48 PM
Hi,
thats true. This happens in "Form GET_INITIAL_FIELDCAT", but then i have 170 fields but the report at its end shows only 12 fields. Where is the decision to show onlxy few fields of RFPOSXEXT.
I try to output the values in csv in dependency of the layout. I it is not wished to put out all fields of the structure RFPOSXEXT.
Thanks for your answer
‎2008 Aug 21 4:13 PM
Check you DEFAULT variant defined for that report. may be it is gets filtered in the DEFAULT variant
a®
‎2008 Aug 22 7:45 AM
Hi,
i checked another variant, but can't find a filter for fields of the structure.
‎2008 Aug 22 10:30 AM
I found this solution :
CALL FUNCTION 'LT_FC_LOAD'
EXPORTING
is_variant = ws_variant1
i_tabname = 'WT_ZSD_DEALS'
IMPORTING
et_fieldcat = wlt_fieldcat[]
CHANGING
cs_layout = wls_layout
ct_default_fieldcat = wlt_def_fieldcat[]
EXCEPTIONS
fc_not_complete = 1
OTHERS = 2.
IF sy-subrc <> 0.
EXIT.
ENDIF.
DELETE wlt_fieldcat WHERE no_out = 'X'.
With :
wls_layout : can be initial
wlt_def_fieldcat : field catalog (warning : the format is different than the result of REUSE_ALV_FIELDCATALOG_MERGE)
ws_variant1 contains the program name and the layout variant name
I hope this can help somebody.