ABAP/4 skeletons.
Some skeletons - templates for tasks that are often to be coded in ABAP/4.
All the sources were being used and proved by myself.
- Use the SHDB transaction to record BDC screens sequence for a transaction to be coded in BDC.
- Since 4.5 it is better to use BAPI functions instead of BDC - look at the BAPI transaction.
- Batch Input: Call Transaction(s) Using BDC:
- This report:
- Uploads an input file from presentation server (a tabs delimited text file);
- For each line of the input file populates a BDC structure;
- Calls a given transaction(s) using the BDC structures and handles the error messages;
- Displays detailed statistics and errors report.
For example, for performing inventory movements automatically the following transactions should be called
consecutively:
- LB01 - create Transfer Requirements;
- LT04 - create Transfer Order;
- LT12 - confirm Transfer Order;
- Batch Input: Create BDC Session:
- This report:
- Uploads an input file from presentation server (a tabs delimited text file);
- Creates a BDC session for call of transaction(s);
- For each line of the input file populates a BDC structure and adds to the BDC session;
- Displays statistics and errors report.
- Batch Input: Combination of two methods:
- This report:
- Uploads an input file from presentation server (a tabs delimited text file);
- Processes all records with 'CALL TRANSACTION USING...' technique;
- Creates a BDC session for records that were processed with an error;
- Displays statistics and errors report.
- Batch Input: Updating Material Master via BDC:
- This skeleton displays how to:
- Determine all selection views available for user in the given transaction (MM01, MM02);
- Prepare BDC to access required view;
- Batch Input: Post FI documents:
- This report:
- Uploads an input file from presentation server (a tabs delimited text file);
- Processes all records with 'CALL TRANSACTION USING...' technique (transaction F-02);
- Creates a BDC session for records that were processed with an error;
- Displays statistics and errors report.
See also: