org.hibersap.annotations
Annotation Type ThrowExceptionOnError


@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface ThrowExceptionOnError

Generate a SapException when the function module returns errors in a RETURN structure or table.

Author:
Carsten Erker

Optional Element Summary
 String[] errorMessageTypes
          The message types which Hibersap shall interpret as an error.
 String returnStructure
          Contains the path to the BAPI's return structure or Table.
 

returnStructure

public abstract String returnStructure
Contains the path to the BAPI's return structure or Table. The first element should be 'EXPORT' or 'TABLE' to indicate if the return structure is defined as an export or table parameter. The last element is the name of the return structure, usually 'RETURN'.

Default:
"EXPORT/RETURN"

errorMessageTypes

public abstract String[] errorMessageTypes
The message types which Hibersap shall interpret as an error. In these cases an Exception will be thrown. The RETURN structure's field TYPE is compared to the message types.

Default:
{"E", "A"}


Copyright © 2011 akquinet tech@spree GmbH. All Rights Reserved.