Skip to Content
author's profile photo Former Member
Former Member

BAPI_ALM_CONF_CANCEL issue

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.


















iw33.png (13.1 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Dec 28, 2013 at 05:26 AM

    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

    .

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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'.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.