WebAug 14, 2016 · Using COND as a Replacement for IF/ELSE in ABAP 7.4 Since CASE statements can only evaluate one variable at a time, we use the IF/ELSE construct when we need to check multiple conditions. Look at the example below… DATA: lv_text (30). IF lv_vehicle = '01' AND lv_type = 'C'. lv_text = 'Toyota'. ELSE. WebJun 12, 2013 · I'm fairly new to ABAP and i'm trying to delete entries from the internal table that don't contain certain value/s. Below is a code that worked for me: LOOP AT BASIS. IF pa_WKZS = 'X' AND BASIS-ARBPL NE '2056' DELETE BASIS. ENDIF. ENDLOOP. If pa_WKZS is checked at selection I want it to only show ARBPL with value = 2056.
DELETE records from Database with WHERE Clause and then INSERT ... - SAP
WebJan 21, 2024 · Now I want to delete all entries where C2 = 1 occurs, with the condition that if one entry of C1 has C2 = 1, that all the same entries of C1 are also deleted.. The result should be as follows: C1 C2 Z 5 That means: C1 C2 X 1 --> C2 = 1! X 2 --> C2 was 1, so that entries gets deleted as well Y 1 --> Same as X 1 Y 5 --> Same as X 2 Weblike is not allowed in delete statement, to delete record from itab with some starting letters you can fellow code as satish did or u can go with below code . DATA it_mara TYPE STANDARD TABLE OF mara INITIAL SIZE 0 WITH HEADER LINE. SELECT * FROM mara INTO TABLE it_mara UP TO 10 ROWS. LOOP AT it_mara. IF it_mara-matnr+0 (3) = 'SAP'. destin homes for rent on the beach
Delete from work area syntax SAP Community
WebDec 12, 2024 · I want to delete entries from an internal table, which has not a "+" in one column. Now, if I want to delete it like this: DELETE internal_table where field1 <> '+'. it … WebMay 15, 2013 · In an Abap program, I have an internal table at the end of my treatments as following: Itable: Field1. Field2. Field3. 1. AAA. 24. 2. BCD. 21. 3. DEF. 35. I want simply to delete all the records from that table when the first letter in records contained in field 2 … destin harbor inn beach