cancel
Showing results for 
Search instead for 
Did you mean: 

Creating Shopping Cart using RFC BBP_PD_SC_CREATE

Former Member
0 Kudos

Hi,

I am using RFC BBP_PD_SC_CREATE to create shopping cart. We are getting data from flat file which i am passing to this RFC to create the Shopping cart.

Could someone please tell me what all required parameters that we need to pass to get the result from this RFC.

Thanks.

Regards,

Manoj Tiwari

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

see

and https://forums.sdn.sap.com/rss/rssmessages.jsp?threadID=28167

hope it will help...(?)

Kind Regards,

Jan

Former Member
0 Kudos

see also: http://mailman.mit.edu/pipermail/sap-wug/2005-January/015627.html

"BBP_PD_SC_CREATE is really not intended to be used by customers - it is

> in fact in "not released for customer" status. There is a PHENOMENAL

> amount of pre-work to do in creating a shopping cart - which is why you

> have the shopping cart transactions."

hope it is something...

Former Member
0 Kudos

Hi Jan,

Thanks for your reply.

Can we use <b>BAPI_SCEC_CREATE</b> to create Shopping Cart if we can not use BBP_PD_SC_CREATE??

I am not very sure about the use BAPI_SCEC_CREATE.

In our scenario RFC or BAPI is being called by XI and XI will pass the data to the RFC to create Shopping Cart in SRM system and that's why i am looking for some RFC or BAPI which can do our task.

At last if we dont get anything then we have to go for custom RFC development work...I dont know how different or difficult it would to create RFC for shopping cart creation..

Any suggestion would be highly appreciated.

Thanks & Regards,

Manoj Tiwari

Former Member
0 Kudos

Hi Jan/Manoj,

Thanks for the input.Our scenario is actually to simplify the SRM screens, and the customer wants a specific flow ( instead of the standard SRM ).With different screens and also multiplied to give a overall

longer but simplified flow.

We wanted to use the ITS approach, however in the integrated ITS we cant have any flow and each HTML screen is screen dependent.We can only change some parts of the screen.Also changing the ABAP flow in the backend and building new screens would mean bespoking the entire standard SRM.

Hence we wanted to develop a UI using webdynpro technologies which would mean data extraction from CCM & SRM and also relevant RFC / BAPI availability.

But after Jan's reply I am not sure if we should go a way which is not encouraged by SAP and heavy effort is involved.

Any further inputs will be appreaciated.

Best Regards,

Muinul

Former Member
0 Kudos

Hi Manoj Tiwari,

We have the same situation/scenario.

Could you give us some tips about the BAPI_SCEC_CREATE usage? How we can use it? What are the required fields?

Thanx,

Gerardo.

Former Member
0 Kudos

Hello Geardo,

What is your scenario ?.Are you building a interface to

replicate the shopping cart scenario.If yes how are you getting your product search information.Product categories and the catalog data.

Regards,

Muinul

Former Member
0 Kudos

Muinul,

At my scenario we're receiving an inbound interface to create the shopping cart in SRM from legacy.

MDM will manage the vendors and materials catalog but we're not using de OCI interfaces to get materials information from mdm, instead of that, we're replicating MDM materials and vendors to the SRM repository.

By the way BBP_PD_SC_CREATE still working good for me with this scenario.

Regards,

Gerardo.

Former Member
0 Kudos

HI Gerardo,

As per your last message it seems you are able to execute BBP_PD_SC_CREATE FM and you are able to create shopping cart number.

Can you please suggest me what all fields you have passed to create it.

Which version of SRM you are in???

Regards,

Manoj Tiwari

Former Member
0 Kudos

Hi All,

For Creating a Shopping Cart from an External SAP system as a requirement the best RFC is "BBP_PD_SC_CREATE_EXTERNAL"

I had asked SAP this as part of an OSS message. It needs just the basic Shopping cart data as long as the user running it has the right Org Attributes set in ppoma_bbp.

Example:

Quantity, Unit, Price, Currency, Material Group / Product Category ...

Internally it will call the right Function Module and put it in the right Table to be picked up in the next Transfer to the backend System.

Trying to use the lower level Function Calls is like re-inventing the wheel !!

Greetings

John C

Former Member
0 Kudos

Hi Manoj,

As you have seen, i've created SC's from a legacy system requirement order. I've found the combination of fields required to create the Shopping Cart.

In order to write the SC to the database, you must execute a couple of RFC's after the

BBP_PD_SC_CREATE

