QDRS_FIXED_SAMPLE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name QDRS_FIXED_SAMPLE into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
QDRS
Released Date:
20.10.1997
Processing type: Normal fucntion module
CALL FUNCTION 'QDRS_FIXED_SAMPLE' "Fixed Sample
EXPORTING
i_nachkomma = " qdwl-kzjanein Decimal Places: Base Unit of Measure Yes/No
i_qals_losmenge = " qals-losmenge Lot Quantity
i_qals_mengeneinh = " qals-mengeneinh Base Unit of Measure
i_qasv_fakplanme = " qasv-fakplanme Factor: Material Unit of Measure - Sample Unit of Measure
i_qasv_fakprobme = " qasv-fakprobme Factor: Sample Unit of Measure - Material Unit of Measure
i_qasv_probemgeh = " qasv-probemgeh Sample Unit of Measure
i_qasv_probmgfak = " qasv-probmgfak Factor: Sample Unit of Measure (Multiple of the Sample Unit of Measure)
* i_qdql_dynregel = SPACE " qdql-dynregel Dynamic Modification Rule
* i_qdql_prstufenae = '0000' " qdql-prstufenae Next Inspection Stage
* i_qdsv_annahmez = 0 " qdsv-annahmez Acceptance Number
* i_qdsv_aqlwert = '0.000' " qdsv-aqlwert AQL Value (From the Sampling Procedure)
* i_qdsv_kfaktor = '0.0' " qdsv-kfaktor K Factor
* i_qdsv_kfaktorni = SPACE " qdsv-kfaktorni K Factor is not Initial
* i_qdsv_kzohi = SPACE " qdsv-kzohi No Inspection Stage Change
* i_qdsv_kzumfs = SPACE " qdsv-kzumfs Independent Multiple Samples
* i_qdsv_prozazl = '0.0' " qdsv-prozazl Acceptance Percentage
* i_qdsv_prozazlni = SPACE " qdsv-prozazlni Acceptance Percentage is not Initial
* i_qdsv_prozumf = '0.0' " qdsv-prozumf Sample Percentage
* i_qdsv_prozumfni = SPACE " qdsv-prozumfni Sample Percentage is not Initial
* i_qdsv_prschaerfe = '000' " qdsv-prschaerfe Inspection Severity (From the Sampling Procedure)
* i_qdsv_stpranz = 0 " qdsv-stpranz Number of Samples
* i_qdsv_stprplan = SPACE " qdsv-stprplan Sampling Scheme (From the Sampling Procedure)
* i_qdsv_stprumf = 0 " qdsv-stprumf Sample Size
* i_qdsv_kzrast = SPACE " qdsv-kzrast Inspection Points
* i_qdsv_kznocut = SPACE " qdsv-kznocut Lot Size not Checked (Multiple Samples)
IMPORTING
e_annahmez = " qasv-annahmez Acceptance Number
e_bewregel = " qasv-bewregel Valuation Rule
e_kfaktor = " qasv-kfaktor K Factor
e_kfaktorni = " qasv-kfaktorni K Factor is not Initial
e_kzhpz = " qamv-hpz 100% Inspection
e_qamv_pruefumf = " qamv-pruefumf Inspection Scope for Each Characteristic
e_qasv_pruefumf = " qasv-pruefumf Inspection Scope for Each Sample
e_prschaerfe = " qasv-prschaerfe Inspection Severity for Each Characteristic
e_rueckwez = " qasv-rueckwez Rejection Number
e_satzstatus = " qamv-satzstatus Characteristic Status (For Example, Skip)
e_sollstpanz = " qamv-sollstpanz Number of Planned Samples with Multiple Samples
e_sollstpumf = " qamv-sollstpumf Sample Size (Characteristic Level)
e_stiproumf = " qasv-stiproumf Sample Size (Sample Level)
EXCEPTIONS
OTHER_ERROR = 1 " Other Error
SYSTEM_ERROR = 2 " System Error
USER_ERROR = 3 " Application Error
. " QDRS_FIXED_SAMPLE
The ABAP code below is a full code listing to execute function module QDRS_FIXED_SAMPLE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| ld_e_annahmez | TYPE QASV-ANNAHMEZ , |
| ld_e_bewregel | TYPE QASV-BEWREGEL , |
| ld_e_kfaktor | TYPE QASV-KFAKTOR , |
| ld_e_kfaktorni | TYPE QASV-KFAKTORNI , |
| ld_e_kzhpz | TYPE QAMV-HPZ , |
| ld_e_qamv_pruefumf | TYPE QAMV-PRUEFUMF , |
| ld_e_qasv_pruefumf | TYPE QASV-PRUEFUMF , |
| ld_e_prschaerfe | TYPE QASV-PRSCHAERFE , |
| ld_e_rueckwez | TYPE QASV-RUECKWEZ , |
| ld_e_satzstatus | TYPE QAMV-SATZSTATUS , |
| ld_e_sollstpanz | TYPE QAMV-SOLLSTPANZ , |
| ld_e_sollstpumf | TYPE QAMV-SOLLSTPUMF , |
| ld_e_stiproumf | TYPE QASV-STIPROUMF . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_e_annahmez | TYPE QASV-ANNAHMEZ , |
| ld_i_nachkomma | TYPE QDWL-KZJANEIN , |
| ld_e_bewregel | TYPE QASV-BEWREGEL , |
| ld_i_qals_losmenge | TYPE QALS-LOSMENGE , |
| ld_e_kfaktor | TYPE QASV-KFAKTOR , |
| ld_i_qals_mengeneinh | TYPE QALS-MENGENEINH , |
| ld_e_kfaktorni | TYPE QASV-KFAKTORNI , |
| ld_i_qasv_fakplanme | TYPE QASV-FAKPLANME , |
| ld_e_kzhpz | TYPE QAMV-HPZ , |
| ld_i_qasv_fakprobme | TYPE QASV-FAKPROBME , |
| ld_e_qamv_pruefumf | TYPE QAMV-PRUEFUMF , |
| ld_i_qasv_probemgeh | TYPE QASV-PROBEMGEH , |
| ld_e_qasv_pruefumf | TYPE QASV-PRUEFUMF , |
| ld_i_qasv_probmgfak | TYPE QASV-PROBMGFAK , |
| ld_i_qdql_dynregel | TYPE QDQL-DYNREGEL , |
| ld_e_prschaerfe | TYPE QASV-PRSCHAERFE , |
| ld_i_qdql_prstufenae | TYPE QDQL-PRSTUFENAE , |
| ld_e_rueckwez | TYPE QASV-RUECKWEZ , |
| ld_i_qdsv_annahmez | TYPE QDSV-ANNAHMEZ , |
| ld_e_satzstatus | TYPE QAMV-SATZSTATUS , |
| ld_e_sollstpanz | TYPE QAMV-SOLLSTPANZ , |
| ld_i_qdsv_aqlwert | TYPE QDSV-AQLWERT , |
| ld_e_sollstpumf | TYPE QAMV-SOLLSTPUMF , |
| ld_i_qdsv_kfaktor | TYPE QDSV-KFAKTOR , |
| ld_e_stiproumf | TYPE QASV-STIPROUMF , |
| ld_i_qdsv_kfaktorni | TYPE QDSV-KFAKTORNI , |
| ld_i_qdsv_kzohi | TYPE QDSV-KZOHI , |
| ld_i_qdsv_kzumfs | TYPE QDSV-KZUMFS , |
| ld_i_qdsv_prozazl | TYPE QDSV-PROZAZL , |
| ld_i_qdsv_prozazlni | TYPE QDSV-PROZAZLNI , |
| ld_i_qdsv_prozumf | TYPE QDSV-PROZUMF , |
| ld_i_qdsv_prozumfni | TYPE QDSV-PROZUMFNI , |
| ld_i_qdsv_prschaerfe | TYPE QDSV-PRSCHAERFE , |
| ld_i_qdsv_stpranz | TYPE QDSV-STPRANZ , |
| ld_i_qdsv_stprplan | TYPE QDSV-STPRPLAN , |
| ld_i_qdsv_stprumf | TYPE QDSV-STPRUMF , |
| ld_i_qdsv_kzrast | TYPE QDSV-KZRAST , |
| ld_i_qdsv_kznocut | TYPE QDSV-KZNOCUT . |
This function module is designed for determining samples in sampling
procedures with fixed samples.
...See here for full SAP fm documentation
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name QDRS_FIXED_SAMPLE or its description.
QDRS_FIXED_SAMPLE - Fixed Sample QDRS_DUMMY_FUNCTION_MODULE - Dummy Function Module (Only With Interface) QDRS_100_PER_CENT_SAMPLE_30B - 100% Inspection for 100% Sampling Type (Decimal Places BUn Considered) QDRS_100_PER_CENT_SAMPLE - 100% Inspection for 100% Sampling Type QDRS_100_PER_CENT_INSP_W_SKIP - 100% Inspection (Skip Possible), Manual Valuation QDRS_100_PER_CENT_INSPECTION - 100% Inspection (Skip Not Possible), Manual Valuation