banner



How To Create Inspection Lot In Sap

CO_QM_INSPECTION_LOT_CREATE 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 CO_QM_INSPECTION_LOT_CREATE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: COQM
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM CO_QM_INSPECTION_LOT_CREATE - CO QM INSPECTION LOT CREATE


CALL FUNCTION 'CO_QM_INSPECTION_LOT_CREATE' "Create inspection lot from order   EXPORTING     caufvd_imp =                " caufvd *   write_prot_imp = SPACE      " rc27x-flg_sel   IMPORTING     prueflos =                  " caufvd-prueflos     qals_objnr =                " qals-objnr * CHANGING *   status_not_changed = SPACE  " t399x-dprobo     .  "  CO_QM_INSPECTION_LOT_CREATE

ABAP code example for Function Module CO_QM_INSPECTION_LOT_CREATE



The ABAP code below is a full code listing to execute function module CO_QM_INSPECTION_LOT_CREATE 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).

DATA:
ld_prueflos  TYPE CAUFVD-PRUEFLOS ,
ld_qals_objnr  TYPE QALS-OBJNR .

SELECT single DPROBO
FROM T399X
INTO @DATA(ld_status_not_changed).

DATA(ld_caufvd_imp) = 'Check type of data required'.

DATA(ld_write_prot_imp) = some text here . CALL FUNCTION 'CO_QM_INSPECTION_LOT_CREATE' EXPORTING caufvd_imp = ld_caufvd_imp * write_prot_imp = ld_write_prot_imp IMPORTING prueflos = ld_prueflos qals_objnr = ld_qals_objnr * CHANGING * status_not_changed = ld_status_not_changed . " CO_QM_INSPECTION_LOT_CREATE
IF SY-SUBRC EQ 0. "All OK ENDIF.


ABAP code to compare 7.40 inline data declaration with original syntax

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_status_not_changed  TYPE T399X-DPROBO ,
ld_prueflos  TYPE CAUFVD-PRUEFLOS ,
ld_caufvd_imp  TYPE CAUFVD ,
ld_qals_objnr  TYPE QALS-OBJNR ,
ld_write_prot_imp  TYPE RC27X-FLG_SEL .

SELECT single DPROBO
FROM T399X
INTO ld_status_not_changed.

ld_caufvd_imp = 'Check type of data required'.

ld_write_prot_imp = some text here

Contribute (Add Comments)

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 CO_QM_INSPECTION_LOT_CREATE or its description.



How To Create Inspection Lot In Sap

Source: https://www.se80.co.uk/sapfms/c/co_q/co_qm_inspection_lot_create.htm

Posted by: alanizthates.blogspot.com

0 Response to "How To Create Inspection Lot In Sap"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel