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

TEXT ELEMENT IN ALV?

Former Member
0 Likes
1,030

HI all,

I have a parameter in selection screen i.e user id.

what ever the user id the clint will give that ID will be displayed as COLUMN TEXT in ALV output.

please help me..

sachin.

HI all,

I have a parameter in selection screen i.e user id.

what ever the user id the clint will give that ID will be displayed as COLUMN TEXT in ALV output.

please help me..

sachin.

3 REPLIES 3
Read only

naimesh_patel
Active Contributor
0 Likes
682

You can set that value to the fieldcatalog of that perticular field

Like:

PARAMETERS: P_USER(12).

LS_FCAT-FIELDNAME = 'USER'.
LS_FCAT-reptext_ddic = P_USER.  " < will come as column text

Regards,

Naimesh Patel

Read only

0 Likes
682

Hi,

Its giving an error like INCOMPATIBLE.

sachin.

Read only

0 Likes
682

populate ur table with the one given in the parameter <b>User id</b>

in the field catalog check the structure...

afield-fieldname = 'UNAME'.

afield-seltext_s = 'User Id'.

afield-ref_tabname = 'SYST'.

APPEND afield TO xfield. CLEAR afield.

Xfield is ur field catalog table.