Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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

Tags:
Not what you were looking for? View more on this topic or Ask a question