FILL_ND_STRING 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 FILL_ND_STRING into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
CCAD
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'FILL_ND_STRING' "Append a field to the end of a string without break character
EXPORTING
conve = " tcit-conve Conversion exit
conve = " tcit-conve Conversion exit
dblen = " tcid-dblen Data base field length
dblen = " tcid-dblen Data base field length
dtype = " tcit-dtype Data type
dtype = " tcit-dtype Data type
field = " Field to be appended
field = " Field to be appended
fldln = " tcid-fldln Length defined by the user in tabl
fldln = " tcid-fldln Length defined by the user in table TCID
locat = " End of the used part of the string
locat = " End of the used part of the string
strng = " String
strng = " String
IMPORTING
rloct = " New last position of the used stri
rloct = " New last position of the used string part
rstrg = " Resulting string
rstrg = " Resulting string
. " FILL_ND_STRING
The ABAP code below is a full code listing to execute function module FILL_ND_STRING 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).
| ld_rloct | TYPE STRING , |
| ld_rloct | TYPE STRING , |
| ld_rstrg | TYPE STRING , |
| ld_rstrg | TYPE STRING . |
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_rloct | TYPE STRING , |
| ld_rloct | TYPE STRING , |
| ld_conve | TYPE TCIT-CONVE , |
| ld_conve | TYPE TCIT-CONVE , |
| ld_rstrg | TYPE STRING , |
| ld_rstrg | TYPE STRING , |
| ld_dblen | TYPE TCID-DBLEN , |
| ld_dblen | TYPE TCID-DBLEN , |
| ld_dtype | TYPE TCIT-DTYPE , |
| ld_dtype | TYPE TCIT-DTYPE , |
| ld_field | TYPE STRING , |
| ld_field | TYPE STRING , |
| ld_fldln | TYPE TCID-FLDLN , |
| ld_fldln | TYPE TCID-FLDLN , |
| ld_locat | TYPE STRING , |
| ld_locat | TYPE STRING , |
| ld_strng | TYPE STRING , |
| ld_strng | TYPE STRING . |
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 FILL_ND_STRING or its description.