cancel
Showing results for 
Search instead for 
Did you mean: 

SRM Shopping Cart

shaikhtabrez3
Explorer
0 Kudos

Can anyone help me in SRM shoping cart for the transaction NWBC

I created webdynpro application for that in First navigation with custom button to add to cart

But i got stuck in second navigation were i need to transfer my data when user select add to cart in second screen....

Accepted Solutions (1)

Accepted Solutions (1)

konstantin_anikeev
Active Contributor
0 Kudos

Hi tabrez,

could not get your problem. Could you please describe it in details.

Regards

Konstantin

shaikhtabrez3
Explorer
0 Kudos

Hi Konstantin,

For NWBC shopping cart

I enhanced standard webdypro application i.e /SAPSRM/WDC_DODC_SC_GAF_C

here i add one custom button i.e ADD to cart when user click on that  it will take you to next screen,

navigation is working but i got stuck in transferring data from my first navigation screen to second with my custom field in webdypnpro.

I think it can be done through OCI but i dnt know much about it & not get any BADI or I had to SPRO setting for that  for transferring data

can you suggest may best possible way.

shaikhtabrez3
Explorer
0 Kudos

Hi Konstantin,

You can refer following links my problem is similar to that but the solution which is not describe properly & i am working First  time  on SRM

http://scn.sap.com/docs/DOC-31231

http://scn.sap.com/people/masayuki.sekihara/blog/2007/12/07/oci-open-catalog-interface-setting-and-t...

http://www.attpurchasing.com/Files/OCI_40_EN20030611.pdf

Regards

Tabrez Shaikh

konstantin_anikeev
Active Contributor
0 Kudos

Hi Tabrez,

sorry, I lost this post from monitoring.

You should have an access to the attribute MO_BOM_SC of the component controller of enhanced component.

With the call of method /SAPSRM/IF_CLL_BO_MAPPER~GET_PDO of this method you should be able to get a reference to your shopping cart object.

shold looks somehow like:

data lo_sc type /SAPSRM/CL_PDO_BO_SC_ADV.

lo_sc ?= mo_bom_sc->/SAPSRM/IF_CLL_BO_MAPPER~GET_PDO().

then just call for lo_sc-><<METHOD>> one of the following methods (depending on your data)

/SAPSRM/IF_PDO_BO_SC~ADD_ITEM

/SAPSRM/IF_PDO_BO_SC~ADD_ITEM_WITHOUT_SOS

/SAPSRM/IF_PDO_BO_SC~ADD_ITEMS_FROM_CATALOG

/SAPSRM/IF_PDO_BO_SC~ADD_LIMIT_ITEM

/SAPSRM/IF_PDO_BO_SC~ADD_SERVICE_ITEM

and don't forget lo_sc->/SAPSRM/IF_PDO_BASE~SUBMIT_UPDATE after that.

Then you should be able to navigate to the next step and see your item in the item table of sc.

Regards

Konstantin

shaikhtabrez3
Explorer
0 Kudos

Where I have to call this method ?

Custom button or WDDOINIT..?

konstantin_anikeev
Active Contributor
0 Kudos

Hi,

I do not know your development. I suppose there, where you already have your position data, but before navigation to the second step.

Regards

Konstantin

shaikhtabrez3
Explorer
0 Kudos

Hi

I send you My development Documents to your personal ID

& place your logic before calling second navigation On action button which bring me to my second navigation but still i not able to get data there

Regards

Tabrez Shaikh

Answers (0)