cancel
Showing results for 
Search instead for 
Did you mean: 

Creation of Dynamic Action

Former Member
0 Kudos

Dear All,

I have to write a Dynamic Action (v_T588z) for my customize infotype. In that infotype, i have to set a condition on fields, that if Installment amount is less than the balance amount than the system should create wage type in infotype 0014 against Balance amount. And also create a period dates (Start and end date) in that subsequent period against the creation of wage type in infotype 0014.

Please note that the Dynamic Action for wage type creation and updation is already written against installment field per month.

You are requested to kindly write me a code for Dynamic Action for the above mentioned requirements.

Thanks & Regards,    

Hassan

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Dear Experts,

I have the following kind of scenario that last installement needed to created with Dynamic Action. The scenario is explained with example hereunder:

"Last instalment of recovery should be calculated by the system e.g. if principal amount  is 625,000 and rate of instalment is 100,000, then the last month recovery should be calculated as 25,000 for wage type 3985 for deduction. For this purpose, program should check the Balance Amount if less than the rate of instalment, then the balance amount should be populated in wage type 3985 for last instalment with the following period dates." 

Please note that the dynamic action for rate of installment with period start and end date is already written in my customize infotype 9213 and it is working fine i.e.

06 20 I INS,0014,3985,,/D

06 30 W P0014-LGART='3985'

06 40 W P0014-BETRG=P9213-PAYLO

06 50 W P0014-BEGDA=P9213-DLSTA

06 60 W P0014-ENDDA=P9213-DLEND

08 30 I DEL,0014,3985,,/D

Please also note that the the technical names of the fields that is to be written for Last Installment in Dynamic action:

1) Rate of Installment = P9213-PAYLO

2) Balance Amount = P9213-OPELO

3) Perioed Start Date = P9213-DLSTA

4)) Period end Date - P9213-DLEND

You are requested to kindly provide me the solution ASAP for the above mentioned Dynamic Action requirement.

Thanks & Regards,

Hassan

Former Member
0 Kudos

Hi Experts,

Do u have any answers regarding my question? It is for your info that i am currently using dynamic action for creation and updating wage type and it is working fine, which is mentioned hereunder:

06 20 I INS,0014,3985,,/D

06 30 W P0014-LGART='3985'

06 40 W P0014-BETRG=P9213-PAYLO

06 50 W P0014-BEGDA=P9213-DLSTA

06 60 W P0014-ENDDA=P9213-DLEND

08 30 I DEL,0014,3985,,/D

But now i have to set a condition as i have already mentioned above. I need your assistance in this regard.

Thanks & Regards,

Hassan

Former Member
0 Kudos

Hi Hassan,

Are Installment amount  and balance amount are fields of your custom infotype??

If yes, then

Assuming XXXX is Installment amount and YYYY is balance amount.

06 10 P P9213-XXXX<P9213-YYYY

06 20 I INS,0014,3985,,/D

06 30 W P0014-LGART='3985'

06 40 W P0014-BETRG=P9213-PAYLO

06 50 W P0014-BEGDA=P9213-DLSTA

06 60 W P0014-ENDDA=P9213-DLEND

08 30 I DEL,0014,3985,,/D

Hope this helps.

Pradeep.

Former Member
0 Kudos

Thanks Pradeep,

Yes installment amount and balance amount are two fields of my customize infotype, same as loan infotype 0045. ok i will apply this dynamic action to my infotype and will update with the result.

Thanks again Pradeep .

Former Member
0 Kudos

Dear Pradeep,

I have tried this, but the system is only creating a value with Balance Amount, whereas installment amount should be picked by system if it is greater from balance amount.

Can u have any other logic, that how can i resolve this matter with dynamic action?

I have entered the following in the dynamic action table:

06

1

DYNAMIC ACTION FOR TRANSPORT MONETIZATION

06

10

I

INS,0014,3985,,/D

06

15

W

P0014-LGART='3985'

06

20

W

P0014-BETRG=P9213-PAYLO

06

25

W

P0014-BEGDA=P9213-DLSTA

06

30

W

P0014-ENDDA=P9213-DLEND

08

40

I

DEL,0014,3985,,/D

06

50

P

P9213-PAYLO<P9213-OPELO

06

55

I

INS,0014,3985,,/D

06

60

W

P0014-LGART='3985'

06

65

W

P0014-BETRG=P9213-OPELO

06

70

W

P0014-BEGDA=P9213-DLSTA

06

80

W

P0014-ENDDA=P9213-DLEND

08

90

I

DEL,0014,3985,,/D

From this logic, system is only updating wagetype 3985 with balance amount.

Kindly do the needful in this regard.

Regards,

Hassan