Sometimes as part of housekeeping activity we need to bring the custom programs/ function modules in synch with the Production System across all the SAP Boxes in the landscape.

Here, I give a brief overview of how that can be implemented with a custom program.

The custom program can be developed following the given steps:

a.     Create a program which takes a custom Progam or Custom Function Module name as input (we can later on enhance the program to be able to synchorise for         other objects). Here we take an example where we provide the custom function module – ZASTERIDOC_CREATE_REQ_MATMAS_M which is used as an                        example to bring  the versions in synch.

Inside the program the logic needs to be built up in the following lines:

b.     Read table VRSD with the object type and the object name:

/wp-content/uploads/2014/03/image1_408115.jpg

        We get the Transport Request numbers against each version.

        We sort the table in the descending order by date and time so that we start with the latest transport.

c.     Now we need to check the presence of the transports in QUAL/PRD system by using the FM: STRF_READ_COFILE, in the descending order.

        Here in this case, as we run the FM for the transport : DE3K9A00AR, we see that the cofile has the entries for both Quality and Production

        /wp-content/uploads/2014/03/image2_408179.png

          /wp-content/uploads/2014/03/image3_408180.png

       Thus we now know that this version is present in all the systems and is the latest version.

       If it is not present then we will not get the cofile entries.We can then check with the next to the latest TR.

d.    When we get to a TR which holds for the Quality or the Prod system and we want to synchronize them, we can then again refer back to the entries of the            VRSD table and check for the relevant version depending on the TR.

e.     As we get the OBJECTNAME, OBJECT TYPE and the version number we can use the SUBMIT the values to the program RSEDTVE1, thus reverting back          the programs to the active version in PRD.

 


To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply