SAP Function BKK_GENERATE_FORM_PACKAGE_SEL - Generate Subprogram for Database Selection

Parameter Reference Type Length Default Optional Text
I_CNT_PTRFIELDS I I 4 Number of Pointer Fields (See Long Text)
I_FORMNAME 0 'get_next_package' X Subprogram Name
I_PROGNAME SYST-REPID C 40 X
I_TABNAME DCOBJDEF-NAME C 30 Table Name
I_X_AT_RUNTIME BOOLE-BOOLE C 1 'X' X

Parameter Reference Type Length Text
E_PROGNAME 0 Main Program for Generated Subprogram

Exception Text
GENERATION_ERROR Error in Generation
MISSING_REPORTNAME

Functionality
The subprogram is generated at runtime. This programenables a selection to be made by package in the table transferred with.
The interface of the subprogram is as follows:
form
tables c_t_data structure
i_t_where structure rsdswhere
using u_package_size type i
u_xreset_pointer like boole-boole
changing c_rc like sy-subrc.

Description
A logical pointer is used for the dataset, which saves the informationon the entry up to which data was already selected. The pointercomprises the first key fields (without client).