SAP /SAPSRM/SYNC_PAYMTERMS_MAP2SRM Function Module for Mapping of Payment Terms from ERP to SRM
/SAPSRM/SYNC_PAYMTERMS_MAP2SRM is a standard /sapsrm/sync paymterms map2srm SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Mapping of Payment Terms from ERP to SRM 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 /sapsrm/sync paymterms map2srm FM, simply by entering the name /SAPSRM/SYNC_PAYMTERMS_MAP2SRM into the relevant SAP transaction such as SE37 or SE38.
Function Group: /SAPSRM/SYNC_PAYMTERMS
Program Name: /SAPSRM/SAPLSYNC_PAYMTERMS
Main Program: /SAPSRM/SAPLSYNC_PAYMTERMS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function /SAPSRM/SYNC_PAYMTERMS_MAP2SRM 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 '/SAPSRM/SYNC_PAYMTERMS_MAP2SRM'"Mapping of Payment Terms from ERP to SRM.
EXPORTING
IV_RELEASE = "Release Status of SAP System
IV_LOGSYS = "Name of a Logical System
IV_MANDT = "Client ID of Current User
IV_SYSID = "Name of the SAP System
IV_USER = "User Name
TABLES
IT_CONV = "
ET_CONV = "
CT_MSGLIST = "Structure of message variables
IT_NAMETAB_SRC = "Nametab of View or Table for Nametab Comparison
IT_NAMETAB_TRG = "Nametab of View or Table for Nametab Comparison
IMPORTING Parameters details for /SAPSRM/SYNC_PAYMTERMS_MAP2SRM
IV_RELEASE - Release Status of SAP System
Data type: SYSAPRLOptional: No
Call by Reference: No ( called with pass by value option)
IV_LOGSYS - Name of a Logical System
Data type: SCDTLOGSYSOptional: No
Call by Reference: No ( called with pass by value option)
IV_MANDT - Client ID of Current User
Data type: SYMANDTOptional: No
Call by Reference: No ( called with pass by value option)
IV_SYSID - Name of the SAP System
Data type: SYSYSIDOptional: No
Call by Reference: No ( called with pass by value option)
IV_USER - User Name
Data type: SYUNAMEOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for /SAPSRM/SYNC_PAYMTERMS_MAP2SRM
IT_CONV -
Data type: /SAPSRM/S_SCDTCNVFLDOptional: No
Call by Reference: Yes
ET_CONV -
Data type: /SAPSRM/S_SCDTCNVFLDOptional: No
Call by Reference: Yes
CT_MSGLIST - Structure of message variables
Data type: SYMSGOptional: No
Call by Reference: Yes
IT_NAMETAB_SRC - Nametab of View or Table for Nametab Comparison
Data type: NTAB_CMPOptional: No
Call by Reference: Yes
IT_NAMETAB_TRG - Nametab of View or Table for Nametab Comparison
Data type: NTAB_CMPOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for /SAPSRM/SYNC_PAYMTERMS_MAP2SRM 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: | ||||
| lt_it_conv | TYPE STANDARD TABLE OF /SAPSRM/S_SCDTCNVFLD, " | |||
| lv_iv_release | TYPE SYSAPRL, " | |||
| lt_et_conv | TYPE STANDARD TABLE OF /SAPSRM/S_SCDTCNVFLD, " | |||
| lv_iv_logsys | TYPE SCDTLOGSYS, " | |||
| lv_iv_mandt | TYPE SYMANDT, " | |||
| lt_ct_msglist | TYPE STANDARD TABLE OF SYMSG, " | |||
| lv_iv_sysid | TYPE SYSYSID, " | |||
| lt_it_nametab_src | TYPE STANDARD TABLE OF NTAB_CMP, " | |||
| lv_iv_user | TYPE SYUNAME, " | |||
| lt_it_nametab_trg | TYPE STANDARD TABLE OF NTAB_CMP. " |
|   CALL FUNCTION '/SAPSRM/SYNC_PAYMTERMS_MAP2SRM' "Mapping of Payment Terms from ERP to SRM |
| EXPORTING | ||
| IV_RELEASE | = lv_iv_release | |
| IV_LOGSYS | = lv_iv_logsys | |
| IV_MANDT | = lv_iv_mandt | |
| IV_SYSID | = lv_iv_sysid | |
| IV_USER | = lv_iv_user | |
| TABLES | ||
| IT_CONV | = lt_it_conv | |
| ET_CONV | = lt_et_conv | |
| CT_MSGLIST | = lt_ct_msglist | |
| IT_NAMETAB_SRC | = lt_it_nametab_src | |
| IT_NAMETAB_TRG | = lt_it_nametab_trg | |
| . " /SAPSRM/SYNC_PAYMTERMS_MAP2SRM | ||
ABAP code using 7.40 inline data declarations to call FM /SAPSRM/SYNC_PAYMTERMS_MAP2SRM
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.Search for further information about these or an SAP related objects