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: 

S509-SPMON period in ALV

Former Member
0 Kudos

Hi;

i have an output in an ALV grid like this:

gt_fieldcat-seltext_l = 'Month'.

gt_fieldcat-fieldname = 'SPMON'.

gt_fieldcat-outputlen = 6.

gt_fieldcat-ref_tabname = 'talv'.

APPEND gt_fieldcat. CLEAR gt_fieldcat.

But the output displayed in the cell grid is "201001" first year and then month, if i use SE16 tcode and browse the SPMON field is displayed "01.2010" first month then year.

i don´t want to concatenate in a new field because i think that there is a way to display the SPMON field in ALV as in the browse in SE16 with the period.

I need to display like this "01.2010" first month then year.

Thanks on advance.

David Fúnez

Tegucigalpa, Honduras

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Use:

gt_fieldcat-edit_mask =  '==PERI6'.

or

gt_fieldcat-edit_mask =  '==PERI'.

Best regards,

Leandro Mengue

2 REPLIES 2

Former Member
0 Kudos

Hi,

Use:

gt_fieldcat-edit_mask =  '==PERI6'.

or

gt_fieldcat-edit_mask =  '==PERI'.

Best regards,

Leandro Mengue

0 Kudos

Thanks a lot, it works.