Application Development 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: 

CAN WE USE "VB_BATCH_GET_DETAIL" FOR MULTIPLE BATCH VALUES

0 Kudos

Hello team,

I am using "vb_batch_get_detal" to get characteristics values in loop.

I am passing material, batch and plant to this function module to get details.

But if loop have 25000 records, I am getting dump saying Tile limit exceeded.

This function module works fine for less records.

Is there any other function module or other method where we can pass multiple Batches and materials to get characteristics.... Please suggest me.

form f_readchar using p_matnr
p_charg
p_werks
changing p_it_batch type tt_batch.

data: lt_char_of_batch type standard table of clbatch.
constants: gc_12051 type char10 value '0000012051'. "Cash date

call function 'VB_BATCH_GET_DETAIL'
exporting
matnr = p_matnr
charg = p_charg
werks = p_werks
get_classification = abap_true
tables
char_of_batch = lt_char_of_batch
exceptions
no_material = 1
no_batch = 2
no_plant = 3
material_not_found = 4
plant_not_found = 5
no_authority = 6
batch_not_exist = 7
lock_on_batch = 8
others = 9.

if lt_char_of_batch is not initial.
sort lt_char_of_batch by atinn .
read table lt_char_of_batch into data(wa_char_of_batch) with key atinn = gc_12051 binary search.
if sy-subrc = 0.
wa_batch-matnr = p_matnr.
wa_batch-charg = p_charg.
wa_batch-werks = p_werks.
wa_batch-atinn = wa_char_of_batch-atinn.
wa_batch-atwtb = wa_char_of_batch-atwtb.
append wa_batch to it_batch .
clear wa_batch.
endif.
if it_batch is not initial.
sort it_batch by matnr charg werks .
endif.
endif.

endform.

4 REPLIES 4

FredericGirod
Active Contributor

run it in background

0 Kudos

Hello Frederic Girod,

As per our requirement... the report should be executed in foreground only.

this report is taking 71 minutes to run in back ground... I am checking for other function module where I can pass all material and batches in single step

0 Kudos

This issue has been solved Thanks

0 Kudos

Hello

Could you please provide the solution above issue.im also facing same issue.