SAP Function Modules

BAPI_JBD_POS_VC_GET_LIST SAP Function module - Position Change: Get List ( BAPI Layer )







BAPI_JBD_POS_VC_GET_LIST is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name BAPI_JBD_POS_VC_GET_LIST into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: JBD_POS_BAPI
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM BAPI_JBD_POS_VC_GET_LIST - BAPI JBD POS VC GET LIST





CALL FUNCTION 'BAPI_JBD_POS_VC_GET_LIST' "Position Change: Get List ( BAPI Layer )
* EXPORTING
*   max_rows =                  " bapi_jbd_str_max_rows  Structure with Maximum Number of Rows for Set of Hits
*   processextension =          " bapiflag      Flag
  IMPORTING
    overflow_flag =             " bapi_jbd_str_overflow_flag  Structure with Indicator Showing whether Max. No. of Trans is Exceeded
* TABLES
*   external_number =           " bapi_jbd_str_rbaendext_sel  Selection for External Number of Position Change
*   position_change_category =   " bapi_jbd_str_sbaentyp_sel  Selection for Categories of Position Change
*   source_comp_code =          " bapi_jbd_str_comp_code_sel  Selection for Company Code
*   target_comp_code =          " bapi_jbd_str_comp_code_sel  Selection for Company Code
*   source_security_account =   " bapi_jbd_str_sec_acc_sel  Selection for Exchange
*   target_security_account =   " bapi_jbd_str_sec_acc_sel  Selection for Exchange
*   source_security_id =        " bapi_jbd_str_sec_id_sel  Selection Structure for Security ID Number
*   target_security_id =        " bapi_jbd_str_sec_id_sel  Selection Structure for Security ID Number
*   position_change_date =      " bapi_jbd_str_pos_chgdat_sel  Selection for Date of Position Change
*   entry_date =                " bapi_jbd_str_dcrdat_sel  Selection for 'Created on' Date
*   reversal_indicator =        " bapi_jbd_str_reversal_sel  Selection for Reversal Indicator
*   position_change_list =      " bapi_jbd_str_pos_vc_list  Row from GetList of Position Change
*   extensionin =               " bapiparex     Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
*   extensionout =              " bapiparex     Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
*   return =                    " bapiret2      Return Parameters
    .  "  BAPI_JBD_POS_VC_GET_LIST

ABAP code example for Function Module BAPI_JBD_POS_VC_GET_LIST





