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

Purchase Order Printing

Former Member
0 Likes
655

Hello Gurus,

Good day to all, I just to ask some help on this,

1. What table in SAP that tells if a PO is already printed?

2. Can i use ABAP program to tag a PO to printed? Is there any BAPI for this?

Currently im developing RFC programs, and I really need this, I have no idea where these tables and how to update this using ABAP,Kindly give me snippet of codes if you have some, any help will be greatly appreciated, thanks in advance.

6 REPLIES 6
Read only

Former Member
0 Likes
615

Hi,

You have to get the information from NAST table.

Select kappl objkey kschl nacha vstat
from nast
where kappl = 'EF'
and     objkey = <po number>
and     kschl = <print output type/message type>
and     nacha = '1'    "print output"
and     vstat = '1'      "Ouptut successfully generated"

if sy-subrc eq 0.
  Output generated.
else.
 output not generated.
endif.

Regards

Vinod

Read only

0 Likes
615

Hi Vinod thank you very much for the info, I will try this, but how about tagging a PO number to printed using ABAP is this possible?

Read only

0 Likes
615

Hi,

I don't think there is any standard field available to store the printing indicator. You can use any unused field for storing the custom information.

Regards

Vinod

Read only

0 Likes
615

okey, thank you very much for the information.

Read only

0 Likes
615

okey, thank you very much for the information.

Read only

0 Likes
615

problem solved.