19.09.2016 Views

Transportation Management with SAP LES

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Dangerous Goods Check in the Shipment Document 9.4<br />

I save this setting and start the dangerous goods check again in the delivery document.<br />

I now get an error message again (see Figure 9.22).<br />

Figure 9.22 Error Log After New Dangerous Goods Check<br />

If you want to perform additional checks, you must develop the corresponding<br />

function modules for this purpose yourself. Naturally, this is where the developer<br />

is required. Take the function just described as an example. The HAZMAT_CHK_<br />

MOT function module, which checks the “Not apprvd” indicator, merely consists<br />

of four lines of code (see Listing 9.1)<br />

CLEAR E_REACT.<br />

IF NOT I_DGTMD_REC-DGTNA IS INITIAL.<br />

* if dgtna is not initial, the mode of transport category is not<br />

* permissible; in this case we set the returncode true which means that<br />

* the reaction which is specified in customizing, will be processed<br />

E_REACT = ‘X’.<br />

ENDIF.<br />

Listing 9.1 Function Module as an Example of a Dangerous Goods Check<br />

If you have created your function module, maintain it in the dangerous goods<br />

check method and arrange the check method in the required dangerous goods<br />

check schema.<br />

9.4 Dangerous Goods Check in the Shipment Document<br />

As was already mentioned at the beginning of this chapter, you can also perform<br />

dangerous goods checks in the shipment document. The first part of this section<br />

will show you how to activate this check for shipment documents. To be able<br />

to perform the dangerous goods check, the dangerous goods master record that<br />

depends on the mode of transport and validity area must be read. The second part<br />

of this section will explain how you determine this information from the shipment<br />

document and which settings are required. The third part is dedicated to illustrating<br />

some examples.<br />

Personal Copy for Tina Mastrup, user id 9f19c686-d5e1-4016-94fd-ebc72e1b8f7e<br />

337

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!