Sei sulla pagina 1di 4

README

Utility Abaps Up to rel 3.0C


Contents of this dataset.
README.TXT
This file

you are reading it !!!!

ZZJIMHZZ.TXT Initial load ABAP

see below.

The other data sets are in the format XXXXXXXX.EEE, XXXXXXXX.HHH, XXXXXXXX.FFF.
Please read further about the composition of these data sets. Only the title
name is listed below :
ZZJIMH00 - Display profiles, authorisations, fields. Useful for profile
overlapping etc. checking. You do not need SU01 authority to run it.

ZZJIMH01 - Nest level list for DO, WHILE, IF, LOOP and CASE statements in an
ABAP. Also gives an XREF of all FORMS used in ABAP. If form not used / not found
displays ****UNDEFINED****. Uses a lot less paper than the SAP supplied abap.
ZZJIMH03 - PC / UNIX interface. Copies a data set from PC to UNIX and from UNIX
to PC. Useful for interfaces if you want to edit an inward interface data set
and can't be bothered to hassle around with VI. Download the data set to PC, use
Word etc to edit it and then send it back to UNIX. You will need to ensure that
you have UNIX directory access rights to data sets you want to read / create.
ZZJIMH04 - Generic ABAP download (including dynpros etc.) E.G download all abaps
Z*.
This is a front end to ZZJIMHQ1 which actually does the up / download.
ZZJIMH05 - Generic ABAP upload (i.e reverse of ZZJIMH04) This incorporates part
of ZZJIMHTT which reads a DOS directory and uploads the output into a SAP table.
ZZJIMH08 - Up and Download Layout sets - good if you are having to mess about
with that SAPSCRIPT abomination. NEW <=======

ZZJIMH11 - an "XTREE" like program for UNIX. Although still in development this
will navigate unix directories (where allowed) and browse (not edit yet) a data
set. The display is in ASCII at the moment. If I ever get time I will allow HEX
and EDIT functions and improve the display. However the basis of this prtogram
works.
ZZJIMH13 - Write a message to the messageline at the bottom of the screen and
continue. This allows a message to be displayed without requiring a user
keystroke to continue. This does not need a PAI or PBO module. Useful when you
are performing a long running task and want the user to wait. The next version
of this program will have a % completion bar at the bottom ( A la NETSCAPE
NAVIGATOR)
to show the progress of a task.

ZZJIMH14 - Dynamic table up/download . Allows a table to be up / downloaded to /


from a PC. The table name can be specified as a parameter at runtime. This is
1

README
an improvement over the previous version which dynamically read and modified a
skeleton ABAP which was then submitted.

ZZJIMH15 - Upload an excel spreadsheet into a table of the format ROW-NUM,


COL-NUM, DATA. All the code is contained in this program so you do not need the
function module Z_UPLOAD_EXCEL.
ZZJIMH16 - As ZZJIMH15 but using function module Z_UPLOAD_EXCEL

ZZJIMH99 - How to issue a UNIX command from an ABAP. This program actually does
a DIR search but you can modify this to any command you like. Note that you are
running under SAP's UNIX ID which means that you will have AT LEAST UNIX ADM
privilege level so USE WITH CARE !!
ZZJIMHQ1 - Program SAP should have written - Up / downloads ABAP, dynpros,
texts, cua, etc. Useful for copying stuff from one system to another bypassing
that garbarg correction system.
ZZJIMHTT - Issue DOS commands from an ABAP. It re-routes the output to a data
set which is then uploaded into SAP. The example used here is a DOS directory
command.
ZZJIMHWW - Show the basic SAP directories. This saves having to navigate all
over the place. If any are missing you can easily add the code.
SAPLZ0S3 - Function module Z_UPLOAD_EXCEL Contains the following includes :
LZ0S3TOP
LZ0S3UXX
LZ0S3FO1
LZ0S3FO2
LZ0S3F03
LZ0S3UO1

