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: 

Exit in COPA to modify data posted via VF01 and VF02

former_member345940
Discoverer
0 Kudos

Hello,

I want to change actual data manually posted via VF01 and VF02.

I try to use the exit EXIT_SAPLKEII_002, and want to change values in a value field VV002 (out of VV0037) modification-free.

But looking into the content of the table T_ACCR_PA and T_ITEM, I find that ALL these values fields (VV0*) are empty.

What can I do, do I have to use another user exit?

Thanks a lot for your answer!

Hanspeter

6 REPLIES 6

former_member201147
Active Participant
0 Kudos

Did you try exit EXIT_SAPLKEII_001?

0 Kudos

Hello,

yes, I tried the exit 1, but in the documentation of the enhancement I have seen that it has no values, too:

'... A line item without values (parameter I_ITEM) is still available in

component EXIT_SAPLKEII_001. This line item is usually used, firstly, to...

This was the reason to use the second one.

Please advise.

Thanks,

Hanspeter

0 Kudos

Okay, it looks like we are using EXIT_SAPLKEAB_001 which is in enhancement COPA0002. You can find some documentation for this user exit in the configuration of the valuation strategy, transaction KE4U. Select a valuation strategy and then double click on the Details folder. One of the fields in the table that you see on the Details screen is called "Exit no.". Look at the help for this field. It has documentation for this user exit.

Hope it helps,

Brian

0 Kudos

Hello,

As described, I want to use exit EXIT_SAPLKEII_002 in COPA0005. Table T_ITEM does not give any currency values. T_ACCR does provide currency values, but I wanted to change in currency values in T_ITEM.

Cheers, HP

Edited by: Hanspeter Mehne on Dec 22, 2008 4:34 PM

0 Kudos

Hi Guys,

I knew its year 2010, but I am in the similar situation, will you please let me know which user-exit you have used for it?

I want to achieve the same thing, I want to populate the data in field VV110 whenever the billing type is IV.

Thanks & Regards

Harry

gustavosupp_peralta
Discoverer
0 Kudos

Hanspeter,

I think you need the same thing I've done. Here's my code.

DATA: t_ce10050 TYPE STANDARD TABLE OF ce10050 WITH HEADER LINE,

oref TYPE REF TO cx_root.

*IF sy-tcode = ''.

TRY.

t_ce10050[ ] = t_item[ ].

LOOP AT t_ce10050.

IF t_ce10050-vrgar = 'F' AND

t_ce10050-fkart = 'YDRB' AND

t_ce10050-ktgrm = '06'.

CLEAR: t_ce10050-absmg,

t_ce10050-vv200,

t_ce10050-vv040,

t_ce10050-rabat,

t_ce10050-vv600,

t_ce10050-vv601,

t_ce10050-kwskto,

t_ce10050-vv041,

t_ce10050-vv010,

t_ce10050-vv030,

t_ce10050-vv040,

t_ce10050-vv171,

t_ce10050-vv700,

t_ce10050-vv750,

t_ce10050-vv710,

t_ce10050-vv720,

t_ce10050-vv730,

t_ce10050-vv740,

t_ce10050-vv800.

MODIFY t_ce10050 INDEX sy-tabix.

ENDIF.

ENDLOOP.

CLEAR: t_item[].

t_item[ ] = t_ce10050[ ].

CATCH cx_root INTO oref.

ENDTRY.

*ENDIF

Regards,

Gustavo

Edited by: Gustavo Supp Peralta on Jan 13, 2011 9:00 PM