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

SAP Script Issue for Invoice

former_member184495
Active Contributor
0 Likes
456

Hi,

am using SAP 4.6b,

have an issue with SAPscript for Invoice.

I added a Text Element (R_TEXT) in an already existing Invoice Form (Y_INVOICE).

In PrintProgram i am using a condition based on which i am calling

FM <b>Write_form</b> exporting element = 'R_TEXT' window = 'MAIN'.

1. Now when i open an existing Invoice through VF03 (for my above condition) and give PrintPreview with Printer as LP01, i get the desired Output,

but when i give another Printer for the same invoice i get an error as follows :

<b>'Element R_TEXT window Main is not defined for form Y_INVOICE'</b>.

2. Now, when i create a new invoice and try to save it, its giving me an error as follows :

<b>'Update was terminated' </b>and with Error text similar to above.

Now what could be the reason for this, its giving error for other Printers and while creating a new Invoice.

Rewards for worth.

Aditya.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
434

Hi

If you are getting correct output with LP01 printer, and giving error with some other printer, then it is the problem with Printer.

You check in other printers also.

take the help of a Basis guy and ask him to check the printer settings in SPAD, for the printer in which the print is not coming properly.

If it is a FORM problem, it should give error in Preview also and for each and every printer.

Reward points if useful

Regards

Anji

2 REPLIES 2
Read only

Former Member
0 Likes
435

Hi

If you are getting correct output with LP01 printer, and giving error with some other printer, then it is the problem with Printer.

You check in other printers also.

take the help of a Basis guy and ask him to check the printer settings in SPAD, for the printer in which the print is not coming properly.

If it is a FORM problem, it should give error in Preview also and for each and every printer.

Reward points if useful

Regards

Anji

Read only

former_member184495
Active Contributor
0 Likes
434

answered