cancel
Showing results for 
Search instead for 
Did you mean: 

SSF: How to handle error when trying to print unknown graphic

TMNielsen
Contributor
0 Kudos

Hi

I have a sales order confirmation smartform printing a dynamic graphic - the graphic name is a variable like &GV_DRAWING&.

The variable graphic name is constructed depending on configuration of a sales order item.

The config characteristic "DRAWING" can have values 1,2,3 and depending of this value I construct the graphic name DRAW1, DRAW2 or DRAW3.

I have loaded 3 graphics with these names in SE78 and everything works fine,

BUT

If someone in future expands the characteristic to also allow value 4, but no DRAW4 is loaded in SE78, the sales orders with value 4 will not print any order confirmation - there will be no error message - simply no print.

Now a programmer can probably trace this error, and after a days works find error message ssfcomposer 159 and say: "Ahaaa we need to load a DRAW4 graphic".

How can I program a better solution, that will simply print the order confirmation without the graphic or maybe issue an error message explaining the problem?

Best regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

In the driver program, after constructing the Graphic object name, check whether the entry is available in table - "STXBITMAPS". If available, then only pass the graphic object name to smartform, else display a error message from the driver program itself.

Thanks

Answers (0)