Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8894

Po Creation Price Change Updation.

$
0
0

I am fetching some pricing condition values from  the  ztable, And    passing to PO   while  creation.

 

BADI: ME_PROCESS_PO_CUST

 

 

METHOD: IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM

 

 

CODE:

 

im_item->get_conditions( IMPORTING ex_conditions = lt_conditions ).

 

LOOP AT  lt_conditions INTO ls_condition  WHERE  kposn = ls_mepoitem-ebelp. "AND

                                                                              kschl = 'ZGR'.

         lv_flag = 'X'.

         ls_condition-kbetr    = lv_exval.

         ls_condition-kwert    = lv_exval.

         MODIFY lt_conditions FROM ls_condition TRANSPORTING kbetr kwert.

         im_item->set_conditions( EXPORTING im_conditions = lt_conditions ).

ENDLOOP.

 

While executing  Pricingvalues updated in ME21N  but displaying

ERROR An endless loop occurred during the processing of the Business Add-In ME_PROCESS_PO_CUST. The system terminated the processing.

 

 

ADDED Below code to avoid  Error.

 

cl_po ?=  im_header.

    IF NOT  cl_po->my_recheck_queue IS INITIAL.

        CLEAR cl_po->my_recheck_queue.

      ENDIF.

 

But   pricing conditions  values not getting updated in Po.


Viewing all articles
Browse latest Browse all 8894

Trending Articles



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