SAP J_8AS_CONVERT_AND_SAVE_OLD Function Module for
J_8AS_CONVERT_AND_SAVE_OLD is a standard j 8as convert and save old SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for j 8as convert and save old FM, simply by entering the name J_8AS_CONVERT_AND_SAVE_OLD into the relevant SAP transaction such as SE37 or SE38.
Function Group: J8AS
Program Name: SAPLJ8AS
Main Program: SAPLJ8AS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function J_8AS_CONVERT_AND_SAVE_OLD pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'J_8AS_CONVERT_AND_SAVE_OLD'".
EXPORTING
FRONTENDFILE = "
DOC_TYPE = "
ARCHIVE_ID = "
* CONVERTER = "
* USEMANUALLYPRINTEDBMP = "
IMPORTING
ARC_DOC_ID = "
EXCEPTIONS
ERROR_CREATE_OLE_OBJECT = 1 ERROR_CALL_OLE_METHOD = 2 ERROR_GET_PROPERTY_OLE_OBJECT = 3 USER_CANCEL_CALL_METHOD = 4 INTERNAL_ERROR_ODMA_INTERFACE = 5
IMPORTING Parameters details for J_8AS_CONVERT_AND_SAVE_OLD
FRONTENDFILE -
Data type: J_8ASFILEN-FILE_NAMEOptional: No
Call by Reference: No ( called with pass by value option)
DOC_TYPE -
Data type: TOADV-DOC_TYPEOptional: No
Call by Reference: No ( called with pass by value option)
ARCHIVE_ID -
Data type: TOAOM-ARCHIV_IDOptional: No
Call by Reference: No ( called with pass by value option)
CONVERTER -
Data type: J_8ASCONVE-CONVERTEROptional: Yes
Call by Reference: No ( called with pass by value option)
USEMANUALLYPRINTEDBMP -
Data type: J_8ASCONVE-USEMANPRINOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for J_8AS_CONVERT_AND_SAVE_OLD
ARC_DOC_ID -
Data type: TOAV0-ARC_DOC_IDOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR_CREATE_OLE_OBJECT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR_CALL_OLE_METHOD -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR_GET_PROPERTY_OLE_OBJECT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
USER_CANCEL_CALL_METHOD -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERNAL_ERROR_ODMA_INTERFACE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for J_8AS_CONVERT_AND_SAVE_OLD Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_arc_doc_id | TYPE TOAV0-ARC_DOC_ID, " | |||
| lv_frontendfile | TYPE J_8ASFILEN-FILE_NAME, " | |||
| lv_error_create_ole_object | TYPE J_8ASFILEN, " | |||
| lv_doc_type | TYPE TOADV-DOC_TYPE, " | |||
| lv_error_call_ole_method | TYPE TOADV, " | |||
| lv_archive_id | TYPE TOAOM-ARCHIV_ID, " | |||
| lv_error_get_property_ole_object | TYPE TOAOM, " | |||
| lv_converter | TYPE J_8ASCONVE-CONVERTER, " | |||
| lv_user_cancel_call_method | TYPE J_8ASCONVE, " | |||
| lv_usemanuallyprintedbmp | TYPE J_8ASCONVE-USEMANPRIN, " | |||
| lv_internal_error_odma_interface | TYPE J_8ASCONVE. " |
|   CALL FUNCTION 'J_8AS_CONVERT_AND_SAVE_OLD' " |
| EXPORTING | ||
| FRONTENDFILE | = lv_frontendfile | |
| DOC_TYPE | = lv_doc_type | |
| ARCHIVE_ID | = lv_archive_id | |
| CONVERTER | = lv_converter | |
| USEMANUALLYPRINTEDBMP | = lv_usemanuallyprintedbmp | |
| IMPORTING | ||
| ARC_DOC_ID | = lv_arc_doc_id | |
| EXCEPTIONS | ||
| ERROR_CREATE_OLE_OBJECT = 1 | ||
| ERROR_CALL_OLE_METHOD = 2 | ||
| ERROR_GET_PROPERTY_OLE_OBJECT = 3 | ||
| USER_CANCEL_CALL_METHOD = 4 | ||
| INTERNAL_ERROR_ODMA_INTERFACE = 5 | ||
| . " J_8AS_CONVERT_AND_SAVE_OLD | ||
ABAP code using 7.40 inline data declarations to call FM J_8AS_CONVERT_AND_SAVE_OLD
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single ARC_DOC_ID FROM TOAV0 INTO @DATA(ld_arc_doc_id). | ||||
| "SELECT single FILE_NAME FROM J_8ASFILEN INTO @DATA(ld_frontendfile). | ||||
| "SELECT single DOC_TYPE FROM TOADV INTO @DATA(ld_doc_type). | ||||
| "SELECT single ARCHIV_ID FROM TOAOM INTO @DATA(ld_archive_id). | ||||
| "SELECT single CONVERTER FROM J_8ASCONVE INTO @DATA(ld_converter). | ||||
| "SELECT single USEMANPRIN FROM J_8ASCONVE INTO @DATA(ld_usemanuallyprintedbmp). | ||||
Search for further information about these or an SAP related objects