on 04-24-2015 7:13 AM
I am new to SAP gateway and learning from SEGW transaction now . I have created a simple service following and was successful. Now my question is where are these projects stored ? Can i copy or move these projects created in SEGW from one system to another if so, how?
Please suggest
Thanks in advance
Kiran
Kiran k wrote:
Can i copy or move these projects created in SEGW from one system to another if so, how?
As already explained by Ashwin, If you are talking about systems connected by TMS (i.e. Development, Quality and Production) then as usual the objects are moved by transport requests similar to how we transport other ABAP repository objects such as ABAP reports, tables etc.
but if you are talking about recreating SEGW project in system (from different landscape which are not connected by TMS) then you can export the metadata file and import into other system. you can refer and Importing Data Model from File - SAP NetWeaver Gateway Foundation (SAP_GWFND) - SAP Library but this will just recreate the Data model. you need to manullay copy the code from *DPC_EXT class and implement it into copied project.
-Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Chandra
I think this is something i am actually looking at.
I am new to GW segw , can you suggest with below questions
When you refer *DPC_EXT class , are you referring with runtime artifacts generated ?In runtime artifacts i can see, other classes as well.
SRV, MDL, DPC, DPC_EXT, MPC,MPC_EXT,and other BAPI name class
Do i need to Copy the code only from DPC EXT class or also from others as well.
Yes Kiran.
once you import edmx file and generate runtime artifacts, it will generate *DPC, *MPC classes etc. and yes you need to copy just the code from DPC_EXT classes and put into the corresponding methods. in certain situations, there might be possibility to redefine methods of *MPC_EXT class. for such scenarios, you also need to copy code from methods of *MPC_EXT
In summary, whatever code you implemented in your original project, you need to copy all that code.
Regards,
Chandra
Few more steps away to understand it more clear for my requirement.
Since for now i have generated the services only from bapi and have not made any changes in MPC / DPC classes , do i need to copy any codes?
From what you said before , only the written codes in MPC or DPC need to be copied, right ?
Hi Kiran,
You need not to copy the code from all methods. When you will import the edmx file and generate the runtime artifacts, the DPC, MPC, DPC_EXT and MPC_EXT classes will be created with the methods. So for now you just copy the code from only redefined methods of DPC_EXT and MPC_EXT classes. Also copy the BAPIs used for mapping.
In new enviornment:
Hello Kiran,
You need to lock all the GW Related objects in a Transport Request and move that to the other system.
Say for example you have created your GW Service in Dev system and now to move the same to a Test System, you need to lock all necessary GW Objects in a Transport Request and then move it to Test System.
Regards,
Ashwin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When you want to Modify / Extend any project which is already transported to Test System, in that case you need to do necessary changes in the Dev system, test it and lock that change in a Transport Request.
Now transport this to the Quality System.
This is followed to ensure the code consistency across the system ( Dev, Quality & Production )
Hi Kiran,
In terms of SEGW tool, you can not export the gateway project into some files or package and import in any other system. While you can copy the project and create a new project but in the same system.
As Ashwin said, if you need to move your gateway developments to some other system, it has to be handled through transport machenism. You can modify or extend the projects if the target client is editable (for example: usually quality systems in the same landscape are not editable but in case if you move your transport from one dev server to another dev server, it is editable).
Regards,
Ekansh
Yeah , you are absolutely right .That would work in three tier landscape for TR movement in dev, quality, prod
But my problem is , for some reasons, our development system back up is going to be restored with 2 weeks ago back up . now i am supposed to take a back up of all my project developments in segw. and need to import the same project once back up is restored.
How do u suggest ?
In that case as Chandra mentioned with a blog backup your Model as EDMX file.
Keep a copy of all the code which are manually added in DPC_EXT class ( if any ).
Later you can import that EDMX file, perform mapping, generate runtime objects and add previously written code in the newly generated DPC_EXT class.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.