The ABAP code below is a full code listing to execute function module BAPI_JBD_POS_VC_GET_LIST including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_overflow_flag  TYPE BAPI_JBD_STR_OVERFLOW_FLAG ,
it_external_number  TYPE STANDARD TABLE OF BAPI_JBD_STR_RBAENDEXT_SEL,"TABLES PARAM
wa_external_number  LIKE LINE OF it_external_number ,
it_position_change_category  TYPE STANDARD TABLE OF BAPI_JBD_STR_SBAENTYP_SEL,"TABLES PARAM
wa_position_change_category  LIKE LINE OF it_position_change_category ,
it_source_comp_code  TYPE STANDARD TABLE OF BAPI_JBD_STR_COMP_CODE_SEL,"TABLES PARAM
wa_source_comp_code  LIKE LINE OF it_source_comp_code ,
it_target_comp_code  TYPE STANDARD TABLE OF BAPI_JBD_STR_COMP_CODE_SEL,"TABLES PARAM
wa_target_comp_code  LIKE LINE OF it_target_comp_code ,
it_source_security_account  TYPE STANDARD TABLE OF BAPI_JBD_STR_SEC_ACC_SEL,"TABLES PARAM
wa_source_security_account  LIKE LINE OF it_source_security_account ,
it_target_security_account  TYPE STANDARD TABLE OF BAPI_JBD_STR_SEC_ACC_SEL,"TABLES PARAM
wa_target_security_account  LIKE LINE OF it_target_security_account ,
it_source_security_id  TYPE STANDARD TABLE OF BAPI_JBD_STR_SEC_ID_SEL,"TABLES PARAM
wa_source_security_id  LIKE LINE OF it_source_security_id ,
it_target_security_id  TYPE STANDARD TABLE OF BAPI_JBD_STR_SEC_ID_SEL,"TABLES PARAM
wa_target_security_id  LIKE LINE OF it_target_security_id ,
it_position_change_date  TYPE STANDARD TABLE OF BAPI_JBD_STR_POS_CHGDAT_SEL,"TABLES PARAM
wa_position_change_date  LIKE LINE OF it_position_change_date ,
it_entry_date  TYPE STANDARD TABLE OF BAPI_JBD_STR_DCRDAT_SEL,"TABLES PARAM
wa_entry_date  LIKE LINE OF it_entry_date ,
it_reversal_indicator  TYPE STANDARD TABLE OF BAPI_JBD_STR_REVERSAL_SEL,"TABLES PARAM
wa_reversal_indicator  LIKE LINE OF it_reversal_indicator ,
it_position_change_list  TYPE STANDARD TABLE OF BAPI_JBD_STR_POS_VC_LIST,"TABLES PARAM
wa_position_change_list  LIKE LINE OF it_position_change_list ,
it_extensionin  TYPE STANDARD TABLE OF BAPIPAREX,"TABLES PARAM
wa_extensionin  LIKE LINE OF it_extensionin ,
it_extensionout  TYPE STANDARD TABLE OF BAPIPAREX,"TABLES PARAM
wa_extensionout  LIKE LINE OF it_extensionout ,
it_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_return  LIKE LINE OF it_return .

DATA(ld_max_rows) = 'Check type of data required'.
DATA(ld_processextension) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_external_number to it_external_number.

"populate fields of struture and append to itab
append wa_position_change_category to it_position_change_category.

"populate fields of struture and append to itab
append wa_source_comp_code to it_source_comp_code.

"populate fields of struture and append to itab
append wa_target_comp_code to it_target_comp_code.

"populate fields of struture and append to itab
append wa_source_security_account to it_source_security_account.

"populate fields of struture and append to itab
append wa_target_security_account to it_target_security_account.

"populate fields of struture and append to itab
append wa_source_security_id to it_source_security_id.

"populate fields of struture and append to itab
append wa_target_security_id to it_target_security_id.

"populate fields of struture and append to itab
append wa_position_change_date to it_position_change_date.

"populate fields of struture and append to itab
append wa_entry_date to it_entry_date.

"populate fields of struture and append to itab
append wa_reversal_indicator to it_reversal_indicator.

"populate fields of struture and append to itab
append wa_position_change_list to it_position_change_list.

"populate fields of struture and append to itab
append wa_extensionin to it_extensionin.

"populate fields of struture and append to itab
append wa_extensionout to it_extensionout.

