2006 Mar 08 9:48 AM
Hi,
I have a requirement to fill VBAP-ABGRU while creating return order. I am trying to create return order using 'Create with reference'.
In program 'MV45AFZZ' form 'userexit_move_field_to_vbap' filled CVBAP-ABGRU but of no use. Also created a copy routine and filled VBAP-ABGRU.
Above 2 cases did not work.
Can any one help me on this.
Thanks in advance.
Seshagiri
2006 Mar 08 11:16 AM
Hello Seshagiri,
This is what I did, let me know if u r doing it differently.
I have put in code VBAP-ABGRU = '03' (03 - Too expensive as per my system), in the code FORM USEREXIT_MOVE_FIELD_TO_VBAP.
I created an order of type OR.
Using ref. I again did VA01 order type RE and press cretae with ref. I gave the order number previously created. I had set up breakpoint in the FORM routine. This was fired twice
1.FV45PFAP_VBAP_FUELLEN
2.FV45PFAP_VBAP_FUELLEN_TEIL_2
Then I checked the item details and sales data and reason code was changed to 03.
Let me know if u r doing it differnetly. also u can check if can check using debug and setting watch point where it gets cleared will give more inputs for resolving .
Hi,
I have a requirement to fill VBAP-ABGRU while creating return order. I am trying to create return order using 'Create with reference'.
In program 'MV45AFZZ' form 'userexit_move_field_to_vbap' filled CVBAP-ABGRU but of no use. Also created a copy routine and filled VBAP-ABGRU.
Above 2 cases did not work.
Can any one help me on this.
Thanks in advance.
Seshagiri
2006 Mar 08 10:03 AM
Hello Seshagiri,
Does it enter the user exit? If yes why CVBAP and not VBAP-ABGRU.
2006 Mar 08 10:06 AM
Hi,
Yes it enter the user exit and replacing VBAP-ABGRU.
But, some how reason code is not entered in the transaction.
Seshagiri
2006 Mar 08 10:25 AM
Hi
USe <b>RV60AFZA</b>
<b>FORM USEREXIT_XVBAPF_KEY </b> fill new fields in summary flow key VBAPF following workareas are available:
- XKOMFKGN
- VBAK
- VBKD
- VBAP
<b>
USEREXIT_XVBAPF_KEY_CANC.</b>
following workareas are available:
- *VBRK
- *VBRP
regards
vinod
2006 Mar 08 11:16 AM
Hello Seshagiri,
This is what I did, let me know if u r doing it differently.
I have put in code VBAP-ABGRU = '03' (03 - Too expensive as per my system), in the code FORM USEREXIT_MOVE_FIELD_TO_VBAP.
I created an order of type OR.
Using ref. I again did VA01 order type RE and press cretae with ref. I gave the order number previously created. I had set up breakpoint in the FORM routine. This was fired twice
1.FV45PFAP_VBAP_FUELLEN
2.FV45PFAP_VBAP_FUELLEN_TEIL_2
Then I checked the item details and sales data and reason code was changed to 03.
Let me know if u r doing it differnetly. also u can check if can check using debug and setting watch point where it gets cleared will give more inputs for resolving .