cancel
Showing results for 
Search instead for 
Did you mean: 

forms to print for cancelled purchase orders

Former Member
0 Kudos

Hi to all,

The standard driver program for purchase order is SAPFM06P.

It gives print output only for purchase orders which are not cancelled.

But the <b>requirement is i want to print the layout for the cancelled purchase orders also .</b>If any one knows please help me in this regard.

Regards

Raj

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You need to do the followin

1. How are you going to identify cancelled purchase orders?

2. Is there a status field that you will deal with

Once that part is identified, the same print program will fire and you can check the flag whether it is a normal purchase order or a cancelled one and accordingly you can call a different smart form.

But the important part is to identify a cancelled purchase order.

Regards,

Ravi

Note - Please mark all the helpful answers

Former Member
0 Kudos

Hi Ravi,

The field is LOEKZ = 'L' in EKPO.

It indicates the deletion .

Regards

Raj

Former Member
0 Kudos

Alright then, in your print program get all the line items from the PO and figure which ones have been deleted using the LOEKZ field.

For those fields you can design a different smart form and for the rest of the fields call the usually smart form. You need to be sure to separate the deleted line items and normal ones.

You will have to copy SAPFM06P and write your own logic to separate the line items and then call different forms depending on the logic. The copied print program should be configured in NACE transaction in place of the original program.

Regards,

Ravi

Note - Please mark all the helpful answers

Message was edited by:

Ravikumar Allampallam