SAP MS_ASK_REQUISITION_NO Function Module for NOTRANSL: Abfrage der BANF-Nr für die Selektion in der Erfassung
MS_ASK_REQUISITION_NO is a standard ms ask requisition no 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: Abfrage der BANF-Nr für die Selektion in der Erfassung 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 ms ask requisition no FM, simply by entering the name MS_ASK_REQUISITION_NO into the relevant SAP transaction such as SE37 or SE38.
Function Group: MLSH
Program Name: SAPLMLSH
Main Program: SAPLMLSH
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MS_ASK_REQUISITION_NO 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 'MS_ASK_REQUISITION_NO'"NOTRANSL: Abfrage der BANF-Nr für die Selektion in der Erfassung.
EXPORTING
I_LIFNR = "Vendor Account Number
I_KNTTP = "Account assignment category
I_KZVBR = "Consumption Posting
IMPORTING
E_EBAN = "Purchase Requisition
E_FREE = "Set requisition to 'closed'
EXCEPTIONS
CANCEL_POPUP = 1
IMPORTING Parameters details for MS_ASK_REQUISITION_NO
I_LIFNR - Vendor Account Number
Data type: EKKO-LIFNROptional: No
Call by Reference: No ( called with pass by value option)
I_KNTTP - Account assignment category
Data type: EKPO-KNTTPOptional: No
Call by Reference: No ( called with pass by value option)
I_KZVBR - Consumption Posting
Data type: EKPO-KZVBROptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for MS_ASK_REQUISITION_NO
E_EBAN - Purchase Requisition
Data type: EBANOptional: No
Call by Reference: No ( called with pass by value option)
E_FREE - Set requisition to 'closed'
Data type: RM11P-PR_CLOSEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CANCEL_POPUP -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MS_ASK_REQUISITION_NO 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_e_eban | TYPE EBAN, " | |||
| lv_i_lifnr | TYPE EKKO-LIFNR, " | |||
| lv_cancel_popup | TYPE EKKO, " | |||
| lv_e_free | TYPE RM11P-PR_CLOSE, " | |||
| lv_i_knttp | TYPE EKPO-KNTTP, " | |||
| lv_i_kzvbr | TYPE EKPO-KZVBR. " |
|   CALL FUNCTION 'MS_ASK_REQUISITION_NO' "NOTRANSL: Abfrage der BANF-Nr für die Selektion in der Erfassung |
| EXPORTING | ||
| I_LIFNR | = lv_i_lifnr | |
| I_KNTTP | = lv_i_knttp | |
| I_KZVBR | = lv_i_kzvbr | |
| IMPORTING | ||
| E_EBAN | = lv_e_eban | |
| E_FREE | = lv_e_free | |
| EXCEPTIONS | ||
| CANCEL_POPUP = 1 | ||
| . " MS_ASK_REQUISITION_NO | ||
ABAP code using 7.40 inline data declarations to call FM MS_ASK_REQUISITION_NO
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 LIFNR FROM EKKO INTO @DATA(ld_i_lifnr). | ||||
| "SELECT single PR_CLOSE FROM RM11P INTO @DATA(ld_e_free). | ||||
| "SELECT single KNTTP FROM EKPO INTO @DATA(ld_i_knttp). | ||||
| "SELECT single KZVBR FROM EKPO INTO @DATA(ld_i_kzvbr). | ||||
Search for further information about these or an SAP related objects