I have removed 2 programs - a) modifying your profile so YOU 2 CAN B E


SUPER_USER. and b) creating a new user on a different client you don't have
access to via an unauthorised abap as I am now working on a SAP external
security package (which will work I hope). If you are interested and have
internet access please see the article on EXTERNAL SECURITY FOR SAP on
de.alt.comp.sap-r3
or email me at jimh@jimboh.demon.co.uk.

These were never intended to be a commercial package so the method of uploading


them on to your system is fairly basic.
The abaps themselves are broken down into 3 datasets per abap (if dynpros exist)
or one dataset if no dynpros exist. The data set names are always named
abapname.EEE, abapname.FFF, abapname.HHH. The documentation is contained in
program ZZJIMHQ1 which is the main upload/download program.
The source part of an abap is labelled abapname.EEE and consist of
data in the following format
????xxxx
Data component e.g source text
2

README
????xxxx
Next data component e.g Texts
etc.
The .EEE datasets contain only ascii text and can be viewed with any (including
the SAP editor) ascii data set viewer. The actual source data is that section of
code between a line starting ????SRCE and either the end of the data set if no
texts, cua, dynpros etc exist or the next line that starts with ????.
The .HHH data sets contain dynpro headers.
The .FFF data sets contain dynpro field information.
The .HHH and .FFF data sets contain Binary (HEX) info so it was not easy to
merge all these into one data set per abap. Please read comments in
ZZJIMHQ1.EEE
To upload on to your system :

1) Unzip data set (I assume you have done this already or you wouldn't be
reading this)

2) Start transaction SE38 to create a new abap and call it whatever you like.
3) Upload ZZJIMHZZ.TXT via the standard editor upload command and save it. This
program will be used to upload ZZJIMHQ1 which can then be used to upload the
rest.
4) Save ZZJIMHZZ.TXT and execute it. Note - there will be no parameter
descriptions at this stage as no text elements will have been uploaded.
Enter the following values on the initial screen :

FUNCTION
U
(upload)
OBJECTS
B
(Abap + dynpros etc)
REPID
ZZJIMHQ1
(Name of program to be uploaded)
DSNAME
leave blank. A value here would indicate that the file name is
different from the program name. See documentation in program ZZJIMHQ1
INCLUDES
N
(NO includes to be uploaded)
PATH
A:\
(path where ABAP ZZJIMHQ1 is. N.B YOU MUST
CODE THE FINAL \ in the path. DO NOT ADD THE PROGRAM NAME. This is already taken
care of in the REPID parameter.
5) Once the program is uploaded enter SE38 and save it. You will probably be
asked to specify a development class. I use $TMP for temporary objects. You can
re-assign it later but I am not a great lover of the transport and correction
system. It's GARBARGE !!!!
NOTE TEXTS have only been created in language 'E' so for the non English people
out there it's probably better to logon with language 'E' to upload this
program. Once you have it in your system you can use any language afterwards.
6) Use ZZJIMHQ1 to upload any of the other programs. - Note ZZJIMH04 and
ZZJIMH05 perform generic up/downloads
You will now find proper texts etc.
7)

For generic spread sheet uploading 2 examples are given - One using a
3

README
function module Z_UPLOAD_EXCEL (code included in this set) and the other without
using a function module - this is primarily aimed at users who have recently
come to R3 from R2 and are still a little bit cagey about using Function
Modules.
Have fun with these
Cheers

Addendum:

Jim Hawthorne

I have used these routines on Release 4.0b and Windows '95/'98.


minor changes that are required to the code.

There are some

The programs test for the operating system they are running under with code
fragments such as:
IF WINSYS NE 'WN'.
WRITE: 'Windows / Windows NT or Windows 95 is required'.
EXIT.
ENDIF.
This needs to be changed to:

IF WINSYS+0(2) NE 'WN'.
WRITE: 'Windows / Windows NT or Windows 95 is required'.
EXIT.
ENDIF.
Richard Harper

Potrebbero piacerti anche