Hi Experts
Pls. suggest any function modules or similar exist where we pass the characteristic values and fetch all batch records which matches the value.
I tried using the FM # CLAF_OBJECTS_OF_CLASS however it has only characteristic name but not its value for filter condition.
Appreciate any suggestion.
P.S: We are on SAP 2022 S4 HANA release
Thanks
Ravi K
Request clarification before answering.
Hello ravindharan
You can use BAPI_CLASS_SELECT_OBJECTS to select objects including batches by their classification, i.e. characteristics values.
Best regards
Dominik Tylczynski
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello
You can use select.
DATA lv_type TYPE atinn .
CALL FUNCTION 'CONVERSION_EXIT_ATINN_INPUT'
EXPORTING
input = 'TYPE' " name of charecter that you want search base on it
IMPORTING
output = lv_type.
SELECT mch1~charg,
FROM mch1
JOIN ausp ON mch1~cuobj_bm EQ ausp~objek AND ausp~atinn = @lv_type
WHERE
ausp~atwrt = 'val' and "for characteristic
ausp~atflv = 123 and "for numeric
lvorm = ''
INTO TABLE @DATA(it_batch).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Classification data should not be read directly from DB tables. That by passes classification statistics generated with CLST and ignores LO-VC dependencies. Instead SAP provided BAPIs and APIs should be used.
Hi ravindharan,
Use these FM
VB_BATCH_GET_DETAIL
BAPI_MATERIAL_GETBATCHES
Thanks
Tarun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please try this FM VB_BATCH_GET_DETAIL.
BAPI_BATCH_GET_DETAIL
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 13 | |
| 12 | |
| 6 | |
| 6 | |
| 6 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.