LOGFILE_APPEND 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 LOGFILE_APPEND into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
FVP4
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'LOGFILE_APPEND' "
EXPORTING
icode = " sy-tabix
* ilevel = '1' " tdp2-nprot
* ilines_after = 0 " sy-linno
* ilines_before = 0 " sy-linno
* inewpage = ' ' "
* iposition = 1 " sy-colno
* itext = ' ' "
* p1 = ' ' "
* p10 = ' ' "
* p11 = ' ' "
* p12 = ' ' "
* p13 = ' ' "
* p14 = ' ' "
* p15 = ' ' "
* p16 = ' ' "
* p17 = ' ' "
* p18 = ' ' "
* p19 = ' ' "
* p2 = ' ' "
* p20 = ' ' "
* p3 = ' ' "
* p4 = ' ' "
* p5 = ' ' "
* p6 = ' ' "
* p7 = ' ' "
* p8 = ' ' "
* p9 = ' ' "
. " LOGFILE_APPEND
The ABAP code below is a full code listing to execute function module LOGFILE_APPEND 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_icode) = '123 '.
SELECT single NPROT
FROM TDP2
INTO @DATA(ld_ilevel).
DATA(ld_ilines_after) = '123 '.
DATA(ld_ilines_before) = '123 '.
DATA(ld_inewpage) = 'some text here'.
DATA(ld_iposition) = '123 '.
DATA(ld_itext) = 'some text here'.
DATA(ld_p1) = 'some text here'.
DATA(ld_p10) = 'some text here'.
DATA(ld_p11) = 'some text here'.
DATA(ld_p12) = 'some text here'.
DATA(ld_p13) = 'some text here'.
DATA(ld_p14) = 'some text here'.
DATA(ld_p15) = 'some text here'.
DATA(ld_p16) = 'some text here'.
DATA(ld_p17) = 'some text here'.
DATA(ld_p18) = 'some text here'.
DATA(ld_p19) = 'some text here'.
DATA(ld_p2) = 'some text here'.
DATA(ld_p20) = 'some text here'.
DATA(ld_p3) = 'some text here'.
DATA(ld_p4) = 'some text here'.
DATA(ld_p5) = 'some text here'.
DATA(ld_p6) = 'some text here'.
DATA(ld_p7) = 'some text here'.
DATA(ld_p8) = 'some text here'.
DATA(ld_p9) = 'some text here'. . CALL FUNCTION 'LOGFILE_APPEND' EXPORTING icode = ld_icode * ilevel = ld_ilevel * ilines_after = ld_ilines_after * ilines_before = ld_ilines_before * inewpage = ld_inewpage * iposition = ld_iposition * itext = ld_itext * p1 = ld_p1 * p10 = ld_p10 * p11 = ld_p11 * p12 = ld_p12 * p13 = ld_p13 * p14 = ld_p14 * p15 = ld_p15 * p16 = ld_p16 * p17 = ld_p17 * p18 = ld_p18 * p19 = ld_p19 * p2 = ld_p2 * p20 = ld_p20 * p3 = ld_p3 * p4 = ld_p4 * p5 = ld_p5 * p6 = ld_p6 * p7 = ld_p7 * p8 = ld_p8 * p9 = ld_p9 . " LOGFILE_APPEND
IF SY-SUBRC EQ 0. "All OK ENDIF.
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_icode | TYPE SY-TABIX , |
| ld_ilevel | TYPE TDP2-NPROT , |
| ld_ilines_after | TYPE SY-LINNO , |
| ld_ilines_before | TYPE SY-LINNO , |
| ld_inewpage | TYPE STRING , |
| ld_iposition | TYPE SY-COLNO , |
| ld_itext | TYPE STRING , |
| ld_p1 | TYPE STRING , |
| ld_p10 | TYPE STRING , |
| ld_p11 | TYPE STRING , |
| ld_p12 | TYPE STRING , |
| ld_p13 | TYPE STRING , |
| ld_p14 | TYPE STRING , |
| ld_p15 | TYPE STRING , |
| ld_p16 | TYPE STRING , |
| ld_p17 | TYPE STRING , |
| ld_p18 | TYPE STRING , |
| ld_p19 | TYPE STRING , |
| ld_p2 | TYPE STRING , |
| ld_p20 | TYPE STRING , |
| ld_p3 | TYPE STRING , |
| ld_p4 | TYPE STRING , |
| ld_p5 | TYPE STRING , |
| ld_p6 | TYPE STRING , |
| ld_p7 | TYPE STRING , |
| ld_p8 | TYPE STRING , |
| ld_p9 | 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 LOGFILE_APPEND or its description.
LOGFILE_APPEND - LOG2TRM_UPD_MATERIAL_STOCK_EXP - Update stock exposure from batch characteristic change LOG2TRM_TVAK_SH - Example for a search help exit LOG2TRM_STATUS_UPD_EXPOSURE - Creates raw exposure for SO/PO via bgRFC LOG2TRM_SD_CONTRACT_EXPOSURE - Determine SD Contract RDP exposure via bgRFC LOG2TRM_READ_CLASS_DESCRIPTION - Read description of a class