Technology Blog Posts by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
StefanDoktor
Product and Topic Expert
Product and Topic Expert
14,407
In this blog series, I would like to describe a few standalone enhancements in more detail, which can be very helpful in special situations and can be used independently from the requirements to deploy process from Focused Build.

In this second part, I want to introduce you to a standalone enhancement which is named Repack. This extension is particularly useful for you when you have implemented or plan to implement Change Request Management with SAP Solution Manager.

The Challenge


Now and then, a transport manager for a system landscape you need to reorganize transports.


Solutions




Most of the time the only solution for a transport manager was to access the transport organizer and do the different steps manually.

It usually got more difficult when you used Change Request Management and not only had to do manual imports, transport merges and include objects steps but also had to manage the TDIR entry’s and originality and the Cross-System Object Lock from Change Request Management.

Repack


Repack is a simply guided procedure witch you can open in the transport assignment block of your target change. The guided procedure then supports you with the selection of the source transports and automates post activities you may need.



The wizard allows you either to select transports list from a whole project (Dual Track Landscape Use Case) or to select any transports that you have imported in the development systems of the target changes. You can also repack any transport types, regular workbench and customizing transports as well as transport of copies or open transports that are not yet released.

Repack provides you with automation of the following post-processing activities:

  • Change Originality - Change Originality of workbench objects to the current system.

  • Add directory Locks - If transport locks exist for objects that should be repacked in the current System, the function will delete these locks to add the locks for the repack target transport request.

  • ToC into Customizing - Repack a Transports of Copies(ToC) into target customizing transport (otherwise, they will be repacked into target workbench transport).

  • Add CSOL - Add Cross System Object Lock for the target repack transport requests automatically.


If you are looking for more information about Focused Build and other Focused Solution’s look at these resources:

 

Other Articles of this Series:

 
15 Comments
leena_nissila
Explorer
0 Kudos
Thanks for good block.

I tried to use repack function from Focused Build 2.2 but I do not get to right source system the Development system from Development Branch in guided procedure. I suppose source system should be where to repack context from development Branch to Maintenance Branch.

