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: 

Populating Billing Document Header Text through background Job

former_member325225
Participant
0 Kudos
954

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos
251

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

1 REPLY 1

Former Member
0 Kudos
252

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