Sie sind auf Seite 1von 13

SAP

SHIFT PLANNING
Interface
for Microsoft Excel (Versions 5.0 an !i"!er#

L L L
$ff $ff

L
$ff $ff

E E E E E

1994-1995 SAP AG
Status: 07.06.1995 - 1.00d English Translation 09.12.1997 - 1.00

%ontents

Printin" fro& t!e S!ift Plannin" %o&'onent


You can format your Shift Planning data in the SAP R/3 System using the Microsoft Excel

interface (Excel ersions !"# and

higher$" You can use the format %ro%osals included &ith SAP's standard R/3 system( or create your o&n tem%lates and integrate them into the Shift Planning com%onent" You can also sa e data as Microsoft Excel &or)sheets and then use Excel to edit them" *or more information on using the Shift Planning com%onent (including the %rinting o%tion$( refer to the online documentation"

%reatin" (o)r $*n Te&'lates


+o create your o&n tem%lates( o%en the WDPDDMAC.XLS &or)sheet in your R/3 *rontend Soft&are directory" A dialog ,ox a%%ears in &hich you are as)ed to confirm your selection ,y choosing -./"0 Ma)e sure that you hold do&n the shift )ey &hen selecting -./0 to %re ent the macro from starting automatically" 1o& insert a ne& %age in the &or)sheet to use for %lanning your shifts" 1ote that the areas for the character legend and the data are connected" +he character legend contains 2! entries and the data area contains 32 entries of aria,le length (de%ending u%on the num,er of %ersons in the %lan$" +he character legend and the data area can ,e dis%layed hori3ontally or ertically and can also ,e -rotated0 (trans%osed$" After you ha e created your formatted tem%late( you must add the names to the document listed in Attachment A" +he names must ,e included in this list so that the macro -)no&s0 &here and ho& the data should ,e inserted in your tem%late" Rename the original tem%late and name your document -tem%late"0 You thus ensure that your tem%late( not the original( is used &hen you %rint your document" 4n addition( it is im%ortant to sa e your changes"

Soft*are +e,)ire&ents
4n order to use the Microsoft Excel interface you need the follo&ing6 Microsoft Excel (7ersion !"# or higher$ soft&are8 an 49M:com%ati,le com%uter( SAP R/3 *rontend Soft&are (SAP;ui$ as &ell as SAP R/3 (Release 3"# or higher$ that includes the -Shift Planning0 com%onent"

Attac!&ent A- Na&in" %on.entions for Te&'lates


4n order for data to ,e inserted in the right %lace in your tem%lates( you must use certain names (Excel naming con entions$" You define the names ,y choosing 4nsert 1ames S%ecify in your tem%late as follo&s6 Lines: 1um,er of lines in the data area of your shift %lan" DataTranspose: True( if you &ant the data to ,e -rotated0 (trans%osed$ ,efore insertion( other&ise False" +hree lines %er %erson and one column %er day are normally used (<ata+rans%ose=False$" AppendixTranspose: True( if you &ant the data to ,e -rotated0 (trans%osed$( other&ise False" 1ormally( the character legend is stored in one line and rotated ,efore insertion so that it is dis%layed in one column (<ata+rans%ose=False$" Month: Refers to the cell in &hich the month is dis%layed" Year: Refers to the cell in &hich the year is dis%layed" Area: Refers to the cell in &hich the station/area is dis%layed" PageNo: Refers to the cell in &hich the %age num,er is dis%layed" CreatedBy: Refers to the cell in &hich the name of the %erson &ho created the shift %lan is dis%layed" CreatedOn: Refers to the cell in &hich the date &hen the shift %lan &as created is dis%layed" ApprovedBy: Refers to the cell in &hich the %erson &ho a%%ro ed the shift %lan is dis%layed" ApprovedOn: Refers to the cell in &hich the date the shift %lan &as a%%ro ed is dis%layed" CopiedBy: Refers to the cell in &hich the %erson &ho co%ied the data is dis%layed" CopiedOn: Refers to the cell in &hich the date &hen the data &as co%ied is dis%layed" Appendix: Refers to the first cell on the left from &hich the character legend is to ,e dis%layed" Data: Refers to the first cell on the left from &hich the data is to ,e dis%layed"

Attac!&ent A- Na&in" %on.entions for Te&'lates (/#


Txt1-Txt17: +ext Elements >:>?6 >" 2" 3" 5" !" 2" ?" D" E" >#" >>" >2" >3" >5" >!" >2" >?" -Shift Plan0 -@/: Aarryo er0 -Month60 -Year60 -Station/Area60 -Page 1o"60 -AA+BAC time in hrs"0 -+AR;E+ time in hrs"0 -'@/: ne& in hrs"0 -1ame0 -Areated60 -<ate60 -A%%ro ed60 -<ate60 -Ao%ied60 -<ate60 -Aharacter legend60

Days1: Refers to the first cell in the ro&s or the column header of the data areas" All days are entered (max" 3>$ in this ro& or column"

Days1Transpose: True( if you &ant the days to ,e inserted ertically (column$" False( if you &ant the days to ,e entered hori3ontally (ro&$" 4n either case( the cell that is named Days1 starts the column or ro&"

Days ! Days Transpose: identical to Days1 and Days1Transpose"

Attac!&ent 0- T!e 1o*nloa Interface


+he +ransaction PP2> (Re%ort SAP*F!AF$ &rites data to the WDPDDPRT.XLS file in the R/3 *rontend Soft&are (SAP;ui$ &hen you call u% the %rinting function" 9ecause this data exists only as con erted text format( you must follo& a certain file construction &hich is detailed ,elo&" Please note that the ta, )ey is the column indicator and the enter )ey is the line indicator" "o# 1: Column 1: Column 2: Column 3: Column 4: Column 5: Column 6: 1um,er of ro&s in the data area 1ame of the formatted tem%late (normally -tem%late0$ Print (# = no( >= yes$ Sa e (# = no( > = yes( 2 = as) user$ *older name( if you ha e sa ed it( other&ise lea e ,lan) Alose Excel after macro is com%leted" (# = close macro and data only( > = com%letely exit

Excel( 2= com%lete editing macro( ,ut do not sa e or %rint data$ Column 7: Column 8: Column 9: Column 10: Column 11: Column 12: Column 13: Column 14: Column 15: Column 16: 1um,er of the first %age 1ame of the month (Feader data for %rinting the %lan a%%ears after this %oint$ Year Station Areated ,y Areated on A%%ro ed ,y A%%ro ed on Ao%ied ,y Ao%ied on

Column 17 to Column 46: Aharacter legend Column 47: 7ersion indicators (3 at %resent$

"o# : Columns 1-17: Canguage:de%endent text elements" Ao%ied to the tem%late according to +xt>:+xt>?"

"o# $: Columns 1-31: Aolumns and ro& headers (day$ for the data area" Ao%ied according to days" Aolumn> contains the last name and first name( Aolumn2 contains carryo er from the

%o&&o#ing "o#s:

%re ious month( Aolumns 3:33 contains the %lanning data and Aolumns 35:32 contain the actual time( target time and ,alance"

Attac!&ent %- %!an"in" t!e Macro


You can also change the macro included in the standard R/3 System for the Shift Planning com%onent (-79A Macros0$" +o do so( o%en the WDPDDMAC.XLS folder in the directory &here your R/3 *rontend Soft&are (SAP;ui$ is located" A dialog ,ox a%%ears in &hich you are as)ed to confirm the -.%en *ile0 command ,y choosing the -./0 ,utton" Ma)e sure that you hold do&n the shift )ey so that the macro does not start automatically" +hen choose *ormat Gor)sheet Sho& to dis%lay the -79A Macros"0 1o& you can change the source code" Please ,e ad ised that SAP only %ro ides su%%ort for the original macro"

>#

Attac!&ent 1- An Exa&'le

>>

Attac!&ent E- En"lis! $23ect Li2raries


1ormally( you co%y the o,Hect li,raries for English macros ( XLEN50.OLB and VBAEN.OLB$( as &ell as the country:s%ecific files &hen installing Microsoft Excel on your com%uter" +he SAP macro runs automatically on these systems" Fo&e er( sometimes the English o,Hect li,raries do not a%%ear in your system" If any problem occurs when your system is searching for the English object libraries, you should implement the following changes to your system: Ao%y the files WDPDXL50.OLB and WDPDVBA.OLB from the directory &here your R/3 *rontend Soft&are (SAP;ui$ is located to the Microsoft Excel directory" Rename the WDPDXL50.OLB file as XLEN50.OLB( and the WDPDVBA.OLB file as VBAEN.OLB. +hen install the Microsoft Excel 7isual 9asic manual from the -Programming Aode for 4nternational 4nstallation0 cha%ter found in the -4nstalling and Registering .,Hect Ci,raries0 section"

>2

Attac!&ent F- Error Messa"es 4!en 5sin" T!e Macro


SAP has thoroughly tested the Excel interface and has corrected as many errors as %ossi,le" +hus( you should not ex%ect to occur &hen using the macro for its intended %ur%ose" Fo&e er( if an error does occur &hen using the macro( an error message a%%ears" +he follo&ing error messages ha e already ,een defined6 Error I26 'The (or)atted te)p&ate *annot +e (o,nd-. " +his error occurs if the name of the &or)sheet tem%late has ,een changed" Ahange the name only if you &ant the modified macro to ,e used ,y all" S%ecify the name of the tem%late in Austomi3ing" Error I36 'The data ),st +e &oaded +e(ore *a&&ing the (or)at-. " +his error occurs if you loaded the macro ,ut did not hold do&n the shift )ey &hen you confirmed the menu command (,y choosing the -./0 ,utton$" +he macro automatically started %rocessing the data" Error I56 'O,tdated )a*ro/Data has an ,n0no#n (or)at-. " +he macro &as %ro,a,ly started &ith a file that does not contain the data do&nloaded from the Shift Planning com%onent in the SAP R/3 System" 4f this error occurs( ho&e er( &hen starting the macro &ithin the SAP R/3 System( the macro is most li)ely older than the SAP R/3 soft&are ,eing used" 4nstall the ne& macro that &as included &ith your SAP R/3 System"

>3

Das könnte Ihnen auch gefallen