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

Validation Problem

Former Member
0 Likes
387

Hi

im doing the Validation in LSMW

is it possible to get the Material Description from Table (By default) for the material in Excel Sheet Entered ?

i have written a code for this by im not getting the description details

can any one help me on this ?

Regards

Smitha

2 REPLIES 2
Read only

Former Member
0 Likes
355

Hi,

material text will be in MAKT table.

Select from MAKT table using material number and Sy-langu (logon Language). Then pass it to target maerial description field in LSMW.

Please note that material number should contian leading zeros before select statement otherwise query will fail.

Regards,

Shanmugavel chandrasekaran

Read only

0 Likes
355

Hi

thanks for ur reply

i have done as u told but im struck somewhere can u help me by referring my below code

data : v_maktx type makt-maktx.

data : v_bmatn type mara-bmatn.

clear : v_maktx,v_bmatn.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'

EXPORTING

INPUT = MFPMATSS-BMATN

IMPORTING

OUTPUT = v_bmatn

.

select single maktx

from makt

into v_maktx

where matnr eq v_bmatn.

if sy-subrc eq 0.

move v_maktx to MFPMATSS-MAKTX_01.

endif.

*MFPMATR-MAKTX_01 = MFPMATSS-MAKTX_01.