Skip to Content
0
Former Member
Sep 24, 2014 at 05:52 AM

captch real value from select-option field while executing program

38 Views

Hello all,

I am working on a simple report but facing an problem in it.

SELECTION-SCREEN BEGIN OF BLOCK B1.

SELECT-OPTIONS : M_NO for MSEG-MATNR,

M_YEAR FOR MSEG-MJAHR.

SELECTION-SCREEN END OF BLOCK B1.

DATA : LEN TYPE I.

LEN = STRLEN( M_NO ).

WRITE: LEN.

when I select record for eg. if i select value 18 in m_no then LEN should display value 2.bute its showing 21.I have debuge the program M_NO taking the value 'AEQ000000000000000018'.can anyone please help me with this problem.

Thanks in advance.