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

Re: mandatory custom field in me21n : not triggering

$
0
0

hi atul,

 

i'm using  process_header .. in that i'm getting condition value ..

 

according to patricular condition value i want to make that custom field mandatory ..

 

but in   loop at screen

 

screen name is not trigerring inside the "process_header"

 

sample code :

 

 

if sy-tcode = 'ME21N' OR SY-TCODE = 'ME22N'.
*    BREAK SSSMM.
     DATA : l_item TYPE purchase_order_items.
   DATA : l_single TYPE purchase_order_item.
   DATA : l_item_cond TYPE mmpur_tkomv.
   CALL METHOD im_header->get_items
     RECEIVING
       re_items = l_item.
   LOOP AT l_item INTO l_single.
     CALL METHOD l_single-item->get_conditions
       IMPORTING
         ex_conditions = l_item_cond.
   ENDLOOP.
   ENDIF.



if l_item_cond-kwert > 15000000.
   LOOP AT SCREEN.
     IF SCREEN-NAME = 'EKKO_CI-ZARIBA'.-------> this part not trigerring
       SCREEN-INPUT = '1'.
       MODIFY SCREEN.
       ENDIF.
     ENDLOOP.

endif.


Viewing all articles
Browse latest Browse all 8851

Trending Articles



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