cancel
Showing results for 
Search instead for 
Did you mean: 

how to update the information of created shopping card('BBP_EXTREQ_INBOUND)

Former Member
0 Kudos

Now I am using BAPI 'BBP_EXTREQ_INBOUND' to create a shopping card and have successed.

But I want to know how to update the information of shopping card that i have created.

how should I set the TD_I_ACTION and other table?

thank you!

EXPORTING

I_HEADER = TH_SC_HEADER_C

I_HEADER_CUST = TH_SC_HEADER_CUST_C

TABLES

I_ITEMS = TD_SC_ITEM_C

I_ITEMS_CUST = TD_SC_ITEM_CUST_C

I_ACTION = TD_I_ACTION

I_ACC = TD_ACC_C

I_TEXTS = TD_TEXT_I

I_BUP = TD_BUP_C

I_ORG = TD_ORG_C

RETURN = TD_RETURN.

Edited by: yu ming on Jan 4, 2008 3:24 AM

Accepted Solutions (0)

Answers (1)

Answers (1)

khan_voyalpadusman
Active Contributor
0 Kudos

hi,

There are two points there.

1) if you want to change the shopping cart --> before it is created in SRM , it is possible using the BADI

BBP_DOC_CHANGE_BADI.

and this is called before the shopping cart is saved.

2) if you want to change the shopping cart after it has been created in SRM , that is when the requirement is in the sourcing cockpit --> it is not possible.

system will not allow you to change the requirement which has come from the backend system.

It is possible to change the shopping carts only when they are created directly in SRM

Former Member
0 Kudos

thank you very much.

But I still have some questions.

When do this BAPI,there are two Funcitons.

One to create a new shopping cart when you use a new data and the other is update when you use an old data.

Does it mean the you can update the created shopping cart?

And when I set the Action is 'C',the return error table is initial,but I cannot see the change in bbp_pd.

khan_voyalpadusman
Active Contributor
0 Kudos

hi ,

i have seen the code ---> you mean to tell about the following

Create a shopping cart (call BAPI)

  • ---------------------------------------------------------------------

CALL FUNCTION 'BAPI_SCEC_CREATE'

EXPORTING

i_header = ls_i_header

i_header_cust = i_header_cust

i_testrun = space

and

CALL FUNCTION 'BBP_SCEC_UPDATE'

EXPORTING

i_header = ls_i_header

i_header_cust = i_header_cust

i_scguid = lv_sc_header-guid

Both of the BAPIS ---> deal with the requirement which is coming from External system (R/3 System ).

one is the requirement which is coming as new one in R/3 and send to SRM System , and the other one which is updated in R/3 and send to SRM system.

Both the BAPIS refer to the backend system only.

yeushengteo
Advisor
Advisor
0 Kudos

Hi,

You definitely can update your SC using the Update function module which you have provided. Our standard is doing the same.

The only thing you need to know which shopping cart GUID you are updating by providing it in that function module IMPORTING parameter I_SCGUID.

You may like to use the function module BBP_ITMPROC_CHECK_EXTDEM_EXIST to determine the GUID value for your external requirment before the update.

Regards.