Show TOC

Function documentationFetch any Further Data and Produce the Form for List GUIBBs

 

After the event handling for previous and next (where you naturally know if the user has requested a different output), you should then produce the form according to the selection made by the user.

Activities

  1. Check if a new selection has been made.

  2. Fetch any PERNR-specific data you need for generating the form, for instance, infotype data.

  3. Generate the output form, which means call your report, ready to put in into the Document Container (that will happen in the next step).

  4. Handle any errors coming from the report, or from the reading of the infotype data and so on.

Note Note

If you re-implement a Java scenario, refer to the Java implementation of your scenario on what exactly you must do, as it will be different for every scenario.

End of the note.

Example Example

Code example for checking if the user has changed the list selection or if a Previous or Next event has been processed (this is all evident from the comparison of the incoming CV_LEAD_INDEX and the class’ own GV_PREV_LEAD_INDEX:

End of the example.

Syntax Syntax

  1. IF cv_lead_index NE gv_prev_lead_index.
  2. 	ME->PRODUCE_FORM(
  3. 		EXPORTING
  4. 			IV_ACTUAL_LINE = cv_lead_index
  5. 		IMPORTING
  6. 			EV_PDF_CONTENT = lv_output_content            ).
End of the code.