cancel
Showing results for 
Search instead for 
Did you mean: 

leave nast-vstat = 0 in sd invoice printing program

paulo_sousa3
Explorer
0 Kudos

we want to run the sd billing document print report, but leave the NAST-VSTAT unchanged (equal to 0) if some conditions are not met for the message (we only want to print the message if an electronic signature was successfully generated for the invoice). The idea is leave the invoce message "yellow" in order to be reprocessed latter by a periodic job, when the problem is solved...

Is there any easy way to do this in the printing report?

Thanks

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

I do not know if there is a better way to do it- but you can check the pre-condition in the print program itself, and leaving it with vstat = 2 (error) as long as the condition is not fulfilled. Then you re-process the output lets say daily via report SD70AV1A (for sales order output). This report is able to select erroneous nast entries and reprocess them. When this is running through, you can set the nast entries for that order to inactive, for preventing any reports to select them again.

Of course a requirement could be used, but it is only processed when updating the order. If this is not the case, the condition logic is not run through by a report like RSNAST00 because no NAST entry exists yet...

Cheers

Thimo

former_member183879
Active Contributor
0 Kudos

Hi,

If you want to put some more restrictions while RSNAST00 processes the outputs, the only way is to include a custom logic while RSNAST00. It should not be very difficult for a developer to put a constraint and then trigger RSNAST00.

check this link once

abapprogramming.net/2007_12_01_archive.html

Shiva_Ram
Active Contributor
0 Kudos

Develop a routine to check the signature field value using t.code VOFM ->Requirements->Output control. The routine can have a logic, if value is missing, put the output status as incomplete.

Then assign this routine against the output condition type in the output determination procedure. The path is SPRO->Sales and distribution->basic funtions->output control->output determination->Maintain output detemination for billing documents->Maintain output determination procedure.

Regards