SAP AC_DOCUMENT_QUANTITY_GET Function Module for
AC_DOCUMENT_QUANTITY_GET is a standard ac document quantity get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 ac document quantity get FM, simply by entering the name AC_DOCUMENT_QUANTITY_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: RWCL
Program Name: SAPLRWCL
Main Program: SAPLRWCL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function AC_DOCUMENT_QUANTITY_GET 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 'AC_DOCUMENT_QUANTITY_GET'".
EXPORTING
I_APPL = "Component in ACC Interface
I_ACCHD = "Accounting Interface: Header Information
I_ACCIT = "Accounting Interface: Item Information
* I_LEDGER = ' ' "
* I_NEW_DOCUMENT = ' ' "
IMPORTING
E_QUANTITY = "
E_UNIT = "Unit of Measure
E_SIGN = "Quantity +/- Sign
IMPORTING Parameters details for AC_DOCUMENT_QUANTITY_GET
I_APPL - Component in ACC Interface
Data type: COMPOOptional: No
Call by Reference: Yes
I_ACCHD - Accounting Interface: Header Information
Data type: ACCHDOptional: No
Call by Reference: Yes
I_ACCIT - Accounting Interface: Item Information
Data type: ACCITOptional: No
Call by Reference: Yes
I_LEDGER -
Data type: RLDNRDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_NEW_DOCUMENT -
Data type: BOOLE_DDefault: ' '
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for AC_DOCUMENT_QUANTITY_GET
E_QUANTITY -
Data type: MENGE_DOptional: No
Call by Reference: Yes
E_UNIT - Unit of Measure
Data type: MEINSOptional: No
Call by Reference: Yes
E_SIGN - Quantity +/- Sign
Data type: SIGNOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for AC_DOCUMENT_QUANTITY_GET 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_appl | TYPE COMPO, " | |||
| lv_e_quantity | TYPE MENGE_D, " | |||
| lv_e_unit | TYPE MEINS, " | |||
| lv_i_acchd | TYPE ACCHD, " | |||
| lv_e_sign | TYPE SIGN, " | |||
| lv_i_accit | TYPE ACCIT, " | |||
| lv_i_ledger | TYPE RLDNR, " SPACE | |||
| lv_i_new_document | TYPE BOOLE_D. " ' ' |
|   CALL FUNCTION 'AC_DOCUMENT_QUANTITY_GET' " |
| EXPORTING | ||
| I_APPL | = lv_i_appl | |
| I_ACCHD | = lv_i_acchd | |
| I_ACCIT | = lv_i_accit | |
| I_LEDGER | = lv_i_ledger | |
| I_NEW_DOCUMENT | = lv_i_new_document | |
| IMPORTING | ||
| E_QUANTITY | = lv_e_quantity | |
| E_UNIT | = lv_e_unit | |
| E_SIGN | = lv_e_sign | |
| . " AC_DOCUMENT_QUANTITY_GET | ||
ABAP code using 7.40 inline data declarations to call FM AC_DOCUMENT_QUANTITY_GET
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.| DATA(ld_i_ledger) | = ' '. | |||
| DATA(ld_i_new_document) | = ' '. | |||
Search for further information about these or an SAP related objects