2009 Jan 23 12:12 PM
Hi All,
I Done enhancement for VF02 transation to update data into one custom tablem,every thing working fine,but problem is when user click flag button in VF02 this user exit will get trigger by that time posting status is 'A'(means not been posted)I required status 'C'(Posted) but I am getting all data to my Custom table except this,pls help me out..
Thanks n regds,
Sree.
2009 Jan 23 1:31 PM
Hi,
As I understand you are updating a custom table after the billing document is posted to accounting. Is that so ? Then perhaps you are using a wrong user exit.
What is the exit that you are using ?
regards,
Advait
Hi All,
I Done enhancement for VF02 transation to update data into one custom tablem,every thing working fine,but problem is when user click flag button in VF02 this user exit will get trigger by that time posting status is 'A'(means not been posted)I required status 'C'(Posted) but I am getting all data to my Custom table except this,pls help me out..
Thanks n regds,
Sree.
2009 Jan 23 12:15 PM
2009 Jan 23 12:18 PM
2009 Jan 23 12:20 PM
2009 Jan 23 12:39 PM
2009 Jan 23 12:57 PM
2009 Jan 23 1:02 PM
2009 Jan 23 12:38 PM
Hi All,
Is any condition I need to put any condition to trigger my code in side inclue if I want RFBSK filed in VBAP is 'C'.
here it is my code,
IF ( SY-TCODE = 'VF01' OR SY-TCODE = 'VF02' ).
CALL FUNCTION 'ZXXXX_TABLE_UPDATE'
EXPORTING
IT_VBELN = CVBRK-VBELN
.
endif.
2009 Jan 27 6:25 AM
Write below code in the Z include
if CVBRK-RFBSK = 'C'.
***Your code***
endif.
Hope this helps...
2009 Jan 27 7:20 AM
HI Karan,
Thank you for reply,
Is I need to write this condition in same include that mentioned in my previous thread.
Thanks n regds,
Sree.
2009 Jan 23 1:31 PM
Hi,
As I understand you are updating a custom table after the billing document is posted to accounting. Is that so ? Then perhaps you are using a wrong user exit.
What is the exit that you are using ?
regards,
Advait
2009 Jan 23 5:13 PM
HI,
Thanks for your reply the following is the user exit i'm using for development SDVFX008,
Pls Correct me if I m wrong.
Thanks n regds,
Sree.
2009 Jan 24 3:48 AM
2009 Jan 27 6:00 AM
Hi Advait Gode ,
I m waitinfg for your reply.
Thanks n regds,
Sree.
2009 Jan 27 8:10 AM
Hi,
I'm not sure which user exit will help you. What you can do is put a break point at the user exits and see which one it is. To find out the user exits triggered in the Billing, you can goto t-code SPRO
Sales and Distribution>System modifications> User Exits --> User Exits for Billing and there you can click on the icon paper with glasses to display the IM documentation, which will give you a list of user exits.
regards,
Advait
2009 Jan 27 12:09 PM
Hi,
I checked all the userexits by putting break-point it is the only exit triggering at VF02 tcode(Flag button),but at this time status is 'A'(Billing document blocked for forwarding to FI),this status when at VF01,it means my user exit triggering before changing the status as 'C'(Posting document has been created).
Thanks n regds,
Sree.
2009 Jan 27 12:24 PM
Hi Sree,
Use this customer Enhancement - V60A0001, it will be helpful. Set the required status in either of these structure fields - FKSTK or FKSAK.
Regards,
CK
2009 Jan 27 1:18 PM
Hi,
We have been using FORM USEREXIT_PRICING_PREPARE_TKOMK of RV60AFZZ for updating our own z-table. Please note that you need to check sy-ucomm = 'SICH' ( Indicatig Save button has been pressed ), as control goes in this routine even if enter is pressed. Additionally you could use your own conditions to bypass the exit. e.g. Check sy-tcode = 'VF01' or 'VF02' etc etc. Please note that it's important to sy-tcode since control comes here even for transaction codes like 'VF11'.
I hope this helps,
Regards
Raju Chitale
2009 Jan 27 4:50 PM
Hi Raju,
Its sounds nice,I'LL try it tomorrow and hope it will resolve my problem.
Thanks n regds,
Sree.
2009 Jan 28 4:11 AM
Hi Raju,
Can u expalin bit brief,when this include will call RV60AFZZ by transaction..
2009 Jan 28 4:20 AM
Hi,
That's a difficult question for me to answer. But think it other way round. You know definately for which transactions your z-table should get updated e.g. say in 'VF01' then just use:
check sy-tcode='VF01' before your z-table updation logic. So you don't have worry about other transactions since in any case you logic will never be executed for any of the transaction code except 'VF01'.
I hope this helps,
Regrads,
Raju Chitale
2009 Jan 28 6:28 AM
Hi Raju,
I am using like below but still it is not triggering after save.
IF sy-ucomm = 'SICH'.
IF ( SY-TCODE = 'VF01' OR SY-TCODE = 'VF02' OR SY-TCODE = 'VF11').
CALL FUNCTION 'ZXXXX_UPDATE'
EXPORTING
IT_VBELN = vbrk-vbeln .
endif.
endif.
Thanks n regds,
Sree.
2009 Jan 28 7:00 AM
Hi raju,
Still its trigerring after save,below is my code.
if sy-ucomm = 'SICH'.
IF ( SY-TCODE = 'VF01' OR SY-TCODE = 'VF02' OR SY-TCODE = 'VF11').
CALL FUNCTION 'ZSALES_DATA_UPDATE'
EXPORTING
IT_VBELN = VBRK-VBELN.
endif.
endif.
2009 Jan 28 10:11 AM
Hi All,
My user exit triggering when SY-UCOM = ' FKFR'.(When I cllick flag)
and it is comming out side of the transaction and throwing message Invoice saved actually my user exit should trigger here,if I go once again inside and click save button User exit triggering and chaging the posting status,how can i solve this problem Is I need to put any condition for this,rigth now I am using like below
IF SY-TCODE = 'VA02'
and sy-ucomm = 'SICH'.
CALL FUNCTION 'ZSALES_DATA_UPDATE'
EXPORTING
IT_VBELN = vbrk-vbeln .
endif.
Thanks n regds,
Sree.
2009 Jan 29 4:16 AM
Hi All,
My problem still not solved any inputs please..
Thanks n regds,
Sree.
2009 Jan 29 11:22 AM
Hi Raju,
CAn u send me the code how u done in your Exit.
Thanks n regds,
Sree.
2009 Jan 31 4:48 AM
HI All,
I resolved my self by COMMIT WORK AND WAIT in UPDATE TASK of Function module.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |