Skip to Content

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

fetching check box value in module pool

Hi,

I hav written the below code to fetch the check box value on saving.

this value has to get inserted into the table.

but its not fetching the value,kindly guide mewhere i went wrong.

DATA: YQCHECK TYPE C,

YCHECK TYPE C.

CASE sy-ucomm.

WHEN 'BU'.

if YQCHECK EQ 'X' OR YCHECK EQ 'X'.

SELECT prueflos

werk

matnr

enstehdat

FROM qals

INTO CORRESPONDING FIELDS OF TABLE t_qals

WHERE prueflos = i_qals-prueflos.

IF sy-subrc = 0.

LOOP AT t_qals

INTO l_qals WHERE prueflos = i_qals-prueflos.

l_qals-fm_approval = YCHECK.

l_qals-cqa_approval =YQCHECK .

l_qals-username = sy-uname.

l_qals-timestamp = sy-uzeit.

l_qals-last_changed_dat = sy-datum.

MODIFY t_qals FROM l_qals TRANSPORTING fm_approval

cqa_approval

username

timestamp

last_changed_dat.

*insert TABLE YUD_RECORDING from table t_qals

IF sy-subrc = 0.

INSERT yud_recording FROM TABLE t_qals .

COMMIT WORK.

ENDIF.

ENDLOOP.

Kindly,guide me where i went wrong.

Former Member
Not what you were looking for? View more on this topic or Ask a question