parameters
Change
Parameters
Extension
parameters
Return
Parameters
Each BAPI must have an export return parameter for returning messages
to the calling application. To provide application programmers with a
consistent error handling process for BAPI calls, all return parameters
must be implemented in the same, standardized way.
Selection
Parameters
Test Run
Parameters
Text Transfer
Parameters
BAPI/ALE Integration
When you use the BAPIs for asynchronous messagning, the application in the sendig
systen calls the generated ALE IDoc interface isntead of the BAPI.
Asynchronous BAPIs use the ALE interface this way:
a control record
This is identical for each IDoc type.
These are identical for each IDoc type and describe the statuses an IDoc has already passed
through or the status an IDoc has attained.
To print image, you have to import a tif file from your local hardisk via the SAP abap
program RSTXLDMC.
In the sap script, add in the following script.
: / INCLUDE ZLOGO OBJECT TEXT ID ST LANGUAGE EN.
or
Tested in 4.6x
Go to transaction SE78.
Follow the path given below (on the left windows box) :SAPSCRIPT GRAPHICS --> STORED ON DOCUMENT SERVER -->
GRAPHICS --> BMAP
Enter the name of the graphics file on the right side and Go to the menu GRAPHIC -->
IMPORT.
Convert Spool request to PDF format to your local drive
After sending your ABAP List or SAP Scripts to the spool request (SP01), you can use
the SAP standard spool PDF conversion program.
RSTXPDFT4 - Convert ABAP List and SAP Script to PDF files
Difference with SMARTFORMS vs. SapScript(SE71)
The Following are the differences :a) Multiple page formats are possible in smartforms which is not the case in SAPScripts
b) It is possible to have a smartform without a main window .
c) Labels cannot be created in smartforms.
d) Routines can be written in smartforms tool.
e) Smartforms generates a function module when activated.
Smart forms whose function module that was generated is not saved in any
development class. Is it anything to do with / name space. When I transported the
smartforms only the layout went but not function module. How could this be sorted?
That is because the Function module is not transported.
Transactions, dialog modules and executable programs (reports) all run in their own roll areas.
When you call any of these from your transaction, you must also pass them the data they need to
run. The options for passing data to an external program are:
For information about EXPORTing and IMPORTing data clusters, see Data Clusters in ABAP
Memory.
The MEMORY-ID option of the PARAMETERS statement allows you to use a default value from
the global SAP memory (SPA/GPA parameters). The syntax is as follows:
Syntax
PARAMETERS <p>...... MEMORY ID <pid>......
When you use this option, the value stored at that point under the name <pid> in the global userrelated SAP memory appears as the default value for <p> on the selection screen.
<pid> can be up to 3 characters long and must not be enclosed in quotation marks.
You use the global SAP memory to pass values retained beyond transaction limits between
programs. This memory is available to a user for the entire duration of a terminal session and any
parallel sessions use the same memory. The SAP memory is thus more comprehensive than the
transaction-bound ABAP memory (see Data Clusters in ABAP Memory).
Parameters can be set user specific in the users master records with the name <pid>. For further
information about the SAP memory, refer to the keyword documentation for SET/GET
PARAMETER and to Passing Data Between Programs.
The following program stores a value under the name "HK" in the global SAP
memory:
REPORT SAPMZTS1.
SET PARAMETER ID 'HK' FIELD 'Test Parameter'.
This value is used in the following executable program (report)as a default value
for the parameter TEST:
PROGRAM SAPMZTS2.
PARAMETERS TEST(16) MEMORY ID HK.
The selection screen of SAPMZTS2 looks as follows:
The technical information for the first input field of the booking transaction TCG2
looks like this:
The SPA/GPA parameter for the input field Company has the ID CAR. Use this
method to find the IDs CON, DAY, and BOK for the other input fields.
The following executable program (report) is connected to the logical database
F1S and calls Transaction TCG2:
REPORT SAPMZTST NO STANDARD PAGE HEADING.
TABLES SBOOK.
START-OF-SELECTION.
WRITE: 'Select a booking',
/ '----------------'.
SKIP.
GET SBOOK.
WRITE: SBOOK-CARRID, SBOOK-CONNID,
SBOOK-FLDATE, SBOOK-BOOKID.
HIDE: SBOOK-CARRID, SBOOK-CONNID,
SBOOK-FLDATE, SBOOK-BOOKID.
AT LINE-SELECTION.
SET PARAMETER ID: 'CAR' FIELD SBOOK-CARRID,
'CON' FIELD SBOOK-CONNID,
'DAY' FIELD SBOOK-FLDATE,
'BOK' FIELD SBOOK-BOOKID.
CALL TRANSACTION 'TCG2'.
The basic list of the program shows fields from the database table SBOOK
according to the user entries on the selection screen. These data are also stored
in the HIDE areas of each line.
If the user selects a line of booking data by double-clicking, the system triggers
the AT LINE-SELECTION event and takes the data stored in the HIDE area to fill
them into the SPA/GPA parameters of the initial screen of Transaction TGC2.
Then it calls the transaction. Since you do not suppress the initial screen using
AND SKIP FIRST SCREEN, the initial screen may appear as follows:
If you would use the AND SKIP FIRST SCREEN option with the CALL
TRANSACTION statement, the second screen would appear immediately, since
all mandatory fields of the first screen are filled.