cancel
Showing results for 
Search instead for 
Did you mean: 

Understanding PCR in time management

saphr_professional
Active Participant
0 Kudos

rule-zm02.png

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

Bob

Accepted Solutions (1)

Accepted Solutions (1)

former_member193210
Active Contributor

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".

saphr_professional
Active Participant
0 Kudos

Hello Remi,

Thank you for your help.I am sure you are best person to help me understand Schemas and PCRs.Can you please teach me schemas and PCRs.

Thank you

Bob

former_member183331
Active Participant
0 Kudos

Hello Rami,

I would be keen to connect you if you agrees for session for BOB.

Warm regards ,
SS.

sveabecker
Community Advocate
Community Advocate

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.

sveabecker
Community Advocate
Community Advocate

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.

Answers (1)

Answers (1)

former_member193210
Active Contributor

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 ".

saphr_professional
Active Participant
0 Kudos

Hello Remi,

I have been following the same approach which you mentioned.

Thank you

Bob