cancel
Showing results for 
Search instead for 
Did you mean: 

BBP_PD_SC_UPDATE is not updating SC

Former Member
0 Kudos

Hi, I am trying to update a SC as below:


loop at et_item into ls_item where zzsatzart CP 'S*'.
  data: lv_flag type xfeld.
  ls_i_header-guid = is_header-guid.
  CALL FUNCTION 'BBP_PD_SC_UPDATE'
    EXPORTING
*     IV_BAPIMODE                   =
*     I_PARK                        =
      i_header                      = ls_i_header
     I_SAVE                        = 'X'
*     IV_REJECT                     =
*     IV_TESTRUN                    =
*     IV_MSG_SCENARIO               =
*     IT_ATTACH                     =
*     IV_WITH_CHANGE_APPROVAL       = 'X'
   IMPORTING
     E_CHANGED                     = lv_flag
   TABLES
*     I_ITEM                        =
*     I_ACCOUNT                     =
*     I_PARTNER                     =
*     I_CONFIRM                     =
     I_LONGTEXT                    = lt_longtext_tmp
*     I_LIMIT                       =
*     I_ORGDATA                     =
*     I_TAX                         =
*     I_PRIDOC                      =
*     I_HCF                         =
*     I_ICF                         =
*     E_MESSAGES                    =
     .
endloop.

But, when I check result using FM:BBP_PD_SC_GETDETAIL, the updates are not there. Please tell me needful at the earliest. its urgent.

Accepted Solutions (0)

Answers (4)

Answers (4)

YayatiEkbote
Contributor
0 Kudos

Is shopping cart approved? If Shopping cart is in approved status, you cannot change anything.

Former Member
0 Kudos

Thank you for all your inputs..

Closing the thread..

Former Member
0 Kudos

Hi,

Did you achieve the functionality ? i'm getting e_changed as 'X' but then, my held cart is not ordered. it is remaining in held state itself.

pls help me.

Thanks,

Karthik

yeushengteo
Advisor
Advisor
0 Kudos

Hi,

Please do the following using standard FM:

1. Lock the SC (BBP_PD_SC_LOCK)

2. Update the SC (BBP_PD_SC_UPDATE)

3. Commit the SC (BBP_PD_SC_COMMIT)

4. Unlock the SC (BBP_PD_SC_UNLOCK)

Regards.

0 Kudos

Hi,

I am attempting to update a SC's business partner details but on the message (BBP_PD 145) output from function (BBP_PD_SC_UPDATE) saying that the update cannot happen as follow on documents exist.

Can you please advise of any possible work arounds \ solutions for this.

Many thanks SB

Former Member
0 Kudos

Hi,

First call BBP_PD_SC_UPDATE with the relevant header data and the item data , partner data... with the updated information.

-> you should receive a value E_Changed = 'X'

and a header_guid from the changed version

Afterwards call FM BBP_PD_SC_SAVE with the es_header-guid

reset the buffer

BBP_PROCDOC_RESET_BUFFER

and afterwards

COMMIT WORK AND WAIT

The SC should be updated now.

BR,

Disha.

Pls reward points for useful answers.