S4H:801 is maintenance branch development system (this charm document belong to maintenance branch. I suppose I should have S4H:820 (instead of S4H:801) development here because it is development from Development Branch.

Should I create transport routes or soladm configuration to get other development system visible? or something else.



 

Br Leena
StefanDoktor
Product and Topic Expert
Product and Topic Expert

Hello Lenna,

i think there is a miss understanding. Repack always happens in the Development System. I will not take care for the Import to the DEV System.

In the selected field you can select different DEV systems when there are multiple DEV system in the change cycle. If there is only one in the change cycle you cant change it.

Based on the DEV System and the repack mode you use it will show you either all imported transports or all imported transports from a specific change cycle where this DEV system was the PRD system.

To make use of repack in a Dual System Landscape you would setup one cycle with

DEV(PRJ)-QA(PRJ)-DEV(Maint) in the Role of the PRD (Project Change Cycle)

DEV(Maint)-QA(Maint)-PRD( the real one)  =  Maintenance Change Cycle

 

You then do the Import in the Project Change Cycle to DEV(Maint) via Task List and then the repack in DEV(MAint) to attach all those changes to a new change in the Maintenance Cycle.

i hope this clarifies this a little bit.

 

kind regards

Stefan Doktor

leena_nissila
Explorer
0 Kudos
Yes, Now I understood. Thanks for good explanation

I think now it should work but I still get error: Repack Function is not available in System S4H:801. Should  this action  be run from managed system. Could it be possible that this funtion is missing from there?

Best Regards,

Leena

 

 

 
StefanDoktor
Product and Topic Expert
Product and Topic Expert
You might have missed step 4.5.3. "Package Distribution for Managed System" from the Configuration Guide.

Check all Steps in the Config Guide again please. In case it still does not work please open OSS Message
VinDevOps1
Participant
0 Kudos
Hi stefan.doktor

The focus build standalone extention is integrated in business role /SALM/SM_PRO, but we have Charms implemented with ZSOLMANPRO business role. Is it possible to integrate the Repack with ZSOLMONPRO ?

 

Thanks,

Vinod
StefanDoktor
Product and Topic Expert
Product and Topic Expert

Hello Vinod,

yes, but for technical reasons we cant provide this out of the box.

You need to do this yourself.

There are 2 Options

  1. Exchange the Transport Assignment Block that is used in ZSOLMANPRO and use the Transport Assignment Block that is used in the /SALM/SM_PRO. Todo this you need some CRMUI DEV Knowledge to enhance the WebUI Compontent for the Change Documents (AIC_CMCD_H) and add the Assignment Block (/SALM/CM_TRANS) to the usages.
  2. If you don’t have that option or don’t want to do a customer enhancement to a UI Component you could also just take the whole CHARM Workcenter from /SALM/SM_PRO and add it to your ZSOLMANPRO via the Business Role Customizing. But be aware as you will change the name of all lower-level UI Components every customizing you made before, to your ZSOLMANPRO and to the views of the AIC* UI Components, might need to be replicated for the new /SALM/* UI Components that you get with the new Workcenter.

I would recommend in most cases to go for option 1 even if this means a development enhancement. Less effort than trying to sync all the customizing except you know that you didn’t do any customizing in ZSOLMANPRO.

kind regards

Stefan Doktor

 

VinDevOps1
Participant
0 Kudos
Thanks a lot Stefan,

We will try your suggestion and let you know how it goes.

Regards,

Vinod

 
Roszak
Explorer
0 Kudos
Hi Stefan,

 

i used to implement option 1:

enhanced AIC_CMCD_H, then added in the Runtime Repository Editor a new

ComponentUsage CUSALMTransportData

and a new View in the corresponding view set:

View CUSALMTransportData./SALM/CM_TRANS/MainWindow

but when i go into the ZSOLMANPRO Role-based CRM-Ui and go into my new created Normal Change i miss there the More-Buttons and other important Action-Buttons in the AB


whats missing exactly?

 

regards

 

Martin Roszak
StefanDoktor
Product and Topic Expert
Product and Topic Expert
0 Kudos
I can only guess what is missing but it looks like in the component_controller you are missing entries in wd_usage_initialize. Look at UI Component /SALM/CMDC_H how the usages are initilized.

 
Roszak
Explorer
0 Kudos
Hi Stefan,

i checked the "original" Component from /SALM....and here i think i need to redefine some views in the copied one. I will let you know about the implementation status.

 

By the way, i tried also to go through the option 2 and i was in discussion with the SAP Product Support, there suggestion is to make a copy of business role /SALM/SM_PRO and in this copy to include the adjustments of my ZSOLMANPRO.

But sorry, this is not possible because of the different UI Components or can you guide me a little bit through the steps what needs to be done here exactly? i think with option 2, i need then to re-create my own views in the ui again if i want to use new FB-Charm.

Best regards

Martin
StefanDoktor
Product and Topic Expert
Product and Topic Expert
0 Kudos
You should not need to redefine views in the /SALM/ Transport AB. Only if you have further custom enhancements. Just add the usage to the AIC Header Component and the WD Usage initialize. Maybe some Navigation's also need to be added. Just compare there between AIC Header Component and /SALM/ Header Component.

What you will need is to change the Config of the Overview Page to display the new transport AB and not the AIC Transport AB.

If you have a heavily customized Z business Role its easier not to copy that /SALM/ business role. You are on the right track.
Roszak
Explorer
0 Kudos
Hi Stefan,

you were right!

i missed to enhance the WD_USAGE_INITIALIZE in the Component Controller from AIC_CMCD_H. Now i can see also the Buttons in the new transport management block and everything works fine now in ZSOLMANPRO

 

thanks you and best regards

 

Martin

 

 
imrankhan_patan3
Explorer
0 Kudos
Hi Stefan,

We Have S4 Hana landscape(S4 2020) which is running as maintenance now we have requirement to upgrade the S4 Hana version 2022

We use present maintenence stack as a project stack and for Maintenance we use 2 Temp System (DEV & QA) but we use same production system for both landscape. during production cutover we will stop temp maintenance landscape.

before Production golive make a repack of the transport request that arrives to PPRD system(PFG) in the new one of maintenance landscape of Dev system.

Details :-

DFG --> QFG --> PFG (Project stack)

DXG -->QXG -->PFG(Maintance stack)

We use same trans dir & Domain as production system domain controller.

I have configured Repack as per the configuration guide but when I tried to repack , source and target it is showing same landscape transport.

our solman landscpae os SM7.2 SP16 - STOST -11

 

Best regards

Imran
StefanDoktor
Product and Topic Expert
Product and Topic Expert
0 Kudos
Hello Imran,

your scenario is probably better solved with CutOver Checks and Activities see https://blogs.sap.com/2018/09/19/cut-over-checks-activities-focused-build-standalone-extensions-part...

Repack can only Repack Transports within the same system..it will not move transports from one system to another.

It takes a list of imported transports and repacks them into a new transport that you then can export manually.

But the imports and the exports are not in scope of repack, it will only do the repack of the selected transport in the selected target.

But moving Project Track Changes into Maintenance Track is the Job of Cut Over Checks and Activities. With the SP13 of ST-OST we even use in the Cut Over Activities Repacking to improve performance when distributing changes to the maintenance track.

kind regards

Stefan
mburton_FLART
Newcomer
0 Kudos

Hi Stefan,

Thank you for the explanation of this tool. Part of what is presented is that you can repack external transports from vendors. I am the release manager and looking to implement this function.  Please correct or confirm my understanding of this use case.

My current process: Vendor transport is delivered from an external namespace to my development environment. My process would then require my Basis counterparts to create a General CD in Charm to manually import the vendor transport from DEV --> QAS --> VAL --> PRD.

Issues: No Charm advantages delivered. NO CSOL, NO DGP, NO Cross System checks.

Would repack tool process be the following?
Vendor transport delivered from external namespace. Basis counterparts import to DEV. Then use Normal Change Document and Repack tool to import via our normal process with all Charm Advantages?

Kinds Regards,
Matt