SAP BAPI_BKK_FORWD_ORDER_CREATE Function Module for Create a Forward Order









BAPI_BKK_FORWD_ORDER_CREATE is a standard bapi bkk forwd order create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create a Forward Order processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for bapi bkk forwd order create FM, simply by entering the name BAPI_BKK_FORWD_ORDER_CREATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: FB_FORW_ORD_BAPI
Program Name: SAPLFB_FORW_ORD_BAPI
Main Program: SAPLFB_FORW_ORD_BAPI
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_BKK_FORWD_ORDER_CREATE pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'BAPI_BKK_FORWD_ORDER_CREATE'"Create a Forward Order
EXPORTING
* BANKAREA = "Bank Area
* BANK_COUNTRY_KEY = "Bank country key
* BANK_COUNTRY_KEY_ISO = "Country ISO code
* BANKNUMBER = "Bank Key
EXTERNALACCOUNTNR = "External Account Number
* FORWARDNUMBER = "Forward order number
SENDER = "BKK BAPI Forward order
* PROCESS_EXTENSION = "Indicator, Extension IN/OUT
* TESTRUN = "Execution in Test Run Mode ('X' = Yes, ' '= No)

IMPORTING
ACCOUNTIDENTIFICATION = "Account Identification
FORWDNUMBER = "Forward order number
STATUS = "Status of Forward Order

TABLES
* EXTENSIONIN = "Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
* EXTENSIONOUT = "Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
RECEIVER = "BAPI Forward order receiver
* FORWDNOTE = "BAPI: Table of Payment Notes Lines
* RETURN = "Return Parameter
.



IMPORTING Parameters details for BAPI_BKK_FORWD_ORDER_CREATE

BANKAREA - Bank Area

Data type: BAPI_IBKK_ACCNT_IDENTIF-BANKAREA
Optional: Yes
Call by Reference: No ( called with pass by value option)

BANK_COUNTRY_KEY - Bank country key

Data type: BAPI_IBKK_ACCNT_IDENTIF-BANK_COUNTRY_KEY
Optional: Yes
Call by Reference: No ( called with pass by value option)

BANK_COUNTRY_KEY_ISO - Country ISO code

Data type: BAPI_IBKK_ACCNT_IDENTIF-COUNTRY_ISO
Optional: Yes
Call by Reference: No ( called with pass by value option)

BANKNUMBER - Bank Key

Data type: BAPI_IBKK_ACCNT_IDENTIF-BANKNUMBER
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXTERNALACCOUNTNR - External Account Number

Data type: BAPI_IBKK_ACCNT_IDENTIF-EXTERNALACCOUNTNR
Optional: No
Call by Reference: No ( called with pass by value option)

FORWARDNUMBER - Forward order number

Data type: BAPI_IBKK_FORWD_HEADER-FORWARDNUMBER
Optional: Yes
Call by Reference: No ( called with pass by value option)

SENDER - BKK BAPI Forward order

Data type: BAPI_BKK_STR_FORWARD_SENDER
Optional: No
Call by Reference: No ( called with pass by value option)

PROCESS_EXTENSION - Indicator, Extension IN/OUT

Data type: BAPI_IBKK_ACCNT_COMM_PARAM-PROCESS_EXTENSION
Optional: Yes
Call by Reference: No ( called with pass by value option)

TESTRUN - Execution in Test Run Mode ('X' = Yes, ' '= No)

Data type: BAPI_IBKK_ACCNT_COMM_PARAM-TESTRUN
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for BAPI_BKK_FORWD_ORDER_CREATE

ACCOUNTIDENTIFICATION - Account Identification

Data type: BAPI_IBKK_ACCNT_IDENTIF
Optional: No
Call by Reference: No ( called with pass by value option)

FORWDNUMBER - Forward order number

Data type: BAPI_IBKK_FORWD_HEADER-FORWARDNUMBER
Optional: No
Call by Reference: No ( called with pass by value option)

STATUS - Status of Forward Order

Data type: BAPI_IBKK_FORWD_HEADER-STATUS
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for BAPI_BKK_FORWD_ORDER_CREATE

EXTENSIONIN - Ref. structure for BAPI parameter ExtensionIn/ExtensionOut

Data type: BAPIPAREX
Optional: Yes
Call by Reference: Yes

EXTENSIONOUT - Ref. structure for BAPI parameter ExtensionIn/ExtensionOut

Data type: BAPIPAREX
Optional: Yes
Call by Reference: Yes

RECEIVER - BAPI Forward order receiver

Data type: BAPI_IBKK_FORWD_RECEIVER
Optional: No
Call by Reference: Yes

FORWDNOTE - BAPI: Table of Payment Notes Lines

