Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_ALM_CONF_CANCEL issue

Former Member
0 Kudos

I was trying to do the Confirmation Cancelation using the
BAPI
BAPI_ALM_CONF_CANCEL, everything is
cancelling. my issue is, if there are more than 2 items, it is not reversing
it. only first two items will reverse it ( can see iw33) . rest of them will
not reverse it and everything will cancel . not sure what is the issue. using the standarding BAPI.




 
 
 
 
 
 
 
 
 
 
 
 


2 REPLIES 2

former_member187748
Active Contributor
0 Kudos

Hi Thomaskutty,

have you passed all the parameters correctly, please see the sample code here.

And please see what are you getting in return parameters.

CALL FUNCTION 'BAPI_ALM_CONF_CANCEL'

  EXPORTING

  confirmation = " bapi_conf_key-conf_no Confirmation

  confirmationcounter = " bapi_conf_key-conf_cnt Confirmation counter

* postgdate = " bapi_alm_confirmation-postg_date Posting Date

* conftext = " bapi_alm_confirmation-conf_text Confirmation Text

  IMPORTING

  return = " bapiret2 Return Parameter

  locked = " bapi_coru_param-locked Indicator: Order is locked

  created_conf_no = " bapi_conf_key-conf_no Confirmation of cancellation record

  created_conf_count = " bapi_conf_key-conf_cnt Confirmation counter for cancellation record

  .

0 Kudos

I am using all the parameters. I also tried with RFC  'CORU_MASS', it also giving the same issue.

able to cancel any number of items, but reversing only first two items.

      CALL FUNCTION 'BAPI_ALM_CONF_CANCEL'

       
EXPORTING

          CONFIRMATION       
= wa_afru_canc-RUECK

          CONFIRMATIONCOUNTER
= wa_afru_canc-RmZHL

          POSTGDATE          
= wa_afru_canc-BUDAT

          CONFTEXT           
= lv_input_text

       
IMPORTING

         
RETURN              = ls_return

          LOCKED             
= lv_locked

          CREATED_CONF_NO    
= lv_confno

          CREATED_CONF_COUNT 
= lv_confcount.





     
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.