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: 

ALV - take a part of a field for show.

Former Member
0 Kudos

Hi,

I have that for show in ALV :

CLEAR lwa_fcat.

lwa_fcat-fieldname = 'SDATA'.

lwa_fcat-ref_tabname = 'EDID4'.

lwa_fcat-seltext_l = 'Organización Ventas'.

lwa_fcat-outputlen = 30.

APPEND lwa_fcat TO p_it_fcat.

How I can show the field SDATA from the third position?

thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

lwa_fcat-fieldname = 'SDATA'.

lwa_fcat-ref_tabname = 'EDID4'.

lwa_fcat-seltext_l = 'Organización Ventas'.

lwa_fcat-outputlen = 30.

lwa_fcat-col_pos = '3'.

APPEND lwa_fcat TO p_it_fcat.

Regards,

Santosh

5 REPLIES 5

Former Member
0 Kudos

lwa_fcat-fieldname = 'SDATA'.

lwa_fcat-ref_tabname = 'EDID4'.

lwa_fcat-seltext_l = 'Organización Ventas'.

lwa_fcat-outputlen = 30.

lwa_fcat-col_pos = '3'.

APPEND lwa_fcat TO p_it_fcat.

Regards,

Santosh

0 Kudos

I explain not very well...

The sdata is a char(1000). I want to show only from the 3 position ( no show the firsts 3 chars)

thanks

Message was edited by:

Mpm

0 Kudos

If i have understood your question correctly is this what you are looking for ???


data : lv_char(100).

lv_char = EDID4-SDATA+2(100)

 lwa_fcat-fieldname = LV_CHAR.
lwa_fcat-ref_tabname = 'EDID4'.
lwa_fcat-seltext_l = 'Organización Ventas'.
lwa_fcat-outputlen = 30.
lwa_fcat-col_pos = '3'.
APPEND lwa_fcat TO p_it_fcat.

regards,

Santosh

0 Kudos

I want that ig the SDATA = '12345'

I want to show '45'

0 Kudos

hi,

run this report.

report test.


data : SDATA(100) type c value '12345',
         VAR (100)       type c.

VAR = SDATA+3(2).

  Write : var.

Output 45.

In a similar fashion cake your logic too ...

Regards,

Santosh