Copying values
Hi in my requirment i need 3 dates report date,posting date and asset value date...Have already got the report date and posting date now have to get the asset value date..actually the posting date start date is the "from date" of asset value date and report date end date is the "to date" of asset value date.
consider if posting date start date is lv_start the same value should be moved to the from date of asset value and if report date end date is lv_end this same should be moved to asset value end date.How to do it?
Hi Hema,
Try this way :
In AT SELECTION-SCREEN OUTPUT event , Loop at screen table.
AT SELECTION-SCREEN OUTPUT .
loop at screen.
if screen-name cs 'S_ASSET'.
S_ASSET-LOW = LV_START.
S_ASSET-HIGH = LV_END.
APPEND S_ASSET.
endif.
modify screen.
endloop.
This will work.
Regards,.
Swapna.
Edited by: NagaSwapna Thota on Sep 4, 2008 6:16 PM
Similar Messages
-
Copy values from a filed to another in different blocks in same table
Hi All,
How to copy value from a filed to another field in different blocks in same form ?
example if i change value in Field A of block 1 it should reflect in Field B block 2 and again if i change in Field B block 2 it should reflect in Field A of block 1.
values will change twice or thrice then it will not change. It is happening like that.
how to do this ?
RegardsSame table / different blocks
I guess, both blocks will be marked for update, and when your user presses commit, the same table will be updated twice!
Are you sure that this is what you want to do? Is the same record current in both blocks? If so, you better use 1 block (it can be spread over several canvases and windows) and synchronize the items with the "synchronize item" property.
Anyway: If you can't apply the synchronize-property bcos the items are in different blocks, you can synchronize with 2 when-validate-item triggers.
Wolfram -
Copying value from one cursor to another
Hi,
I have a problem while copying values from one cursor to another cursor.
The code looks like below.
PROCEDURE XYZ
TransactionResultSet OUT NOCOPY types.ref_cursor,
IS
temp_cursor types.ref_cursor;
wip_rec types.ref_cursor;
BEGIN
DECLARE
CURSOR temp_cursor IS
SELECT ...........
END;
BEGIN
FOR wip_rec IN temp_cursor
LOOP
update tinsagr set something
where {the condition}
IF SQL%ROWCOUNT = 0 THEN
dbms_output.put_line('this is test ');
Fetch wip_rec into TransactionResultSet;
END IF;
END LOOP;so basically i want to iterate the "temp_cursor" and depending on the values i get it from here i shall update a table. Actually i want to exclude few records from "temp_cursor" and add it/copy rest of the records to "TransactionResultSet"
That means say initially " temp_cursor" has 100 records and i updated 5 records in a table and same number of records should be excluded and rest should be added to the output cursor TransactionResultSet.
How do i achieve it?
while saving i am getting
(1): PLS-00456: item 'WIP_REC' is not a cursor.
Do any one has any idea what to do in such scenario?There are options like....
SQL> CREATE OR REPLACE TYPE emp_obj AS OBJECT (ename VARCHAR2(50), dept NUMBER);
2 /
Type created.
SQL> CREATE OR REPLACE TYPE emp_tbl IS TABLE OF emp_obj;
2 /
Type created.
SQL> set serverou on
SP2-0158: unknown SET option "serverou"
SQL> set serverout on
SQL> DECLARE
2 rc sys_refcursor;
3 v_ename emp.ename%TYPE;
4 v_dept emp.deptno%TYPE;
5 ---End Of Local Varriable Declaration
6 --Procedire declaration !
7 PROCEDURE TEST_CUR(pi_out_ref_cur IN OUT sys_refcursor) IS
8 emp_rec emp_tbl;
9 BEGIN
10 /* This BULK COLLECT can be done with explicit cursor,Ref Cursor
11 with some simple modification, Here I have used implicit cursor! */
12 SELECT emp_obj(ename, deptno) --Casting as the object
13 BULK COLLECT
14 INTO emp_rec
15 FROM emp
16 WHERE deptno = 10;
17
18 dbms_output.put_line('Records selected are:');
19 FOR i in 1 .. emp_rec.COUNT LOOP
20 dbms_output.put_line(emp_rec(i).ename || '--' || emp_rec(i).dept);
21 END LOOP;
22 --Now we are filtering the record and may be doing some operation with each record.
23 FOR i in 1 .. emp_rec.COUNT LOOP
24 IF emp_rec(i).ename = 'KING' THEN
25 --You can change this IF according to your need.
26 emp_rec.DELETE(i);
27 END IF;
28 END LOOP;
29 OPEN pi_out_ref_cur FOR
30 SELECT * FROM TABLE(emp_rec); --Using the TYPE AS table.
31 END TEST_CUR;
32 /* Main execution or procedure calling section*/
33 BEGIN
34 --Actual calling
35 TEST_CUR(rc);
36 dbms_output.new_line;
37 dbms_output.put_line('Now in Ref Cursor');
38 dbms_output.put_line('****************');
39 LOOP
40 FETCH rc
41 INTO v_ename, v_dept;
42 dbms_output.put_line(v_ename || '--' || v_dept);
43 EXIT WHEN rc%NOTFOUND;
44 END LOOP;
45
46 END;
47 /
Records selected are:
CLARK--10
KING--10
MILLER--10
Now in Ref Cursor
CLARK--10
MILLER--10
MILLER--10
PL/SQL procedure successfully completed.
SQL> -
Can i copy values from one object to another ?
One more help..
How do i compare the input values with the ones in an object of another class ?
Can i copy values of one object of a class to different object of another class ?
Thanks,
SanlearnsHow do i compare the input values with the ones in an
object of another class ?By getting and comparing them?
Can i copy values of one object of a class to
different object of another class ?Yes, you can. But you shouldn't, as you're breaking encapsulation all over the place. You could use setter methods (if available) to set the values. -
Copy values from one Parent node to other Parent Node
Hi all,
I have a 2 Parent node each having 3 child nodes. I want to copy the values of all the attributes of all the child nodes of one Parent Node to corresponding other node.
Both the Parent Nodes as well as their Child Nodes have different name but their attributes have same name.For ex:
Parent Node -A
Child Nodes - a, b,c
Child Node "a" has attributes "x" and "y"
Parent Node -B
Child Nodes - d,e,f
Child Node "d" has attributes "x" and "y" .
Now I want to copy the values od attributes "x" and "y" from one Parent Node to other Parent node.
Please help me out.
Helpful answers will be rewarded.
Thanxs in advance...Hi Jin,
To use copy service API, u need to satisfy 2 condition for the attributes of source node and target node:
1. The name of the attribute should be same (including the case of the name)- Abc is different from ABC
2. Type of the attribute should also be the same.
copy elements works for copying values from Model node to context and does not work vice-versa. To enable the copying of context node to model node, use copycorresponding API.
Eg:
int contextNodeSize = wdContext().node<contextNodeName>().size();
for(int i = 0; i < contextNodeSize; i++)
<modelNodeName> modelObject = new <modelNodeName>();
<contextNodeName>Element contextObject = wdContext().node<contextNodeName>().get<contextNodeName>ElementAt(i);
WDCopyService.copyCorresponding(contextObject, modelObject);
This will copy the values from Context Node to Model Node.
Hope this helps you.
Regards,
Poojith MV -
How to use Copy-Value function?
Dear Friends,
I have query on how to use Standard function Copy-Value.
Please have a look @ the help.sap.com example use of Copy-Value function.
http://help.sap.com/saphelp_nw70/helpdata/en/26/d22366565be0449d7b3cc26b1bab10/content.htm
I have designed the same example. Please see the mapping I've defined for this example :
http://www.flickr.com/photo_zoom.gne?id=930440086&size=o
Please see the resuts, its working perfectly. See the top image :
http://www.flickr.com/photo_zoom.gne?id=930440300&size=o
Ok, now lets come to the issue. Please consider the same example , If I have more than one partner
and I want to use the address field to the customer street,city & zipcode using copy-value function, how will I achieve this?
Please see the resuts.See the bottom image :
http://www.flickr.com/photo_zoom.gne?id=930440300&size=o
I think you all got the issue, if not please reply back.
Looking for your answers!!!
Best regards,
raj.The CopyValue function considers only values in the first context of the queue.
When the queue has more contexts, the other contexts are ignored.
In online help, the element addrDat is 3 times under name, that means 3 values are in the first context.
That means: For the first occurrence of the partner it is correct, for all other partners, the values of the first context is taken. The online help does not express this, so it is misleading and should be changed to an example where address is not beyond a node with occurrence inbounded.
In practical cases the copyValue can only be used for values that appear in source just one time, like the IDOC header fields, as it works like a constant.
Regards
Stefan -
Copy value from item - disabling
Hello all,
How can I programatically disable 'copy value from item' property of a text item.Pls help....
With regards
Jeneesh.very easy : Don't use it
You have to create your own functionality in this case.
e.g. for QUERY use a PRE-QUERY, where you fill the item in the same way like the "copy value from item"
when INSERTING use the PRE-INSERT, and so on...
why did you have to disable the "copy value ..." ? -
Copy value function in message mapping?
can someone help me understand copy value function in message mapping???
Hi,
Here's a good example providen yesterday by Mark in a thread.
[Re: different contexts to different targets]
And here's SAP help: [http://help.sap.com/saphelp_nwpi71/helpdata/EN/26/d22366565be0449d7b3cc26b1bab10/content.htm]
Then play...
Mickael -
Master-detatil - copy value from
Hello.
I have a problem with master-detail relationship. I have one block with hidden item (item is id - id is generated with the sequence). In the second block i have one item (not hidden) which is connected (relationship) to the id from the first block. After i commit the record in the first block i want to see (immediately after commit)the value of the id from the first block in the item from the second block. I have relationship and copy value from but it doesn't work. I checked my other forms where that works and i don't see any differences. ThanksHi!
First block is Master, Second is Detail. It's TRUE?
If it is true:
Create PRE-INSERT trigger (Master block level)
select <sequence_name>.nextval, <sequence_name>.currval
into <Master_block>.<ID>, <Detail_Block>.<ID>
from dual; -
How to copy values from 1 st row to 2 nd row in cross tab report?
thanksJaya,
try the following;
If the row totals are on top right click on one of the totals > format field > In the conditional suppression formula enter;
numbervar x:= 0;
false
In the conditional suppression formula of the summary values enter;
numbervar x;
x:= x + 1;
if x = 1 then g:= currentfieldvalue;
false
In the Display string formula of the summary values enter;
currencyvar g;
totext (g)
Note, change the variable type to numbervar if your crosstab isn't summarizing currency.
Edited by: Graham Cunningham on May 26, 2009 2:19 PM -
Copy Value from Item in Property Palette
I have created a button on my form so that the user can clear the form and requery another record. In this 'when_button_pressed' trigger, I have a go_block(block_1), then a clear_block(no_validate) and so on for each of the three blocks. I am finding that items that have the Copy value from item property set to copy information from the control block, those items don't clear, therefore, causing the requery to work improperly. I have tried to copy data down to the other blocks in other triggers and using the clear_form but for some reason the clear_form(no_commit) takes me out of the form completely.
I have run this problem through metalink and they were able to get the problem to recreate and said it must have something to do with the Copy Value from Item property but cannot explain. Has anyone ran into this problem and have found they found an answer when using the copy value property?
Any help would be appreciated.
Thanks,
Toni KuefferAli,
If I understand your question properly, you want to denormalize an attribute from a master table into a detail table, correct? If so, I'd do that in the model layer, not in the UI.
If you share what you are using at the model layer in terms of technology, perhaps someone can be able to show you how.
John -
AppleScript Excel - Copy value of cells into variables
I am super new to AppleScript, so please excuse me if I am not good at explaining what I am trying to do. I have an Excel file that has 12 columns and X rows, I need to have B2/C2/D2/etc copied into variables but have the column be a variable instead of a static number so I can write a loop to get all the rows, etc. Here is what I have now, and I know this is far from being correct.
copy value of cell "B2" to varRow
I have tried something crazy like this:
copy value of column colSection of row intRow to varSection
But that just throws up an error saying the object i am trying to access does not exist. I set the ColSection to "B" and intRow to 2, so I thought it would work. Any ideas or advice I am open! Thanks!The following should give you the idea:
tell application "Microsoft Excel"
activate
make new workbook
set myCol to 3 -- the starting column
set myBgnRow to 2 -- the starting row
set myString to "Hello World" -- characters to be inserted into sheet as sample values
set myChar to 1 -- Points to first character ("H")
set myEndRow to myBgnRow + (length of myString) - 1 -- the ending row
-- Now put some values into the cells
repeat with myRow from myBgnRow to myEndRow
select (cell myCol of row myRow of active sheet)
tell cell myCol of row myRow
set value to character myChar of myString
end tell
set myChar to myChar + 1
end repeat
-- now get the values back out
-- note that this is using same myBgnRow and myEndRow as above
repeat with myRow from myBgnRow to myEndRow
select (cell myCol of row myRow of active sheet)
tell cell myCol of row myRow
set myVal to value
end tell
display dialog (myCol as text) & "," & (myRow as text) & " " & myVal
end repeat
end tell -
I have a CUSTOM and in my custom i want to copy a value to a flexfield. I do this:
copy('2001','ORDER.ATTRIBUTE1');
copy('2001','ORDER.GLOBAL_ATTRIBUTE1');
When I entered in my forms i see that 'ORDER.ATTRIBUTE1' is with value '2001'. But when click in flexfield imeddiately
a popup show me the flexfield blanK. I test this popup, i write 'XXXXXXXXXXXXX' on this flexfield, when i pressed the
button APPLY, the Core copy this value for 'ORDER.ATTRIBUTE1' and lost my value.
How can i do this ? Populate the flexfield in the form ? I look all the core forms to find how populate this flexfiedl.Hi
There should be a field named 'CONCATENATED_SEGMENTS' on that block also. If not, find the name by identifying the field that you click to open the flexfields window. Don't know how many attributes has your flexfield definition, but you should do something like:
copy( 'value' , 'order.concatenated_segments' ) ;
If you have more than one segment, you'll have to take care to first copy the initial value of the field and replace only the first segment part (or whichever is the segment you are modifying). -
Difference between copy value and use one as many
hi
what is the difference between copy value and use one as many?
thanks[http://help.sap.com/saphelp_nw2004s/helpdata/en/26/d22366565be0449d7b3cc26b1bab10/content.htm]
[http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/df564b6aa24fc9ab0d685460747de5/content.htm]
Much better understanding of UseOneAsMany: [http://help.sap.com/saphelp_nw2004s/helpdata/en/38/85b142fa26c811e10000000a1550b0/content.htm]
Edited by: Praveen Gujjeti on Feb 18, 2010 11:42 AM -
Copy Value Adapter in OIM 9.1
Hi All,
Please Provide information about Copy Value Prepopulate Adapter,its purpose and procedure to create an Copy Value Prepopulate Adapter.
Thanks in Advance.
MadhuHi Suren,
Thanks for the reply....
I am trying to add new attributes like location to the AD User form and want to copy location data from user profile to process form.
In the Design Console --> Form Designer--> UD_ADUSER form I have added location attribute in Additional Columns and created one Copy value prepopulate adapter.Now I need to Set the attributes in AD Resource and I stuck here.
Please provide your guide lines to acheive this.
Regards,
Madhu -
Custom Calculation Script to copy value of a field
Hi,
I'm trying to copy the value of a field into another field and display it in the pdf. This is for the 1099's. We are trying to print 2 copies(Copy B and Copy 2) in one page. The first field will come from the XML file. I need to copy the value of this field into the second field. Can anyone please help me with the calculation script for this. I tried the getField.value and it didn't work in the pdf. Thanks.
With Regards,
Satishpdf.Hi,
There are a couple of approaches.
One would be to put the script in the radio buttons that when clicked would do the calculate and set the value of the numeric field.
Another would be to have the script in the calculate event of the numeric field looking back at the value of the radio button. Taking this approach the script in the numeric field calculate event would look like this:
if (radioButton.rawValue == 1) // radio button bound to 1 is on/yes
this.rawValue = ; // your calculation goes here
else
this.rawValue = null;
This is testing the value of the radio button and then taking appropriate calculations.
Hope that helps,
Niall
Maybe you are looking for
-
When I get n email from. Cell phone that's a picture the email says I have a multimedia message but, that's all. It won't show an attachment or anything. I've tried opening the email in adobe and everything. How can I get the attachment to show? Plea
-
Error while creating pivot table in recording macro
im getting error " Run time error 1004: unable to get the pivottables property of the worksheet class below is the code Sub Macro16() ' Macro16 Macro ' Keyboard Shortcut: Ctrl+t ActiveWorkbook.PivotCaches.Create(SourceType:=xlDatabase, SourceData
-
Upgrade problem CE 7.1 SP3 to SP4 (ESP_FRAMEWORK)
Hi all, I have a problem upgrading the version of CE 7.1 SP3 to SP5. Deproying component 'sap.com/ESP_FRAMEWORK' is aborted . Please Help me . How to Resolve this problem? My system is NW CE 7.1 Productive Edition SP03 , win2003 x64. @Following is De
-
Duplication when downloding from iTunes
When I down load video from ITunes it duplicates the new item and also some existing items. I now have two copies in the video folder for my tv show. Any solutions?
-
Just tried adding some text to a video (MP4) how best to optimise?
Hi, Any suggestions on this? I imported a short MP4 into CS6, then added some text diplaying on part of the timeline so the text fades in, displays, then fades out, all well and good. I then re-saved it as a new MP4 I'd like to know if it is possible