SAP FT_SLS_PARTNER_FTRADE_PREPARE Function Module for NOTRANSL: Ges. Kontrolle: Setzen der SLS-Flags im Partnerstamm









FT_SLS_PARTNER_FTRADE_PREPARE is a standard ft sls partner ftrade prepare 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: Ges. Kontrolle: Setzen der SLS-Flags im Partnerstamm 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 ft sls partner ftrade prepare FM, simply by entering the name FT_SLS_PARTNER_FTRADE_PREPARE into the relevant SAP transaction such as SE37 or SE38.

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



Function FT_SLS_PARTNER_FTRADE_PREPARE 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 'FT_SLS_PARTNER_FTRADE_PREPARE'"NOTRANSL: Ges. Kontrolle: Setzen der SLS-Flags im Partnerstamm
EXPORTING
I_BASE_DOCUMENT = "
* I_CUSTOMER_OLD = "
* I_TMODE = "
* I_CALL_MODE = "
* I_BATCH_MODE = "
* I_DEPARTURE_COUNTRY = ' ' "Country of Departure
* I_PARTNER_NUMBER = ' ' "Partner Number
* I_DOCUMENT_NUMBER = ' ' "Document Number
* I_ADDRESS_NEW = "
* I_CUSTOMER_NEW = "

TABLES
* I_T_VBAPVB_ORD_LINE_ITEM_NEW = "
* C_T_YKNEX = "
* I_T_LIPSVB_DEL_LINE_ITEM_NEW = "
* I_T_VBPAVB_PARTNER_NEW = "
* I_T_VBPAVB_PARTNER_OLD = "
* I_T_ADRC_ADDRESS_NEW = "
* I_T_ADRC_ADDRESS_OLD = "
* I_T_SADRVB_ADDRESS_NEW = "
* I_T_SADRVB_ADDRESS_OLD = "
* C_T_XKNEX = "
.



IMPORTING Parameters details for FT_SLS_PARTNER_FTRADE_PREPARE

I_BASE_DOCUMENT -

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

I_CUSTOMER_OLD -

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

I_TMODE -

Data type: T020-AKTYP
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CALL_MODE -

Data type: SY-CALLD
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BATCH_MODE -

Data type: SY-BATCH
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DEPARTURE_COUNTRY - Country of Departure

Data type: T606A-ALAND
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PARTNER_NUMBER - Partner Number

Data type: KNA1-KUNNR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DOCUMENT_NUMBER - Document Number

Data type: VBAK-VBELN
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ADDRESS_NEW -

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

I_CUSTOMER_NEW -

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

TABLES Parameters details for FT_SLS_PARTNER_FTRADE_PREPARE

I_T_VBAPVB_ORD_LINE_ITEM_NEW -

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

C_T_YKNEX -

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

I_T_LIPSVB_DEL_LINE_ITEM_NEW -

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

I_T_VBPAVB_PARTNER_NEW -

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

I_T_VBPAVB_PARTNER_OLD -

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

I_T_ADRC_ADDRESS_NEW -

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

I_T_ADRC_ADDRESS_OLD -

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

I_T_SADRVB_ADDRESS_NEW -

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

I_T_SADRVB_ADDRESS_OLD -

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

C_T_XKNEX -

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

