on 08-06-2007 8:59 AM
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.
Is shopping cart approved? If Shopping cart is in approved status, you cannot change anything.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for all your inputs..
Closing the thread..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.