i'm convert this condition:
LOOP AT gt_zgd_check_smc_st INTO gs_zgd_check_smc_st
SELECT *
FROM ever
INTO wa_ever
WHERE anlage EQ wa_euiinstln-anlage
AND einzdat <= wa_zgd_check_smc_st-data_inizio
AND auszdat >= wa_zgd_check_smc_st-data_inizio.
ENDSELECT.
IF sy-subrc NE 0.
-code error--
ENDIF.
ENDLOOP.
But client not like beacuse is more slowly and i changing it in:
LOOP AT gt_zgd_check_smc_st INTO gs_zgd_check_smc_st
READ TABLE gt_ever INTO gs_ever WITH KEY anlage = gs_euiinstln-anlage.
IF sy-subrc = 0.
IF gs_ever-einzdat ?? gs_zgd_check_smc_st-start_date "date
AND gs_ever-auszdat ?? gs_zgd_check_smc_st-start_date. "date
--CODE WITH RECORD ERROR--
ELSE.
--- CODE WITH RECORD ERROR ---
ENDIF.
ENDLOOP.
I don't know whitch operatore to insert after einzdat and auszdat so it works as SELECT-ENDSELECT. PS.GT_EVER is in FOR ALL ENTRIES with anlage of EUIINSTLN.
thank you all regards.
Aucun commentaire:
Enregistrer un commentaire