‎2009 Jun 09 2:42 PM
Hello Experts,
how can I say not empty. I have to assure that this field is filled
READ TABLE et_item WITH KEY PARTNER_PROD NOT EMPTY TRANSPORTING NO FIELDS.
IF sy-subrc <> 0.
RAISE error.
ENDIF.
Regards
ertas
‎2009 Jun 09 2:47 PM
Hi,
Code as follows:-
READ TABLE et_item WITH KEY PARTNER_PROD = SPACE TRANSPORTING NO FIELDS.
IF sy-subrc eq 0.
RAISE error.
ENDIF.Regards,
Ankur Parab
Edited by: Ankur Parab on Jun 9, 2009 7:17 PM
‎2009 Jun 09 2:45 PM
Try if this works....
READ TABLE et_item WITH KEY PARTNER_PROD NE SPACE TRANSPORTING NO FIELDS.
IF sy-subrc 0.
RAISE error.
ENDIF.
‎2009 Jun 09 2:47 PM
Hi Iihan,
It is simple.
The READ command accepts only the Equal SIgn.
Hence, Try this below given logic
Loop at et_item where partner_prod ne SPACE.
Exit.
Endloop.
If sy-subrc eq 0.
* Capture the Success Message
Else.
* Failiure Message
Endif.Rgds,
Ramani N
Edited by: Ramani Nagarajan on Jun 9, 2009 3:48 PM
‎2009 Jun 09 2:47 PM
Hi,
Code as follows:-
READ TABLE et_item WITH KEY PARTNER_PROD = SPACE TRANSPORTING NO FIELDS.
IF sy-subrc eq 0.
RAISE error.
ENDIF.Regards,
Ankur Parab
Edited by: Ankur Parab on Jun 9, 2009 7:17 PM
‎2009 Jun 09 2:49 PM
Hello,
A easier way of coding this will be:
L_IT_TEMP = ET_ITEM.
V_LINES = LINES( L_IT_TEMP ).
DELETE L_IT_TEMP WHERE PARTNER_PROD = SPACE.
V_LINES1 = LINES( L_IT_TEMP ).
IF V_LINES NE V_LINES1.
" RAISE error.
ENDIF.
Hope this helps.
BR,
Suhas