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

I have a perform endperform in Script. But tht is not working in some case

$
0
0

This perform is changing values in some output types..where as its not changing values for some cases


/: PERFORM GET_WAERH IN PROGRAM ZUBBPOOL
/: USING &VBDKR-KNUMV&
/: CHANGING &W_WAERS&
/: ENDPERFORM


FORM get_waerh TABLES in_tab STRUCTURE itcsy
  out_tab STRUCTURE itcsy.
* -----------------------------------------
  LOOP AT in_tab.

  CASE in_tab-name.

  WHEN 'VBDKR-KNUMV'.
  SELECT SINGLE * FROM konv
  WHERE knumv = in_tab-value.
  IF sy-subrc = 0.
  SELECT SINGLE * FROM konp
  WHERE knumh = konv-knumh.
  ENDIF.
  ENDCASE.

  ENDLOOP.
* -----------------------------------------
  LOOP AT out_tab.

  CASE out_tab-name.

  WHEN 'W_WAERS'.

  IF konp-kwaeh <> ' '.
  MOVE konp-kwaeh TO out_tab-value.
  ELSE.
  MOVE konv-waers TO out_tab-value.
  ENDIF.

  ENDCASE.

  MODIFY out_tab.

  ENDLOOP.
  CLEAR: konp-kwaeh, konv-waers.

ENDFORM. "get_waerh




It is going into the program changing the value,modifying the out_tab values too,...but on returining to script doesnt reflect value.Kindly help


Viewing all articles
Browse latest Browse all 3576

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>