Data type: BAPI_IBKK_FW_NT
Optional: Yes
Call by Reference: Yes

RETURN - Return Parameter

Data type: BAPIRET2
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for BAPI_BKK_FORWD_ORDER_CREATE Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_bankarea  TYPE BAPI_IBKK_ACCNT_IDENTIF-BANKAREA, "   
lt_extensionin  TYPE STANDARD TABLE OF BAPIPAREX, "   
lv_accountidentification  TYPE BAPI_IBKK_ACCNT_IDENTIF, "   
lv_forwdnumber  TYPE BAPI_IBKK_FORWD_HEADER-FORWARDNUMBER, "   
lt_extensionout  TYPE STANDARD TABLE OF BAPIPAREX, "   
lv_bank_country_key  TYPE BAPI_IBKK_ACCNT_IDENTIF-BANK_COUNTRY_KEY, "   
lv_status  TYPE BAPI_IBKK_FORWD_HEADER-STATUS, "   
lt_receiver  TYPE STANDARD TABLE OF BAPI_IBKK_FORWD_RECEIVER, "   
lv_bank_country_key_iso  TYPE BAPI_IBKK_ACCNT_IDENTIF-COUNTRY_ISO, "   
lt_forwdnote  TYPE STANDARD TABLE OF BAPI_IBKK_FW_NT, "   
lv_banknumber  TYPE BAPI_IBKK_ACCNT_IDENTIF-BANKNUMBER, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_externalaccountnr  TYPE BAPI_IBKK_ACCNT_IDENTIF-EXTERNALACCOUNTNR, "   
lv_forwardnumber  TYPE BAPI_IBKK_FORWD_HEADER-FORWARDNUMBER, "   
lv_sender  TYPE BAPI_BKK_STR_FORWARD_SENDER, "   
lv_process_extension  TYPE BAPI_IBKK_ACCNT_COMM_PARAM-PROCESS_EXTENSION, "   
lv_testrun  TYPE BAPI_IBKK_ACCNT_COMM_PARAM-TESTRUN. "   

  CALL FUNCTION 'BAPI_BKK_FORWD_ORDER_CREATE'  "Create a Forward Order
    EXPORTING
         BANKAREA = lv_bankarea
         BANK_COUNTRY_KEY = lv_bank_country_key
         BANK_COUNTRY_KEY_ISO = lv_bank_country_key_iso
         BANKNUMBER = lv_banknumber
         EXTERNALACCOUNTNR = lv_externalaccountnr
         FORWARDNUMBER = lv_forwardnumber
         SENDER = lv_sender
         PROCESS_EXTENSION = lv_process_extension
         TESTRUN = lv_testrun
    IMPORTING
         ACCOUNTIDENTIFICATION = lv_accountidentification
         FORWDNUMBER = lv_forwdnumber
         STATUS = lv_status
    TABLES
         EXTENSIONIN = lt_extensionin
         EXTENSIONOUT = lt_extensionout
         RECEIVER = lt_receiver
         FORWDNOTE = lt_forwdnote
         RETURN = lt_return
. " BAPI_BKK_FORWD_ORDER_CREATE




ABAP code using 7.40 inline data declarations to call FM BAPI_BKK_FORWD_ORDER_CREATE

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

"SELECT single BANKAREA FROM BAPI_IBKK_ACCNT_IDENTIF INTO @DATA(ld_bankarea).
 
 
 
"SELECT single FORWARDNUMBER FROM BAPI_IBKK_FORWD_HEADER INTO @DATA(ld_forwdnumber).
 
 
"SELECT single BANK_COUNTRY_KEY FROM BAPI_IBKK_ACCNT_IDENTIF INTO @DATA(ld_bank_country_key).
 
"SELECT single STATUS FROM BAPI_IBKK_FORWD_HEADER INTO @DATA(ld_status).
 
 
"SELECT single COUNTRY_ISO FROM BAPI_IBKK_ACCNT_IDENTIF INTO @DATA(ld_bank_country_key_iso).
 
 
"SELECT single BANKNUMBER FROM BAPI_IBKK_ACCNT_IDENTIF INTO @DATA(ld_banknumber).
 
 
"SELECT single EXTERNALACCOUNTNR FROM BAPI_IBKK_ACCNT_IDENTIF INTO @DATA(ld_externalaccountnr).
 
"SELECT single FORWARDNUMBER FROM BAPI_IBKK_FORWD_HEADER INTO @DATA(ld_forwardnumber).
 
 
"SELECT single PROCESS_EXTENSION FROM BAPI_IBKK_ACCNT_COMM_PARAM INTO @DATA(ld_process_extension).
 
"SELECT single TESTRUN FROM BAPI_IBKK_ACCNT_COMM_PARAM INTO @DATA(ld_testrun).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!