2009 Jun 24 9:58 AM
Hi,
We have created a header text at Billing document level and we are populating it with a default value using an user exit in include RV60AFZZ.
We are successful in populating the default value when an invoice is created manually.
But when the invoice is created by a Batch Job using the programs RV60SBAT and SDBILLDL, the default values are not added. Can u please clarify my following doubts:
1. Will include RV60AFZZ be triggered in background?
2. Can we populate the header text in background jobs?
3. What will be the SY-UCOMM or any other check? Currently I have done coding for VF01 tcode and Collective billing. What else need to be added to the condition?
4. Is there any other exit thats triggered during background billing of documents?
Please help.
Thanks,
Jiten
2009 Jun 24 1:03 PM
Hi
I think it is not working because of point 3.
Did you put if sy-tcode = 'VF01'.
If Yes, than you can try with the following code
If sy-tcode = 'VF01' or sy-batch = 'X'.
But be careful since the userexit may be triggerd for some other standard programs also
I suggest you can add few more checks, like billing document type.
Since you may access to XVBRK, which is the billing header internal table
Regards
Madhan D
Edited by: Madhan Doraikannan on Jun 24, 2009 2:04 PM
2009 Jun 24 1:03 PM
Hi
I think it is not working because of point 3.
Did you put if sy-tcode = 'VF01'.
If Yes, than you can try with the following code
If sy-tcode = 'VF01' or sy-batch = 'X'.
But be careful since the userexit may be triggerd for some other standard programs also
I suggest you can add few more checks, like billing document type.
Since you may access to XVBRK, which is the billing header internal table
Regards
Madhan D
Edited by: Madhan Doraikannan on Jun 24, 2009 2:04 PM