SAP CONVERT_CAM_TO_MASTER Function Module for NOTRANSL: Konvertiert die ZAV-Adressdaten in Stammobjekt-Struktur (z.B.KNA









CONVERT_CAM_TO_MASTER is a standard convert cam to master SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Konvertiert die ZAV-Adressdaten in Stammobjekt-Struktur (z.B.KNA processing and below is the pattern details for this FM, 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 convert cam to master FM, simply by entering the name CONVERT_CAM_TO_MASTER into the relevant SAP transaction such as SE37 or SE38.

Function Group: V04D
Program Name: SAPLV04D
Main Program:
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CONVERT_CAM_TO_MASTER 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 'CONVERT_CAM_TO_MASTER'"NOTRANSL: Konvertiert die ZAV-Adressdaten in Stammobjekt-Struktur (z.B.KNA
EXPORTING
ADDRESS = "
ADDR_TYPE = "
MASTER_TAB = "

CHANGING
CONVERTED = "

EXCEPTIONS
MASTER_TAB_NOT_FOUND = 1 INVALID_ADDRESS_TYPE = 2 NO_CONVERSION = 3
.



IMPORTING Parameters details for CONVERT_CAM_TO_MASTER

ADDRESS -

Data type:
Optional: No
Call by Reference: Yes

ADDR_TYPE -

Data type: SZAD_FIELD-ADDR_TYPE
Optional: No
Call by Reference: No ( called with pass by value option)

MASTER_TAB -

Data type: TCONV_ADR-MASTER_TAB
Optional: No
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for CONVERT_CAM_TO_MASTER

CONVERTED -

Data type:
Optional: No
Call by Reference: Yes

EXCEPTIONS details

MASTER_TAB_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INVALID_ADDRESS_TYPE - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_CONVERSION - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for CONVERT_CAM_TO_MASTER 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_address  TYPE STRING, "   
lv_converted  TYPE STRING, "   
lv_master_tab_not_found  TYPE STRING, "   
lv_addr_type  TYPE SZAD_FIELD-ADDR_TYPE, "   
lv_invalid_address_type  TYPE SZAD_FIELD, "   
lv_master_tab  TYPE TCONV_ADR-MASTER_TAB, "   
lv_no_conversion  TYPE TCONV_ADR. "   

  CALL FUNCTION 'CONVERT_CAM_TO_MASTER'  "NOTRANSL: Konvertiert die ZAV-Adressdaten in Stammobjekt-Struktur (z.B.KNA
    EXPORTING
         ADDRESS = lv_address
         ADDR_TYPE = lv_addr_type
         MASTER_TAB = lv_master_tab
    CHANGING
         CONVERTED = lv_converted
    EXCEPTIONS
        MASTER_TAB_NOT_FOUND = 1
        INVALID_ADDRESS_TYPE = 2
        NO_CONVERSION = 3
. " CONVERT_CAM_TO_MASTER




ABAP code using 7.40 inline data declarations to call FM CONVERT_CAM_TO_MASTER

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 ADDR_TYPE FROM SZAD_FIELD INTO @DATA(ld_addr_type).
 
 
"SELECT single MASTER_TAB FROM TCONV_ADR INTO @DATA(ld_master_tab).
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!