*Please do not have your subject in ALL CAPITALS. Please surround any ABAP code with
{color}*
Hi,
I am working on a code in which i have to display the UD for a Inspection lot,the below mentioned code is working fine but i am facing a problem that there is a field 'QAVE-VBEWERTUNG' which consist of 3 types i.e. 'A' which means accepeted,'R' means rejected and ' ' means Non-Valuted.
I want to display the output i.e. if it is 'A' then should be writtten Material us ok' and vice versa along with other data which had written in write statement.
Here's d code for it :-
Report ZNEW32 NO STANDARD PAGE HEADING.
TABLES: QAVE.
TYPES: BEGIN OF IT_QAVE,
PRUEFLOS TYPE QAVE-PRUEFLOS,
VBEWERTUNG TYPE QAVE-VBEWERTUNG,
VWERKS TYPE QAVE-VWERKS,
VNAME TYPE QAVE-VNAME,
END OF IT_QAVE.
DATA: T_QAVE TYPE IT_QAVE OCCURS 0,
W_QAVE TYPE IT_QAVE.
SELECT-OPTIONS: VWERKS FOR QAVE-VWERKS,
PRUEFLOS FOR QAVE-PRUEFLOS.
SELECT PRUEFLOS VBEWERTUNG VWERKS VNAME
FROM QAVE INTO TABLE T_QAVE
WHERE PRUEFLOS IN PRUEFLOS AND VWERKS IN VWERKS.
SORT T_QAVE BY PRUEFLOS.
LOOP AT T_QAVE INTO W_QAVE.
WRITE:/ W_QAVE-PRUEFLOS,W_QAVE-VBEWERTUNG,W_QAVE-VNAME.
ENDLOOP.
Plzz provide me guideleines to sove this problem. Edited by: Matt on Apr 29, 2009 8:55 AM Added
tags, changed title from ALL CAPITALS
Edited by: Matt on Apr 29, 2009 8:57 AM