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.

  1. Use the SHDB transaction to record BDC screens sequence for a transaction to be coded in BDC.
  2. 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:
  1. Uploads an input file from presentation server (a tabs delimited text file);
  2. For each line of the input file populates a BDC structure;
  3. Calls a given transaction(s) using the BDC structures and handles the error messages;
  4. Displays detailed statistics and errors report.
For example, for performing inventory movements automatically the following transactions should be called consecutively:
Batch Input: Create BDC Session:
This report:
  1. Uploads an input file from presentation server (a tabs delimited text file);
  2. Creates a BDC session for call of transaction(s);
  3. For each line of the input file populates a BDC structure and adds to the BDC session;
  4. Displays statistics and errors report.
Batch Input: Combination of two methods:
This report:
  1. Uploads an input file from presentation server (a tabs delimited text file);
  2. Processes all records with 'CALL TRANSACTION USING...' technique;
  3. Creates a BDC session for records that were processed with an error;
  4. Displays statistics and errors report.
Batch Input: Updating Material Master via BDC:
This skeleton displays how to:
  1. Determine all selection views available for user in the given transaction (MM01, MM02);
  2. Prepare BDC to access required view;
Batch Input: Post FI documents:
This report:
  1. Uploads an input file from presentation server (a tabs delimited text file);
  2. Processes all records with 'CALL TRANSACTION USING...' technique (transaction F-02);
  3. Creates a BDC session for records that were processed with an error;
  4. Displays statistics and errors report.

See also:


TopList 1