cancel
Showing results for 
Search instead for 
Did you mean: 

Test FM BBP_PD_SC_CREATE via SE37

Former Member
0 Kudos

Hello to all,

i've just read a lot of stuff concerning the possibility to uplaod shopping cards via the function module. I'm new in the project and currently i haven't still a developer key, therefore i have to check via SE37 and make the test, if the funktionmodule should be work fine and if we here also can use this one for uplaoding requirements from an other system ( maybe for cut over ).

Concerning the import parameter i've used the great example from Marci:

"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"

After correction the org data , we have also enter the leading 'O' within the data ( O 500000640 instead 500000640 ). If not i get an run time error message ---> UNCAUGHT_EXCEPTION.

So and now i get 2 error messages after testing the function module.

1.) if try to get the partner information in the I_PARTNER table

as follow:

CLIENT 020

PARTNER_GUID 00000000000000000000000000000004

P_GUID 00000000000000000000000000000001

PARTNER_FCT 00000016

PARTNER_NO 62EECA46C2B54F41E1000000A032B34E

ATTRIBUTES

MAINPARTNER

ADDR_TYPE 3

ADDR_ORIGIN A

DEL_IND

PERS_NO 10812

ADDR_NO 10910

the error message occurs:

E BBP_PD 050 Partner of type Requester is not authorized for this document. Check entry

E BBP_PD 358 Select a location to which a plant has been assigned

2.) if i don't fill in the I_PARTNER ( for testing ) than i only get the error : E BBP_PD 358 Select a location to which a plant has been assigned

My question now is, a.) is it possible to make a test for this FUBA only via SE37 ( i guess yes but after this different messages i'm now a little bit confussed and not realy sure at present )

And if it also should be work, where can be the reason that the systems ment that there is no location assigned to a plant ( ERP ).

Remark:

I created a SC by using the WEB frontend with my user id. That worked fine. Therefore i'm convinced, that my user is correctly embedded in the PPOMA and all attributes are sufficient maintained .The made test in the SRM system via SE37 was still made with the same user, therefore i guess, that the same attributes should be get and therefore i absoluteley didnt understand the last message.

It were great, if someone has an idear and could give me support :-)..

thanks a lot .

Thomas

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

There's mistake in parent guid in partner table:

I_PARTNER

PARTNER_GUID 000000000000000000000004

P_GUID 000000000000000000000001 <- header guid

P_GUID 000000000000000000000002 <- item guid

Regards,

Jacek WItczak

Former Member
0 Kudos

Hi

For Sample code

Also check SAP OSS Note -

Note 833205 - bbppo01 - error message: BBP_PD 358 when adding a new item

Hope this will definitely help.

Regards

- Atul

Former Member
0 Kudos

Hello Atul,

and at first thanks for the collection of important threads.

So i've also tested the FM BBP_PD_SC_CREATE_EXTERNAL. But the reason why we cant use this is, that the customer told me that we have to upload SC's with accounting informations. I've found out by using the FM for external , we dont have account information in the table BASKET. To determine GL/Account information it's neccessary to customize per productgroup a valid GL Account. That's currently not done in our system. But currently it's a Sandboxsystem.......

But also by using this FM i will get the error message BBP_PD 358 .

And to complete the info's about our enviroment is, we are using SRM Server 550 and therefore the OSS Note is already implementated.

I'm still working on it and i will also contact a colleague.

But it's so awfull to see, that by using the found out import settings are working by all other but not by me.

Regards.

Thomas

Former Member
0 Kudos

Hi

Which SRM version are you using ?

<b>

The function module which you have referred "BBP_PD_SC_CREATE" is already used in the function module BBP_PD_SC_CREATE_EXTERNAL to create the shopping carts. Have you tried to use the BBP_PD_SC_CREATE FM instead of the external one ?</b>

<i>You can use FM BBP_PD_SC_CREATE with this two blogs:</i>

