Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

reading check boxi n a multiline classical report...

hi,

in my report, i have multiline data displayed...like for e.g.

first line displays shipment data, second line is a continuation of shipment data. third line is a header line to show deliveries under that shipment, fourth line shows the deliveries , one per line and then next shipment and so on.

now the first line of every shipment has a checkbox displayed.

when the user finally chooses to print this report, i need to read only those shipments that are selecte by user and process only them.

this is a simple classical report. please tell me how to write the code to capture the checkbox selection.

thks

Tags:
replied

Check this

AT LINE-SELECTION. 
  DO. 
    READ LINE sy-index FIELD VALUE chkbox.
      IF chkbox = 'X'. 
      read line sy-index field value i_mara_t-matnr. 
      read table i_output with key matnr = _mara_t-matnr.
      if sy-subrc eq 0.
         move 'X' to i_output-selected.
         modify i_output.
      endif.
     ENDIF. 
  ENDDO. 

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question