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

Help in smartform again

Former Member
0 Likes
356

Hi

i ask before:

i copy LE_SHP_DELNOTE to Z-smartform

i want to know how can know if the invoice is original ( print one time ) or copy ( print more than one )

Thanks

have a nice day

i got answer to check in nast table i check it and is not work the field nast-VSTAT mean print or display so maybe there is other option?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
334

Hi

What do you exactly know?

If a message was printed the field NAST-VSTAT has the value 1, only this field has this informations.

So:

SELECT * FROM NAST WHERE KAPPL = 'V2'

AND OBJKEY = <DOCUMENT NUMBER>

AND KSCHL = <MESSAGE TYPE>

AND VSTST > 0.

In this way you can know if a document was printed in the past.

But if you need to know if a document is printed for several times in the same time, you can't use the NAST table and you should chage the driver program to check that.

Max

Hi

i ask before:

i copy LE_SHP_DELNOTE to Z-smartform

i want to know how can know if the invoice is original ( print one time ) or copy ( print more than one )

Thanks

have a nice day

i got answer to check in nast table i check it and is not work the field nast-VSTAT mean print or display so maybe there is other option?

1 REPLY 1
Read only

Former Member
0 Likes
335

Hi

What do you exactly know?

If a message was printed the field NAST-VSTAT has the value 1, only this field has this informations.

So:

SELECT * FROM NAST WHERE KAPPL = 'V2'

AND OBJKEY = <DOCUMENT NUMBER>

AND KSCHL = <MESSAGE TYPE>

AND VSTST > 0.

In this way you can know if a document was printed in the past.

But if you need to know if a document is printed for several times in the same time, you can't use the NAST table and you should chage the driver program to check that.

Max