메뉴 건너뛰기

SAP 한국 커뮤니티

<b>[완료]</b>cursor 프로그램 관련 질문입니다.

order001 2007.12.05 00:42 조회 수 : 9789 추천:30

data: c type cursor,
      wa type sbook.


open cursor c for
     select carrid connid fldate bookid smoker
     from   sbook
     where carrid = 'LH'
     order by carrid connid fldate smoker bookid.


 fetch next cursor c into corresponding fields of wa.

 while sy-subrc = 0.
   if  wa-smoker = ' '.       ==> '  ' 의 의미는 null값인가요?
     perform nonsmoker using c.
    
   elseif  wa-smoker = 'X'.
     perform smoker using c.
     skip.
    
   else.
     exit.
  


endif.
  
  endwhile.
 


  form nonsmoker using n_cur type cursor.
   while wa-smoker = ' ' and sy-subrc = 0.
     format color = 5.
      write: / wa-carrid, wa-connid, wa-fldate, wa-bookid.
      fetch next cursor n_cur into corresponding fields of wa.
  endwhile.
  endform.


  form smoker using s_cur type cursor.
   while wa-smoker = 'X' and sy-subrc = 0.
     format color = 6.
     write: / wa-carrid, wa-connid, wa-fldate, wa-bookid.
     fetch next cursor s_cur into corresponding fields of wa.
   endwhile.
  endform.


 


 


 

번호 제목 글쓴이 날짜 조회 수
947 [요청]SELECT~ENDSELECT 문에서 문의드립니다. [2] 풍뎅이 2007.12.12 5123
946 <b>[완료]</b>변수 CHAR30과 VARCHAR30의 차이 [2] with SAP 2007.12.12 1701
945 <b>[완료]</b>경고 및 에러 메시지 확인 좀 부탁드립니다. [2] 행복한외계인 2007.12.12 1916
944 [요청]provide 문법.. Lora 2007.12.12 2206
943 <b>[완료]</b>질문이요~ [2] bizarre 2007.12.12 1766
942 <b>[완료]</b>하위 레벨을 찾는 BOM 관련 펑션 사용 문의 [3] 행복한외계인 2007.12.12 4304
941 <b>[완료]</b>질문~ [2] bizarre 2007.12.12 1726
940 <b>[완료]</b>tlable 앞의 * 가 의미하는것.. [3] Lora 2007.12.12 1701
939 [요청]ALV LIST STATUS에 관하여 [1] 달이랑 2007.12.12 1674
938 <b>[완료]</b>펑션 [3] 풍뎅이 2007.12.12 1483
937 <b>[완료]</b>icon을 정의하는데 있어서 [4] SAP폐인 2007.12.11 2104
936 <b>[완료]</b>엑셀 업로드시 덤프가 납니다 .. [3] file mean 2007.12.11 2307
935 <b>[완료]</b>select single관련하여 [3] with SAP 2007.12.11 1689
934 [요청]서비스 오브젝트 사용관련 문의 file GG 2007.12.11 1906
933 [요청]인포타입에 알맞은 BDC프로그램 구성에 대하여 .. 혀나미 2007.12.11 1798
932 <b>[완료]</b>Consignment stock 테이블좀 알려 주세요. special stock ind. "K" 요... [2] 노름마치 2007.12.11 2123
931 [요청]ALV 펑션의 user command부분에서 막히는 부분이 있습니다. [1] SAP폐인 2007.12.11 1953
930 <b>[완료]</b>ALV CLASS 중 CL_ALV_CHANGED_DATA_PROTOCOL 문의 드립니다. 비안개 2007.12.11 2528
929 <b>[완료]</b>[re] 메소드 찾았습니다.^^ [2] 비안개 2007.12.11 1840
928 [요청]문의드립니다. [1] 풍뎅이 2007.12.11 1696