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

batch checking by user exit

Former Member
0 Likes
1,384

Hi all,

I've an requirement to check the valuation type when creating a batch with MSC1N.

I've tried using various user exits, especially EXIT_SAPLV01Z_004, ZXVBZU04.

It is not called in MSC1N. What's wrong is there?

(Another exit EXIT_SAPLV01Z_006 in MSC2N > ZXVBZU13 can be called with MSC2N.)

Thanks.

7 REPLIES 7
Read only

Former Member
0 Likes
1,081

Hope you created the customer project (CMOD) and activated it before checking the exit.

Krishna

Read only

0 Likes
1,081

sure, I've activated it in CMOD.....

but just donno why it is not called...

And I found that there is a flag called 'no_cfc_calls' in FM VB_CREATE_BATCH, it always set to 'X' that prevents the calling of the user exit.

Just donno how to reset it to '' so that user exit could be called.

Read only

0 Likes
1,081

and I tried to modify user exit EXIT_SAPLV01Z_014 for batch valuation. This is called in function VB_CREATE_BATCH. My problem is that there is a flag - no_cfc_calls - that is passed to the function that prevents it from calling the user exit. I've tried tracing this back thru all the calling programs, but I always dead end. Is this flag maintained in a table somewhere?

Read only

0 Likes
1,081

hi, this flag is set in the program LCHRGF02 and at form save_batch.

krishna

Read only

Former Member
0 Likes
1,081

Hi

I have the same problem.

Do you have already a solution for this problem ???

Best Regards

Jo

Read only

0 Likes
1,081

Hello,

I am facing the same issue I want to update a date 6 field while the user create a Bacth thurogh MSC1n.

I am using the EXIT_SAPLV01Z_013 to update the same.

But This Exit is not called as there is a condition which fails while this exit is called thru FM VB_CREATE_BATCH.

the field NO_CFC_CALLS is set to "X" in Include LCHRGF02.

CALL FUNCTION 'VB_CREATE_BATCH'

EXPORTING

ymcha = akt_mchx

new_lgort = dfbatch-lgort

bypass_lock = 'X'

kzcla = ' '

xkcfc = ' '

no_check_of_qm_char = 'X'

no_change_document = ' '

check_external = space

check_customer = space

no_cfc_calls = 'X'.

Can you please help how do we resolve this issue i am using SAP 4.7.

Thanks

Solanki Ritesh

Read only

0 Likes
1,081

Enhancement SAPLV1ZN is activated and NO_CFC_CALLS is set initial if the goods movement has "Extended Calssification via Customer Function Call" set.

This is done in the IMG under Lgistics General > Batch Management > Batch Valuation > Valuation for Goods Movements in IM > Activate...

Took some time for me to find it...