Skip to Content
avatar image
Former Member

APO-SNP Planning book BAPI_PBSRVAPS_CHANGEKEYFIGVAL2

Hello experts,

In the BAPI "BAPI_PBSRVAPS_CHANGEKEYFIGVAL" for locking and unlocking the planning area there is an error message "Locking planning area for planning book & has failed" .

This is urgent ,can anybody please help me out why this error message appears.

Thanks in advance.

Sandhya

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Nov 23, 2007 at 11:14 AM

    Hi Sandhya,

    I didn't get you properly. Do u need an function module for locking and unlocking the planning book or the BAPI function module 'BAPI_PBSRVAPS_CHANGEKEYFIGVAL' throws u an error?

    Regards,

    Siva.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Sivaprakash,

      The BAPI is throwing the error message.

      Locking planning area for planning book has failed.

      Thanks and Regards,

      Sandhya

  • avatar image
    Former Member
    Nov 23, 2007 at 08:29 PM

    Can you specific how you have configured your planning area in terms of locking logic ? It can be found in your planning area configuration.

    Is this APO DP or SNP ? I am assuming this is the former.

    The reason why you are getting that message is that the key figure for the same CVC intersection may be getting edited by some other user in batch or dialog mode. When you get this messeage that you have mentioned, please go to SM12 to see what are objects getting locked and by whom. Hopefully you will know.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Srinivas,

      Thank you very much for reply

      This error is getting in APO SNP. In the BAPI

      The FM /sapapo/ts_dm_lock is calling FM Enque_report and if this function module is filling the table "enq" then the locking is failing .

      Can you please tell me what this table contains.is this table is filling with the both the users who are trying to edit the keyfigure values.

      Thanks and Regards,

      Sandhya