, the

BBP_PD_SC_SAVE

and

COMMIT

.

I've encapsulated these 3 RFC's in a

Z function module

to call them all in one step.

Here you have the list of required fields to exec

BBP_PD_SC_CREATE

:

PI_REF_GUID = 00000000000000000000000000000000
PI_BAPIMODE = ' '
PI_PARK = 'X'
PI_SAVE = 'X'
PI_TESTRUN = ' '
PI_HEADER = 00000000000000000000000000000001OLI 1
-> PI_HEADER-GUID, PI_HEADER-DESCRIPTION, PI_HEADER-CURRE, PI_HEADER-PROC, PI_HEADER-OBJECT_ID

PI_SRC_GUID = 00000000000000000000000000000000
PI_SRC_OBJECT_TYPE = ' '
PIT_ATTACH = 0 Entries
PIV_MSG_SCENARIO = ' '

TABLES (filled):
*

I_ITEM

-> GUID, PARENT, NUMBER_INT, NUMBER_EXT, PRODUCT, DESCRIPTION, CATEGORY, CATEGORY_ID, EXT_QUOTE_ITEM, QUANTITY, UNIT, PRICE, PRICE_UNIT, GROSS_PRICE, CURRENCY, DEL_DATCAT, DELIV_DATE, PRODUCT_TYPE, LOGSYS_FI, BE_CO_CODE.

*

I_ACCOUNT

-> GUID, P_GUID, DISTR_PERC, ACC_NO, ACC_CAT, G_L_ACCT, COST_CTR.

*

I_PARTNER

-> PARTNER_GUID, P_GUID, PARTNER_FCT, PARTNER_NO.

*

I_ORGDATA

-> GUID, P_GUID, PROC_ORG_OT, PROC_ORG_ID, PROC_GROUP_OT, PROC_GROUP_ID.


Well, i hope this information will be usefull for you.

Regards,

Gerardo Ramón.

Former Member
0 Kudos

Hi Gerado,

Thanks alot for your detailed reply.

I started working in the same way as you suggested.

I have created a Z FM called ZBBP_PD_SC_CREATE and i am calling BBP_PD_SC_CREATE, BBP_PD_SC_SAVE and COMMIT.

In Z FM i am keeping the import, export and tableS in a same way as it is in BBP_PD_SC_CREATE.

For BBP_PD_SC_SAVE there are IV_WORKITEM_ID , IV_USERTYPE

and IV_HEADER_GUID, What value needs to be passed here.

Please Reply me, Its really Urgent for us.i have assinged 6 points to you for the detailed answer which sent me before.

If i get any problem i will post the message once again.

Regards,

Manoj Tiwari

Former Member
0 Kudos

Hi Gerado,

Can you please help me out.

Still i am getting error with my data combination.

Regards,

Manoj Tiwari

Former Member
0 Kudos

Manoj,

Sorry about the late, but here you have your answer.

For BBP_PD_SC_SAVE, you need to use the E_HEADER-GUID (from SC_CREATE) on the IV_HEADER_GUID parameter, thats the only one that you have to use in this case.

What kind of problems you have on the data combination?

Kind regards,

Gerardo.

Former Member
0 Kudos

Hi Gerado,

When i execute my Z FM which i have created as you suggested before, I am getting error messages in BBP_PD_SC_Create FM itself, so i cant pass the GUID value to BBP_PD_SC_SAVE.

Here Below i am mentioning what all fields i using to pass the data, and what all errors i am getting after executing the function Module.

Please check it and tell me where exactly i am doing mistake.

FM ---> BBP_PD_SC_CREATE

I_REF_GUID 00000000000000000000000000000000

I_PARK X

I_SAVE X

I_HEADER

GUID 00000000000000

DESCRIPTION TEST

CURRENCY USD

PROCESS_TYPE SHC

I_ITEM

GUID 00000000000000000000000000000000

PARENT 00000000000000000000000000000000

NUMBER_INT 0000000001

NUMBER_EXT 0000000000

PRODUCT 00000000000000000000000000000000

DESCRIPTION MONITOR

CATEGORY 00000000000000000000000000000000

CATEGORY_ID 65.10

QUANTITY 1.000

UNIT EA

PRICE 1.00

PRICE_UNIT 1

GROSS_PRICE 1.00

CATALOG_PRICE 0.00

CURRENCY USD

PRODUCT_TYPE 01

LOGSYS_FI CFG300

BE_LOG_SYSTEM CFG300

