Skip to Content
avatar image
Former Member

A problem of type p in module pool

Hi,

In a module pool, using type p will make a mistake.

For example:

PROGRAM ZTEST01.

data: num type p decimals 2.

&----


*& Module STATUS_9000 OUTPUT

&----


  • text

----


module STATUS_9000 output.

num = 4.

endmodule. " STATUS_9000 OUTPUT

The num will be 0.04, not 4.

Why this occurs?

When I do the same thing in a executable programme, the num will be 4. That's to say, the mistake will not occure in a executable programme.

Waiting for your help.

Best Regards,

Xifeng

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Sep 22, 2008 at 08:06 AM

    If youu Don't specify the Properties of the screen field properly then you get those problems..

    Check the Format specified as DEC

    Try to Refer and Design the Screen fields based on the Program Varibales.

    Add comment
    10|10000 characters needed characters exceeded