Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CHVW_EXPLODE_ALL Batch where used

Former Member
0 Likes
5,853

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

2 REPLIES 2
Read only

0 Likes
3,011

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

Read only

0 Likes
2,413

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'?