2010 Sep 06 8:39 AM
Dear All,
Now I am trying to get batch where used details by using FM 'CHVW_EXPLODE_ALL' samp0le code is givem below, while running this i will get only one record in shadow, same time wile running the FM in SE37 with same parameters i get 68 records please explain is there any error in my coding
DATA: shadow LIKE chvwshadow OCCURS 0 WITH HEADER LINE.
Data : c_bottom_up(10) VALUE '90 X B B',
material like MCHA-MATNR,
plant like MCHA-WERKS,
batch like MCHA-CHARG.
wa_i_DFCHVW = c_bottom_up.
material = ty_inv-MATERIAL.
plant = ty_inv-PLANT.
batch = ty_inv-BATCH.
CALL FUNCTION 'CHVW_EXPLODE_ALL'
EXPORTING
I_MATNR = material
I_WERKS = plant
I_CHARG = batch
I_DFCHVW = wa_i_DFCHVW
TABLES
T_SHADOW = shadow
EXCEPTIONS
INVALID_INPUT_DATA = 1
OTHERS = 2.
Regards
Nausal
Dear All,
Now I am trying to get batch where used details by using FM 'CHVW_EXPLODE_ALL' samp0le code is givem below, while running this i will get only one record in shadow, same time wile running the FM in SE37 with same parameters i get 68 records please explain is there any error in my coding
DATA: shadow LIKE chvwshadow OCCURS 0 WITH HEADER LINE.
Data : c_bottom_up(10) VALUE '90 X B B',
material like MCHA-MATNR,
plant like MCHA-WERKS,
batch like MCHA-CHARG.
wa_i_DFCHVW = c_bottom_up.
material = ty_inv-MATERIAL.
plant = ty_inv-PLANT.
batch = ty_inv-BATCH.
CALL FUNCTION 'CHVW_EXPLODE_ALL'
EXPORTING
I_MATNR = material
I_WERKS = plant
I_CHARG = batch
I_DFCHVW = wa_i_DFCHVW
TABLES
T_SHADOW = shadow
EXCEPTIONS
INVALID_INPUT_DATA = 1
OTHERS = 2.
Regards
Nausal
2013 Jan 10 6:47 AM
Try to use FM CHVW_BATCH_WHERE_USED_LIST with same DFCHVW values an a dummy container refrence before callin FM 'CHVW_EXPLODE_ALL' I had a similar problem & found that there is a global data pa_dfchvw in function group which doesnot get set some times & caues problem of no showing detailed level
2024 Aug 09 9:23 PM
Hi,
I am facing exactly the same issue. Can you provide sample code snippet for FM CHVW_BATCH_WHERE_USED_LIST and FM 'CHVW_EXPLODE_ALL'?
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |