Skip to Content

Understanding PCR in time management


Hello gurus,

The attached PCR is querying for personnel areas *,**,and ***.Can you please help me understand why this PCR is querying for personnel areas with single *,double * and triple **** when actual personnel area length is 4 characters.

It is also querying personnel areas-***** ,0001,0002 and 0003.For me ,it makes sense.

Please help

Thank you


rule-zm02.png (48.6 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Oct 15, 2019 at 04:33 PM

    To start with, this pcr must be called by Function IF because it uses Operation SCOND.

    To Operation OUTWPPLANT, only 4 return values were defined:

    - for Personnel Area 0001, a further query is required on PLTSC (in PAYTP A)

    - for Personnel Area 0002, a further query is required on something (in PAYTP B)

    - for Personnel Area 0003, the condition is set as False (SCOND=F IF)

    - for any other Personnel Area (****), the condition is set as True (SCOND=TF IF)

    As to the return values to Operation OUTWPPLTSC, either you have Personnel Sub-Areas that have one, two, three or four characters, or the person who created pcr ZM02 has built the extra return values "just in case".

    Add a comment
    10|10000 characters needed characters exceeded

    • I removed private email address. Please note when you follow each other in SAP Community, you can communicate via "direct message". Please do not share your private information publicly as this violates the SAP Community rules of engagement. Thank you.

  • Posted on Oct 16, 2019 at 04:25 PM

    To learn about Schemas and Rules, please execute with the "Display log" box checked, and drill down into your log.

    Note the Function that is used, it's Input, Processing and Output.

    Use t-code pe04 to look at the Documentation on a Function (used in Schemas) or an Operation (used in PCRs).

    SAP used to offer courses on "Rule Writing ...", and may still do, but you will find a lot of information on the web if you do a search using key words " sap rule writing ".

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.