2007 Nov 02 2:49 PM
Hi Experts,
In the ALV list display, I am unable to see the output in a field even though the data seems to be populating in the internal table in the debug mode. I even checked the field catalog col-position. Still not able to see the field values in the display.
Thanks,
Raj
Hi Experts,
In the ALV list display, I am unable to see the output in a field even though the data seems to be populating in the internal table in the debug mode. I even checked the field catalog col-position. Still not able to see the field values in the display.
Thanks,
Raj
2007 Nov 02 2:54 PM
Hi,
Check your field catalog field name , and it should be in CAPS
a®
2007 Nov 02 2:54 PM
2007 Nov 02 3:09 PM
Hi Atish,
It is pretty big program.Can I send u the code to ur email ?
Thanks,
raj
2007 Nov 02 3:10 PM
Hi,
As aRs told in your fieldcatlog have you given the field name in CAPITAL letters?
Regards,
Atish
2007 Nov 02 3:56 PM
Yes. I checked the field catalog names. They are all in CAPITALS.
Thanks,
Raj
2007 Nov 02 3:57 PM
2007 Nov 02 4:06 PM
Hi,
Please paste the code here or paste the portion field catalog generation part
a®
2007 Nov 02 5:20 PM
Below is the code.
Thanks,
Raj.
DATA:
wa_groups TYPE slis_sp_group_alv.
Establish the field groups.
wa_groups-sp_group = '0001'.
wa_groups-text = 'Key Fields'(150).
APPEND wa_groups TO groups.
wa_groups-sp_group = '0002'.
wa_groups-text = 'Consumption'(151).
APPEND wa_groups TO groups.
wa_groups-sp_group = '0003'.
wa_groups-text = 'Variances'(152).
APPEND wa_groups TO groups.
wa_groups-sp_group = '0004'.
wa_groups-text = 'Descriptions'(153).
APPEND wa_groups TO groups.
PERFORM add_field USING:
fieldcat 'KADKY' text-136 10 space '0001' c_key 'X',
fieldcat 'RECTY' text-154 05 space '0001' c_key 'X',
fieldcat 'BWART' text-137 03 space '0001' c_key 'X',
fieldcat 'WERKS' text-138 04 space '0001' c_key 'X',
fieldcat 'MATPR' text-100 18 space '0001' c_key space,
fieldcat 'MAKPR' text-101 30 space '0004' c_key space,
fieldcat 'MATCM' text-102 18 space '0001' c_key space,
fieldcat 'MAKCM' text-103 30 space '0004' c_key space,
fieldcat 'LCCTR' text-157 10 space '0001' c_key 'X',
fieldcat 'LCTRT' text-158 30 space '0004' c_key 'X',
fieldcat 'LSTAR' text-155 10 space '0001' c_key 'X',
fieldcat 'LSTXT' text-156 30 space '0004' c_key 'X',
fieldcat 'MATKL' text-104 10 space '0001' c_key 'X',
fieldcat 'WGBPR' text-141 30 space '0001' c_key 'X',
fieldcat 'MATK2' text-140 10 space '0001' c_key 'X',
fieldcat 'WGBCM' text-142 30 space '0001' c_key 'X',
fieldcat 'PRDHA' text-105 18 space '0001' c_key 'X',
fieldcat 'AUFNR' text-107 10 space '0001' c_key space,
fieldcat 'KOSTL' text-108 10 space '0001' c_key space,
fieldcat 'KTEXT' text-139 30 space '0001' c_key space,
fieldcat 'MTART' text-109 4 space '0001' c_key 'X',
fieldcat 'SAKTO' text-110 10 space '0001' c_key 'X',
fieldcat 'MEINS' text-111 5 space '0001' c_key space,
fieldcat 'ACT_QTY_PRD' text-112 15 'DEC' '0002' c_nbr space,
fieldcat 'ACT_QTY_PRD_VAL' text-113 15 'DEC' '0002' c_nbr space,
fieldcat 'ACT_QTY_CNS' text-114 15 'DEC' '0002' c_nbr space,
fieldcat 'ACT_QTY_CNS_VAL' text-115 15 'DEC' '0002' c_nbr space,
fieldcat 'STD_QTY_CNS' text-116 15 'DEC' '0002' c_nbr space,
fieldcat 'STD_QTY_CNS_VAL' text-117 15 'DEC' '0002' c_nbr space,
fieldcat 'TGT_QTY_CNS' text-118 15 'DEC' '0002' c_nbr space,
fieldcat 'TGT_QTY_CNS_VAL' text-119 15 'DEC' '0002' c_nbr space,
fieldcat 'VAR_ACT_STD' text-120 15 'DEC' '0003' c_nbr space,
fieldcat 'VAR_ACT_STD_VAL' text-121 15 'DEC' '0003' c_nbr space,
fieldcat 'VAR_ACT_TGT' text-122 15 'DEC' '0003' c_nbr space,
fieldcat 'VAR_ACT_TGT_VAL' text-123 15 'DEC' '0003' c_nbr space,
fieldcat 'VAR_STD_TGT' text-124 15 'DEC' '0003' c_nbr space,
fieldcat 'VAR_STD_TGT_VAL' text-125 15 'DEC' '0003' c_nbr space,
fieldcat 'ACT_QTY_SCR' text-126 15 'DEC' '0002' c_nbr space,
fieldcat 'ACT_QTY_SCR_VAL' text-127 15 'DEC' '0002' c_nbr space,
fieldcat 'ACT_QTY_ADJ' text-128 15 'DEC' '0002' c_nbr space,
fieldcat 'ACT_QTY_ADJ_VAL' text-129 15 'DEC' '0002' c_nbr space,
fieldcat 'ACT_QTY_OTH' text-130 15 'DEC' '0002' c_nbr space,
fieldcat 'ACT_QTY_OTH_VAL' text-131 15 'DEC' '0002' c_nbr space,
fieldcat 'TOT_QTY' text-132 15 'DEC' '0002' c_nbr space,
fieldcat 'TOT_QTY_VAL' text-133 15 'DEC' '0002' c_nbr space,
fieldcat 'VAR_TOT_STD' text-134 15 'DEC' '0003' c_nbr space,
fieldcat 'VAR_TOT_STD_VAL' text-135 15 'DEC' '0003' c_nbr space.
ENDFORM.