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

RFITEMGL

Former Member
0 Likes
2,125

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.

5 REPLIES 5
Read only

former_member194669
Active Contributor
0 Likes
1,536

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®

Read only

0 Likes
1,536

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

Read only

0 Likes
1,536

Check you DEFAULT variant defined for that report. may be it is gets filtered in the DEFAULT variant

a®

Read only

0 Likes
1,536

Hi,

i checked another variant, but can't find a filter for fields of the structure.

Read only

0 Likes
1,536

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.