hi experts ,
in my project
0RECCNSSTCK-Quantity Received into Consignment Stock
0ISSCNSSTCK-Quantity Issued from Consignment Stock
are used and populating data by using field level routine ....(mapping 2lis_03_bf & 0ic_c03)
can any one tell me what is value these kyfs will hold ...mean in business language
and in transformations between 2lis_03_bf & 0ic_c03 only above kyfs(2) and char got mapping .
whether these kyfs alone can bring data for valuated stock,blocked stock,quality stock & stock in trans???
in report we are getting values for valuated stock,blocked stock,quality stock & stock in trans ,issued from val and recived from val stock
only valuated stock, ,issued from val and recived from val stock are correct and others are not matching with r/3
routine used :
USING
COMM_STRUCTURE type _ty_s_SC_1__RULE_14
CHANGING
RESULT TYPE _ty_s_TG_1_full-ISSCNSSTCK
RETURNCODE LIKE sy-subrc
ABORT LIKE sy-subrc
RAISING
cx_sy_arithmetic_error
cx_sy_conversion_error.
* init variables
* fill the internal table "MONITOR", to make monitor entries
* only goods issue is considered
IF ( COMM_STRUCTURE-processkey EQ '100' "Other Issues
OR COMM_STRUCTURE-processkey EQ '101' "Returns / Vendor
OR COMM_STRUCTURE-processkey EQ '104' "Material Transfer
OR COMM_STRUCTURE-processkey EQ '105' "Stock Adjustment InvD
OR COMM_STRUCTURE-processkey EQ '106' "Stock Adjustment Other
OR COMM_STRUCTURE-processkey EQ '110' ) "Issue from Stock Transfer
AND COMM_STRUCTURE-bwapplnm EQ 'MM'
* only movements which are relevant for stock control
AND COMM_STRUCTURE-stockrelev EQ '1'
AND COMM_STRUCTURE-cpquabu <> 0.
* only consignment stock is considered
CASE COMM_STRUCTURE-stockcat.
WHEN 'K'.
RESULT = COMM_STRUCTURE-cpquabu.
RETURNCODE = 0.
WHEN space.
IF COMM_STRUCTURE-stocktype CA 'KLM'.
RESULT = COMM_STRUCTURE-cpquabu.
RETURNCODE = 0.
ELSE.
RETURNCODE = 4.
ENDIF.
WHEN OTHERS.
RETURNCODE = 4.
ENDCASE.
ELSE.
* if the returncode is not equal zero, the result will not be updated
RETURNCODE = 4.
ENDIF.
* if abort is not equal zero, the update process will be canceled
ABORT = 0.
ENDFORM.
helpfull suggestions will be appreciated with points
thanks in advance
Harry