on 05-17-2007 4:06 PM
Hi All,
I am having an issue with creating a SC using the FM "BBP_PD_SC_CREATE". When i execute the FM, i get a success message. But i am not able to find the Shopping Cart, so i am executing the FM "BBP_PD_SC_SAVE" using the GUID received from the previous FM. But i am getting a error message saying "Buffer table not up to date.
when i look in to the message , it gives me the following info : "In FORM HDRADM_FILL_BUFFER (function group SAPLBBP_PDHAD) an inconsistent status was discovered."
When i debug the form, i found some select statements on the table CRMD_ORDERADM_H with the GUID and this select fails as there is no SC available. This results in a dump.
Can somebody help in finding out what the issue is.
I am using SRM 5.0 version. Please let me know if you need more details.
Thanks in Advance,
Suresh
Hi Forum,
SRM 7.0
CALL FUNCTION 'BBP_PD_SC_SAVE'.
COMMIT WORK.
No need to pass any values to the funciotn module.
Updated the thread because it might help someone facing this issue..like me
Regards,
Anubhav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
<u>Please see the sample code, which will definitely help.</u>
Data: gc_no VALUE space,
ls_header_c LIKE bbp_pds_sc_header_ic,
lt_item_c LIKE bbp_pds_sc_item_icu OCCURS 0 WITH HEADER LINE,
lt_partner_c LIKE bbp_pds_partner OCCURS 0 WITH HEADER LINE,
lt_orgdata_c LIKE bbp_pds_org OCCURS 0 WITH HEADER LINE,
lt_messages LIKE bbp_pds_messages OCCURS 0,
ls_new_header LIKE bbp_pds_sc_header_d.
CALL FUNCTION 'BBP_PD_SC_CREATE'
EXPORTING
i_park = gc_no
i_header = ls_header_c
IMPORTING
e_header = ls_new_header
TABLES
i_partner = lt_partner_c
i_orgdata = lt_orgdata_c
i_longtext = lt_longtext_c
e_messages = lt_messages.
MOVE-CORRESPONDING ls_new_header TO ls_header_u.
CALL FUNCTION 'BBP_PD_SC_UPDATE'
EXPORTING
i_park = gc_yes
i_header = ls_header_u
TABLES
i_item = lt_item_c
i_partner = lt_partner_c
i_orgdata = lt_orgdata_c
i_longtext = lt_longtext_c
e_messages = lt_messages.
CALL FUNCTION 'BBP_PD_SC_SAVE'
EXPORTING
iv_header_guid = ls_header_u-guid.
CALL FUNCTION 'BBP_PROCDOC_RESET_BUFFER'.
* save modified shopping cart to database
COMMIT WORK AND WAIT.
<b>For details, refer to the report - <u>BBP_ANALYSE_PERFORMANCE</u></b>
Also, Refer this link.
Hope this will help.
Regards
- Atul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Atul,
Thanks for your Info I tried the same code in my Custom function Module , but i still get the same message, buffer table not upto date.
Heres my code:
Before you go through my code, one other thing i observer in my debug mode is, i get some error messages into the message table. But when i execute the FM "BBP_SC_CREATE" individually in SE37 with the same data, i dont get any error messages. I will try to solve the error along with my Functional consultant & see if the SC is getting created.
data : e_header_u like BBP_PDS_SC_HEADER_U.
constants : gc_no value ' ',
gc_yes value 'X' .
CALL FUNCTION 'BBP_PD_SC_CREATE'
EXPORTING
i_ref_guid = i_ref_guid
i_bapimode = i_bapimode
i_park = i_park
i_park = gc_no
i_save = i_save
i_testrun = i_testrun
i_header = i_header
i_src_guid = i_src_guid
i_src_object_type = i_src_object_type
it_attach = it_attach
iv_msg_scenario = iv_msg_scenario
IMPORTING
e_header = e_header
et_attach = et_attach
TABLES
i_item = i_item
i_account = i_account
i_partner = i_partner
i_confirm = i_confirm
i_longtext = i_longtext
i_limit = i_limit
i_orgdata = i_orgdata
i_tax = i_tax
i_pridoc = i_pridoc
i_hcf = i_hcf
i_icf = i_icf
i_tol = i_tol
e_item = e_item
e_account = e_account
e_partner = e_partner
e_confirm = e_confirm
e_longtext = e_longtext
e_limit = e_limit
e_orgdata = e_orgdata
e_tax = e_tax
e_hcf = e_hcf
e_icf = e_icf
e_tol = e_tol
e_status = e_status
e_messages = e_messages.
IF NOT e_header-guid IS INITIAL.
move-corresponding e_header to e_header_u.
CALL FUNCTION 'BBP_PD_SC_UPDATE'
EXPORTING
IV_BAPIMODE =
I_PARK = gc_yes
i_header = e_header_u
I_SAVE =
IV_REJECT =
IV_TESTRUN =
IV_MSG_SCENARIO =
IT_ATTACH =
IV_WITH_CHANGE_APPROVAL = 'X'
IMPORTING
E_CHANGED =
TABLES
I_ITEM = e_item
I_ACCOUNT = e_account
I_PARTNER = e_partner
I_CONFIRM =
I_LONGTEXT =
I_LIMIT =
I_ORGDATA = e_orgdata
I_TAX =
I_PRIDOC =
I_HCF =
I_ICF =
E_MESSAGES = e_messages
.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
RETURN =
.
CALL FUNCTION 'BBP_PD_SC_SAVE'
EXPORTING
IV_WORKITEM_ID =
IV_USERTYPE =
iv_header_guid = e_header-guid
iv_keep_old_changer = 'X'
IV_NEW_CHANGED_BY =
.
CALL FUNCTION 'BBP_PROCDOC_RESET_BUFFER'.
save modified shopping cart to database
COMMIT WORK AND WAIT.
ENDIF.
Thanks a lot.
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.