There are no official or reliable Action Replay codes to guarantee wild Ditto encounters in Pokémon Pearl. Ditto is naturally rare (found in the Grand Underground via Poké Radar). Using cheat codes risks save corruption and game instability. Legitimate methods to increase Ditto odds:
Patience and legitimate hunting are recommended over unstable cheats.