Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Step 1

Enter any data in Field1 and click Submit.

Step 2

Check the Data Report in transaction /n/IQX/FAB_DATA. Enter the Form Name and click Execute.

The data has been submitted. The current status is Approval and the next approver is FABAPPR1.

Image RemovedImage Added

Step 3

Log in to the application as the Approver. Go to My Forms → To Approve. Open the application and select Approve.

Step 4

Refresh the Data Report in transaction /n/IQX/FAB_DATA.

The current status is Update SAP and the next approver is WF-BATCH.

Image RemovedImage Added

Step 5

Go to transaction SM37 search for Jobs with a similar name as the application.

Image RemovedImage Added

Step 6

Refresh the Data Report in transaction /n/IQX/FAB_DATA.

The Current Status is now Completed. The Header Changes show the history and the Log shows all the relevant log entries.

Image RemovedImage Added

The field Result holds the random number generated from the class.

Image RemovedImage Added

Step 7

Check the results from the application. Log in as the Submitter. Go to My Forms → Submitted By Me.

Image RemovedImage Added

Negative Testing

Step 1

Go to Code to open the Form Life-Cycle dialog. In the Form Life-Cycle dialog, select the button ABAP Routine next to the Perform System/Background Task to open the Class editor.

Use the following logic in method PERFORM_SYSTEM_TASK. For testing purposes, set the value of parameter E_SUCCESS to ABAP_FALSE.

Code Block
languageabap
data: lv_message type string.

lv_message = |Error creating Document|.

call method me->add_to_log   "log your results
  exporting
    i_form_name = i_form_name
    i_instance  = i_instance
    i_type      = 'E'
    i_message   = lv_message.

e_success = ABAP_FALSE.

Step 2

Repeat Steps 1 to 5 from the Positive Testing guide.

In transaction SM37, the job logged a Failure message.

Image RemovedImage Added

Step 3

Check the Data Report in transaction /n/IQX/FAB_DATA. Enter the Form Name and click Execute.

The Current Status is now Administrator. The errors are included in the Log.

Image RemovedImage Added

The Administrator defined in transaction /n/IQX/FAB_CONFIG or in method DETERMINE_APPROVERS_FOR_ROLE can rectify the issue or and resubmit the Form.

Debugging and Troubleshooting

...