cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform printing has to be stopped for first time based on condition

Former Member
0 Kudos

Hi,

I had a smartform where i need to develop one scaenario.

While Invoice creation, if the invoice is having the Usage Indicator '005'(VBRP-VKAUS), we need to stop printing the invoice for first time only.

If the users are trying to re-print it it should be printed.

Regards

Jai

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member628395
Active Participant
0 Kudos

Hi,

For this purpose, you can use the NAST table. Pass the Invoice Number to the ObjKey of the table and check the VSTAT field. It keeps a track of the Processing status.

0 Not processed

1 Successfully processed

2 Incorrectly processed

Regards,

Sagar

former_member188005
Contributor
0 Kudos

If your are talking about the sales invoice then, please check the varaible IS_REPEAT. If the value is balnk then its the first copy and if the value is 'X' is the repeat copy.

Based on this condition you can build your logic .

Regards.