Copy the data
hi friends.
i have doubt about i am copying the value from the function module internal table
and displaying the output as report.
i have to filter the result regarding some conditions.
i declared
data: CRITICAL_STATEMENTS type standard table of bamstatem with header
line.
from this internal table i want to copy to another table with some conditions.
please reply as soon possible.
thanks in advance.
Hi
Declare another internal table ITAB into which you wants to move records based on some condition
Loop at CRITICAL_STATEMENTS .
If CRITICAL_STATEMENTS-f1 < condition>
move fields from CRITICAL_STATEMENTS to ITAB.
Append ITAB.
endif.
clear ITAB.
endloop.
Reward points for useful Answers
Regards
Anji
Similar Messages
-
How to copy the data in a cube to another cube
Hi ,I created one cube by copying.Now I want the data available in earlier cube to Copied Cube.Plz can any one help in this.
Thanx in Advacnce
VasuYou can use the export datasource option to copy the data.
Another option is:
The steps for copying the contents of one cube to another:
1. Go to Manage -> Recontruct of the new cube.
2. Select the "selection button"(red , yellow, blue diamond button).
3.In the selection screen you can give the technical name of the old cube, requests ids you want to load, from & to date.
4.Execute and the new cube would be loaded.
Its all that easy!!!!!!
Refer this link:
Copying the structure of an Infocube -
Copy the data from first line while dynamically adding a new line in table
Hi,
1. There is a table
2. An add button adds a new line to the table using 'AddInstance'
3. A record is entered in the first line
4. When the add button is clicked it adds a new line and along with it copies the data entered in the first line
My question is how to copy the data from the first line and show it in the new line added. This is required so that user can use most of the common values in the first line.
Thanks,
NikhilYou can use the following Java Script in the Click event of the button.
// Get the number of rows in the table
var nrows = xfa.resolveNodes("page.table.DATA[*]").length;
// Add a new instance(row) to the table
page.table.addInstance.instanceManager(1);
xfa.form.recalculate(1);
// Copy the values from the first line to the newly created row
page.table.DATA\[ nrows \].field1.rawValue = page.table.DATA\[ 0 \].field1.rawValue;
..........field2
..........field3
Thanks,
Chandra Indukuri -
How to copy the Data From Oracle Table To SAP Table
Hi Friends,
We need to copy the data from Oracle Database Table to SAP Table. The data should be updated simultaneously in both tables . Should I write a program that contains the native sql statement like EXEC SQL PERFORMING WRITE,....
I appreciate any suggestions regarding this.
Regards
CSM ReddyHi,
since you posted this question in the DB2 forum I assume that you are using a DB2 database for your SAP system.
To access a table from a legacy ORACLE database you may use the DBSL multiconnect feature. I.e. you open a secondary connecction in the SAP system to your ORALE database. You can then ready the data from the ORACLE database into an ABAP internal table and insert it afterwards into the DB2 table on the main connection.
Another way to access an ORACLE table from a DB2 database is to use the DB2 federated database feature. This requires a little bit more DB2 skill. With this feature you can make the ORACLE table visible within the DB2 database. To copy data you can then simply use a "INSERT ... SELECT" statement.
Regards
Frank -
How can I copy the date and time of a received email in Mountain Lion?
I recently installed the new Mountain Lion, however I am having a serious issue with the mail application. I use the mail application to download all of my emails and then I copy each one in to a Filemaker Database. I used to be able to copy the headers (from, to, subject, date, time) but now with the new mail in Mountain Lion it will not let me copy the date and time of the email. This is the most important part for me as I need to be able to track when the email was received once I have pasted it in to the Filemaker program. Anyone know if there us an option so that the date and time can be copied from the email?
I suppose you could copy it from the Raw Source. View>Message>Raw Source
-
User exit to copy the data from sales order to billing document
hi everyone,
Is there an user exit to copy the data from sales order to billing document?
Regards
Prabudhhi
copy control would be the better option to choose.. but still u can a give a search in list below and opt for the right one..Refer to the link below..
http://www.planetsap.com/Userexit_List.htm
User exits for Sales order
1USEREXIT_DELETE_DOCUMENT
2USEREXIT_FIELD_MODIFICATION
3.USEREXIT_MOVE_FIELD_TO_VBAK
4.USEREXIT_NUMBER_RANGE
5.USEREXIT_SAVE_DOCUMENT
User exits for billing
1.USEREXIT_ACCOUNT_PREP_KOMKCV (Module pool SAPLV60A, program RV60AFZZ)
2.USEREXIT_ACCOUNT_PREP_KOMPCV
3USEREXIT_NUMBER_RANGE_INV_DATE (Module pool SAPLV60A, program RV60AFZC)
4USEREXIT_PRINT_ITEM (Module pool SAPLV61A, program RV61AFZB
5.USEREXIT_PRINT_HEAD (Modulpool SAPLV61A, Programm RV61AFZB)
Reward if Useful
Thanx & Regards..
Naren.. -
How can I copy the date and time in Mail header?
How can I copy the date and time in Mail header?
I can copy everything else in the header for pasting in another application.
But not the date and time which is absolutely vital.
It was ok in 10.6I suppose you could copy it from the Raw Source. View>Message>Raw Source
-
Copy the data from one column to another column using @
I have two columns here - A and B.
Column A has a complicated formula that will generate results. I wanted the results in Column A to be reflected in Column B without pasting the A's formula in B. This will save me the trouble of editing formulas in more than 1 column if there is a need.
I saw somewhere that you can use "@" in column B but I have no idea how to use it.
Assumingly column A is the first column. I tried to insert '@1' in B's formula and change B's column properties' Data Format as "Treat Text as HTML". It does not work.
Please advise how I can do that.So is there any way to copy the data in Column A into Column B without putting the same formula? something like in Excel where we put "=C1". Its not possible in BI as it comes in excel.....The only way is to create a duplicate column in RPD or Answers screen and incorporate the formula and giving different name to it.
whats the problem if you duplicate the column with same formula?....Ok still if you dont want to see identical just write some pseudo logic say
Duplicated column f(x) case when 1=0 then column_name else formula end.....so it appears different to see but it outputs same.
UPDATED POST
Dont create in RPD,you can create a dummy column in that report request and change the f(x) to the above case i mentioned by taking the column from columns button in edit formula screen so when ever you edit the actual column formula that would reflect in the dummy column also as it is replicating from original one.Try and see
hope helps you.
Cheers,
KK
Edited by: Kranthi.K on Jun 2, 2011 1:26 AM -
How to copy the data from one database to another database without DB link
Good Day,
I want to copy the data from one database to another database with out DB link but the structure is same in both.
Thanks
NiharYou could use SQL*Plus' COPY command
http://technology.amis.nl/blog/432/little-gold-nugget-sqlplus-copy-command
http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/apb.htm#sthref3702
Edited by: Alex Nuijten on Sep 16, 2009 8:13 AM -
SCM APO can we copy the data from client 001 to client 002???
Hi Guru's
SCM APO can we copy the data from client 001 to client 002???
If it is possibulity please let me know?
Regards,
SreeYes you can do.
Tcode SCCL.
Options :
When copying clients, you can select what you want to transfer from the source client to the target client:
User masters: You select this option, for example, if you want to give all users of an existing client the same authorizations in the target client.
Client-specific Customizing: You select this option, for example, if you want to set up a new client in an existing system.
Client-specific Customizing and master/transaction data:
You select this option, for example, if you want to set up a test client that is identical to the production client (in the same system).
Client-specific and cross-client Customizing: You select this option, for example, if you want to set up a quality assurance system based on the production client of another system.
Client-specific and cross-client Customizing and master/transaction data: You select this option, for example, if you want to set up a test client based on the production client of another system.
http://help.sap.com/saphelp_46c/helpdata/EN/69/c24c4e4ba111d189750000e8322d00/frameset.htm -
How to copy the data of one node to another of the same context
hi experts,
i need to copy the data of one node to the other node of the same context.
the source node is a model node ( i.e comming from <b>RFC</b> ) and the destination node is a value node which i have creted.
what i have done is.
i have read the source node using wizard
do.
elem_t_p0591 = node_t_p0591->get_element(
index = sy-index ).
IF ( elem_t_p0591 IS INITIAL ).
EXIT.
ENDIF.
elem_t_p0591->get_static_attributes(
IMPORTING
static_attributes = stru_t_p0591 ).
IF stru_t_p0591 IS NOT INITIAL.
wa_p0591 = stru_t_p0591.
APPEND wa_p0591 TO itab_p0591.
ENDIF.
ENDDO.
and then i am trying to read the destination node so the tha data i have got by above method can be binded to the destination node.
but when i am trying to get the child node it is giving me a dump saying that
<b>'Access via 'NULL' object reference not possible' </b> i understand this because when i debug my value node is becoming <b>initial</b>, and when i am trying to access the destination node using this <b>initial</b> node it will give me a dump,
but what is the work aroud for this.
Plz help.
Regards,
Santosh.Hi Santosh,
I tried replicating your behaviour in my system. This is what my context structure looks like:
Node_Test (c-> 0:n)
Name(attribute)
Node_Test2 (c-> 0:1)
Name2(attribute)
Now when i try to access Node_Test2 then it returns me (initial) i.e. no reference and i believe the reason is that my parent node, Node_Test, is of type table( because of the cardinality) so I am expected to perform an operation on my sub node, Node_Test2, based on the node i have selected, or have specified via index .. 1 is taken by default, in Node_Test.. which in WDDOINIT is initial as i havent got access to my view yet.. so instead what you can do is bind data to your parent node, relevant data ofcourse, and then bind the recieved data to your child node i.e. Node3.
I am pasting the code here for your reference :
method WDDOINIT .
DATA:
node_test TYPE REF TO if_wd_context_node,
elem_test TYPE REF TO if_wd_context_element,
stru_test TYPE wd_this->element_test ,
lt_table LIKE TABLE OF stru_test,
item_test_1 LIKE stru_test-test_1.
navigate from <CONTEXT> to <TEST> via lead selection
node_test = wd_context->get_child_node( name = wd_this->wdctx_test ).
@TODO handle not set lead selection
IF ( node_test IS INITIAL ).
ENDIF.
get element via lead selection
elem_test = node_test->get_element( ).
@TODO handle not set lead selection
IF ( elem_test IS INITIAL ).
ENDIF.
stru_test-test_1 = 'Anoop'.
APPEND stru_test to lt_table.
stru_test-test_1 = 'Avi'.
APPEND stru_test to lt_table.
stru_test-test_1 = 'Sid'.
APPEND stru_test to lt_table.
CALL METHOD node_test->bind_table
EXPORTING
new_items = lt_table
set_initial_elements = ABAP_TRUE
index =
DATA:
node_t2 TYPE REF TO if_wd_context_node,
elem_t2 TYPE REF TO if_wd_context_element,
stru_t2 TYPE wd_this->element_t2 ,
item_t2_1 LIKE stru_t2-t2_1.
navigate from <CONTEXT> to <TEST> via lead selection
node_test = wd_context->get_child_node( name = wd_this->wdctx_test ).
@TODO handle not set lead selection
IF ( node_test IS INITIAL ).
ENDIF.
<b>* navigate from <TEST> to <T2> via lead selection
node_t2 = node_test->get_child_node( name = wd_this->wdctx_t2 ).</b>
<b>* alternative navigation via index
Node_T2 = Node_Test->get_Child_Node(
Name = `T2` Index = 1 ).</b>
@TODO handle non existant child
if ( Node_T2 is initial ).
endif.
get element via lead selection
elem_t2 = node_t2->get_element( ).
get single attribute
elem_t2->get_attribute(
EXPORTING
name = `T2_1`
IMPORTING
value = item_t2_1 ).
endmethod.
I hope this helps.
Regards,
Anoop -
SFC label not readable how to copy the data to new SFC in panel product
We have one SFC label that is not readable. We know the serial number but how to re-label the product with new SFC and copy the data from the previous one?
Problem is that the SFC is for panel product with three locations and all locations have assembly and NC data.
Any ideas?I would suggest to test using the SFC Reassignment activity or Re-label activities.
-
Set the custom timer job that copy the data in the same list
Hi
How to set the custom timer job that copy the data in the same list
Thanks,hello
please it is wrong to copy all of the list3 item in list1 as the example as below is a copy of one item.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;
//This namespace is used for the SPJobDefinition class
using Microsoft.SharePoint.Administration;
namespace GENERAL_CustomTimerJob
//To create a custom timer job, first add a class to your SharePoint project and
//inherit from SPJobDefinition. Implement the constructors and override the Execute
//method as shown below. To install your timer job, and set the schedule, you must
//add a Feature and a Feature receiver.
class GENERAL_CustomTimerJob :
SPJobDefinition
#region Constructors
//You must implement all three constructors
public GENERAL_CustomTimerJob()
base()
public GENERAL_CustomTimerJob(string jobName,
SPService service,
SPServer server, SPJobLockType targetType)
base(jobName, service, server, targetType)
public GENERAL_CustomTimerJob(string jobName,
SPWebApplication webApplication)
base(jobName, webApplication,
null, SPJobLockType.ContentDatabase)
//Set the title of the job, which will be shown in the Central Admin UI
this.Title = "Simple Example Timer Job";
#endregion
//Override the Execute method to run code.
public override
void Execute(Guid targetInstanceId)
//Get the Web Application in which this Timer Job runs
SPWebApplication webApp =
this.Parent as
SPWebApplication;
//Get the site collection
SPSiteCollection timerSiteCollection = webApp.ContentDatabases[targetInstanceId].Sites;
//Get the Announcements list in the RootWeb of each SPSite
SPList timerJobList =
null;
foreach (SPSite site
in timerSiteCollection)
timerJobList = site.RootWeb.Lists.TryGetList("List3");
if (timerJobList != null)
string sourceUrl = "http://aydi-pc";
string destinationUrl =
"http://aydi-pc/sites/Site1/";
string sourceList = "List3";
string destinationList =
"List1";
using (SPSite sourceSite =
new SPSite(sourceUrl))
using (SPWeb sourceWeb = sourceSite.OpenWeb())
using (SPSite destSite =
new SPSite(destinationUrl))
using
(SPWeb destWeb = destSite.OpenWeb())
SPList ObjSourcelist = sourceWeb.Lists.TryGetList(sourceList);
SPList ObjDestinationlist = destWeb.Lists.TryGetList(destinationList);
SPListItem newItem = ObjDestinationlist.Items.Add();
SPListItemCollection items = ObjSourcelist.Items;
if
(items.Count > 0)
foreach (SPListItem item
in items)
newItem["Title"] = item["Title"];
newItem["Nom"] = item["Nom"];
newItem["Prenom"] = item["Prenom"];
newItem.Update(); -
How to copy the Data from BW 3.X to BI 7.0?
Hi,
Once the objects have been migrated to the BI 7.0 System from BW 3.x, How the data will be copied to the BI 7.0 System from BW 3.x?
Thanks,
Veerendra.You can't copy data from one version to another version after Upgrade.
What is your system/landscape scenarios? Did you upgrade 3x to BI 7 on same system or different system?
If same system - data is there after upgrade also. Just migrate and test.
If different system and you did not do a system copy, you need to load data again.
Talk to your basis guy and aks how tghey upgraded.
Hope it helps.. -
Copying the data and ignoring the Script logic
Hi,
I have some data in Actual category for 2010.APR and I would like to COPY the same
(through DM) to Budget category with my default script logic file. When I am trying to
Do the same it is copying the same data into Budget category, ignoring my script logic
Actually it should increase the value.
Can anybody help me in this regard.
Thanks in adv.
Raghu B.S.The problem it is into script logic.
When you insert records you are inserting records with category Budget.
But your default script logic is inserting new recotrds just in case if the input has category Actual.
So you just to do a correction into your script logic to change the statement
*WHEN CATEGORY
*IS "ACTUAL"
with
*WHEN CATEGORY
*IS "BUDGET"
In this way the default script logic will be executed and after the copy you will have also the records generated by script logic.
Regards
Sorin Radulescu
Edited by: Sorin Radulescu on Aug 5, 2010 2:15 PM
Maybe you are looking for
-
IPhone 3gs - 4.3.5
I am fed up of my text messages coming through late and my phone reverting to 2G even though there is a DECENT 3G signal present. I have to go into airplane mode and back to re-connect to 3G Is this down to the iPhone or to the network ? Anyone got a
-
ADF 11 - Synchronizing af:Table and af:panelFormLayout
Hello The situation is as follows : I have an af:panelTabbed with 2 af:showDetailItems On the first showdetailitem I have an af:Table which is bound to a table view On the second showdetailitem I have an af:panelFormLayout which is bound to the same
-
Easily relocate layers in layer-heavy PSD!
All serious Photoshop users have endured the frustration of needing to move layers around in a PSD chocked full of layers. There's no easy way to do it. And there's no excuse for this. I am posting here in order to raise support for and to get Adobe'
-
Embeding a google map in a JFRAME
Hi, I want to show google maps within my j2se app. Whats the best way to do this? Embed a browser in the frame? any help would be great! Bobby
-
Changing the text subpicture highlight color?
I am using the 'Create Text Subpicture' feature to highlight the text buttons on my menus. I get a yellow highlight when I do that, and it works fine, but is there a way to change that highlight color? Thanks bobby