SAP PTRM_WEB_SALES_ORD_VMVAA Function Module for NOTRANSL: Wertehilfen für Kundenauftragsnummern über die Suchhilfe VMVAA
PTRM_WEB_SALES_ORD_VMVAA is a standard ptrm web sales ord vmvaa 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: Wertehilfen für Kundenauftragsnummern über die Suchhilfe VMVAA 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 ptrm web sales ord vmvaa FM, simply by entering the name PTRM_WEB_SALES_ORD_VMVAA into the relevant SAP transaction such as SE37 or SE38.
Function Group: PTRM_WEB_SALES_ORD_VR
Program Name: SAPLPTRM_WEB_SALES_ORD_VR
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function PTRM_WEB_SALES_ORD_VMVAA 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 'PTRM_WEB_SALES_ORD_VMVAA'"NOTRANSL: Wertehilfen für Kundenauftragsnummern über die Suchhilfe VMVAA.
EXPORTING
* I_CUSTOMER_PO_NUMBER = "Customer Purchase Order Number as Matchcode Field
* I_PURCH_DATE = "Customer Order Date
* I_TRANSACTION_GROUP = "Transaction Group
* I_SD_DOC = "Sales and Distribution Document Number
* I_ITM_NUMBER = "Item Number of the SD Document
* I_MAXROW = 50 "Maximum Number of Lines in Results List of Input Help
* I_SALESORG = "Sales Organization
* I_SOLD_TO = "Customer
* I_DISTR_CHAN = "Distribution Channel
* I_DIVISION = "Division
* I_SALES_OFF = "Sales Office
* I_SALES_GRP = "Sales Group
* I_CREATED_BY = "Name of Person Who Created Object
* I_DOC_TYPE = "Sales Document Type
IMPORTING
ET_VALUE_LIST_VMVAA = "Input Help for Order Numbers with Search Help VMVAA
ET_RETURN = "Table with BAPI Return Information
IMPORTING Parameters details for PTRM_WEB_SALES_ORD_VMVAA
I_CUSTOMER_PO_NUMBER - Customer Purchase Order Number as Matchcode Field
Data type: PTRV_WEB_SALES_ORD_VMVAA-CUSTOMER_PO_NUMBEROptional: Yes
Call by Reference: No ( called with pass by value option)
I_PURCH_DATE - Customer Order Date
Data type: PTRV_WEB_SALES_ORD_VMVAA-PURCH_DATEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TRANSACTION_GROUP - Transaction Group
Data type: PTRV_WEB_SALES_ORD_VMVAA-TRANSACTION_GROUPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_SD_DOC - Sales and Distribution Document Number
Data type: PTRV_WEB_SALES_ORD_VMVAA-SD_DOCOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ITM_NUMBER - Item Number of the SD Document
Data type: PTRV_WEB_SALES_ORD_VMVAA-ITM_NUMBEROptional: Yes
Call by Reference: No ( called with pass by value option)
I_MAXROW - Maximum Number of Lines in Results List of Input Help
Data type: PTRV_WEB_MAXROWDefault: 50
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SALESORG - Sales Organization
Data type: PTRV_WEB_SALES_ORD_VMVAA-SALESORGOptional: Yes
Call by Reference: No ( called with pass by value option)
I_SOLD_TO - Customer
Data type: PTRV_WEB_SALES_ORD_VMVAA-SOLD_TOOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DISTR_CHAN - Distribution Channel
Data type: PTRV_WEB_SALES_ORD_VMVAA-DISTR_CHANOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DIVISION - Division
Data type: PTRV_WEB_SALES_ORD_VMVAA-DIVISIONOptional: Yes
Call by Reference: No ( called with pass by value option)
I_SALES_OFF - Sales Office
Data type: PTRV_WEB_SALES_ORD_VMVAA-SALES_OFFOptional: Yes
Call by Reference: No ( called with pass by value option)
I_SALES_GRP - Sales Group
Data type: PTRV_WEB_SALES_ORD_VMVAA-SALES_GRPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CREATED_BY - Name of Person Who Created Object
Data type: PTRV_WEB_SALES_ORD_VMVAA-CREATED_BYOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DOC_TYPE - Sales Document Type
Data type: PTRV_WEB_SALES_ORD_VMVAA-DOC_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for PTRM_WEB_SALES_ORD_VMVAA
ET_VALUE_LIST_VMVAA - Input Help for Order Numbers with Search Help VMVAA
Data type: PTRV_WEB_SALES_ORD_VMVAA_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_RETURN - Table with BAPI Return Information
Data type: BAPIRETTABOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for PTRM_WEB_SALES_ORD_VMVAA 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_et_value_list_vmvaa | TYPE PTRV_WEB_SALES_ORD_VMVAA_T, " | |||
| lv_i_customer_po_number | TYPE PTRV_WEB_SALES_ORD_VMVAA-CUSTOMER_PO_NUMBER, " | |||
| lv_i_purch_date | TYPE PTRV_WEB_SALES_ORD_VMVAA-PURCH_DATE, " | |||
| lv_i_transaction_group | TYPE PTRV_WEB_SALES_ORD_VMVAA-TRANSACTION_GROUP, " | |||
| lv_i_sd_doc | TYPE PTRV_WEB_SALES_ORD_VMVAA-SD_DOC, " | |||
| lv_i_itm_number | TYPE PTRV_WEB_SALES_ORD_VMVAA-ITM_NUMBER, " | |||
| lv_i_maxrow | TYPE PTRV_WEB_MAXROW, " 50 | |||
| lv_et_return | TYPE BAPIRETTAB, " | |||
| lv_i_salesorg | TYPE PTRV_WEB_SALES_ORD_VMVAA-SALESORG, " | |||
| lv_i_sold_to | TYPE PTRV_WEB_SALES_ORD_VMVAA-SOLD_TO, " | |||
| lv_i_distr_chan | TYPE PTRV_WEB_SALES_ORD_VMVAA-DISTR_CHAN, " | |||
| lv_i_division | TYPE PTRV_WEB_SALES_ORD_VMVAA-DIVISION, " | |||
| lv_i_sales_off | TYPE PTRV_WEB_SALES_ORD_VMVAA-SALES_OFF, " | |||
| lv_i_sales_grp | TYPE PTRV_WEB_SALES_ORD_VMVAA-SALES_GRP, " | |||
| lv_i_created_by | TYPE PTRV_WEB_SALES_ORD_VMVAA-CREATED_BY, " | |||
| lv_i_doc_type | TYPE PTRV_WEB_SALES_ORD_VMVAA-DOC_TYPE. " |
|   CALL FUNCTION 'PTRM_WEB_SALES_ORD_VMVAA' "NOTRANSL: Wertehilfen für Kundenauftragsnummern über die Suchhilfe VMVAA |
| EXPORTING | ||
| I_CUSTOMER_PO_NUMBER | = lv_i_customer_po_number | |
| I_PURCH_DATE | = lv_i_purch_date | |
| I_TRANSACTION_GROUP | = lv_i_transaction_group | |
| I_SD_DOC | = lv_i_sd_doc | |
| I_ITM_NUMBER | = lv_i_itm_number | |
| I_MAXROW | = lv_i_maxrow | |
| I_SALESORG | = lv_i_salesorg | |
| I_SOLD_TO | = lv_i_sold_to | |
| I_DISTR_CHAN | = lv_i_distr_chan | |
| I_DIVISION | = lv_i_division | |
| I_SALES_OFF | = lv_i_sales_off | |
| I_SALES_GRP | = lv_i_sales_grp | |
| I_CREATED_BY | = lv_i_created_by | |
| I_DOC_TYPE | = lv_i_doc_type | |
| IMPORTING | ||
| ET_VALUE_LIST_VMVAA | = lv_et_value_list_vmvaa | |
| ET_RETURN | = lv_et_return | |
| . " PTRM_WEB_SALES_ORD_VMVAA | ||
ABAP code using 7.40 inline data declarations to call FM PTRM_WEB_SALES_ORD_VMVAA
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 CUSTOMER_PO_NUMBER FROM PTRV_WEB_SALES_ORD_VMVAA INTO @DATA(ld_i_customer_po_number). | ||||
| "SELECT single PURCH_DATE FROM PTRV_WEB_SALES_ORD_VMVAA INTO @DATA(ld_i_purch_date). | ||||
| "SELECT single TRANSACTION_GROUP FROM PTRV_WEB_SALES_ORD_VMVAA INTO @DATA(ld_i_transaction_group). | ||||
| "SELECT single SD_DOC FROM PTRV_WEB_SALES_ORD_VMVAA INTO @DATA(ld_i_sd_doc). | ||||
| "SELECT single ITM_NUMBER FROM PTRV_WEB_SALES_ORD_VMVAA INTO @DATA(ld_i_itm_number). | ||||
| DATA(ld_i_maxrow) | = 50. | |||
| "SELECT single SALESORG FROM PTRV_WEB_SALES_ORD_VMVAA INTO @DATA(ld_i_salesorg). | ||||
| "SELECT single SOLD_TO FROM PTRV_WEB_SALES_ORD_VMVAA INTO @DATA(ld_i_sold_to). | ||||
| "SELECT single DISTR_CHAN FROM PTRV_WEB_SALES_ORD_VMVAA INTO @DATA(ld_i_distr_chan). | ||||
| "SELECT single DIVISION FROM PTRV_WEB_SALES_ORD_VMVAA INTO @DATA(ld_i_division). | ||||
| "SELECT single SALES_OFF FROM PTRV_WEB_SALES_ORD_VMVAA INTO @DATA(ld_i_sales_off). | ||||
| "SELECT single SALES_GRP FROM PTRV_WEB_SALES_ORD_VMVAA INTO @DATA(ld_i_sales_grp). | ||||
| "SELECT single CREATED_BY FROM PTRV_WEB_SALES_ORD_VMVAA INTO @DATA(ld_i_created_by). | ||||
| "SELECT single DOC_TYPE FROM PTRV_WEB_SALES_ORD_VMVAA INTO @DATA(ld_i_doc_type). | ||||
Search for further information about these or an SAP related objects