Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8065

Re: Condition Inside a loop

$
0
0

Hi ,

     You are using same ls_SWPSTEPLOG in all data fetching , which will overwrite,make it different

ls_SWPSTEPLOG,ls_SWPSTEPLOG1,ls_SWPSTEPLOG2


loop at lt_SWPSTEPLOG into  ls_SWPSTEPLOG.


READ TABLE  lt_SWPSTEPLOG INTO ls_SWPSTEPLOG1WITH KEY returntyp = 'RC' BINARY SEARCH

   IF sy-subrc = 0.

     START_DATE = LOG_DATE.

     START_TIME = LOG_TIME.

    

     READ TABLE  lt_SWPSTEPLOG INTO ls_SWPSTEPLOG2WITH KEY returntyp = 'EV'

                         wf_id = ls_SWPSTEPLOG1-wf_id

                         node_idls_SWPSTEPLOG1-node_id

                         

                           wi_id = ls_SWPSTEPLOG1-wi_id

                         task_idls_SWPSTEPLOG1-task_id

          if sy-subrc = 0.

                   compl_date = ls_SWPSTEPLOG2-logdate

                    ...

          endif.



   ENDIF.


Regards


Viewing all articles
Browse latest Browse all 8065

Trending Articles