‎2007 Mar 26 4:20 PM
Hi All,
My queries as below. Hope can solving my issues. Thanks!
I have to check for the value assignment in table CABN -ATEIN.
If the value in that field equal to 'X', then I have to append the value 'S' to internal table i-display, otherwise will put 'M'.
Please correctly me if my coding wrongly.
code:
Select field1 field2 atein into (itab1_A, itab1_B, i_display) from CABN.
If the cabn-atein EQ 'X'.
itab1-atbew = 'S'.
ELSE.
itab1-atbew = 'M'.
ENDIF.
endselect.
Append itab1.
‎2007 Mar 26 4:28 PM
Hi Little,
Try as follows.
SELECT FIELD1 FIELD2 ATEIN INTO TABLE ITAB1
FROM CABN.
UPDATE ITAB1 SET ATBEW = 'S' WHERE ATEIN = 'X'.
UPDATE ITAB1 SET ATBEW = 'M' WHERE ATEIN = ' '.
Thanks,
Vinay
‎2007 Mar 26 4:28 PM
Hi Little,
Try as follows.
SELECT FIELD1 FIELD2 ATEIN INTO TABLE ITAB1
FROM CABN.
UPDATE ITAB1 SET ATBEW = 'S' WHERE ATEIN = 'X'.
UPDATE ITAB1 SET ATBEW = 'M' WHERE ATEIN = ' '.
Thanks,
Vinay
‎2007 Mar 26 4:29 PM
Hi,
select field1 field2 atein into itab1.
if cabn-atein eq 'x'
i-display-atbew = 's'
else
i-display-atbew = 'm'
endif
append i-display.
endselect
Regards,
Bhaskar
‎2007 Mar 26 4:31 PM
Hi,
select field1 field2 atein atbew from CABN into corresponding field table itab1.
loop at itab1.
if itab1-atein eq 'X'.
itab1-atbew = 'S'.
ELSE.
itab1-atbew = 'M'.
ENDIF.
modify itab1 index sy-tabix.
endloop.
aRs
‎2007 Mar 26 4:33 PM
Hi,
Select field1 field2 atein into (itab1_A, itab1_B, i_display) from CABN
where ATEIN = 'X'.
IF sy-subrc = 0.
itab1-atbew = 'S'.
ELSE.
itab1-atbew = 'M'.
ENDIF.
Append itab1.
endselect.Regards
Sudheer