cancel
Showing results for 
Search instead for 
Did you mean: 

Print billing document by providing document number as parameter separately

Former Member
0 Kudos

Hi experts,

We are aware that we can print billing document from VF03.

My client want a separate program which takes document number

as input and produces the same form which we find in VF03.

I copied the form to a zform.

I tried giving as separate import parameter PARA_BIL_NUMBER

in the form interface.

Initialize IS_BIL_INVOICE-HD_GEN-BIL_NUMBER toPARA_BIL_NUMBER

But this throws an error message saying that value of

IS_BIL_INVOICE-HD_GEN-BIL_NUMBER cannot be changed.

Can some one suggest the best method to acheive this.

Thanks

Joshi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

In a previous assignment, all custom forms I created could be called from an application transaction or from stand-alone transaction code or Sx38.

In SAP's forms driver programs, you have an entry point....the application enters the program there supplying some value. In my customer version for stand-alone execution, I had a start-of-selection routine that got the document number from the screen parameter, did the necessary setup, such as obtaining the form name, or reading NAST, etc., and passed that document number and any additional fields (named in using parameters) to the entry point subroutine. Or, SAP entered at the entry point subroutine, supplying NAST, etc.

From that point on, the program essentially is the same.

Former Member
0 Kudos

Thanks friend,

It was a good to get nice guidance from you people.

Any how the requirement has now changed to view the pdf through

web portal. I would try it in Web Dynpro.

Bye

Answers (1)

Answers (1)

brad_bohn
Active Contributor
0 Kudos

See the 'pass by value' checkbox setting for the parameter in the interface. It's not marked for performance reasons but you could check it since it's a custom form. However, it doesn't sound like your approach is correct. The IS_BIL_INVOICE structure and all of its subcomponents are pre-populated by the driver program; simply switching the invoice number in the form initialization isn't going to work. You need to trigger the output externally with your invoice number.

Former Member
0 Kudos

Thanks Bradd,

It was a good to get nice guidance from you people.

Any how the requirement has now changed to view the pdf through

web portal. I would try it in Web Dynpro.

Bye