Copy and paste ABAP code example for FT_SLS_PARTNER_FTRADE_PREPARE 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_i_base_document  TYPE FSLSI-AHBAS, "   
lt_i_t_vbapvb_ord_line_item_new  TYPE STANDARD TABLE OF VBAPVB, "   
lt_c_t_yknex  TYPE STANDARD TABLE OF FKNEX, "   
lv_i_customer_old  TYPE KNA1, "   
lv_i_tmode  TYPE T020-AKTYP, "   
lt_i_t_lipsvb_del_line_item_new  TYPE STANDARD TABLE OF LIPSVB, "   
lv_i_call_mode  TYPE SY-CALLD, "   
lt_i_t_vbpavb_partner_new  TYPE STANDARD TABLE OF VBPAVB, "   
lv_i_batch_mode  TYPE SY-BATCH, "   
lt_i_t_vbpavb_partner_old  TYPE STANDARD TABLE OF VBPAVB, "   
lv_i_departure_country  TYPE T606A-ALAND, "   SPACE
lt_i_t_adrc_address_new  TYPE STANDARD TABLE OF ADRC, "   
lv_i_partner_number  TYPE KNA1-KUNNR, "   SPACE
lt_i_t_adrc_address_old  TYPE STANDARD TABLE OF ADRC, "   
lv_i_document_number  TYPE VBAK-VBELN, "   SPACE
lt_i_t_sadrvb_address_new  TYPE STANDARD TABLE OF SADRVB, "   
lv_i_address_new  TYPE SZADR_ADDR1_COMPLETE, "   
lt_i_t_sadrvb_address_old  TYPE STANDARD TABLE OF SADRVB, "   
lt_c_t_xknex  TYPE STANDARD TABLE OF FKNEX, "   
lv_i_customer_new  TYPE KNA1. "   

  CALL FUNCTION 'FT_SLS_PARTNER_FTRADE_PREPARE'  "NOTRANSL: Ges. Kontrolle: Setzen der SLS-Flags im Partnerstamm
    EXPORTING
         I_BASE_DOCUMENT = lv_i_base_document
         I_CUSTOMER_OLD = lv_i_customer_old
         I_TMODE = lv_i_tmode
         I_CALL_MODE = lv_i_call_mode
         I_BATCH_MODE = lv_i_batch_mode
         I_DEPARTURE_COUNTRY = lv_i_departure_country
         I_PARTNER_NUMBER = lv_i_partner_number
         I_DOCUMENT_NUMBER = lv_i_document_number
         I_ADDRESS_NEW = lv_i_address_new
         I_CUSTOMER_NEW = lv_i_customer_new
    TABLES
         I_T_VBAPVB_ORD_LINE_ITEM_NEW = lt_i_t_vbapvb_ord_line_item_new
         C_T_YKNEX = lt_c_t_yknex
         I_T_LIPSVB_DEL_LINE_ITEM_NEW = lt_i_t_lipsvb_del_line_item_new
         I_T_VBPAVB_PARTNER_NEW = lt_i_t_vbpavb_partner_new
         I_T_VBPAVB_PARTNER_OLD = lt_i_t_vbpavb_partner_old
         I_T_ADRC_ADDRESS_NEW = lt_i_t_adrc_address_new
         I_T_ADRC_ADDRESS_OLD = lt_i_t_adrc_address_old
         I_T_SADRVB_ADDRESS_NEW = lt_i_t_sadrvb_address_new
         I_T_SADRVB_ADDRESS_OLD = lt_i_t_sadrvb_address_old
         C_T_XKNEX = lt_c_t_xknex
. " FT_SLS_PARTNER_FTRADE_PREPARE




ABAP code using 7.40 inline data declarations to call FM FT_SLS_PARTNER_FTRADE_PREPARE

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 AHBAS FROM FSLSI INTO @DATA(ld_i_base_document).
 
 
 
 
"SELECT single AKTYP FROM T020 INTO @DATA(ld_i_tmode).
 
 
"SELECT single CALLD FROM SY INTO @DATA(ld_i_call_mode).
 
 
"SELECT single BATCH FROM SY INTO @DATA(ld_i_batch_mode).
 
 
"SELECT single ALAND FROM T606A INTO @DATA(ld_i_departure_country).
DATA(ld_i_departure_country) = ' '.
 
 
"SELECT single KUNNR FROM KNA1 INTO @DATA(ld_i_partner_number).
DATA(ld_i_partner_number) = ' '.
 
 
"SELECT single VBELN FROM VBAK INTO @DATA(ld_i_document_number).
DATA(ld_i_document_number) = ' '.
 
 
 
 
 
 


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!