Start of Content Area

Background documentation Program Flow when Calling Actions Locate the document in its SAP Library structure

Below is a list of the individual technical processing steps that the system performs if a warranty claim is changed in transaction WTY.

This information is mainly aimed at technical consultants who want to create and include customer-specific actions.

Presentation Layer PAI

...

       1.      Transfer data from presentation layer buffer to the dialog structures

       2.      Process OK codes that are not represented as actions and that are not processed after the processing layer (load, ACTION etc.)

       3.      Call processing layer

       4.      Process OK codes that are not represented as actions and that are processed after the processing layer because they access an up-to-date buffer (save, CANCEL, BACK etc.)

Processing Layer (Method Claim_Maintain of Class CL_PPELIWTY_CNTL)

...

       1.      Data transfer from presentation layer or BAPI

       2.      Determine current warranty claim header and current warranty claim version

       3.      Check the user authorization and, if required, terminate processing

       4.      Read Customizing for claim

       5.      Data transfer form the dialog structures to the buffer structures of the processing layer

       6.      Read buffer before changes are made to warranty claim and save in a temporary table

       7.      Call BAdI WTY_DATA_CHANGE_1 with method DATA_CHANGE_1. This BAdI is used to change the warranty claim before calling standard processing.

       8.      Compare old buffer content with new content

       9.      If changes exist: determine additional data (for example texts, master data, Customizing, measuring points etc.) Then call BAdI WTY_CREATE_COPY with method data_change_change This BAdI allows changes to be made in the change mode for warranty claims

   10.      Update buffer with the current data (inclusive pricing)

   11.      Call action control: the buffer is read for each of the actions to be called, the action is executed, the target processing status determined, the totals on header and version level calculated and, if required, the buffer is updated. If an action returns an error, the old buffer with the warranty claim data is restored.

Presentation Layer PBO

...

       1.      Read the current buffer content of the processing layer and transfer to the puffer structures of the presentation layer

       2.      Call the different subscreens

 

 

End of Content Area