cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Script - missing print

Former Member
0 Kudos

Help needed!!!

I am experiencing a strange problem when printing pack slip. Use the same form with different delivery numbers, some print correctly, some will miss some of the information.

When Debug the SAP Script, data passed by the program correctly, but when the print procedure access the variables, some case it continue correctly, some case it skip all the variables from &VBDKL-VBELN_VAUF& and jump to next window.

Under is the script part:

I1 ,,ORDERNO.,,DATE,,PAGE I1

I3 ,,&VBDKL-VBELN_VAUF&

,,&SY-DATUM&

,,&PAGE& &' of 'SAPSCRIPT-FORMPAGES(C)&

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

do you have any condition inside the window?

if condition fails i might skip the lines under the condition on it.

thanks,

vamshi

Former Member
0 Kudos

No condition for this window, it should always being printed.

This form is originated in EN and translated into DE/IT/FR, I have errors in DE/IT.

Thanks

Former Member
0 Kudos

can you please send me the code existing in the other languages since you pasted the code here for E.

Thanks,

vamshi

Former Member
0 Kudos

Code in DE. The weird thing is 2 DE deliverys, one passed one normally, one skipped &VBDKL-VBELN_VAUF&,,&SY-DATUM&,,&PAGE& &' von 'SAPSCRIPT-FORMPAGES(C)&, only the first TAB on this line got printed.

I1 ,,AUFTRAG,,DATUM,,SEITE

I1

I3 ,,&VBDKL-VBELN_VAUF&,,&SY-DATUM&,,&PAGE& &' von 'SAPSCRIPT-FORMPAGES(C)&

Former Member
0 Kudos

Hi,

Check the lenght of the window.May be the height of the window might be small & it did not fit in these vaules.

Former Member
0 Kudos

But some deliveries printed correctly with the same length of order number, date and page information. I don't think the height or length is the problem. Any, thanks for your comments.

Former Member
0 Kudos

Forget to mention that the texts are in a type VAR window other than main window.

Checked the printing program, no WRITE_FORM for any other windows except main window, wonder how SAP process the form in this way?

Former Member
0 Kudos

No need for a write_form for windows without <b>ELEMENTS</b>.

Former Member
0 Kudos

You are right. They are default text elements. I am trying to copy to another client to see whether it is

enviroment related.

Former Member
0 Kudos

You are right. I figured out the problem is caused by height and width. I changed the layout using graphic painter which will not fit exactly using LN unit.

It was confusing because some print out correctly with similar information.

Thanks for everybody's input.

Former Member
0 Kudos

Hi,

If your problem is solved,then please close the thread.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You should use the text element before printing any data say pageno etc.

the command for using the text element is '/:' .

Pass the same in your write_form function when you call this in your driver program .

Thanks and Regards,

Kunal.

Former Member
0 Kudos

Make sure that there is No Element also if window output is needed on all page.

First create it free flowing and test.

That will help.