How To Copy OCM Records From One Environment To Another Using SQL

Read Time:54 Sec

This method can be used to copy any records in a database but the issue that I was trying to resolve was to copy 8 records in the Object Configuration Management (OCM) file, F986101, of one object to another object.

INSERT INTO SY900/F986101( 
OMENHV, OMOBNM, OMDATP, OMUGRP,OMOAPP, OMDATM, OMSY, OMSTSO, 
OMPID, OMFUNO, OMUSER, OMJOBN, OMOCM2, OMUPMJ, OMUPMT) 
(SELECT OMENHV, '', OMDATP, OMUGRP, OMOAPP, 
OMDATM, OMSY, OMSTSO, 'SQL', OMFUNO, '', '', 
OMOCM2, ,  
FROM SY900/F986101 WHERE OMOBNM='') 

When using this SQL you will need to replace the following:

  • <NEW_OBJECT&gt; – The target object to which you would like to copy the records.
  • <USERID&gt; – (optional) The UserID that you would like to credit making this change.
  • <6DIGITDATE&gt; & <6DIGITTIME&gt; – (optional) The JDE Date and Time that you are making the change.
  • <ORIGINAL_OBJECTID&gt; – The ObjectID of the OCM record that you wish to copy.

This method can also be used to copy OCM records from one environment to another by setting the environment in the select statement and where clause.

Author

Stewart Schatz

Career: Principal CNC Consultant for Syntax Systems Limited specializing Oracle JD Edwards EnterpriseOne and the technology that supports it. Side Hustle: Owner/Operator of E1Tips.com Location: Lancaster, PA USA  What I like to do: Invest in Family, Explore Technology, Lead Teams, Share Knowledge/Experience, Hunt, Hike, etc.
Happy
Happy
0
Sad
Sad
0
Excited
Excited
0
Sleepy
Sleepy
0
Angry
Angry
0
Surprise
Surprise
0

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Previous post Unable To Launch Change Assistant
Next post Add Environments To User Or Group Using SQL