"populate fields of struture and append to itab
append wa_return to it_return. . CALL FUNCTION 'BAPI_JBD_POS_VC_GET_LIST' * EXPORTING * max_rows = ld_max_rows * processextension = ld_processextension IMPORTING overflow_flag = ld_overflow_flag * TABLES * external_number = it_external_number * position_change_category = it_position_change_category * source_comp_code = it_source_comp_code * target_comp_code = it_target_comp_code * source_security_account = it_source_security_account * target_security_account = it_target_security_account * source_security_id = it_source_security_id * target_security_id = it_target_security_id * position_change_date = it_position_change_date * entry_date = it_entry_date * reversal_indicator = it_reversal_indicator * position_change_list = it_position_change_list * extensionin = it_extensionin * extensionout = it_extensionout * return = it_return . " BAPI_JBD_POS_VC_GET_LIST
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_overflow_flag  TYPE BAPI_JBD_STR_OVERFLOW_FLAG ,
ld_max_rows  TYPE BAPI_JBD_STR_MAX_ROWS ,
it_external_number  TYPE STANDARD TABLE OF BAPI_JBD_STR_RBAENDEXT_SEL ,
wa_external_number  LIKE LINE OF it_external_number,
ld_processextension  TYPE BAPIFLAG ,
it_position_change_category  TYPE STANDARD TABLE OF BAPI_JBD_STR_SBAENTYP_SEL ,
wa_position_change_category  LIKE LINE OF it_position_change_category,
it_source_comp_code  TYPE STANDARD TABLE OF BAPI_JBD_STR_COMP_CODE_SEL ,
wa_source_comp_code  LIKE LINE OF it_source_comp_code,
it_target_comp_code  TYPE STANDARD TABLE OF BAPI_JBD_STR_COMP_CODE_SEL ,
wa_target_comp_code  LIKE LINE OF it_target_comp_code,
it_source_security_account  TYPE STANDARD TABLE OF BAPI_JBD_STR_SEC_ACC_SEL ,
wa_source_security_account  LIKE LINE OF it_source_security_account,
it_target_security_account  TYPE STANDARD TABLE OF BAPI_JBD_STR_SEC_ACC_SEL ,
wa_target_security_account  LIKE LINE OF it_target_security_account,
it_source_security_id  TYPE STANDARD TABLE OF BAPI_JBD_STR_SEC_ID_SEL ,
wa_source_security_id  LIKE LINE OF it_source_security_id,
it_target_security_id  TYPE STANDARD TABLE OF BAPI_JBD_STR_SEC_ID_SEL ,
wa_target_security_id  LIKE LINE OF it_target_security_id,
it_position_change_date  TYPE STANDARD TABLE OF BAPI_JBD_STR_POS_CHGDAT_SEL ,
wa_position_change_date  LIKE LINE OF it_position_change_date,
it_entry_date  TYPE STANDARD TABLE OF BAPI_JBD_STR_DCRDAT_SEL ,
wa_entry_date  LIKE LINE OF it_entry_date,
it_reversal_indicator  TYPE STANDARD TABLE OF BAPI_JBD_STR_REVERSAL_SEL ,
wa_reversal_indicator  LIKE LINE OF it_reversal_indicator,
it_position_change_list  TYPE STANDARD TABLE OF BAPI_JBD_STR_POS_VC_LIST ,
wa_position_change_list  LIKE LINE OF it_position_change_list,
it_extensionin  TYPE STANDARD TABLE OF BAPIPAREX ,
wa_extensionin  LIKE LINE OF it_extensionin,
it_extensionout  TYPE STANDARD TABLE OF BAPIPAREX ,
wa_extensionout  LIKE LINE OF it_extensionout,
it_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_return  LIKE LINE OF it_return.

ld_max_rows = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_external_number to it_external_number.
ld_processextension = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_position_change_category to it_position_change_category.

"populate fields of struture and append to itab
append wa_source_comp_code to it_source_comp_code.

"populate fields of struture and append to itab
append wa_target_comp_code to it_target_comp_code.

"populate fields of struture and append to itab
append wa_source_security_account to it_source_security_account.

"populate fields of struture and append to itab
append wa_target_security_account to it_target_security_account.

"populate fields of struture and append to itab
append wa_source_security_id to it_source_security_id.

"populate fields of struture and append to itab
append wa_target_security_id to it_target_security_id.

"populate fields of struture and append to itab
append wa_position_change_date to it_position_change_date.

"populate fields of struture and append to itab
append wa_entry_date to it_entry_date.

"populate fields of struture and append to itab
append wa_reversal_indicator to it_reversal_indicator.

"populate fields of struture and append to itab
append wa_position_change_list to it_position_change_list.

"populate fields of struture and append to itab
append wa_extensionin to it_extensionin.

"populate fields of struture and append to itab
append wa_extensionout to it_extensionout.

"populate fields of struture and append to itab
append wa_return to it_return.

SAP Documentation for FM BAPI_JBD_POS_VC_GET_LIST

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BAPI_JBD_POS_VC_GET_LIST or its description.