cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to access WageType value after ADDWT *

swarup_modak
Explorer
0 Kudos

I am unable to access WageType value after applying ADDWT *.

The IT Table is like following:

I need a calculation like 400/26/8 * 208.

Since 208 has been split, I have add the wagetype first then I have written PCR for aforesaid calculation.

For add I have written the following code.

Now the IT Table is like following

Now I have written the following code for aforesaid calculation:

The problem is that NUM=RWMT is not getting value 208. As a result AMT not generating.

How I'll be able to access RWMT value.

Please help.

Thx in advance.

Accepted Solutions (0)

Answers (3)

Answers (3)

Sanky
Active Contributor
0 Kudos

Hi,

Because ESG for PCR is different for both the wage type RW25 and RWMT.

You can use the SETIN operation like SETIN R=2 after the ELIMI * in the 1st PCR and also in the second PCR after NUM=  give two space and then give wage type RWMT.

Question on Operation - "SETIN" | SCN

ELIMI SETIN OPIND - PY Operation | SCN

Check and let me know.

Regards,

Sankarsan

swarup_modak
Explorer
0 Kudos

After using SETIN R=2 after the ELIMI * the IT Table is like following:

I have also written NUM=  RWMT but no result.


Thx.

Sanky
Active Contributor
0 Kudos

Hi,

Your 1st PCR issue is solved now.

Now tell me in the second PCR what is you trying to do?

After MULTI RNA , you would like to compare this amount with constant. If it's so then you have to store this amount temporarily in the payroll run like below.

Add below few lines after MULTI RNA line in your 2nd PCR.

ADDWT&110A

AMT=& 110A  (after =  give & and after that one space).

Now again in the > condition what would you like to update????... Would you want to pass the constant amount to RW25 wage type.

Please share the 2nd PCR input table and what would like to do it in the 2nd PCR.

Regards,Sankarsan

Former Member
0 Kudos

Hi Swarup,

Could you please pest the processing log of your PCR along with Input & Output log.

Thanks

swarup_modak
Explorer
0 Kudos

Requirement:

Max Amout Rs. 400 for a month on 26 days present.

  1. RW25 has been configured in infotype 14. If RW25 is withdrawn against a person, allowance will not be paid.
  2. KHEATF, constant of Rs. 400, has been maintained.

Input IT Table:

When I am calculating with RWMD, it is working perfect like this:

PCR:

Output IT Table:

But in this case problem has calculation is being made on 104 only.

Then I decided for a total value of RWMD and created RWMT.

At present it seems that RWMT is not accessing. Please find the processing log.

Thx.

Sanky
Active Contributor
0 Kudos

Ok. In the simple way that pcr will proceed if RW25 is having the value. Correct?

Then you would like to multiply RWMT number with 1.9230(400/208) and if this amount is more than 400 then in the wage type RW25 should be carrying 400 and if that's less than 400 then it should be modify with new amount. Am I right?

So in the wage type RW25 , are you passing amount 400??? (From 1st condition IT table is showing for 1st PCR calculation).

If my understanding is correct then let me know I will share the PCR details. (If better please briefly describe what you want exactly? Based upon the as per previous 1st PCR RWT2 output table details.

swarup_modak
Explorer
0 Kudos

Sorry to mention the modified PCR as per your suggestion:

Thx.

swarup_modak
Explorer
0 Kudos

Your understanding is correct.

PCR: RWT1

PCR: RWT2

PCR: RWHT

I have already mentioned earlier.

Thx.

Sanky
Active Contributor
0 Kudos

Hi ,

Write your PCR like below.

ZWHT

2

  RW25

           AMT?0

                    *

                     

                    >

                        RTE=KHEATF

                        RTE/208

                        ADDWT&111A

                        NUM=  RWMT

                        RTE=& 111A

                        MULTI NRA

                        ADDWT&112A

                        AMT=& 112A

                        AMT-  RW25

                              *

                                AMT= NRA

                             >

                                ADDWT *            (I think you are carrying 400 in the wage type RW25)

  ****

         ADDWT *

ZUPD

2

  RWMT

             ADDWT *

             AMT=& 112A

             ADDWT RW25

  ****

         ADDWT *

Add these two PCR one by one in the payroll schema. Check and share input and output details of each PCR if did not get the actual result.

Regards,

Sankarsan

swarup_modak
Explorer
0 Kudos

I have observed that NUM=  RWMT is not working.

As a result AMT not generating with function MULTI.

Most probably 1.92 x 0 is becoming 0.

Thx.

swarup_modak
Explorer
0 Kudos

Regarding your ZUPD I have checked and found the following:

Hence WBPB assignment '02' is a factor.

Thx.

Sanky
Active Contributor
0 Kudos

Hi ,

In the PCR RWT2 you please enter below lines after SETIN operation.

SETIN R=2

AMT=1

MULTI NAA

ADDWT RWMT

Now in the second PCR ZWHT insert AMT=  RWMT  and use MULTI ARA in the PCR.

Check and let me know.

Regards, Sankarsan

swarup_modak
Explorer
0 Kudos

AMT=  RWMT is also not working like NUM=  RWMT.

Thx.

Sanky
Active Contributor
0 Kudos

Share the 2nd pcr details and input table of the 2nd pcr.

swarup_modak
Explorer
0 Kudos

Please find the required screen shot :

I have changed ZUPD as ZWT3

Thx.

Sanky
Active Contributor
0 Kudos

HI,

In your second PCR syntax is wrong (PCR RWHT).

AMT-  RW25  (give two spaces after - )

and in the * after comparison give ZERO=  NRA.

Like

AMT=& 112A

AMT-  RW25

AMT?0

   *

       ZERO= NRA

   >

       ADDWT *

Check and let me know.

Regards,

Sankarsan

swarup_modak
Explorer
0 Kudos

Please find the screen shots below:

There is no RW25 Iin IT Output Table.

Thx.

swarup_modak
Explorer
0 Kudos

Value RWMT is not accessing neither with NUM nor with AMT. Please check below:

Most probably SAP does not allow access the value of another SPLIT.

RWMT has no SPLIT indicator, whereas RW25 as indicator 02.

Thx.

Sanky
Active Contributor
0 Kudos

Hi,

Sorry I have not seen that in wage type RW25 about the split.

Insert ELIMI * in the 2nd PCR just before the rte=kheatf.

Let me know the result.

Regards,Sankarsan

Sanky
Active Contributor
0 Kudos

Hi Swarup,

If your query is answered then close the thread with correct and helpful answer marking.

Regards,

Sankarsan

Sanky
Active Contributor
0 Kudos

Hi,

Mention the correct answer on you thread which will be helpful to other's people in the SCN.

venkateshorusu
Active Contributor
0 Kudos

Waht exactly the requirement is, 400/26/8*208 could not able to understand what is 26/8*208 then accordingly we can place the logic.

Regards

Venkatesh

venkateshorusu
Active Contributor
0 Kudos

Give 2 spaces after NUM=  RWMT and check.

Regards

Venkatesh