Reg. copying Layout Variants from 1 ALV pgm to another
Hi Friends,
I am currently copying an ALV program Ztest1 to ztest2 through ztest5. While doing so I want the LAYOUT variants that are available for ztest1 also to be copied to these other programs.
All I am aware is that the table LTDX stores all the layout variants for a particular program.
Could anybody provide me the right inputs on this.
Thanks in Advance.
Rgrds,
Gayathri N.
I took this approach and it worked for me:
1) Change your program so that everytime an ALV function is called it is using the original program name in the variant declaration, ensure you keep the original code commented out, you will need to put it back later. Examples:
FORM variant_init USING varname TYPE slis_vari.
CLEAR g_variant.
g_variant-report = g_repid.
g_variant-report = 'ORIGINAL_PROGRAM_NAME'.
FORM f4_for_variant.
g_variant-report = sy-repid.
g_variant-report = ORIGINAL_PROGRAM_NAME.
CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
FORM check_variant.
IF NOT p_vari IS INITIAL.
g_variant-report = sy-repid.
g_variant-report = ORIGINAL_PROGRAM_NAME.
g_variant-variant = p_vari.
CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
2) Display function lt_variant_save via SE37, set a breakpoint at the first executable line:
perform variant_save tables it_fieldcat
4) Run your program with the layout variant you wish to copy.
5) Hit Save Variant. You are now in debug mode.
6) Enter variable CS_VARIANT-REPORT in the variables 1 panel.
7) Double-click on CS_VARIANT-REPORT.
8) Hit the Change Field Content button
9) Change the value to the name of your new program, then hit Enter.
10) Hit Execute (F8). You have now saved the variant under your new program name.
11) Exit and rerun your program as necessary for as many variants as you want to copy
12) Change your program back to using sy-repid (or whatever else it was referencing) wherever you changed it in step 1.
13) The variants have now been copied and you can run your program with the new variants.
Similar Messages
-
Copy Query Variants from InfoCube to MultiProvider
Hi,
Is it possible to copy query variants from an infocube to a multiprovider?
Basically, we used RSZC to copy the queries from the infocube to the multiprovider, but it doesn't look like the variants were copied over. Is there an ABAP program or some other workaround that can expedite/facilitate in recreating the variants on the multiprovider queries?
Your help is much appreciated.
Thanks,
KK
Edited by: Kristin Kalalau on Jan 29, 2009 10:48 PMIt is possible to copy but the only requirement is your target cube structure should match with the source cube structure.
Thanks...
Shambhu
Edited by: Shambhu Kumar Gupta on Jan 30, 2009 12:01 PM -
DB Table for Layout Variant in ALV report
Please help me by providing the table name which will get an entry when we save Layout Variant in ALV(OO ALV grid) output.
Hi,
I have seen the table LTDX which is giving me the Variant names for a particular program. Hope this will help you.
Database table is LTDX
Database view is V_LTDX.
Regards,
Venaktesh -
How do I copy the style from one control to another?
I need to programmatically copy the style from one graph to another. I'm currently using the importstyle and export style functions but I'd like to avoid that since: 1) I'm creating >100 of the same graphs in a scrolling window and execution time is a concern, and 2) it makes it harder to redistribute the application, and 3) you shouldn't have to import/export from disk just to copy a graph style.
I noticed the copy constructor was disabled so you can't just create a new one from the original. I suppose I could iterate through all the styles and transfer them from the master graph to all the copies but is there an easier way to do that? If not, is there some sample code for that?
I'm using MStudio 7.0 for C
++.
Thanks,
-BobOne way that you could do this would be to create a helper method that configures your graph rather than configuring it at design-time, then use that helper method to apply the settings to the new graphs that you create. However, this would only work if you wanted all graphs to be configured exactly the same way - this would not work if the settings of your master graph are changing at run-time and you want the new graphs to be configured with the current settings of the master graph.
Another approach is to query each control for IPersistPropertyBag, create an IPropertyBag, pass the IPropertyBag to the master graph's IPersistPropertyBag:ave, then pass the IPropertyBag to the new graph's IPersistPropertyBag::Load implementation. I'm not aware of any implementations of IPropertyBag that are readily available for use in applications, so the tricky part is creating the IPropertyBag. Below is a very simple implementation of IPropertyBag that should be enough to get the job done for this example. First, add this to your stdafx.h:
#include <atlbase.h>
CComModule _Module;
#include <atlcom.h>
#include <atlcoll.h>
Here's the simple IPropertyBag implementation:
class ATL_NO_VTABLE CSimplePropertyBag :
public CComObjectRootEx<CComSingleThreadModel>,
public IPropertyBag
private:
CAtlMap<CComBSTR, CComVariant> m_propertyMap;
public:
BEGIN_COM_MAP(CSimplePropertyBag)
COM_INTERFACE_ENTRY(IPropertyBag)
END_COM_MAP()
STDMETHODIMP Read(LPCOLESTR pszPropName, VARIANT* pVar, IErrorLog* pErrorLog)
HRESULT hr = E_FAIL;
if ((pszPropName == NULL) || (pVar == NULL))
hr = E_POINTER;
else
if (SUCCEEDED(::VariantClear(pVar)))
CComBSTR key = pszPropName;
CComVariant value;
if (!m_propertyMap.Lookup(key, value))
hr = E_INVALIDARG;
else
if (SUCCEEDED(::VariantCopy(pVar, &value)))
hr = S_OK;
return hr;
STDMETHODIMP Write(LPCOLESTR pszPropName, VARIANT* pVar)
HRESULT hr = E_FAIL;
if ((pszPropName == NULL) || (pVar == NULL))
hr = E_POINTER;
else
m_propertyMap.SetAt(pszPropName, *pVar);
hr = S_OK;
return hr;
Once you have a way to create an implementation of IPropertyBag, you can use IPropertyBag and IPersistPropertyBag to copy the settings from one control to another like this:
void CopyGraphStyle(CNiGraph& source, CNiGraph& target)
LPUNKNOWN pSourceUnknown = source.GetControlUnknown();
LPUNKNOWN pTargetUnknown = target.GetControlUnknown();
if ((pSourceUnknown != NULL) && (pTargetUnknown != NULL))
CComQIPtr<IPersistPropertyBag> pSourcePersist(pSourceUnknown);
CComQIPtr<IPersistPropertyBag> pTargetPersist(pTargetUnknown);
if ((pSourcePersist != NULL) && (pTargetPersist != NULL))
CComObject<CSimplePropertyBag>* pPropertyBag = 0;
CComObject<CSimplePropertyBag>::CreateInstance(&pPropertyBag);
if (pPropertyBag != NULL)
CComQIPtr<IPropertyBag> spPropertyBag(pPropertyBag);
if (spPropertyBag != NULL)
if (SUCCEEDED(pSourcePersist->Save(spPropertyBag, FALSE, TRUE)))
pTargetPersist->Load(spPropertyBag, NULL);
(Note that "CreateInstan ce" above should be CreateInstance - a space gets added for some unknown reason after I click Submit.)
Then you can use this CopyGraphStyle method to copy the settings of the master graph to the new graph. Hope this helps.
- Elton -
Copy a page from one Document to another
Can anyone help
In Pages '08 we had the ability to copy a page from one document to another.
In Pages '09 this does not seem possible.
Does anyone have anwser....
Thanks
Message was edited by: AJCUR
OK my bad
I just realized that I was in Word Processing in one document and Page Layout in another and you cannot do the copy between the two. Changed the Blank documentto word processing and voila it worked.I think this might help. Go to the document you want to copy the page from and go to the "View" menu and choose "page thumbnail" so you can see the thumbnails on the side of the document. Right click (or control click) on the thumbnail of the page you want to copy and choose "copy.
Go to the document you want to paste the page into and make sure you have the "View thumbnail" option turned on. If you already have some pages click on the page you want the new page to follow and then right click and paste the page where you want it. (you have to do this in the thumbnail view area, not in the actual document itself.) If you have inserted the page in the wrong spot, just drag it to the right location. note: I have tried dragging the thumbnail from one document to another and it does not work. Too bad because it works that way with a PDF documents in "Preview" app. -
Error while copying a page from one application to another application
Hi All
I am using Oracle Apex 4.0
I getting the error ORA-06502 Pl/Sql Numeric error character string buffer too small when i copying a page from one application to another application.
Thanks & Regards
Srikkanth.MI'm having the same issue. How did you solve this?
-
Can I copy my iTunes from one Mac to another to a distant location?
I have 2 homes one in NYC and the other in upstate NY. I have multiple Macs at both locations all using Snow Leopard and the latest version of iTunes(9). I only have 1 iTunes library I maintain at the upstate location and have to bring my iPod to the NYC location to play my music. Can I not copy my iTunes library to the NYC location using Home Sharing or using some other method? I often forget to bring my iPod and am left without my music.
Prince Moe wrote:
Hi
Since I had a problem with my Mac's drive that suddenly failed (I am able to read ONLY), I replaced the internal HD with my emergency HD that I had backedup a few months before. I would like to know if there's a way to copy my settings from one mac to another? Is there a specific folder for all apps or do I have to find out each and every single file for each app?
I need the settings for
System (view, font, color,)
Finder (view, etc)
iTunes (that include all library, playlists, etc),
Firefox (Bookmarks, settings & plug-ins),
Safari (Bookmarks, settings & plug-ins),
Address Book (contacts)
Thuderbird (emails accounts, contacts, passwords, etc)
Stickies (stickies on the dock - i have info on there unsaved)
Filezilla (FTP infos)
Would appreciate.
Thnx.
All that info is found in your user/library folder, I just did a 60 machine rollout and copied all those settings from user/library, just be forewarned that if you upgrade software those setting will not take on the machine, for example Adobe CS 3,4 will not usable by CS5. let us know if you need more help. Also make sure you copy most of your preferences in the user/library/prefences folder.
Note: If you are using an identical backup with all apps and user settings, you can just copy all folders from user to your new home folder. Remember that only if the image or backup is identical to your production OS. -
How To Copy Selected Music From One Library to Another?
What is the best way to copy selected music from one library to another?
I have a big and growing iTunes library -- 33,000 songs.
A year ago I copied my library to my daughter's new iMac. Now, a year later, I'm off to visit her and wonder how best to update her library. In the past year I have added a number of items to my library and I'm sure she has done the same -- some might be the same but many will be different.
How do I update her library with the new things I've added in the past year but not wipe out things she had added or duplicate when we each have a song?
I can load any / all of my stuff on an external HD and take that to plug in to her computer. Then what? I want to avoid duplicates and make sure I get stuff like album artwork.
I'm running iTune 10.4 on an iMac with OS X 10.6.8 -- my daughter will have the same iTunes and OS X once we update her software.
Any advice would be great.
ThanksIf you're sharing the same Apple ID and all your songs are from the iTunes Store, it's easy:
In iTunes on your computer, go to File->Preferences->Store and check the box next to MUSIC under AUTOMATIC DOWNLOADS.
You should also read this article, the section titled TO DOWNLOAD PREVIOUSLY PURCHASED APPS, BOOKS, MUSIC, OR TV SHOWS TO YOUR COMPUTER:
http://support.apple.com/kb/ht2519
You could also use an rsync utility such as backuplist+ to perform a 2-way sync of the files in your two libraries while your computers are connected via FireWire with one of them in FireWire Target Disk Mode, or from your external hard drive with your daughter's computer and then to yours again. After that, you'll need to use iTunes on each computer to update its library with the new files:
http://rdutoit.home.comcast.net/~rdutoit/pub/robsoft/pages/backup.html
This last would also be the preferred method if you have authorized each other's computers for media purchased with each other's Apple IDs (i.e. you are not sharing the same Apple ID), or if you have music from sources other than the iTunes Store. Most likely, though, music from sources other than the iTunes Store would not be legal to copy in this way for this purpose, although there is probably no technical impediment. -
Can i copy my settings from one mac to another?
Hi
Since I had a problem with my Mac's drive that suddenly failed (I am able to read ONLY), I replaced the internal HD with my emergency HD that I had backedup a few months before. I would like to know if there's a way to copy my settings from one mac to another? Is there a specific folder for all apps or do I have to find out each and every single file for each app?
I need the settings for
System (view, font, color,)
Finder (view, etc)
iTunes (that include all library, playlists, etc),
Firefox (Bookmarks, settings & plug-ins),
Safari (Bookmarks, settings & plug-ins),
Address Book (contacts)
Thuderbird (emails accounts, contacts, passwords, etc)
Stickies (stickies on the dock - i have info on there unsaved)
Filezilla (FTP infos)
Would appreciate.
Thnx.Prince Moe wrote:
Hi
Since I had a problem with my Mac's drive that suddenly failed (I am able to read ONLY), I replaced the internal HD with my emergency HD that I had backedup a few months before. I would like to know if there's a way to copy my settings from one mac to another? Is there a specific folder for all apps or do I have to find out each and every single file for each app?
I need the settings for
System (view, font, color,)
Finder (view, etc)
iTunes (that include all library, playlists, etc),
Firefox (Bookmarks, settings & plug-ins),
Safari (Bookmarks, settings & plug-ins),
Address Book (contacts)
Thuderbird (emails accounts, contacts, passwords, etc)
Stickies (stickies on the dock - i have info on there unsaved)
Filezilla (FTP infos)
Would appreciate.
Thnx.
All that info is found in your user/library folder, I just did a 60 machine rollout and copied all those settings from user/library, just be forewarned that if you upgrade software those setting will not take on the machine, for example Adobe CS 3,4 will not usable by CS5. let us know if you need more help. Also make sure you copy most of your preferences in the user/library/prefences folder.
Note: If you are using an identical backup with all apps and user settings, you can just copy all folders from user to your new home folder. Remember that only if the image or backup is identical to your production OS. -
I have no problems copying iMovie Events from one Mac to another, however, how can I copy iMovie Projects from one Mac to another? Any help will be appreciated. Thank you.
This should give you some good insight, I'd probably store them on an External HD on the old machine and then just drag and drop to the new machine.
https://discussions.apple.com/docs/DOC-4141 -
How can I copy cell formatting from one range to another?
How can I copy cell formatting from one range to another, including text fonts, colours, borders, etc., so that, for example, I can reuse a formatted reconciliation table again in different parts of a sheet?
Hi George,
Wayne found the Spinning Beachball of Death, and you will find it too.
Numbers is not good at handling large datasets. Might I suggest that you group your data into smaller sets (each month, perhaps?) and save each group in a separate Numbers document. Numbers will not link between documents, but you could have a summary Table within each document. Then comes the "clunky" bit of copying all those summary tables into a master document where you do the final processing of the data.
Regards,
Ian. -
Copy a page from one app to another
Is there a way to copy one page from an Application into another Application ?
Thanks
Francis.Francis,
Please see copy Page/region (incl. elements...) to application ( using exp/imp page) ?
Scott -
Newbie Qs: Copying an outline from one application to another
My apologies for accidentally posting this question twice!
Hello,
I want to copy an outline from one database to another, both on the same server. I know I can save the outline as a .otl file. But how do I actually copy this saved .otl file over to the other database? Sorry if this is a very basic question, complete newbie to Essbase. Thanks.
ps: Is there another way of copying the outline over from one database to another?
Edited by: Sam on Jun 27, 2010 1:48 PMOpen the outline in Edit mode, and from File > Save As, Select "Essbase Server" tab. Navigate to database where you would like to save. If you have data inside the cube, it will give you options on what to do with the data.
Hope this helps
Thanks,
Naveen Mikkilineni -
Copying a table from one databse to another
Hi,
I used the following code to copy a table from one database to another.
set copycommit 1
set arraysize 1000
copy from username/passwd@tnsname -
create <tablename> -
using -
select * from <tablename>
But I get the following error:
set copycommit 1
ERROR at line 1:
ORA-00922: missing or invalid option
Could you please let me know how this can be done.
Thanks,
NarasimhanThanks for your suggestions.I created a database link.I had no problems.
Then when i issue the command
copy from uname/password@db
create <tablename>
using
select * from <tablename>
<Here db is database link to source database identified by uname and password>.
I still get the error
copy from uname/password@db
ERROR at line 1:
ORA-00900: invalid SQL statement
Does it mean that the command is wrong?Or I'm doing something different.
Thanks! -
Error while copying GL Accounts from One Client to another client
Hi,
We are trying to copy GL accounts created in one client to another client (Company Code is same in both the clients). First we executed FS15 (send) and a file was created on the server. With the help of BASIS team we checked that file and it contained the required values. However, when we are doing FS16 (receive) we are getting following OK messages:
File /usr/sap/DEV/SYS/global/FBISABC is being checked
Session 1 session name RFBISA20 : No terminations have been found
However, at the same time we are getting following error message:
File name FI_COPY_COMPANY_CODE_DATA_FOR_GENERAL_LEDGER_0X is unknown
Message no. SG001
Diagnosis
No entry was found in the conversion table for the logical file name FI_COPY_COMPANY_CODE_DATA_FOR_GENERAL_LEDGER_0X.
Procedure
Add an entry to the conversion table for the logical file name. Maintain the conversion table with the transaction SM30.
Can someone please advice is there something wrong that we are doing for copying GL accounts from one client to another client.
Thanks,
SanjayDear Sanjay,
Did you check the batch-input? SM35
It could have happend that there was a mistake in the batch-input data and that the destination file has not been written. If this has not been written it could not be found. (I.E. you tried to transport G/L Accounts with deletion flags but did activate the checkbox "Transfer deletion ****").
There is another point: Did you activate the box "Datei nur prüfen" (English: Check file only)? If this box is activated the programm will check if the batch-input-file will be written without mistakes but it will not write the file. Only if the checkbox is not activated the batch-input-file will be written. (the same with FS16).
Kind regards
Maike
Edited by: Maike Nemeyer on Dec 1, 2011 8:52 AM
Edited by: Maike Nemeyer on Dec 1, 2011 11:45 AM
Maybe you are looking for
-
Hi there, I am a newbie on Mac and however on Safari. Sorry for my english too. I have problems to open some webpages with Safari, so I must use Firefox for some websites. Is that normal? I prefer Safari and I would like to use only it, but that's no
-
Hello I'm new in InDesign scripting in javascript. I would like to know if there is a way to get the position of the last character in a Text Frame that is overflowed? I need this because I want to calculate how many characters are hidden (overflowin
-
Hay everyone I have an AirPort extreeme located in my front room about 15 feet from my bedroom. In the bedroom I have an iMac 27" mid-2011 model. I have been running speed tests from speedtest.net and have been getting very slow download rates, any w
-
Heretofore I was able to just enter the firsl letter or two from my contacts list in order to have the address put on the email I will be sending. Now this does not work any more and I have to copy each address and paste it on the email manually. Is
-
Processing credit card transactions using iExpenses disconnected spreadshee
Hi, Does anyone know whether the disconnected spreadsheet for iExpenses also works for credit card transactions as well as out of pocket expenses? The implementation guide hints that this is possible for doesn't give any specific details. My guess is