Sunteți pe pagina 1din 8

SAP-Tip: Copy, Paste, and Multiple Selections

by byron on July 5, 2007 in SAP

Copying and pasting is not always the most intuitive thing in SAP. But it is a powerful tool that you will use over and over once youve mastered the different methods. There are at least 3 methods for doing copy/paste. Different situations require different methods. Not to worry, though. Itll be second nature in no time. Here they are:

Methods for Copy, Cut and Paste in SAP


1) Text boxes (not labels): Click and swipe and use Ctrl-C & Ctrl-V

The trick in the first 2 cases is how you highlight something in SAP. For regular old text boxes, you can use the mouse to left click and swipe the content you want to copy. As always, Ctrl-C and Ctrl-V will copy and paste the highlighted data.

2) Labels (and multiple text boxes at same time): the Ctrl-Y trick

For labels, and there are many within SAP, you have to follow these steps:

1. 2. 3.

Click in the area you want to copy Press Ctrl-Y to get the crosshairs cursor Start in the upper-left area of the content you want to copy and swipe and realsdont touch anything or youll lose your selection!! this can be tricky, and SAP is finicky about this part

4. 5.

Ctrl-C to copy your selection Go to where you want to past and Ctrl-V and done

This works across multiple fields and multiple labels. It even works across multiple text boxes as seen in the example below of a KE52 Address tab screen. You can copy those and paste them into a new address screen as long as the fields match up. It doesnt work so well when there are labels that interrupt the flow of the copied textexperiment with it to get comfortable.

3) Pasting in Multiple Selections

Multiple selections appear all of SAP. Heres and example from FS10N:

Clicking the multiple selections button gives you a screen with about 8 text boxes for you to enter selections. You can copy and paste mulitple items into those boxes using Ctrl-V like normal. More boxes will appear after you hit enter, and you can scroll and paste into them as well.

But if you want to paste in lots of selections at the same time, you can use the magical Import from text file button.

Tip: Also check out the Multiple Selection button (circled in the example above). This brings up a search screen that you can do a search and then use check boxes to select mulitple items from the search result.

To use the Import from text file button, you can either put the content you want to add into a text file and upload it, or you can copy it from its source (SAP, Excel, etc) and then click the Upload from clipboard button. Voila! This can paste lots and lots of items to you multi-select.

While this can be used in pretty much any situation multiple selection is allowed, some of the most common uses Ive found are:

y y y

Profit centers Cost centers Document numbers (copy them from FBL3N, etc)

y y

Customers/Vendors Materials

Final words
Copy and paste is like breathing for most of us. In SAP, it can be like breathing with a scuba tank. Sometimes you need the tank, sometimes you dont.

Subscribe in a reader

Subscribe by Email

Copy or Upload Excel Journal Entry to SAP


SAP F.02 Copy from .XLS Excel Journal Entry You can copy journal entries from Excel (.xls) and & paste them into SAP FB50 and F-02. -when in FB50, fill out the required header rows, -then choose menu path ENVIRONMENT -> COMPLEX POSTING (F6)

-Click "FAST DATA ENTRY" button this will give you the old GL fast entry screen which have 20 journal lines or faster way is to go to SAP T-code F-02 directly.

If you can shrink your windows screen controls, you should be able to double the number of entry lines available. (depending on your screen resolution) To move from cell to cell in Fast entry screen , use TAB key instead of "Enter" .

SAP F-02 fast entry display more journal lines and for allocating Debit or Credit journal entries , you enter posting keys in your excel sheet and copy manually to SAP F.02 screen.

If it is regular , you may create a program to upload excel data (.xls) to SAP. There are two function modules you can use: (1)'ALSM_EXCEL_TO_INTERNAL_TABLE' (2) 'KCD_EXCEL_OLE_TO_INT'. Very similar but the first function module (ASLM) used in for foregroundprocessing

Example from Marc Hoffmann *Internal table to receive excel data Data: Begin of in occurs 0. include structure ALSMEX_TABLINE. Data: End of in. *internal table with result (your 3 field-table) Data: begin of ex occurs 0, f01(32), "max f02(32), f03(32), ..... End of ex. Data: fname(10). Field-symbols: . * so now you call the function to receive the data from EXCEL into table IN * after that: Fname = 'EX-F'. Loop at in. "per column one line entry at new row. Clear: ex. Endat. move in-col+2 to fname+4(2). assign (fname) to . move in-value to . at end of row. append ex2. Clear: ex. endat. Endloop. * result: your table EX is filled matching your EXCEL sheet That works flexible for whatever number of column you will receive (in my example max 99).

If you use ALSM_EXCEL_TO_INTERNAL_TABLE Then: parameters: p_fname LIKE rlgrap-filename default 'C:\temp\cpv25000.xls' obligatory. form upload_one_sheet. Data: st_col type i value 1, st_row type i value 1, en_col type i value 90, en_row type i value 9999. "max number of lines CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE' EXPORTING FILENAME = p_fname I_BEGIN_COL = st_col I_BEGIN_ROW = st_row I_END_COL = en_col I_END_ROW = en_row TABLES INTERN = in EXCEPTIONS INCONSISTENT_PARAMETERS = 1 UPLOAD_OLE = 2

OTHERS = 3. case sy-subrc. when 0. when 1. message e016(38) with 'Inconsistent parameters'. when 2. message e016(38) with 'Error upload OLE'. when others. message e016(38) with 'Error'. endcase. endform.

http://e-mory.blogspot.com/2008/03/copy-or-upload-excel-journal-entry-to.html

Hi Carmen, Depending on your screen resolution you may be able to get more than 10 rows in FB50 and yes you should be able to page down after the first 10 or so rows to get another 10 or so. Another method would be to ... when in FB50, fill out the required header rows, then choose menu path ENVIRONMENT > COMPLEX POSTING (F6) ... which switches you to the old style data entry screen, then from there click on the button FAST DATA ENTRY which will give you the old GL fast entry screen which can have different templates to suit your needs and is more than likely to have 20 or more rows available. Trust this helps. Regards, Ken

S-ar putea să vă placă și