BE_PLANT BUS1

BE_MOVE_REAS 0000

BE_PUR_GROUP W01

BE_PUR_ORG IBRD

BE_CO_CODE IBRD

BE_DOC_TYPE ECPO

BE_PACKNO 00000000

BE_INTROW 00000000

BE_PO_PRICE 1

I_ACCOUNT

GUID 00000000000000000000000000000000

P_GUID 00000000000000000000000000000000

DISTR_PERC 100.00

ACC_NO 0001

ACC_CAT CC

SRC_GUID 00000000000000000000000000000000

G_L_ACCT 500411060

BUS_AREA VTRS

COST_CTR 6589

SDOC_ITEM 000000

SCHED_LINE 0000

CO_AREA WBG1

PROF_SEGM 0000000000

CMMT_ITEM 500411060

FUNDS_CTR 6589

FUND BB

I_PARTNER

PARTNER_GUID 000000000000000000000000

P_GUID 000000000000000000000000

PARTNER_FCT 00000039

PARTNER_NO

ADDR_TYPE 1

ADDR_ORIGIN A

ADDR_NO 10735

PARTNER_ID 1058

same like i have passed 3 more partner details.

I_ORGDATA

GUID 0000000000000000000000000

P_GUID 0000000000000000000000000

PROC_ORG_RESP_ID 50000641

PROC_ORG_ID 50000640

PROC_GROUP_ID 50000641

When i execute it, i am getting error like

"Interface Data Contains error"

"Incorrect Interface Data for set PDDEP"

"Incorrect Interface Data for set PDDYN"

"Incorrect Interface Data for set PDFRT"

"Incorrect Interface Data for set PDHCF"

"Incorrect Interface Data for set PDDEP"

"Incorrect Interface Data for set PDORG"

"Incorrect Interface Data for set PDDEP"

"Incorrect Interface Data for set PDTAX"

"Incorrect Interface Data for set PDDEP"

"Incorrect Interface Data for set PDTOL"

"Incorrect Interface Data for set PDWGT"

"Enter Atleast one item for one limit"

Thanks alot for all your help.

GRTZ.

Regards,

Manoj Tiwari

Former Member
0 Kudos

Hi Gerardo,

I sent you all details of what i am trying with BBP_PD_SC_CREATE, Can you please have a look on my previous message and reply me back.

Waiting for your reply.

Thanks alot for your help.

GRTZ.

Regards,

Manoj Tiwari

Former Member
0 Kudos

Hi Gerardo,

Can you please help me out in creating shopping cart using the BBP_PD_SC_CREATE, I had tried all possible way of doing that but for me its not working.

Problems that i am facing, i have already mentioned in my previous message.

Waiting for your reply.

GRTZ.

Regards,

Manoj Tiwari

Former Member
0 Kudos

What's your SRM version?

Former Member
0 Kudos

Hi Gerado,

We are using SRM 4.0

is there any problem with SRM 4.0??

Regards,

Manoj Tiwari

Former Member
0 Kudos

Hi Gerado,

Can you please reply to me Gerado.

Thanks for spending time for me.

GRTZ.

Regards,

Manoj Tiwari

Former Member
0 Kudos

Hi Gerardo,

Could you please reply to my message.

Its really urgent, I am waiting for your answer.

Regards,

Manoj Tiwari

Former Member
0 Kudos

Manoj,

How are you, i'm sorry because i couldn't answer before, but now i'm ready to help you.

Lets see, i've checked your interface data and i've seen that you are not using the GUID value for header and details, like partner, item, etc...

You get to do like this:

I_HEADER

GUID 00000000000000000000000000001

DESCRIPTION TEST

CURRENCY USD

PROCESS_TYPE SHC

I_ITEM

GUID 00000000000000000000000000000002 <- item guid

PARENT 00000000000000000000000000000001 <- header guid

NUMBER_INT 0000000001

NUMBER_EXT 0000000000

PRODUCT 00000000000000000000000000000000

DESCRIPTION MONITOR

CATEGORY 00000000000000000000000000000000

CATEGORY_ID 65.10

QUANTITY 1.000

UNIT EA

PRICE 1.00

PRICE_UNIT 1

GROSS_PRICE 1.00

CATALOG_PRICE 0.00

CURRENCY USD

PRODUCT_TYPE 01

LOGSYS_FI CFG300

BE_LOG_SYSTEM CFG300

BE_PLANT BUS1

BE_MOVE_REAS 0000

