Skip to Content

BAPI_CONTRACT_CHANGE

How can I delete partners using this BAPI_CONTRACT_CHANGE function?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • Best Answer
    Mar 03, 2010 at 09:49 AM

    hi myriam ..

    welcome to sdn

    I would encourage you to please read the rules of engagement before posting basic questions

    Are you sure you are using the correct BAPI ?

    never the less

    you must specify the purchasing document number ..

    and

    you should read the function module documentation ..

    BR

    Manthan.

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 03, 2010 at 10:03 AM

    Manthan;

    I was able to add partners to the document , but I have no idea how I can delete a partner

    In the partner table , there is a DELETE_IND field , but no further information how to use this field or BAPI.

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 03, 2010 at 10:24 AM

    do you mean the validity from and to date of the contract ?

    The contract was expired during my first tests and I was able to add partners .

    I've changed the valid to date, but I can't delete partners

    How do I fill the partner and partnerx table ?

    Add comment
    10|10000 characters needed characters exceeded

    • do you mean the validity from and to date of the contract ?

      The contract was expired during my first tests and I was able to add partners .

      I've changed the valid to date, but I can't delete partners

      How do I fill the partner and partnerx table ?

      yes .. i meant the same .. ok ..

      for filling those you can use me23n..

      and u can change them using the same ..

      BR

      Manthan

  • Mar 03, 2010 at 10:48 AM

    ME23N is to change a purchase order

    I'm talking about purchase contracts

    I've added a breakpoint in the BAPI and deleted a partner using me32k , but I didn't fall in the breakpoint

    I just need to know how I have to fill the partner and partnerx to delete a partner

    adding a partner is working when I fill

    LT_PARTNER-PARTN_ROLE = 'EP'

    LT_PARTNER-PARTNR = 'EP008747B1'

    LT_PARTNERX-PARTN_ROLE = 'X'

    LT_PARTNERX-PARTNR = 'X'

    Add comment
    10|10000 characters needed characters exceeded

    • What i believe is like the link below about Po change

      bapi-po-change-problem

      if you assign the *delete_ind = 'x ' * you will be able to flag the Contract for deletion

      Also if this does not work .. there is another work around ..

      like this link below in Structure Partnr you can have Actual values and for the same you can assign X values in PartnrX which will then help in over writing the contract

      Parameter: POSCHEDULE

      PO_ITEM = 00001

      SCHED_LINE = 0001

      QUANTITY = 10.000

      PO_ITEM = 00001

      SCHED_LINE = 0003

      DELETE_IND = X

      Parameter: POSCHEDULEX

      PO_ITEM = 00001

      SCHED_LINE = 0001

      PO_ITEMX = X

      SCHED_LINEX = X

      QUANTITY = X

      PO_ITEM = 00001

      SCHED_LINE = 0003

      PO_ITEMX = X

      SCHED_LINEX = X

      DELETE_IND = X

      Reference Sravanthi's post from [here|bapipochange-in-multiple-sch-line;

  • Jun 03, 2010 at 02:29 PM

    BAPI is updated by SAP to solve this problem

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Can you please let me know, how did you solve the problem,

      I mean how are you able to delete the partners from the contract, what are the values you had passed, could you please help me on this.

      Many thanks,

      Prasad NN.