EI_Script_FM – BAPI/ Function script details definition
The EI_Script_FM worksheet contains BAPI/ function script details. The EI_Script_FM worksheet is only visible when function script is chosen (see EI_Script_Name worksheet and ribbon menu) and configuration is not hidden. The function script calls one or more remote SAP function modules (usually BAPI object methods). Apart from data describing the function module (columns F-J) the worksheet EI_Script_FM contains additional data steering how the script will be executed.
BAPI/ Function script preparation
Function script preparation starts with the selection of the relevant SAP function module with the use of the BAPI repository transaction (BAPI). The process of function module selection is described in a later section of this manual. One can access this help directly via ribbon menu button “Find FM”. After the function module is selected it can be processed further with the use of special script buttons that appear when EI_Script_FM worksheet is selected.
EI_Script_FM – Button Add an RFC-enabled function module
The function module chosen in the BAPI transaction in the SAP system (or any other RFC-enabled function module) can be added to the function script with this button. After the user inputs the function module ID, EasyInput generates the script entries.
Example Script entries for Profit Center creation:
Inactive |
Param use |
Parameter name |
Parameter Field |
Data type |
Field value |
Field desc |
Transfer type |
Read/write column |
|
FM |
BAPI_PROFITCENTER_CREATE |
|
|
|
|
|
|
X |
I |
BASICDATA |
|
u!BAPI0015_4 |
Transfer Structure for Basic Data |
|
||
|
IF |
BASICDATA |
PRCTR_NAME |
CHAR-20-!BAPI0015_4-PRCTR_NAME |
Name |
WriteData |
AE |
|
|
IF |
BASICDATA |
LONG_TEXT |
CHAR-40-!BAPI0015_4-LONG_TEXT |
Long Text |
WriteData |
AF |
|
|
IF |
BASICDATA |
IN_CHARGE |
CHAR-20-!BAPI0015_4-IN_CHARGE |
Person Respons. |
WriteData |
AG |
|
X |
IF |
BASICDATA |
DEPARTMENT |
CHAR-12-!BAPI0015_4-DEPARTMENT |
Department |
|
|
|
|
IF |
BASICDATA |
PRCTR_HIER_GRP |
CHAR-12-!BAPI0015_4-PRCTR_HIER_GRP |
Area |
WriteData |
AH |
|
X |
IF |
BASICDATA |
LOGSYSTEM |
CHAR-10-ALPHA!BAPI0015_4-LOGSYSTEM |
Logical System |
|
|
|
|
IF |
BASICDATA |
SEGMENT |
CHAR-10-ALPHA!BAPI0015_4-SEGMENT |
Segment |
WriteData |
AI |
|
X |
IF |
BASICDATA |
IN_CHARGE_USER |
CHAR-12-!BAPI0015_4-IN_CHARGE_USER |
User Responsible |
|
|
|
X |
I |
PROFITCENTERID |
|
u!BAPI0015ID2 |
Profit Center Structure Object Key |
|
||
|
IF |
PROFITCENTERID |
CO_AREA |
CHAR-4-!BAPI0015ID2-CO_AREA |
CO Area |
WriteData |
AB |
|
|
IF |
PROFITCENTERID |
PROFIT_CTR |
CHAR-10-ALPHA!BAPI0015ID2-PROFIT_CTR |
Profit Center |
WriteData |
AA |
|
X |
I |
TESTRUN |
|
u!BAPI0015_9 |
Test Run |
|
|
|
|
IF |
TESTRUN |
TESTRUN |
CHAR-1-!BAPI0015_9-TESTRUN |
X |
Simulation Mode |
|
|
|
I |
VALIDFROM |
|
DATS-8-!BAPI0015_3-DATE |
Valid-from date |
WriteData |
AC |
|
|
I |
VALIDTO |
|
DATS-8-!BAPI0015_3-DATE |
Valid-to Date |
WriteData |
AD |
|
X |
E |
CONTROLLINGAREA |
|
CHAR-4-!BAPI0015ID2-CO_AREA |
Controlling area |
|
|
|
X |
E |
PROFITCENTER |
|
CHAR-10-ALPHA!BAPI0015ID2-PROFIT_CTR |
Profit Center |
|
|
|
|
ER |
RETURN |
|
u!BAPIRET2 |
|
Return Code |
|
|
|
EFRT |
RETURN |
TYPE |
CHAR-1-!BAPIRET2-TYPE |
Message type |
|
|
|
|
EFRI |
RETURN |
ID |
CHAR-20-!BAPIRET2-ID |
Message Class |
|
|
|
|
EFRN |
RETURN |
NUMBER |
NUMC-3-!BAPIRET2-NUMBER |
Message Number |
|
|
|
|
EFRM |
RETURN |
MESSAGE |
CHAR-220-!BAPIRET2-MESSAGE |
Message text |
|
|
|
|
EFR |
RETURN |
LOG_NO |
CHAR-20-!BAPIRET2-LOG_NO |
Log number |
|
|
|
|
EFR |
RETURN |
LOG_MSG_NO |
NUMC-6-!BAPIRET2-LOG_MSG_NO |
Message no. |
|
|
|
|
EFR1 |
RETURN |
MESSAGE_V1 |
CHAR-50-!BAPIRET2-MESSAGE_V1 |
Message Variable |
|
|
|
|
EFR2 |
RETURN |
MESSAGE_V2 |
CHAR-50-!BAPIRET2-MESSAGE_V2 |
Message Variable |
|
|
|
|
EFR3 |
RETURN |
MESSAGE_V3 |
CHAR-50-!BAPIRET2-MESSAGE_V3 |
Message Variable |
|
|
|
|
EFR4 |
RETURN |
MESSAGE_V4 |
CHAR-50-!BAPIRET2-MESSAGE_V4 |
Message Variable |
|
|
|
|
EFRP |
RETURN |
PARAMETER |
CHAR-32-!BAPIRET2-PARAMETER |
Parameter Name |
|
|
|
|
EFRR |
RETURN |
ROW |
INT4-10-!BAPIRET2-ROW |
Parameter line |
|
|
|
|
EFRF |
RETURN |
FIELD |
CHAR-30-!BAPIRET2-FIELD |
Field name |
|
|
|
|
EFR |
RETURN |
SYSTEM |
CHAR-10-ALPHA!BAPIRET2-SYSTEM |
Logical system |
|
|
The Param use column defines the meaning of the FM script row:
Param use |
Script row usage |
||||||||||||||||||||||||||||||||||
FM |
Defines the beginning of the FM Script In this row in Parameter name column one will find function module ID. |
||||||||||||||||||||||||||||||||||
I# |
Import parameters (can be filled in by Transfer type WriteData or value in Field value column). # defines type of the parameter: - Empty value – for simple input parameters - F – for strucure field - TF – for table fields |
||||||||||||||||||||||||||||||||||
E# |
Export parameters (can be read by Transfer type ReadData). # defines type of the parameter: - Empty value – for simple input parameters - F – for strucure field - TF – for table fields |
||||||||||||||||||||||||||||||||||
C# |
Changed parameters (can have Transfer type set to WriteData, ReadData or WriteReadData). # defines type of the parameter: - Empty value – for simple input parameters - F – for strucure field - TF – for table fields |
||||||||||||||||||||||||||||||||||
TF |
For table fields (import/ export) tables (can have Transfer type set to WriteData, ReadData or WriteReadData). |
||||||||||||||||||||||||||||||||||
EXRY |
Rows for configuration for return messages. E and R letters (Export/Return) are just constant letters.
X depicts type of the message parameter: F – for strucure field TF – for table fields
Y depicts the meaning of the field of the return structure:
Example:
|
EI_Script_FM – Button Auto-fill read/write columns
In order to simplify assigning script rows to data sheet columns, the user can fill in only Transfer type in L column of the script, and let EasyInput assign columns (e.g. AA, AB, AC,…) automatically. This can be started by pressing the button “Auto-fill read/write columns”. After automatic column assignment, one can rearrange them using “Column tools” ribbon buttons.
EI_Script_FM – Button Create references in data sheet columns
After creating the script itself on the EI_Script_XX worksheet, the references to data sheet should be created for each row where column “L” has a value. This is an automatic task started by pressing the „Create references in data sheet columns” button on the ribbon.