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

Alphanumeric Code Vs. Numeric Code Plant

Former Member
0 Likes
1,382

Hi Expert we are using alfanumeric plant ie .'707B' itz giving run time error 'Unable to interpret "707B" as a number'

here is the source code for the short dump.

CLEAR %WEXIT.

INTSFSY-SUPPWIN = 'X'.

IF SFSY-PAGENAME = '%PAGE1'.

IF ( REGION NE 24 ).

ELSE. EXIT.

ENDIF.

ENDIF.

INTSFSY-SUPPWIN = SPACE.

PERFORM %WI5_BODY.

CLEAR %WEXIT.

ENDFORM. " %WI5

*----


  • FORM %WI5_BODY

*----


FORM %WI5_BODY.

REFRESH %INPUTFIELDS.

FILL_TEXTAREA 'F' 0 0 ' '.

PERFORM %WRITE_TEXT USING '%TEXT11' 'ZSSD_LEGAL' SPACE 'P' SPACE %INPUTFIELDS %TEXTAREA.

IF %WEXIT <> SPACE. EXIT. ENDIF.

IF ( G_WERKS1 NE 1112 ).

REFRESH %INPUTFIELDS.

FILL_TEXTAREA 'F' 0 0 ' '.

PERFORM %WRITE_TEXT USING '%TEXT24' SPACE SPACE 'P' SPACE %INPUTFIELDS %TEXTAREA.

IF %WEXIT <> SPACE. EXIT. ENDIF.

ENDIF.

IF ( G_WERKS1 NE 1112 ).

REFRESH %INPUTFIELDS.

FILL_TEXTAREA 'F' 0 0 ' '.

PERFORM %WRITE_TEXT USING '%TEXT25' SPACE SPACE 'P' SPACE %INPUTFIELDS %TEXTAREA.

IF %WEXIT <> SPACE. EXIT. ENDIF.

ENDIF.

Regards,

Aditya

4 REPLIES 4
Read only

Former Member
0 Likes
1,025

Hi,

Check if in smartform you have declared any numeric variable and in the smartform you are assigning any value which is alphanumeric.

Read only

0 Likes
1,025

Especially: check the definition of G_WERKS1.

Read only

0 Likes
1,025

In form interface we define .

.

G_WERKS1 type VBRP-WERKS.

i chacked the entry in vbrp that plant exist .

Regards,

Aditya

Read only

0 Likes
1,025

> IF ( G_WERKS1 NE 1112 ).

Here you are trying to compare alphnumeric value with numeric value 1112, is it coreect?

instead of that you could compare as IF ( G_WERKS1 NE '1112' )

same way for all such conditions.