BE_PUR_GROUP W01

BE_PUR_ORG IBRD

BE_CO_CODE IBRD

BE_DOC_TYPE ECPO

BE_PACKNO 00000000

BE_INTROW 00000000

BE_PO_PRICE 1

I_ACCOUNT

(for each item, you create an entrie that its linked to the item guid).

GUID 00000000000000000000000000000003

P_GUID 00000000000000000000000000000002 <- item guid

DISTR_PERC 100.00

ACC_NO 0001

ACC_CAT CC

SRC_GUID 00000000000000000000000000000000

G_L_ACCT 500411060

BUS_AREA VTRS

COST_CTR 6589

SDOC_ITEM 000000

SCHED_LINE 0000

CO_AREA WBG1

PROF_SEGM 0000000000

CMMT_ITEM 500411060

FUNDS_CTR 6589

FUND BB

I_PARTNER

PARTNER_GUID 000000000000000000000004

P_GUID 000000000000000000000001 <- header guid

PARTNER_FCT 00000039

PARTNER_NO

ADDR_TYPE 1

ADDR_ORIGIN A

ADDR_NO 10735

PARTNER_ID 1058

same like i have passed 3 more partner details.

I_ORGDATA

GUID 0000000000000000000000005

P_GUID 0000000000000000000000001 <- header guid

PROC_ORG_RESP_ID 50000641

PROC_ORG_ID 50000640

PROC_GROUP_ID 50000641

Try to create the SC like this... if you have any problems, let me know.

Best regards from Mexico,

Gerardo.

Former Member
0 Kudos

Hi Gerardo,

I am sorry, i was on leave since last 10 days that's why i could not reply you.

Today evening i saw your message, Tomorrow I will try with whatever you have suggested.

If i face any problem i will give you buzz again. If you don't mind can you give your contact number so i can call you back in case if i have face any problem. You can send me your contact number on my email tiwari.manoj@gmail.com instead of sending it on open forum.

Thanks & Regards,

Manoj Tiwari

Former Member
0 Kudos

Hi Gerardo,

I have done extactly the same as you suggested but still i am getting error message.

Message is "Buffer table not up to date"

When i click on help then i got this information from there

Buffer table not up to date

Message no. BBP_PD001

Diagnosis

In FORM BUDGET_SC_CHECK (function group SAPLBBP_PD) an inconsistent status was discovered.

Procedure

Start the transaction again. If the error occurs again, create an OSS message.

To analyze the error, you can set a breakpoint in the function module 'BBP_PD_ABORT' and look at the call-up hierarchy in debugging mode.

Do you have any idea what exactly i am missing here??

Thanks & Regards,

Manoj Tiwarri

Former Member
0 Kudos

Has anyone considered using BBP_EXTREQ_INBOUND function module. Unlike BBP_PD_SC_CREATE, this function module has SAP documentation . You don't need to write addition wrapper function module to "Commit". I would suggest using BBP_EXTREQ_INBOUND FM.

I have another question in this regard - Is there a way to replicate "Shop on Behalf of" functionality by using custom development? Our client needs someone "Secretary" role person to receive shopping cart details in a file and upload it. Can anyone please suggest any alternative?

Message was edited by: San Jain

Former Member
0 Kudos

Hi San,

We have a similar requirement where we are trying to create an external requirement using XI. We would like to use the FM 'BBP_EXTREQ_INBOUND'.

But i am getting Interface errors. Can you please tell me the mandatory parameters to be passed to this FM.

Any help on this is much Appreciated.

Thanks in Advance,

Suresh

Former Member
0 Kudos

Hi Manoj,

I tried using the FM, BBP_PD_SC_CREATE. It did get executed successfully. But when i run the FM "BBP_PD_SC_SAVE", i get the same error "Buffer table not up to date".

Can you please let me know if solved this issue. Please let me know if there any config settings to be made or is there any work around for creating shopping carts or requirements.

Will be glad to provide you more details.

Thanks in Advance,

Suresh

Former Member
0 Kudos

Hi Manoj,

We are working on a similar scenario.Wanted to know if you could get any documentation regarding the RFC's.

Regards,

Muinul

Former Member
0 Kudos

HI Muinal,

I am still trying to pass the right combination of input parameters to this RFC but always i am getting some error, I tried getting some help documentation on this RFC but i couldn't get anything as of now.

If you have anything or if you are able to execute this RFC please let me know.

Thanks & Regards,

Manoj Tiwari