Application Development 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: 

Output does not show the syuname field.

Former Member
0 Kudos

I got a field which is type SYUNAME.

I select * from the table, SYUNAME still there.

After I append it, SYUNAME still there.

All went fine until call method REUSE_ALV_GRID_DISPLAY.

Output does not show the syuname field.

Please advice.

Thanks,

Wong

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

Did you perform the ALV Consistency check ?

Regards,

Raymond

17 REPLIES 17

Former Member
0 Kudos

Can you put a portion of your fieldcatalog?

Thanks

0 Kudos

  ls_fieldcat-fieldname = 'APRROVER'.
   ls_fieldcat-seltext_m = 'Approver'.
   ls_fieldcat-col_pos   =  6.
   APPEND ls_fieldcat TO it_fieldcat.
   clear ls_fieldcat.

I created a ztable and the field is declared this way.

Field: Aprrover

Type: syuname.

0 Kudos

ls_fieldcat-fieldname = 'APRROVER'.
ls_fieldcat-seltext_m = 'Approver'.

ls_fieldcat-ref_tabname = 'ZTABLE'.

ls_fieldcat-ref_fieldname = 'APRROVER'.
ls_fieldcat-col_pos   =  6.
APPEND ls_fieldcat TO it_fieldcat.
   clear ls_fieldcat.

Pass ref_table and ref_fieldname to the field catalog.

raymond_giuseppi
Active Contributor
0 Kudos

Did you perform the ALV Consistency check ?

Regards,

Raymond

0 Kudos

I did it just now. It is saying that

   The field APRROVER  does not exist in the output table

and the dianogsis

Diagnosis

An output table field name was assigned to an interface parameter. The output table structure contains no field with this name.

So, what should I do?

0 Kudos

Check your output table if it contains field APRROVER.

0 Kudos

Check definition of the internal table passed to ALV, if the field exists in the internal table definition, you may try to refresh ALV buffers executing report BALVBUFDEL, and test again the report, else add it to internal table definition.

Regards,

Raymond

0 Kudos

Problem will be with the loop

0 Kudos

My output table is referring the ztable I create.

So, approver field must be there.

0 Kudos

I did debug. Until REUSE_ALV_GRID_DISPLAY, the approver field got value. After that, the value gone.

0 Kudos

executed report BALVBUFDEL. Test again. Still not displaying any value.

0 Kudos

Question: What is the real name of the field: APPROVER or APRROVER?

Please check spelling?

0 Kudos

Hi

Please check spelling of Approver bleow in your  code:

  ls_fieldcat-fieldname = 'APRROVER'.
   ls_fieldcat-seltext_m = 'Approver'.
   ls_fieldcat-col_pos   =  6.
   APPEND ls_fieldcat TO it_fieldcat.
   clear ls_fieldcat.

0 Kudos

Spell check APRROVER

0 Kudos

Good catch Karthik

@ Wong check the fieldname given in the fieldcatalog.

0 Kudos

U are right.

APPROVER is the fieldname.

I type in APRROVER in fielcatalog init.

0 Kudos

Perform once again the Consistency check, click on the ouput table icon, what is the field name for approver, does it match the fieldcatalog.

(If you use a ddic structure for the output internal table, why do you build the fieldcatalog from scratch, use a FM like REUSE_ALV_FIELDCATALOG_MERGE or LVC_FIELDCATALOG_MERGE, you can then update some values in it, but not field names of course)

Regards,

Raymond