|
Back to |
To locate the appropriate BAPI or module
BAPI_ACC_BILLING_CHECK
*GL*
If your DIRECT deployment is configured to do so, you can search a specified TRANSACTION script to find fields that correspond to fields in BAPIs.
To locate a BAPI by searching a .txr
Each BAPI that contains fields that match fields in the script is listed. The number beside it indicates the number of matching fields.
Exceptions: If a .txr was recorded in GUI scripting mode, and the field names do not correspond to the SAP tablename and field name, no results are returned. Fields that contain long text are not considered for search.
Because of the complexity of BAPIs, it is crucial that you determine which elements are mandatory and which are optional before you distil your template.
To help you decide the BAPI and function module elements that you want, documentation is available for BAPIs and function modules, the tables and structures, and fields. To make reviewing the documentation easier, you can print or copy a documentation screen by using the Copy to clipboard and Print buttons at the bottom of the each documentation screen.
BAPI categories bar shows a hierarchical display of the details of the selected BAPI, including tables, and structures. Fields that are not part of a table or structure are grouped as Other Fields.
Individual fields can be viewed in the middle pane. Included is the field name, field description, field type, field length, field decimal, and field offset.
If a BAPI contains import or output structures, these are displayed in the DIRECT tree structure. When a script is distilled from DIRECT, the structures appear in the Mapper as Import and Export structures and are labeled.
Based on your research in the documentation, you can specify the importance of fields. Classifying the fields helps users who are creating a TRANSACTION script to choose the fields that will work best for their process.
All: Displays all fields across categories that are marked frequently used or MR80.
Mandatory fields: Set fields as mandatory if the function module documentation indicates that they are essential or if they are important to your process. Fields marked as mandatory are fixed in TRANSACTION and cannot be deselected.
Recommended: Fields that are recommended to be included in scripts.
Frequently used: Also known as 80th percentile. Indicates the fields that are most frequently used in a given process.
None: Fields that are neither mandatory nor recommended, but which are still available for selection.
Padding for all data types is supported and pre and post padding of spaces is also supported. For Numchar, Num, char, or string fields, padding is turned on by default. For other field types, padding can be turned on by selecting the Padding check box next to the required field. Padding is not allowed if the SAP field length is not available or if the length is zero.
Pre and post padding can be important for articles that are not defined as integers in instances when the whole length of the string must be sent to SAP.
To add fields to be used in the template
To select or clear all fields
To sort the grid in ascending or descending order on the basis of a column
To search fields
You can change field descriptions to make them more readily understood by TRANSACTION users or when a BAPI or function module does not display descriptions.
To change field descriptions in DIRECT
You can reorganize categories into custom, logical groups or tables and structures. You can also add, remove, or rename categories.
You can move tables within a category that is defined inside a table group. Note that you cannot move tables inside a category defined in structures.
If a category does not contain tables, it does not appear on the selection pane.
To create new categories, right-click the heading, and then click Add Category. Drag tables to the new category.
To sort the grid in ascending or descending order
To return to the Search window
To open a DIRECT file
To save a template
To save an existing template under a new name
For your convenience, you can open TRANSACTION from DIRECT to begin mapping your distilled BAPI or function module.
To open TRANSACTION
TRANSACTION opens, and information about the DIRECT template that is being imported appears. If your DIRECT file is not saved, you cannot open TRANSACTION from DIRECT.
Also in this section System requirements for Studio 10.7.3 Activating and deactivating DIRECT Creating TRANSACTION scripts from DIRECT templates |