Program/Logic behind the Copy functionality in SE38 Transaction
Hi,
In SE38 by using the copy option, Program along with sub-objects can be copied to another object.
Please let me know the Program/Logic behind that functionality.
Also let me know is there any option in SAP to copy program from one system to another system.
Thanks,
Madhuri.
Hi Madhuri
This is tha Program logic behind copying object thru se38
where p_operation would have the value 'COPY'' in it.
DATA: l_request TYPE REF TO cl_wb_request,
l_wb_todo_request TYPE REF TO cl_wb_request,
l_object_name TYPE seu_objkey,
l_object_type TYPE seu_objtyp,
l_program_state TYPE REF TO cl_wb_program_state.
IF trdir-subc = 'I'.
l_object_type = swbm_c_type_prg_include.
CALL METHOD cl_wb_object_type=>get_concatenated_key_from_id
EXPORTING
p_key_component1 = space
p_key_component2 = rs38m-programm
p_external_id = l_object_type
RECEIVING
p_key = l_object_name.
ELSE.
l_object_type = swbm_c_type_prg_source.
l_object_name = rs38m-programm.
ENDIF.
CREATE OBJECT l_program_state.
CREATE OBJECT l_request
EXPORTING p_object_type = l_object_type
p_object_name = l_object_name
p_operation = p_operation
p_object_state = l_program_state .
CALL METHOD
wb_pgeditor_initial_screen->mngr->request_tool_access
EXPORTING
p_wb_request = l_request
IMPORTING
p_wb_todo_request = l_wb_todo_request
EXCEPTIONS
action_cancelled = 1
no_tool_found = 2.
IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
EXIT.
ENDIF.
Similar Messages
-
How can I get a file to copy all of the files in a directory except itself and the source of the copy function will be the directory the final program is in? This application must be in Lab View 8.
you mean something like this (see below)?
Now you may have to implement code to check if the destination folder exists and to create it, etc. But if you use the Front Panel Control to select the destination folder, it should be okay.
Not the best implementation, mind you but you'll get the idea..
Message Edited by JoeLabView on 04-18-2007 03:43 PM
Attachments:
copy folder contents.PNG 10 KB -
Why the copier function of Photosmart 5520 just can copy A4 size paper?
I just bought a Photosmart 5520. It works great and have no problem doing photo printing, scanning and wireless printing. However, when I use the copier function. I found that I always missed part of the copied sheet. After checking the setting I found that it has a paper size setting of 8.5x11 inches (Letter) while the sheet size I'm using is a A4 size paper. Going into the setting and checking whether I can change the paper setting to A4, I found that there are just 3 size to choose - 8.5x11 inches (letter), 4x6 inches, and 5x 7 inches. How can this be? Why isn't there A4 size (which is also a very common size) to choose from while I have no problem selecting A4 with print funciton or scaning A4?
A4 size paper only. There is no prompt for adjusting the paper size. BTW, there is no problem printing A4 size document.
-
Officejet Pro 8500 Premier: How do I force the Copy function to use paper from Tray 2?
I set the default tray to Tray 2 and locked Tray 1 to protect my envelopes and this works fine when printing from the computer. But when I copy a document using the START COPY button, the printer pulls from Tray 1 and complains about the media being the wrong size.
When I use the printers control panel to set the Copy function to use Tray 2, it resets itself to Tray 1 the next time I copy something.
Surely I am not the only one in the Universe who would want to configure my printer to do this.
Has anyone else out there tried this?
Also, is there a specific forum for the Officejet Pro 8500 series printers?Hi
Hope you're still checking this
I had the same problem but found that if you go to the copy menu through the touchscreen, change the tray to tray 2 and then scroll to the very bottom there is an option to "Set as new default". This also changes the default for the Start Copy buttons - at least it did for me anyway.
Good luck -
How do I reorganize my photos on iPad 2? I need to move (not copy) photos from one album to another. When I use the copy function to another album, and then try to delete an image from the original album, the system wants to delete the photos from all albums. Please help.
You can't do it directly on the iPad - the new album functionality basically only allows you to copy photos into those new albums, you can't move them. The way that I think of it as working is that you are just creating pointers to the photos in those new albums, so if you then delete the original photo on the iPad you therefore automatically delete all the pointers to it.
If you want to re-organise your albums then you will need to do it on your computer and then sync those albums over to the iPad -
Preserving Current Owner file permissions using the copy function
I've been trying to use ARD 3's Copy function to overwrite a single user's Home folder in a classroom environment made up of a few Macs.
This is done with the aim of refreshing the Home folder every time a class is concluded.
However, although the Copy function works and succeeds in overwriting the Home folder, when the client is logged in locally, all the applications suffer from permission issues.
I've tried both the; Inherit from destination folder and; (ii) Preseve current owner, file permissions in the "Set item ownership to" option of the Copy window but neither appear to work.
I've also attempted to mirror the target user's account by creating the same account on the admin machine to push the Home folder over but the permissions remain a mess later.
Is there a way to get around this without having to implement lengthy UNIX commands?
I know of the existence of remote management apps, e.g. Deep Freeze (http://www.faronics.com/html/DFMac.asp), but under a budget constraint, such options are undesirable at the moment.
PowerBook G4 Mac OS X (10.4.3)Drag the photo from the iPhoto window to the desktop or export as kind = JPEG
As to too small - what is too small? The pixel dimensions of the exported JPEG will be identical to the original TIFF - the file size is smaller because JPEGs are compressed - which of course reduces file size - which of course is the reason that JPEG exists
LN -
Why is the COPY function inactivated
After working for some time, the COPY function is inactivated
Is there a max limit to the number of "copy" allowed on Adobe Digital Edition?© represents the HTML entity © (copyright symbol).
I don't have much iSQL*Plus experience but I recommend using a variable name that is not an HTML entity. -
Procedure to use the COPY function in Realignment
Hi Gurus,
Can anyone explain me the sequential procedure to use the COPY function in the Realignment...
ThanksHi,
In the Realignment start screen, you can set the flag u201CActivate Application Logu201D. This will help you to see and analyze the log.
Please check if you can see the copy step.
When you click u201CMaintain Entriesu201D , you will see the screen of u201COverview of Copy Tableu201D.
Therein you should see the steps you have maintained.
Check the Step Status . It should be u201CCope Step is ready to be performedu201D.
The validity date (fourth column) should be either todays date or earlier date.
Copy Validity Date:The validity date from which a copy step is taken into account during a copy run. Only copy steps whose validity date is before the date of the copy run job are taken into account.
Regards
Datta Kadam -
What is the copy function??.
How do use the copy function??..
Sorry I don't think you u can copy youtube videos.
where are you trying to copy it to? -
Unable to use the Copy function while submitting the program for XML output
Hi
when i submit the concurrent program with XML output type, getting the output..
when i submit he concurrent program using the copy button not able to get the output,
my observation
while submitting the program the xml template is not called....
Diagnostics--> view xml -- able to view the ouput.
do let me know if any of the steps is missing while registration in the xml responsibility..
this is only with the custom conc program.. the standard program is working fine...
do help me out..
Regards
YramIt's really a little difficult to answer your question without a bit more information. What version of JDeveloper are you using? What's your technology stack?
If this is JDeveloper 11+g+, with the Fusion technology stack, you can use a technique like the one described here:
http://groundside.com/blog/GrantRonald.php?title=jdeveloper_11_business_services_cascadin&more=1&c=1&tb=1&pb=1
If it's JDeveloper 10.1.3, with the default Web technology stack, look here:
http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html#62
If, as it looks like, this is really a question about generic JSPs (no JSF), you might actually have a bit more success on a generic JSP forum--using scriptlets hasn't really been best practices within JDev since...well, since JSTL became available, really. That was a number of years ago.
Like I said, there's really no direct way to use Javascript output in a scriptlet--unless you mean something like storing Javascript output in a hidden field, and using the value in a scriptlet on the next request. But by the time Javascript runs, any scriptlet from the current request will already have executed. -
What is the logic behind the start routine
Dear One's,
Kindly take a moment and explain the logic behind this start routine written in update rules of ODS.
PROGRAM UPDATE_ROUTINE.
$$ begin of global - insert your declaration only below this line -
$$ end of global - insert your declaration only before this line -
The follow definition is new in the BW3.x
TYPES:
BEGIN OF DATA_PACKAGE_STRUCTURE.
INCLUDE STRUCTURE /BIC/CST_T07_O006.
TYPES:
RECNO LIKE sy-tabix,
END OF DATA_PACKAGE_STRUCTURE.
DATA:
DATA_PACKAGE TYPE STANDARD TABLE OF DATA_PACKAGE_STRUCTURE
WITH HEADER LINE
WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
FORM startup
TABLES MONITOR STRUCTURE RSMONITOR "user defined monitoring
MONITOR_RECNO STRUCTURE RSMONITORS " monitoring with record n
DATA_PACKAGE STRUCTURE DATA_PACKAGE
USING RECORD_ALL LIKE SY-TABIX
SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
CHANGING ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
$$ begin of routine - insert your code only below this line -
fill the internal tables "MONITOR" and/or "MONITOR_RECNO",
to make monitor entries.
DATA: ITAB_/BIC/AT07_O00600 TYPE SORTED TABLE OF /BIC/AT07_O00600
WITH HEADER LINE
WITH UNIQUE DEFAULT KEY INITIAL SIZE 0,
DATA_PACKAGE_NEW TYPE STANDARD TABLE OF DATA_PACKAGE_STRUCTURE
WITH HEADER LINE
WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
sort the datapackage based on lead number and lead program definition
SORT DATA_PACKAGE BY /BIC/TLDNR /BIC/TLDPRGFTE.
from the resources ODS read all lead values based on the values those
SELECT * FROM /BIC/AT07_O00600 INTO TABLE
ITAB_/BIC/AT07_O00600
FOR ALL ENTRIES IN DATA_PACKAGE
WHERE /BIC/TLDNR = DATA_PACKAGE-/BIC/TLDNR.
FIELD-SYMBOLS: <LS_DATA_PACKAGE> TYPE DATA_PACKAGE_STRUCTURE.
FIELD-SYMBOLS: <LS_/BIC/AT07_O00600> TYPE /BIC/AT07_O00600.
loop at internal table of ODS to check if there are lead program defin
from the source which mean the values of lead program definition in OD
values of lead program definition in datapackage.
LOOP AT ITAB_/BIC/AT07_O00600 ASSIGNING <LS_/bic/at07_o00600>.
READ TABLE DATA_PACKAGE
TRANSPORTING NO FIELDS
WITH KEY
/BIC/TLDNR = <LS_/bic/at07_o00600>-/BIC/TLDNR
/BIC/TLDPRGFTE = <LS_/bic/at07_o00600>-/BIC/TLDPRGFTE
BINARY SEARCH.
IF SY-SUBRC <> 0.
new lines with zero values are inserted because there are no correspon
DATA_PACKAGE_NEW-/BIC/TLDNR = <LS_/BIC/AT07_O00600>-/BIC/TLDNR.
DATA_PACKAGE_NEW-/BIC/TLDPRGFTE = <LS_/BIC/AT07_O00600>-/BIC/TLDPRGFTE.
DATA_PACKAGE_NEW-/BIC/TLDFTE = 0.
APPEND DATA_PACKAGE_NEW.
ENDIF.
ENDLOOP.
append the new records which are created for the leads in the datapack
APPEND LINES OF DATA_PACKAGE_NEW TO DATA_PACKAGE.
reset the sorting of the datapackage back to its original state
SORT DATA_PACKAGE.
if abort is not equal zero, the update process will be canceled
ABORT = 0.
$$ end of routine - insert your code only before this line -
ENDFORM.
Thanks in advancehi,
it's retrieve data from table /BIC/AT07_O00600
and add to data package, so your records will be more than from source
hope this helps. -
In Logic account the operator function is not working properly
Hi all ,
When am defiining the logic accounts using a operator as Function ,it is not working at all showing a red border in the cell and not able to update the grid .
InValue/Exp-> am using a function -> CurVal > 0 then Result=CurVal else Result ="skip" endif
Please suggest me if there is some workaround available for this ?Thanks for the Link!!
We are using the FDM version 11.1.1.3 and Target as HFM .
Now i am creating a logic account say Item - L1100 ,Type-IN, Criteria value-1100,Operator-Function(Not working),
Value/Exp->If CURVAL > 0 Then RESULT = CURVAL Else Result=”Skip” End If.
As soon as i select the operator(Function) ,it shows a red border on the operator cell and couldn't able to update the grid .
Have searched the OTN discussion forumns and find no answer for this !! Could you please sugesst me if any workaround available for this piece ?
Thanks
Kenny -
No records written to the transactional cube with the copy function
Hi, I am unable to copy data from the basic cube to transactional cube,
I have developed following:
1. Planning Area PA1 for the basic cube
2. Planning Area PA2 for the transactional cube
3. Multi planning Area MPA1 over PA1 and PA2.
4. Planning Level PL1 for MPA1. It includes all the chars and KF.
5. Planning Package PP1 for PL1. No selections are made in this planning package.
6. Planning Function PF1 for PL1. It is based on copy function and has Plng Area in the field to be changed.
7. Parameter Group PG1 for PF1. I have selected Overwrite existing values option, in from planning area PA1 and in to planning area PA2.
Now when I execute the planning function it displays following log with green status:
Planning function PF1 (PF to copy data actuals to plan), parameter group PG1(PG to copy data) was carried out with no error
500 data records were read, 0 of them were changed, 0 generated
After this I hit the save button. A request is written to the transactional cube but there are no records in this request. Can anyone guide if I am missing something here or with correct steps
Thank you,
samWhate ever charcateristic combinatins you have in the plg level will be copied from PA1 to PA2.
Can you pl check the following:
1. Do you have data on the basic cube? If so, take one set of characteristtic combinations and go to transactional cube and check this.
2. Make sure the request in the basic cube is GREEN.
Lets do one more thing.
Tell me what distinguished PA1 and PA2?
If you have any characteristic that distinghished them, then lets run a copy with that characteristic. You dont have to have plng area in the function / para group.
Check the following. I will reply in a few mts, as i have a meeting.
Ravi Thothadri -
I desperately want to know why each note is assigned it's particular color in the score tab of the projects settings interface...
Was this done at random or is there some logic behind it all? Einstein and Newton have completely different ideas about note/color association...their theorys can be easily found on the internet. I've messed around with applying their ideas to the user pallette just for fun. Now, I really want to know if the makers of Logic chose the colors they did for the factory defaults for a particular reason. Please help if you can!hi,
it's retrieve data from table /BIC/AT07_O00600
and add to data package, so your records will be more than from source
hope this helps. -
How to solve the middle dark line when I use officejet all in one the copy function?
The printer function is good, but only has problem in copy functioln. How to clear the middle dark line?
This question was solved.
View Solution.Hello tseng0719,
I think it would be useful to have some more information in this case. For example:
Which printer do you have? Do this happen when you copy from the flatbed or from the adf? Do this also happen when you scan a picture?
A quick tip would be to clean the scanner glass as it migh very well be that it's just down to dirt on the glass (especially if this happens when you scan via the adf).
Maybe you are looking for
-
How many Apps can i have on my iPod Touch, is there a limit?
Is there a limit on how many Apps i can have on my iPod Touch? Thanks in advance.
-
Hello - I've recently upgraded to CS3 and seem to be having issues with inserted Flash files not appearing when I preview them on my local system as well as the hosting server. The Script folder and .js file are generated as should be, but the Flash
-
How to change the input and output schema in BPEL process
hi', Please tell me how to change the input and output schema in BPEL process after the process is made. thanks Yatan
-
I tunes is not recognising the renamed phone?
My wife is now using our daughters old Iphone 4. We've got a new sim card and created a new Apple account etc. When we connect the phone to the lap top to sync (my wife is signed into I tunes etc) the store says she has 16 updates. But these are for
-
Premiere Basic Settings for MTS
A bit new to Premiere but coming up to speed fast. I have scoured the forums and docs for the following basic questions but have come up empty. However, I am still unclear on what to use for the basic settings for my project to get me the best resu