/people/kathirvel.balakrishnan2/blog/2006/05/08/data-upload-into-sap-from-microsoft-excel-150-abap-part

/people/kathirvel.balakrishnan2/blog/2006/05/09/data-upload-into-sap-from-microsoft-excel-150-vba-part

<u>Please go through the following threads -></u>

/message/3084126#3084126 [original link is broken]

<b>Hope this will help. Do let me know.</b>

Regards

- Atul

Former Member
0 Kudos

> Hi

>

> Which SRM version are you using ?

>

> <b>

>

> The function module which you have referred

> "BBP_PD_SC_CREATE" is already used in the function

> module BBP_PD_SC_CREATE_EXTERNAL to create the

> shopping carts. Have you tried to use the

> BBP_PD_SC_CREATE FM instead of the external one

> ?</b>

>

> <i>You can use FM BBP_PD_SC_CREATE with this two

> blogs:</i>

>

> https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/

> 3614

>

> https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/

> 3620

>

> <u>Please go through the following threads -></u>

>

> /message/36427#36427 [original link is broken]

> 71#3642771

>

> /message/30841#30841 [original link is broken]

> 26#3084126

>

> /message/33461#33461 [original link is broken]

> 63#3346163

>

> /message/29221#29221 [original link is broken]

> 65#2922165

>

>

> 2&

>

> /message/28079#28079 [original link is broken]

> 36&

>

> /message/33352#33352 [original link is broken]

> 16#3335216

>

>

>

> <b>Hope this will help. Do let me know.</b>

>

> Regards

> - Atul

> Hi

>

> Which SRM version are you using ?

>

> <b>

>

> The function module which you have referred

> "BBP_PD_SC_CREATE" is already used in the function

> module BBP_PD_SC_CREATE_EXTERNAL to create the

> shopping carts. Have you tried to use the

> BBP_PD_SC_CREATE FM instead of the external one

> ?</b>

>

> <i>You can use FM BBP_PD_SC_CREATE with this two

> blogs:</i>

>

> https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/

> 3614

>

> https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/

> 3620

>

> <u>Please go through the following threads -></u>

>

> /message/36427#36427 [original link is broken]

> 71#3642771

>

> /message/30841#30841 [original link is broken]

> 26#3084126

>

> /message/33461#33461 [original link is broken]

> 63#3346163

>

> /message/29221#29221 [original link is broken]

> 65#2922165

>

>

> 2&

>

> /message/28079#28079 [original link is broken]

> 36&

>

> /message/33352#33352 [original link is broken]

> 16#3335216

>

>

>

> <b>Hope this will help. Do let me know.</b>

>

> Regards

> - Atul

HI Atul,

i've checked again all import parameter and values as in the example faced.

Also i've made a setting concerning the plant as default in the PPOMA on organisation level for the department where my user is assigned to. Than i've create two line items for the i_partner table. One for the requester and the second for the location. In both line items i've filled in the GUID of the partner NO.

And in this constellation the funktion module works fine without occuring an error message.

Thanks for the feedback.

The next step will be to create the frame work by using the FM and the FM to store the test datas. I hope that also will be work as expected.

Regards

thomas

Former Member
0 Kudos

Hi

Surely it will work..

If not, then please do let me know. I will help you out. )

Regards

- Atul

Former Member
0 Kudos

Hello Atul,

Is there any FM to fetch org.data ?

Former Member
0 Kudos

Hi,

By providing GUID of shopping cart as input you can get the Org id details by using the following function modules :

BBP_PD_SC_ITEM_GETDETAIL

BBP_PD_SC_GETDETAIL

I hope the above information is useful to you.

Thanks

Rajesh K

Former Member
0 Kudos

We can also use following FM

BBP_OM_STRUC_GET_ORG_FROM_USER - Org unit

BBP_OM_READ_PURCH_ORG_ID - Purchasing org.

BBP_OM_FIND_PURCH_GRPS - Purchasing group