How to copy variants...
Hello everybody...
My aim is to develop a report which allow the possibility to user to duplicate and modify (according to some criterias like WERKS, DATE...) variants for programs used for the opening of new warehouses.
My problem is that the users want to have in the same program the possibility to create, duplicate or modify dynamic variants or standard variants...
I am not so experienced in ABAP and I really need help from someone with more knowledge on this language...
Thank you per advance.
Hi Michael,
You can use the stanard function modules to create the varient.
The FM I use is: SUBST_WRITE_UPGRADE_VARIANT
It creates the varient as well as upgrades (overwrite) it if needed.
The Import parameters are reportneme, name of varient, & the internal table of values you have to create.
Hope this will solve your problem.
Don't forget to reward points, if it works.
Thanks & Regards,
Hemant.
Message was edited by: Hemant Satpute
Message was edited by: Hemant Satpute
Similar Messages
-
How to copy file to another server from database using FTP in oracle
How to copy file to another server from database using FTP in oracle.
Please do the needfaul.Billy Verreynne wrote:
BluShadow wrote:
Not to mention that some FTP servers can return more than one return message per operation whereas others may return one message for the same operation.I had the problem using the LIST command to determine if a file exists on the server. Cannot be determined via the FTP server's return code. Which means parsing and checking the text response from the server to the command. And this vary from server to server.
But the basics were quite easy to code. The entire package is 500 lines, includes comments and blank lines for formatting, and supports the basic FTP client command set. Not really a complex piece of software to write - but I found that many developers seem to think that writing network socket software is complex. Not really the case...Mine's a big larger, but incorporates functionality similar to what Chris provided in his, such as being able to use SQL to query a remote file using pipelined functions, or functionality to write the results of a query directly to a remove file.
:) -
Copy variants from query to query.
Hello ,
Does anyone know how to copy the variants from one query to other ??
Do I need a custom program to accomplish this ?? If yes any suggestions on the FM's to used for this .
GautamHi,
you can: use RS_VARIANT_COPY.
First identify the corresponding report:
SE16 table VARID, enter your Variant techname in VARIANT. If you get several reports then you should save a new variant with a name you think uinque (ZZZZZZZ).
Once you have the report name, goto SE37 FM: RS_VARIANT_COPY and enter the parameters as follows:
Import parameters Value
REPORT GP6G85U7V6PTAF72EGNL26J3VVL
VARIANT1 VARTEST_Z
COPY_VARIANT VARTEST_Z2
hope this helps
Olivier.
Message was edited by:
Olivier Cora -
How to transport variant?
hi,
can anyone tell how to transport variant?Hi Rakhi Bose
you can create a transport request in SE38 for the variants of a program. You could then use transaction SCC1 to copy those changes from one client to another.
To create transport:
1) Go to transaction SE38 and enter the program name.
2) Click the radio button next to the "Variants" subobject and click the "Change" button
3) On "ABAP: Variants" screen, select menu path "Utilities -> Transport request"
4) Enter the variant(s) you want to copy into the "Variant name" box.
5) Click the execute button and save the data to a new change request.
To copy to new client:
1) Log on to target client and goto transaction SCC1.
2) Enter the source client and change request number from above.
3) Click the execute button.
Please note that if you're doing this in a downstream system (i.e. not a development box) you may need to change the client settings temporarily to carry out the client to client copy in SCC1.
Reward if helpful
Regards
Lakshman -
How to copy exit po to new po ?
Dear all ,
3. how to copy exit po material to new po ,means a po created with 15
no of material, when user create new po same material
want to copy and past in new po that is for save time
how to do it ?
Regards
shivHi
- Using T-code ME21N - Create Purchase Order, Enter the t-code on top of the menu click 'Document Overview ON' button and within the ME21N screen left side small screen opened and the screen 'Selection Variant' button click shown multiple options 'Purchase Orders' option selected and new screen opened given input data Purchasing Document __________ (1000002782) and click clock(execute) button the purchase order number shown 15 times (if previous PO line items 15) and press shift button+click mouse selected all lines and click 'Adopt' button (next to selection variant button).
Now, all line items(15 items) copied to new PO and click 'document overview off' button the left side menu closed and now shown ME21N full screen on the monitor.
After that you have change PO document type, vendor, po date, quantity,rate and all line items tax codes and checked PO and then SAVE. New PO number generated.
Hope, it is very useful for you and also user PO creating time reduced.
Regards,
K.Rajendran -
Hi all
how to declare variant in the screen(not the selection screen) used in module programmingHi Ganesh,
Check this info.
Variants
the link is
http://help.sap.com/search/highlightContent.jsp
Variants allow you to save sets of input values for programs that you often start with the same selections. You can use them for any programs except subroutine pools (type S).
Contents
Variants: Overview
Initial Screen
Displaying a Variant Overview
Creating and Maintaining Variants
Creating Variants
Attributes of Variants
Changing Variants
Deleting Variants
Printing Variants
Variable Values in Variants
Creating Variables for Date Calculations
User-specific Selection Variables
Creating User-specific Variables
Changing Values Interactively
Changing Values from the Program
Fixed Values from Table TVARV
Creating Table Variables from TVARV
Changing TVARV entries
Running a Program with a Variant
Variants: Overview
Use
Whenever you start a program in which selection screens are defined, the system displays a set of input fields for database-specific and program-specific selections. To select a certain set of data, you enter an appropriate range of values.
For further information about selection screens, see Working with selection screens in the ABAP User's Guide.
If you often run the same program with the same set of selections (for example, to create a monthly statistical report), you can save the values in a selection set called a variant.
You can create any number of variants for any program in which selection screens are defined. Variants are assigned exclusively to the program for which they were created.
You can also use variants to change the appearance of the selection screen by hiding selection criteria. This is particularly useful when you are working with large selection screens on which not all of the fields are relevant.
Reports, module pools, and function groups may have several selection screens. It is therefore possible to create a variant for more than one selection screen.
Variants are an interface between the user and the selection screen. They can be used both in dialog and in background mode, although their uses are slightly different.
Variants in Dialog Mode
In dialog mode, variants make things easier for the user, since they save him or her from continually having to enter identical values. They can also make the selection screen easier to read, because you can use them to hide input fields. Running an executable program with a variant containing an optimal set of values also reduces the capacity for user error. The optimized database selections speed up the runtime of the program.
Variants in Background Mode
Variants are the only method for passing values to a report program in a background job. Therefore, when you run a program in the background, you must use a variant (or SUBMIT... VIA JOB). To avoid you having to create a new variant each time you run the report, ABAP contains a mechanism allowing you to pass variable values to variants. See variable values in variants.
To ensure that an executable program is always started using a variant, you can specify in the program attributes that the program may only be started in this way.
Features
Creation of variants
Display, change, copy, print, and delete variants
Use and definition of variables in variants
Variable date calculation
User-specific fixed values
Fixed values in table TVARV
You access the variant maintenance tool from the initial screen of the ABAP Editor. Enter the name of the program, select Variants in the Sub-objects group box, and then choose Display or Change.
Functions
The above screen allows you to:
Create variants
Display the variant directory
Display and change values and attributes
Copy, delete, and rename variants
Before creating a new variant for a program, you should check whether you can use or adapt an existing variant instead.
There are two ways to display variants:
Position the cursor on the Variant field on the initial screen and press F4. The following dialog box lists all of the available variants:
Choose Variants ® Directory on the initial screen:
Creating Variants
Prerequisites
You must have defined one or more selection screens for the relevant program. The program may have any type except type S.
Procedure
On the initial screen of the ABAP Editor, enter the name of the program for which you want to create a variant, select Variants in the Sub-objects group box, and choose Change.
On the variant maintenance initial screen, enter the name of the variant you want to create.
Note the naming convention for variants (see below).
Choose Create.
If the program has more than one selection screen, a dialog box appears in which you can assign the variant to one or more screens. The dialog box does not appear if the program only has one selection screen. In this case, the selection screen of the program appears straight away.
If there is more than one selection screen, select the screens for which you want to create the variant.
Example:
If you choose Variant for all selection screens, the variant also applies to any selection screens that you create after creating the variant.
Otherwise, the variant only supplies values to the selection screens that you select in the list.
Choose Continue.
The (first) selection screen of the program appears.
If your program has more than one selection screen, use the scroll buttons in the left-hand corner of the application toolbar to navigate between them. If you keep scrolling forwards, the Continue button appears on the last selection screen.
Enter the required selections, including multiple and dynamic selections.
Choose Continue.
Result
When you have finished, an overview screen appears (ABAP: Save Attributes of Variant), on which you can enter the attributes of your variant and save it.
Note that when you create a new variant, you must enter both values and attributes.
Names of variants: Names can consist of up to 14 alphanumeric characters. The "% " character is not allowed. If you want the variant to be transported automatically with its program, you must create a system variant. The name of a system variant starts "CUS&" for customers, and "SAP&" for SAP system variants. You can only use the "&" character within this prefix in the name of a system variant. It may not occur in any other context. System variants are administered by the Workbench Organizer. Although you can create and access variants from any client, they are always stored in client "000".
Check this Link :
http://help.sap.com/saphelp_47x200/helpdata/en/0a/af73ec76ac11d1ad670000e8a6353a/frameset.htm
Hope this resolves your query.
Reward all the helpful answers.
Regards -
How to copy file from global zone to non-global zone?
Hi,
I'm new in zone.
I have installed a zone and I would like to install some programs.
Could you please tell me how to copy downloaded file from internet to the new installed zone?
Kind regards,
DanielI like to use zcp which came from BigAdmin I believe.
#!/usr/bin/perl
# zcp - copy a file from the global zone to a nonglobal zone. Solaris 10.
# 10-Mar-2005, ver 0.50 (first release)
# USAGE: zcp file1 zonename:file2
# eg,
# zcp /etc/syslog.conf workzone1:/tmp
# Standard Disclaimer: This is freeware, use at your own risk.
# 10-Mar-2005 Brendan Gregg Created this.
$ENV{PATH} = "/usr/bin:/usr/sbin";
$VERBOSE = 1;
# Process arguments
# check for arguments,
if (@ARGV != 2) {
die "USAGE: zcp file1 zonename:file2\n";
# check source file exists,
$srcpath = $ARGV[0];
if (! -e $srcpath) {
die "ERROR1: Can't find source file $srcpath\n";
# check destination zone exists,
($destzone,$destpath) = split(/:/,$ARGV[1]);
chomp(@Zones = `zoneadm list`);
foreach $zone (@Zones) { $Zone{$zone} = 1; }
unless ($Zone{$destzone}) {
die "ERROR2: Can't find zone $destzone\n";
# check if destination is a directory or filename,
$dir = `zlogin -S $destzone '
if [ -d "$destpath" ]; then echo 1; else echo 0; fi'`;
if ($dir == 1) {
$node = $srcpath;
$node =~ s:.*/::;
$destpath = "$destpath/$node";
# Print message
print "zcp from $srcpath, to zone $destzone, to file $destpath.\n" if $VERBOSE;
# Copy File
system("cat $srcpath | zlogin -S $destzone 'cat - > $destpath'");
# Verify file copied
$srcsize = -s $srcpath;
$destinfo = `zlogin -S $destzone 'ls -l $destpath'`;
@Fields = split(' ',$destinfo);
$destsize = $Fields[4];
if ($srcsize != $destsize) {
print STDERR "ERROR3: Copy failed, size mismatch ".
"($srcsize != $destsize)\n";
} else {
print "Copy successful ($destpath, $destsize bytes).\n" if $VERBOSE;
} -
How to copy file from application server
Hello experts,
How to copy file from one folder of application server and paste it to other folder of application server(application server is same)?
Is there any function module exists???
thanks in advance
SaurabhHi you can use this function module to move a file from application server to another folder on application server.
call function 'WS_FILE_COPY'
exporting
destination = m_destination
source = m_source
importing
return = return.
Plus u can use this function module to delete the file from that folder from which u want to replace it.
call function 'WS_FILE_DELETE'
exporting
file = m_source
importing
return = return.
The above FM can help u copy a file from one folder to another and delete the file from that folder. -
How to copy/download all ABAP programs in a text with a single report ?
How to copy/download all ABAP programs in a text format with a single report/TC ?
How to copy/download ABAP source code with all include programs ?....
we need to search & copy all include programs everytime....Hi,
check this link
downloading programs
Regards -
How to Copy a Long Column in PL/SQL
Hello. Can anyone tell me how to copy a table that contains a long column? I am using Oracle 8.0.5 SQL Worksheet
with the following code that generates an ORA-06502: PL/SQL: numeric or value error.
CREATE TABLE "Tmp_CB_REPORT"
CB_RPT_ID NUMBER(38, 0),
CB_ID NUMBER(38, 0),
CB_REGION_ID NUMBER(38, 0),
WHEN_PULLED DATE NOT NULL,
PARSED NUMBER(1, 0) DEFAULT (0) NOT NULL,
RAW_DATA LONG NOT NULL,
JOINT NUMBER(1, 0) DEFAULT (0) NOT NULL,
RPTTYPE NUMBER(38, 0) NOT NULL,
OPTION1 NUMBER(1, 0) DEFAULT (0) NOT NULL,
OPTION2 NUMBER(1, 0) DEFAULT (0) NOT NULL,
OPTION3 NUMBER(1, 0) DEFAULT (0) NOT NULL,
OPTION4 NUMBER(1, 0) DEFAULT (0) NOT NULL,
OPTION5 NUMBER(1, 0) DEFAULT (0) NOT NULL,
OPTION6 NUMBER(1, 0) DEFAULT (0) NOT NULL,
OPTION7 NUMBER(1, 0) DEFAULT (0) NOT NULL,
OPTION8 NUMBER(1, 0) DEFAULT (0) NOT NULL,
OPTION9 NUMBER(1, 0) DEFAULT (0) NOT NULL,
OPTION10 NUMBER(1, 0) DEFAULT (0) NOT NULL,
OPTION11 NUMBER(1, 0) DEFAULT (0) NOT NULL,
OPTION12 NUMBER(1, 0) DEFAULT (0) NOT NULL,
OPTION13 NUMBER(1, 0) DEFAULT (0) NOT NULL,
OPTION14 NUMBER(1, 0) DEFAULT (0) NOT NULL,
OPTION15 NUMBER(1, 0) DEFAULT (0) NOT NULL,
OPTION16 NUMBER(1, 0) DEFAULT (0) NOT NULL,
OPTION17 NUMBER(1, 0) DEFAULT (0) NOT NULL,
OPTION18 NUMBER(1, 0) DEFAULT (0) NOT NULL,
OPTION19 NUMBER(1, 0) DEFAULT (0) NOT NULL,
OPTION20 NUMBER(1, 0) DEFAULT (0) NOT NULL,
REGION_ID NUMBER(38, 0),
RPT_TYPE_DESC VARCHAR2(40)
LOCK TABLE CB_REPORT IN EXCLUSIVE MODE NOWAIT;
DECLARE
CURSOR datacursor IS SELECT CB_RPT_ID, CB_ID, CB_REGION_ID, WHEN_PULLED, PARSED, RAW_DATA, JOINT, RPTTYPE, OPTION1, OPTION2, OPTION3, OPTION4, OPTION5, OPTION6, OPTION7, OPTION8, OPTION9, OPTION10, OPTION11, OPTION12, OPTION13, OPTION14, OPTION15, OPTION16, OPTION17, OPTION18, OPTION19, OPTION20, REGION_ID, RPT_TYPE_DESC FROM CB_REPORT;
datarecord datacursor%ROWTYPE;
BEGIN
OPEN datacursor;
LOOP
FETCH datacursor INTO datarecord;
EXIT WHEN (datacursor%NOTFOUND);
INSERT INTO "Tmp_CB_REPORT"(CB_RPT_ID, CB_ID, CB_REGION_ID, WHEN_PULLED, PARSED, RAW_DATA, JOINT, RPTTYPE, OPTION1, OPTION2, OPTION3, OPTION4, OPTION5, OPTION6, OPTION7, OPTION8, OPTION9, OPTION10, OPTION11, OPTION12, OPTION13, OPTION14, OPTION15, OPTION16, OPTION17, OPTION18, OPTION19, OPTION20, REGION_ID, RPT_TYPE_DESC) VALUES (datarecord.CB_RPT_ID, datarecord.CB_ID, datarecord.CB_REGION_ID, datarecord.WHEN_PULLED, datarecord.PARSED, datarecord.RAW_DATA, datarecord.JOINT, datarecord.RPTTYPE, datarecord.OPTION1, datarecord.OPTION2, datarecord.OPTION3, datarecord.OPTION4, datarecord.OPTION5, datarecord.OPTION6, datarecord.OPTION7, datarecord.OPTION8, datarecord.OPTION9, datarecord.OPTION10, datarecord.OPTION11, datarecord.OPTION12, datarecord.OPTION13, datarecord.OPTION14, datarecord.OPTION15, datarecord.OPTION16, datarecord.OPTION17, datarecord.OPTION18, datarecord.OPTION19, datarecord.OPTION20, datarecord.REGION_ID, datarecord.RPT_TYPE_DESC);
END LOOP;
END;
The copy works fine if I remove the long column from the CREATE TABLE "Tmp_CB_REPORT" statement
and the cursor copy statement. Any help is appreciated.What I think you should do is to turn your long into a LOB. LOBs are much malleable than LONGs. I suggest you have a look at the documentation for DBMS_LOB. You can create a function using DBMS_LOB that uses a temporary CLOB to reas your long column an dreturn a CLOB.
Cheers, APC -
How to copy attributes (as in which playlists) from one song to another
Hi,
Does anyone know how to copy the characteristics of a song--as in which playlists it appears in--from one song to another, so that the new song then appears on all those same playlists also? Or, if not, maybe you have some other idea for me:
I'm working with a Mac. I have several hundred playlists with ~100 songs each, and about 3,500 songs in my iTunes. Most of these songs are currently AACs. I've realized I have a problem: If I want to burn disks with MP3-format songs, I will need to convert the AAC to MP3s to burn them. If I don't want to have thousands of duplicate songs, I will need to trash the AAC versions of those songs from my library. If I do that, they will disappear from the playlists they are currently in (one song might be in 20 different lists). If I had to manually take each MP3 version created, look at which playlists the original AAC version is in, drag the MP3 version to each playlist, and delete the AAC version, it would take a Looooong time. Does anyone know of any shortcuts? For example, is there some way to copy the information about which playlists a given song is in and then paste that info onto the new version so it now appears also in these playlists? Or some other idea? Thanks very much!
MollyNever heard of any way of doing that. However, you may want to check out Doug's Scripts. There might be something there to help.
http://dougscripts.com/itunes/index.php
Best of luck. -
How to copy the same address for multiple contacts in Address Book?
Hi! I got a question, I didn't find an answer for yet.
How to copy the post address from one contact to another, without manual entering. I mean if I have one contact with already entered post address, can I just copy it someway at once to another contact?
I don't want cards to merge, I need separate contacts, that may have different phones, e-mails, but the same post address. Please, advise.Thanks! yes, this is a solution I'm following now. But I was wondering about the similar way as it is made in Daylite or Contactizer - you create company with name and post address first, and then can create a contact for that company. And company name and post address will appear in contact name.
I just wonder why such a simple and useful solution isn't available in Address Book as default.
I know there are many scripts written for Address Book. Maybe there is something for this purpose? -
How to copy a page( webpart page) with its content using client side.
How to copy a page(in my case webpart page) with its content(it may contain webparts) using client code (i mean using SPservices or ECMA script).
What i am planning is ,to give end user a page where it will contain text box to specify name of page and a button with the help of content editor webpart.
where on click of button we need to write client side code such that it should create a new page from a existing page in a library with given name by user.
Any suggestion would be helpful. For your information we can do it through UI with the help Site Actions / Manage Content and Structure.But i want to automate it using client side code.Server side code is restricted.
or can we create a template of an existing page with content without the help of sharepoint designer.
Thanks in advance
with regards RavichandraThis is good example
http://balajiindia.wordpress.com/2011/05/27/using-jquery-with-custom-web-services-in-sharepoint/
Create web service
http://balajiindia.wordpress.com/2011/05/27/using-jquery-with-custom-web-services-in-sharepoint/. Create method "Create Page" http://www.learningsharepoint.com/2010/09/17/create-publishing-pages-sharepoint-2010-programmatically/
Build your Java Script. You can use Content Editor Web Part if you want to avoid custom web part development http://www.codeproject.com/Articles/544538/JQuery-with-SharePoint
Oleg -
My external WD portable passport drive must be dodgy because I can't back it up or clone it or copy 3 of my 22 photo files to a new portable drive. I get error 36 as I attempt all 3 processes. I have copied my iPhoto library, iMovie events and most of my aperture referenced photos to the new drive. But cannot copy 3 files that contain the corrupted files showing just a grey triangle. I cannot delete or move to trash the corrupted raw photos.
How can I copy to the new drive any photos that aren't corrupted (grey triangle instead of photo or a photo that's just coloured horizontal broken lines) so I can then reconnect the referenced photos after copying them?
I am on late 2008 MacBook Pro with lion,
Many thanks
BwI've worked out how to copy and reconnect individual photos.
But can see that what's happening is that heavily edited raw photos are taking ages to load. Or not loading at all. And if opened go to the spinning wheel for 5-10 minutes. I am wondering whether to compress these or take them back to the originals or any other ideas would be very welcome.
Thank you
BW -
How to Copy Standard form in Smartforms?
Hi Experts,
can anyone tell how to copy a standard form in Smartforms.
Thanks in advanceHi Abdul,
We have to copy them to '800'. (this is your own company define client no)
All Standard Scripts and their respective print programs are listed in table 'TNAPR'.
Ex: FORM MEDRUCK has the Driver Program SAPFM06P.
NOTE: Never make any changes to the Standard Driver Programs
STEP 1.
Goto Transaction Code <SE71> and
select from Menu UTILITIES ->Copy from Client.
Enter the Standard Form Name, It source Client 000 and the target Form Name that you want it to be saved as on your client.
Say you are naming it as zmedruck1.
Click on EXECUTE.
STEP 2.
Converting form to English.
Open zmedruck1 in <SE71> With language DE.
Then goto UTILITIES -> Convert Original Language from DE to EN.
Then you can modify the layout for example, chaging the logo, or changing the headers, or adding any new code to do some calculation etc.,
SAVE THE CHANGES AND ACTIVATE.
Then select from the menu FORM -> CHECK -> TEXT.
SELECT your driver program name from the list adn click on COPY.
If you don't see the program name in the list then click on
'APPEND PRINT PROGRAM' and add your program name and then select it from the list and click on COPY.
STEP 3: Assigning our form to the standard print program.
Start Tr.Code <NACE>.
In our present case since we are working on 'Purchase order' we have to select EF and click on the button Output Types.
Then on Right hand side, scroll down and select NEU - New P O Printout.
(This may change for different programs).
Then Double click on Processing Routines on Left hand side.
Change from Display -> Change Mode.
Give your form name (zmedruck1) for printoutput and SAVE.
STEP 4:
Start Tr.Code <ME22N> since you are working on Purchase order and click on print Preview to make sure your layout etc., changes are OK. If not again you have to make the changes accordingly.
If every thing looks ok then you can print your form.
Regards,
Sathish:)
Maybe you are looking for
-
FTP Put fails when there is no pre-existing file present in the directory
Hi All, In our process we use the FTP adapter to write a file to a location. This operation fails when there is no preexisting file on the output directory. So we placed a zero byte file on the directory and tested and the adapter was able to create
-
Hi all Just learning about Java Reg Exp's but falling at the first herdle!! Please view the following test code: import java.util.regex.*; import java.lang.*; public class RegTest public static void main(String [] args) String regex = "[A-Za
-
How to reach the Flex mx:Application?
Hi all, coming from InDesign ExtendScript and C++, I'm totally newbie with ActionScript. Currently I'm implementing a new Event class which is received via an ExternalInterface callback, therefor in a kindof static function. I want to feed that into
-
CTX_DDL.SYNC_
ctx_ddl.sync_index(index_name) and have not been able to get it to work. Are you suppose to "exec" it or use the "@".
-
Search box, adv.search box in a landing page
hi, as per my reqmnt, i need to have 3 web applns, 1)one is a DMS solution 2) extranet - for my customers partner's web appln 3) community web appln i am confused abt the landing page, how to design the search func. if i give a search box on the m