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

In VF02 User exit problem.

former_member125931
Active Participant
0 Likes
3,533

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,217

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.

26 REPLIES 26
Read only

Former Member
0 Likes
3,217

This message was moderated.

Read only

0 Likes
3,217

This message was moderated.

Read only

0 Likes
3,217

This message was moderated.

Read only

0 Likes
3,217

This message was moderated.

Read only

0 Likes
3,217

This message was moderated.

Read only

0 Likes
3,217

This message was moderated.

Read only

former_member125931
Active Participant
0 Likes
3,217

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.

Read only

0 Likes
3,217

Write below code in the Z include

if CVBRK-RFBSK = 'C'.

***Your code***

endif.

Hope this helps...

Read only

0 Likes
3,217

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.

Read only

Former Member
0 Likes
3,218

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

Read only

0 Likes
3,217

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.

Read only

0 Likes
3,217

HI All ,

Any hint pls

Read only

0 Likes
3,217

Hi Advait Gode ,

I m waitinfg for your reply.

Thanks n regds,

Sree.

Read only

0 Likes
3,217

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

Read only

0 Likes
3,217

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.

Read only

Former Member
0 Likes
3,217

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

Read only

Former Member
0 Likes
3,217

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

Read only

0 Likes
3,217

Hi Raju,

Its sounds nice,I'LL try it tomorrow and hope it will resolve my problem.

Thanks n regds,

Sree.

Read only

0 Likes
3,217

Hi Raju,

Can u expalin bit brief,when this include will call RV60AFZZ by transaction..

Read only

0 Likes
3,217

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

Read only

0 Likes
3,217

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.

Read only

0 Likes
3,217

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.

Read only

0 Likes
3,217

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.

Read only

0 Likes
3,217

Hi All,

My problem still not solved any inputs please..

Thanks n regds,

Sree.

Read only

0 Likes
3,217

Hi Raju,

CAn u send me the code how u done in your Exit.

Thanks n regds,

Sree.

Read only

former_member125931
Active Participant
0 Likes
3,217

HI All,

I resolved my self by COMMIT WORK AND WAIT in UPDATE TASK of Function module.