SAP Function Modules

CNV_21510_DEFAULT_SEQNUM SAP Function module - Get default sequence number for customer tables to be processed







CNV_21510_DEFAULT_SEQNUM 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 CNV_21510_DEFAULT_SEQNUM into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: CNV_21510_UTIL
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM CNV_21510_DEFAULT_SEQNUM - CNV 21510 DEFAULT SEQNUM





CALL FUNCTION 'CNV_21510_DEFAULT_SEQNUM' "Get default sequence number for customer tables to be processed
  EXPORTING
*   pd_packid =                 " cnvpack-packid  Conversion: Conversion package number
    pd_use_cwb_tables = SPACE   " c
  IMPORTING
    pd_seqnum =                 " cnv_indx_tables-seqnum  Conversion: Sequence Number
* TABLES
*   pt_table =                  " cnv_indx_tables  Internal table with all standard HR tables from the package
*   pt_cwb_table =              " cnvtables     Internal table with all standard CWB tables from the package
  EXCEPTIONS
    INVALID_ATTRIBUTES = 1      "               Wrong parameters combination
    .  "  CNV_21510_DEFAULT_SEQNUM

ABAP code example for Function Module CNV_21510_DEFAULT_SEQNUM





The ABAP code below is a full code listing to execute function module CNV_21510_DEFAULT_SEQNUM 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_pd_seqnum  TYPE CNV_INDX_TABLES-SEQNUM ,
it_pt_table  TYPE STANDARD TABLE OF CNV_INDX_TABLES,"TABLES PARAM
wa_pt_table  LIKE LINE OF it_pt_table ,
it_pt_cwb_table  TYPE STANDARD TABLE OF CNVTABLES,"TABLES PARAM
wa_pt_cwb_table  LIKE LINE OF it_pt_cwb_table .


SELECT single PACKID
FROM CNVPACK
INTO @DATA(ld_pd_packid).

DATA(ld_pd_use_cwb_tables) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_pt_table to it_pt_table.

"populate fields of struture and append to itab
append wa_pt_cwb_table to it_pt_cwb_table. . CALL FUNCTION 'CNV_21510_DEFAULT_SEQNUM' EXPORTING * pd_packid = ld_pd_packid pd_use_cwb_tables = ld_pd_use_cwb_tables IMPORTING pd_seqnum = ld_pd_seqnum * TABLES * pt_table = it_pt_table * pt_cwb_table = it_pt_cwb_table EXCEPTIONS INVALID_ATTRIBUTES = 1 . " CNV_21510_DEFAULT_SEQNUM
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here 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_pd_seqnum  TYPE CNV_INDX_TABLES-SEQNUM ,
ld_pd_packid  TYPE CNVPACK-PACKID ,
it_pt_table  TYPE STANDARD TABLE OF CNV_INDX_TABLES ,
wa_pt_table  LIKE LINE OF it_pt_table,
ld_pd_use_cwb_tables  TYPE C ,
it_pt_cwb_table  TYPE STANDARD TABLE OF CNVTABLES ,
wa_pt_cwb_table  LIKE LINE OF it_pt_cwb_table.


SELECT single PACKID
FROM CNVPACK
INTO ld_pd_packid.


"populate fields of struture and append to itab
append wa_pt_table to it_pt_table.
ld_pd_use_cwb_tables = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_pt_cwb_table to it_pt_cwb_table.

SAP Documentation for FM CNV_21510_DEFAULT_SEQNUM


Determines the default sequential number for RELID component for given package. ...See here for full SAP fm documentation



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 CNV_21510_DEFAULT_SEQNUM or its description.