Showing results for 
Search instead for 
Did you mean: 

How to modify only the last object ID using dynamic actions

Former Member
0 Kudos

My requirement is to modify the latest entry in IT0715 using dynamic actions. Since I have developed a form that feeds a pre-defined end date while modifying the record it is important for me to make sure that it picks only the last record (Object ID) in that subtype. Everything works fine until I have just one record in the subtype 'HOME'.

Problem starts when I have multiple records maintained in the IT0715, StyHOME. Becuase my 'MOD' operation starts pulling all the available entries right from the first object. So my Z-form tries to modify the end date of the wrong record (first entry) instead of the last entry. I can also define the object ID in the dynamic code, but we never know how many entries we would have for this subtype.

The question is how to always modify only the last entry in IT0715 with 31.12.9999 using dynamic actions


Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Vamshi,

You can try like this

MOD,0715,HOME,02,, (P0000-ENDDA)

Former Member
0 Kudos

This way it is only going to modify the SECOND entry (object) in IT0715 by filling the end date as 31.12.9999 (from IT0000). I do not want that.

I want the LAST entry (object) to be picked every time it executes this MOD operation. The end date is filled by the Z_Form so no worries there.

Any one have idea?