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

Re: End Routine

$
0
0

Hello Jaco,

 

pls remove quotes ( ' ) of WA_RESULT_PACKAGE-/BIC/ZOCORDDAT in above code.

 

use below code:

 

DATA: WA_RESULT_PACKAGE TYPE _ty_s_TG_1.

LOOP AT RESULT_PACKAGE INTO WA_RESULT_PACKAGE .

  IF WA_RESULT_PACKAGE-CPR_CHON EQ ' '.

     WA_RESULT_PACKAGE-CPR_CHON = WA_RESULT_PACKAGE-/BIC/ZOCORDDAT .

     ENDIF.

   MODIFY RESULT_PACKAGE FROM WA_RESULT_PACKAGE.

ENDLOOP.


***********************************************


Although, i will suggest to use field symbol for future requirement.


code using Field Symbol, u can try this code instead of above code:


LOOP AT RESUL_PACKAGE assigning <RESULT_FIELDS>.

  IF <RESULT_FIELDS>-CPR_CHON EQ ' '.

     <RESULT_FIELDS>-CPR_CHON = <RESULT_FIELDS>-/BIC/ZOCORDDAT .

   ENDIF.

ENDLOOP.


""" if u are using field-symbol , then no need to use MODIFY statement


Regards,

Hitesh


Viewing all articles
Browse latest Browse all 3316

Trending Articles



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