Shopping Cart: XI Interface
Hi to all,
in a SRM (SRM 5.0) project, we have to create a shopping cart from some external systems (Non-SAP).
For this reason, we want to use the XI Message Interface "PurchaseRequestRequest_In", which belongs to
pre-delivered XI-Content for SAP SRM 5.0 using SRM Server 5.5.
Unfortunately, we haven't any idea about the sense of the fields and attributes in the XML-Structure.
For example, there are attributes named "schemeID", "schemeAgencyID" and so on, this attributes are checked in SRM, but we don't know what values are expected.
We searched for documentation at SAP Help, SAP Marketplace, and SDN, without any success.
Has someone already used this interface or has some documentation about it?
Any answer is highly welcomed.
Thanks in advance,
Jörg
Hi Jörg,
I can't help answering your question, yet the task you are on about is also interesting for us. We also deal with some None-SAP applications which create shopping carts. Still we don't have XI running but shall upgrade our SRM to SRM 5.0.
I can imagine that there might be ways to create sc from external esp. with XI. There are BAPIs and FM available. Still I wonder, what to do if within SRM errors happen and a sc cannnot be pushed on to the backend system. Errors might happen for various reasons (wrong G/L accounts, cost center without budget...).
So overall, I wonder if such an automatic solution delivers 100% secure processes... secure in terms of none-erraneous processes.
So right now we're focusing on manual file-imports via BSP (Business Server Pages), yet we get requirements for such automatic processes.
If you get on implementing your XI scenario I'd like to get information on how everything works fine or not...
cheers and good luck, matthias
Similar Messages
-
Creating several shopping carts through interfaces
Hello all, I have the following requeriment and I want to know if this is possible.
The requeriment is to have an interface that calls the creation of a shopping cart in SRM, so many times as data will be inside a file. The interface will be in another R/3 system.
I have thought to call the service BBPSC01 with some parameters, each time that needed, is this possible?
How can I do this?
Is there a BAPI that emulate the shopping cart creation process?
Any suggestion, pleasE?
Thanks in advance!Hi,
Check below FM
1- BBP_PD_SC_CREATE
2- BBP_PD_SC_CREATE_EXTERNAL
Hope this will solve your problem
Regards
Sachin -
Creating an interactive PDF with a shopping cart style interface...?
Just asked this question over in the InDesign forum but figured this might be a good place as well:
I need to create an interactive PDF in which the user can check a box next to a thumbnail image and a sum total at the bottom of the page is updated. All or none or just some of the boxes would need to be checked.
Is this possible with Acrobat Pro?Okay, figuring this out. Doesn't look like I need javascripting. But wow, getting into Acrobat to create stuff for the first time is actually painful.
For instance, no matter if I use the Add Text Box tool at the top menu....or the Add or Edit Text Box tool in the Content menu, neither one will actually give me that much needed calculate field. ???? wow.
I actually grabbed a PDF example off the net showing exactly what I want to do, but the problem is that when I cut and paste the sum text box, it comes in at a 90deg angle to what I need, lol. Now I'm trying to figure out exactly how to ROTATE a simple text box.
*exasperated*
EDIT: Ahh, rotation dialog in the properties. Grr. It's odd that the cursor doesn't also offer a 'rotate' option.....like InDesign and every other Adobe product. heh. -
Workflow for shopping cart ordering not triggered
Hi Gurus,
we are running SRM 7.0 and we are facing a big issue in handling the shopping carts when created by interfaces.
basically, when we create a shopping cart via interfaces and not manually on the SRM, the shopping cart remains in status "Open" and it is not ordered. We can also see in the shopping cart (in the tab Approval Process Overview we can see that the Approval Status is Open - No Decision Made).
Can anybody give a hint on how having the worlflow to "order" the shopping cart executed also whenever a shopping cart is created by the interface and not manually?
Thanks a lot in advance (lot of points promised...)Hi Masa, thanks a lot for answring!
- It is a new implementation
- We are using the new Processed-Controlled workflow
- it works if I manually create a SC from the standard webdynpro UI and I click the Order button.
- How can I check the receiving interface?
thanks! -
Creating shopping cart in SRM through an interface from an external system
Hello,
i am currenlty working on a SRM implementation at a client and we are looking into
building an interface for purchase requisitions from an external system to SAP.
To be able to get these requisitions as a package approved I would want them to go though the
approval process in SRM. Does anybody know if it is possible to create a shopping cart in SRM through an interface from another system?
thanks,
GeertSRM has a standard business scenario of PDP PM
here the external requirements are transferred to SRM for sourcing
in normal business scenario ECC PR is transferred to SRM which creates a dummy SC or say sourcing SC in SRM which appears in Purchaser's worklist after correct settings
SRM can work with NON SAP system also
so logically yr requirement should be possible
but in ECC PR transfer case the SC created in SRM is already apparoved.
BR
Dinesh -
Issue in Process Controlled workflow for Shopping cart in Quality system.
Hello All,
I ahve configured a Process controlled workflow in SRM 7.0 with custom resolver, and I am facing an issue taht the Workflow works well in Development but in Quality the approvers are dropped after SC is ordered in Quality system.
The SC Workflow drops the approvers picked up from the Interface method /SAPSRM/IF_EX_WF_RESP_RESOLVERGET_AREA_TO_ITEM_MAP and IF_EX_WF_RESP_RESOLVERGET_APPROVERS_BY_AREA_GUID of BADI /SAPSRM/BD_WF_RESP_RESOLVER. The approvers can be seen in the shopping cart Approval preview Tab until the SC is ordered.
I have compared the OSS notes relevant for Workflow, all of them have been transported, Also I compared and checked general Workflow settings, BRF Config and Process level settings in Dev and Quality, everything is same.
Also while debugging; the approvers can be seen in the decision set table in the create_process_forecast method of class /SAPSRM/CL_WF_PROCESS_MANAGER.
Kindly let me know what else i can check to find the root cause.
Thank you in advance for help!
Regards
Prasuna.Hello Vinita;
Thanks for the input and sorry for the not so "ASAP" reply;
From what I'm seeing in from your 2 screenshot, i strongly believe that the problem is even before the Z implementation /SAPSRM/IF_EX_WF_RESP_RESOLVER~GET_APPROVERS_BY_AREA_GUID (in which the FM i ZSRM_GET_USER_FROM_PGRP is called. I think the problem could be in the process level determination ZSRM_WF_BRF_0EXP000_SC_APP100. Let me explain:
In your cases where not buyer is determined, in the approval tab there is not even a process level for buyer approval. If the problem were indeed in the implementation /SAPSRM/IF_EX_WF_RESP_RESOLVER~GET_APPROVERS_BY_AREA_GUID then the process level would be there, but the system will display, instead of the name of the buyer(if the buyer determination fails) a red label with the message: "With the strategy "Buyer determination" an approver could not be determined (or something like that..please check the image at the end of the text)".
I can propose a way to discard this: Implement the method /SAPSRM/IF_EX_WF_RESP_RESOLVER~GET_FALLBACK_AGENTS of class ZCL_BADI_SC_WC (in case you didn't know, in this method you can specify an "default" approver in case that the determination of approver in GET_APPROVERS_BY_AREA_GUID fails). The idea is to specify an default approval and see how it behaves:
If the user you indicated in the method GET_FALLBACK_AGENTS appears as approver, then yes, the problem is arises from implementation GET_APPROVERS_BY_AREA_GUID, in which case it could be a data problem (peharps in pposa_bbp?). You could also check in TX SU53 with the users with this problem to see if there's a missing authorization objetc.
If, in the other hand, the "default" approver is not shown, it means that the process level buyer determination is not even called, so you should check in more detail ZSRM_WF_BRF_0EXP000_SC_APP100 and /SAPSRM/CL_WF_PROCESS_MANAGER > Determine process restart –method ----- (i have never used this method, so i could not tell if it could be the source of the problem).
Also, you could implement the method GET_FALLBACK_AGENTS in this way so the default approver would be the WF administrator indicated in the customizing (or you could just append directly any user you want):
METHOD /SAPSRM/IF_EX_WF_RESP_RESOLVER~GET_FALLBACK_AGENTS.
DATA: lv_admin_expr TYPE swd_shead-admin_expr,
lv_admin TYPE swd_shead-wfi_admin,
lv_admin_type TYPE sy-input,
ls_agent TYPE /sapsrm/s_wf_approver.
CALL FUNCTION 'SWD_WF_DEFINITION_ADMIN_GET'
IMPORTING
default_admin_expr = lv_admin_expr
default_admin = lv_admin
default_admin_type = lv_admin_type.
ls_agent-approver_id = lv_admin.
APPEND ls_agent TO rt_agent.
ENDMETHOD.
Error of agent determination:
Please let me know the result of the test with the implementation of method GET_FALLBACK_AGENT. By doing this we could ensure if really the problem is in method GET_APPROVERS_BY_AREA_GUID or before. I just made the test in our system and I'm almost sure that you wont get the default approver, but i could be wrong.
Any question please let me know.
Best regards
Cristian R. -
SRM 5.0 - how to hide a section/tab in shopping cart
Hi.
Is it possible to hide a whole section of the shopping cart, like "Ship-to address" or "Source of Supply"? I've used BADI to hide the fields in these sections and it works, however, I'd like to not show the sections at all including section headers.
Thanks,
Irina1. You have to create BADI implementation in SE19. In the bottom portion of the screen select Classic BAdi and enter BBP_UI_CONTROL_BADI as BAdi Name. Click Create Impl button
2. Type in text and implementation name (usually something like ZBBP_UI_CONTROL_BADI)
3. Attributes Tab. add Filter - ObjectType BUS2121 for Shopping Cart
4. Interface Tab. Double-click on method BBP_SC_UI_CTRL
5. Example of display only fields in Ship-to Address section:
CASE iv_progname.
WHEN 'SAPLBBP_SC_UI_ITS'.
CASE iv_dynpname .
WHEN '0310'.
IF iv_fieldname = ' GV_F4_D_ADDR_EVENT '
cv_input_ready = ''. <- display only
ENDIF.
* If you want to hide all Ship-
* to Address fields (FuncGrp BBP_SC_UI_ITS, screen 310)
* use the following code:
cv_input_ready = ''
cv_invisible = '1'.
WHEN OTHERS.
ENDCASE.
ENDCASE.
6. Activate the code.
7. Activate the implementation. -
Open source shopping cart wont open with safari
Hi all...
I'm designing cart templates for a company that supplies an interface for uploading product to an open source shopping cart. The problem is I can't open the shopping carts with safari. They are fine with firefox and on a PC. (forgive me for swearing) The sites are open source carts based on php scripting with a lot of compressed data. A software interface is used to upload products etc... The error I get is
"Safari can’t open the page “not sure if I can put the link here as it is a business”. The error was: “bad server response” (NSURLErrorDomain:-1011) Please choose Report Bug to Apple..."
It's the same for all the sites using the carts.
Is there a fix at the user end or does safari simply not have support for these carts. Any help would be awesome....PCI Compliance. As a merchant (online or brick & mortar store), you must take necessary steps to ensure your customer's CC info doesn't fall into the wrong hands. One way to do this is to pass your online customers off to a 3rd party processor like PayPal or Authorize.net. These companies are experts in safely gathering sensitive data, encrypting it and transmitting it to your payment Gateway and Merchant Bank account. This way, your customers never enter any sensitive data into your site's databases which avoids a lot of headaches for the web developer and merchant.
Server Security. Use a reliable web host. I can't emphasize this enough. Cheap hosting is no bargain especially if your host doesn't take reasonable steps to secure their servers at their end.
Lock down your php scripts & form log-ins to defend your site against possible hackers & robot exploitation. If your site is ever compromised, you will need reliable backups of your Site files and MySql data. Make sure to backup these files regularly and store them in a safe place.
Backend log-in. Use strong, encrypted passwords -- 17 characters, upper & lower case with symbols. If you can remember your passwords, they're not strong enough. I keep mine written down in a Rolodex.
Change the Admin log-in name to something less obvious like GrandHighExhaltedMysticRuler or something only you will recognize as the site's admin level user. It's also a good idea to change your server, database and backend log-ins regularly.
Finally, consider running SecureLive on your web server. I have it running on a dedicated server and this software has more than paid for itself. It identifies hacker attempts, blocks the user and sends the hacker's IP address to an FBI database. SecureLive - Home
Nancy O. -
Hi Guys,
I am trying to create a Shopping cart in SRM system executing the RFC from External system.I am trying hard to solve this issue since last 1 months and still i am not able to do that.plz help me out its very urgent now.
I am trying to use BBP_PD_SC_CREATE in combination with BBP_PD_SC_SAVE and Commit.
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.
GRTZ.
Regards,
Manoj TiwariHi,
before I would try to save a SC to the database, I would check how I have to fill the interface. Therefore I would suggest to read at first a SC from the database with FM BBP_PD_SC_getdetail. With this example of an existing SC you should be able to will the interface correctly.
E.g. when you check an existing SC with FM BBP_PD_SC_getdetail you see that some parameters are missing in your I_ORGDATA part. The I_ORGDATA part of my SC example looks like the following:
PROC_ORG_RESP_OT O
PROC_ORG_RESP_ID 92001699
PROC_ORG_OT O
PROC_ORG_ID 92000053
PROC_GROUP_OT O
PROC_GROUP_ID 92001699
Here you can see that you forgot the whole *OT parts! In your case the system doesn't know that you mean an orgunit.
As I mentioned above, when you know how a SC looks like on the database, it should be easy to fill the FM interface.
Best regards
Dennis -
Shopping cart creation category dropdown selecting the most used category
Hi SRM gurus,
While creating a shopping cart one of our most used category gets selected by default before we start doing anything.
Everytime we have to change the category.
Is there a way that will become blank and we can select from the dropdown or the find list.
Kindly suggest.
We are using SRM component version 4.0, SRM server 5.0, our patch level 0008.
Thx. & reg.,
Sridhar.Hi
<b>Yes.. This was happening with us when we used SRM 4.0 version.
We have used an BADI Implementation to resolve this issue.</b>
<u>The BADI name is <b> BBP_F4_READ_ON_EXIT </b></u>
For Product category -> Product category (attr. WGR, PRCAT) GET_CATEGORY Method, you need to go ahead.
<u>Read the documenation of this BADI and you will get the problem resolved after implementing the same.</u>
Here is the documentation
BBP_F4_READ_ON_EXIT
Short Text
Restrict the Display in Input Helps and Search Helps
You can use the Business Add-In (BAdI) BBP_F4_READ_ON_EXIT to restrict (or augment) the list of values and favorites that are output in the input and search helps. You can only process data elements for which input helps exist on HTML templates. The following three BAdIs are also available:
BBP_F4_READ_ON_ENTRY
Use this BAdI if you do not just want to restrict the favorites and values list but also want to select this yourself.
BBP_F4_MEM_UPDATE
BBP_F4_SAVE_DB
The following three modules are used to process the values per data element:
BBP_GET_<data element>_F4
Supplies a list of all values and user-specific favorites. You can influence how this module works using BAdI BBP_F4_READ_ON_ENTRY and BBP_F4_READ_ON_EXIT.
BBP_UPD_<data element>_FAV
Updates the favorites in internal function group storage. You can influence how this module works using BAdI BBP_F4_MEM_UPDATE.
BBP_SET_<data element>_FAV
Writes the current favorites to the database. You can influence how this module behaves using BAdI BBP_F4_SAV_DB.
Use
Only implement this BAdI and only program the appropriate method if you want to restrict or augment the value set of standard selection.
If you determine favorites using a BAdI, the standard modules do not process the favorites further. Warning: If, deviating from standard selection, you determine the list of favorites yourself using a BAdI, you have to temporarily store the favorites in the methods of the BAdIs and carry out final saving to the database yourself.
Standard settings
If data is added via the methods, no check of this data occurs. The check has to occur in the methods themselves.
The interfaces of the methods of the BAdI are (almost) always the same:
IV_LANGUAGE
Language for determination of the texts
IV_USER
User for which the values are requested
ET_<data element>_LIST
The list of valid values changed by you
EV_X_FAV_PROCESSED
Use "X" to stipulate that you have filled the favorites list. Only present if favorites table exists for relevant data element.
ET_<data element>_FAVOURITES
Changed favorites list for user IV_USER. Only exists if favorites table exists for relevant data element.
The methods have to fill the structures of the transfer tables completely. Incompletely filled structures can cause followup errors and unforseen consequences.
Activities
Reading of value lists and favorites using function module BBP_GET_<data element>_F4 occurs as follows:
1. First the BAdI BBP_F4_READ_ON_ENTRY is called. It is possible to fill the input list (and favorites) with default values.
a) In the case of default values, exactly these values are returned to the initiator. No further processing or check occurs and the module is exited.
b) If no default values exist, the standard selection is carried out.
2. Before the values are transferred externally you can restrict or augment the number of hits using the BAdI BBP_F4_READ_ON_EXIT. You can therefore delete entries from or add entries to the input list or favorites list.
3. BAdI BBP_F4_READ_ON_EXIT provides an individual method for each data element for which an input help and/or favorites table exists. These are listed below.
If you use this method, you need to indicate processing using the parameter EV_X_LIST_PROCESSED or EV_X_FAV_PROCESSED. Otherwise the selection is lost.
List of available methods per data element in BBP_F4_READ_ON_EXIT:
Field/Data element Method
Currency GET_CURRENCY
Region GET_REGION
Country GET_COUNTRY
Language GET_LANGUAGE
Industry GET_INDUSTRY
Academic title GET_ACADEMIC
Time zones GET_TIMEZONE
Procurement cards GET_PCARD
Legal forms GET_LEGAL
Format for name format GET_NAMEFORM
Quality management systems GET_QMSYSTEM
Fixed values GET_DOMVALUE
Form of address texts GET_TITLEKEY
Units of measure GET_UNIT
Bank data GET_BANKINFO
Tax number types GET_TAXNUMT
Tax numbers per country GET_TAXTYPE
Tax groups per tax type GET_TAXGROUP
Terms of payment GET_PAYMTERM
RFC destinations GET_RFC_LOGS
Logical systems GET_LOGSYS
Tax codes GET_TAXCODE
Catalogs (attribute CAT) GET_CATALOG
Roles (attribute ROLE) GET_ROLE
Account assignment categories (attribute KNT) GET_KNT_ATTR
Purchasing organizations (from PdOrg) GET_PURCHORG
Purchasing organizations (per company) GET_PORGCOMP
Purchasing group (from PdOrg) GET_PURCHGRP
Purchasing group (per company) GET_PGRPCOMP
Product category (attr. WGR, PRCAT) GET_CATEGORY
Products GET_PRODUCT
Goods recipient plant (attr. REQUESTER) GET_GRCPLANT
Goods recipient user (attr. REQUESTER) GET_GRCUSER
Requester (attribute REQUESTER) GET_BOBUSER
Cost centers (attribute CNT) GET_COSTCENT
Asset classes (attribute ANK) GET_ASSETCL
Assets (attribute AN1) GET_ASSETNO
Asset subnumbers (attribute AN2) ET_ASSETSUB
Network (attribute NET) GET_NETWORK
WBS element (attribute PRO) GET_WBSELEM
Order (attribute ANR) GET_ORDERNO
Customer order (attribute AUN) GET_SDDOC
Customer order item (attribute APO) GET_SDDOCPOS
Document type (attribute BSA) GET_DOCTYPE
Transaction type (attribute TEND_TYPE) GET_TENDTYPE
<i>Incase you face any problems, do let me know.</i>
Hope this will help.
Please reward suitable points.
Regards
- Atul -
Shopping Cart not updated in bbp_pd.
Hi Folks,
We have recently upgraded to SRM 7.0 from SRM 4.0. We are using customized portal application for the creation of the shopping cart. Whenever we create a shopping cart using the portal interface, the shopping cart number is generated and we get the the successfull message but same is not updated in any of the SRM tables. The transaction bbp_pd is blank.
We didn't get much information from ST22, SLG1 transaction code and also from previous SDN postings.
Your expert comments will be appreciated...Hi,
Have you also checked SM13 - update errors? Maybe the SC was created but while saving to DB it there were some issues in update.
Are you using standard SRM portal or a custom application? If it is a custom application then you have to check your logic? Have you called BBP_PD_SC_SAVE after BBP_PD_SC_CREATE?
Rgds,
Prasanna -
Help on Shopping Cart Upload Program
Hi All,
I am trying develop a program for uploading Shopping Carts from EXCEL Spread Sheet.
I have gone through the following thread. But still I am facing the problems:
/message/3082168#3082168 [original link is broken]
Procedure 1: I developed program with 'BBP_PD_SC_CREATE_EXTERNAL', I got the following erros
Shopping Cart Upload Program
00001 E 008
No account assignment exists. Enter an account assignment
000000
00001 E 047
Please specify Account Assignment by selecting "Known" radio button for
000000 Please specify Account Assignment by selecting "Known" radio button for
00001 E 247
Plant for follow-on document missing
000000
Procedure 2: I used BBP_PD_SC_CREATE. I am getting the following Errors:
Shopping Cart Upload Program
A
Interface data contains errors
A
Interface data contains errors
A
Interface data contains errors
A
No data found
A
No data found
A
The document does not exist. Check entries
A
Incorrect interface data for set PDDEP in method C
A
Incorrect interface data for set PDDYN in method C
A
Incorrect interface data for set PDFRT in method C
A
Incorrect interface data for set PDHCF in method C
A
Incorrect interface data for set PDORG in method C
A
Incorrect interface data for set PDTAX in method C
A
Incorrect interface data for set PDTOL in method C
A
Incorrect interface data for set PDWGT in method C
E
Enter at least one item or one limit
Procedure 1 Sample Program:
DATA: i_basket TYPE TABLE OF bbp_basket_ext_device,
i_basket_back TYPE TABLE OF bbp_basket_back,
i_basket_errors TYPE TABLE OF bbp_oci_errors.
DATA: w_basket TYPE bbp_basket_ext_device,
w_basket_back TYPE bbp_basket_back,
w_basket_errors TYPE bbp_oci_errors.
PARAMETERS: p_user TYPE sy-uname DEFAULT 'REQUESTER'.
CLEAR w_basket.
w_basket-basket_name = 'Test Shopping Cart'.
w_basket-line = '00001'.
w_basket-description = 'Mat Desc New'.
w_basket-quantity = 1.
w_basket-unit = 'EA'.
w_basket-price = 10.
w_basket-priceunit = 1.
w_basket-currency = 'USD'.
w_basket-vendor = '0000301300'.
w_basket-category_id = 'L03621101'.
APPEND w_basket TO i_basket.
CALL FUNCTION 'BBP_PD_SC_CREATE_EXTERNAL'
EXPORTING
user_name = p_user
TABLES
basket = i_basket
basket_back = i_basket_back
basket_errors = i_basket_errors
EXCEPTIONS
not_saved = 1
OTHERS = 2.
IF sy-subrc EQ 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
LOOP AT i_basket_back INTO w_basket_back.
WRITE:/ w_basket_back-basket, w_basket_back-basket_number.
ENDLOOP.
LOOP AT i_basket_errors INTO w_basket_errors.
WRITE:/ w_basket_errors-line,
w_basket_errors-type,
w_basket_errors-code,
w_basket_errors-message,
w_basket_errors-log_no,
w_basket_errors-log_msg_no,
w_basket_errors-message_v1,
w_basket_errors-message_v2,
w_basket_errors-message_v3,
w_basket_errors-message_v4.
ENDLOOP.
Procedure 2 Sample Program:
DATA: v_header_guid TYPE crmd_orderadm_h-guid,
v_item_guid TYPE crmd_orderadm_h-guid,
v_account_guid TYPE crmd_orderadm_h-guid,
v_partner_guid TYPE crmd_orderadm_h-guid,
v_orgdata_guid TYPE crmd_orderadm_h-guid.
DATA: i_messages TYPE TABLE OF bbp_pds_messages,
i_item TYPE TABLE OF bbp_pds_sc_item_d,
i_account TYPE TABLE OF bbp_pds_acc,
i_partner TYPE TABLE OF bbp_pds_partner,
i_orgdata TYPE TABLE OF bbp_pds_org.
DATA: w_header TYPE bbp_pds_sc_header_ic,
w_e_header TYPE bbp_pds_sc_header_d,
w_messages TYPE bbp_pds_messages,
w_item TYPE bbp_pds_sc_item_d,
w_account TYPE bbp_pds_acc,
w_partner TYPE bbp_pds_partner,
w_orgdata TYPE bbp_pds_org.
CLEAR i_messages.
v_header_guid = 1.
v_item_guid = 2.
v_account_guid = 3.
v_partner_guid = 4.
v_orgdata_guid = 5.
*header-guid = 1.
*item-parent = 1.
*item-guid = 2.
*accounting-guid = 3.
*accounting-p_guid = item-guid.
*partner-partner_guid = 4.
*partner-p_guid = item-guid.
*organization-guid = 5.
*organization-p_guid = item-guid.
*I_HEADER
CLEAR w_header.
w_header-guid = v_header_guid.
w_header-object_id = 'BUS2121'.
w_header-description = 'Test SC Upload'.
w_header-currency = 'GBP'.
w_header-process_type = 'SHC'.
w_header-posting_date = sy-datum.
*I_ITEM
* DELIV_DATE, PRODUCT_TYPE, LOGSYS_FI, BE_CO_CODE.
CLEAR w_item.
w_item-guid = v_item_guid.
w_item-parent = v_header_guid.
w_item-number_int = '0000000001'.
w_item-number_ext = '0000000000'.
w_item-product = '45ACB1298F870099000000000A8E0327'.
w_item-description = 'Lay Main <=180'.
w_item-category = 'FC888C591C4CFC4081AE49F48750CBAB'.
w_item-category_id = 'L03621101'.
w_item-ext_quote_item = '0000000000'.
w_item-quantity = 1.
w_item-unit = 'EA'.
w_item-ordered_prod = '/EC_1A001'.
w_item-price = 2.
w_item-price_unit = 1.
w_item-gross_price = 2.
w_item-currency = 'USD'.
w_item-del_datcat = 1.
w_item-deliv_date = sy-datum.
w_item-product_type = '01'.
w_item-logsys_fi = 'DEVCLNT100'.
w_item-be_log_system = 'SRDCLNT100'.
*w_item-be_stge_loc = 'MAIN'.
w_item-be_plant = '1020'.
*w_item-be_move_type = '281'.
w_item-be_pur_group = '50002754'.
w_item-be_pur_org = '50000040'.
w_item-be_co_code = '1020'.
w_item-be_doc_type = 'ECPO'.
APPEND w_item TO i_item.
*I_ACCOUNT
CLEAR w_account.
w_account-guid = v_account_guid.
w_account-p_guid = v_item_guid.
w_account-distr_perc = 100.
w_account-acc_no = '0001'.
w_account-acc_cat = 'OR'.
*w_account-SRC_GUID 00000000000000000000000000000000
w_account-g_l_acct = '0000621101'.
*w_account-BUS_AREA VTRS
w_account-cost_ctr = ' 0000012061'.
w_account-sdoc_item = '000000'.
w_account-sched_line = '0000'.
w_account-co_area = 'EXEL'.
*w_account-profit_ctr = 'NM01'.
*w_account-PROF_SEGM 0000000000
*w_account-CMMT_ITEM 500411060
*w_account-FUNDS_CTR 6589
APPEND w_account TO i_account.
*I_PARTNER
CLEAR w_partner.
w_partner-partner_guid = v_partner_guid.
w_partner-p_guid = v_item_guid.
w_partner-partner_fct = '00000016'.
w_partner-partner_no = '48ED292BF5193C52E1000000AC1D061F'.
w_partner-addr_type = '3'.
w_partner-addr_origin = 'A'.
w_partner-addr_no = '0000011078'.
w_partner-partner_id = '0000000941'.
APPEND w_partner TO i_partner.
CLEAR v_partner_guid.
CLEAR w_partner.
w_partner-partner_guid = v_partner_guid.
w_partner-p_guid = v_item_guid.
w_partner-partner_fct = '00000020'.
w_partner-partner_no = '4896D1636F351467E1000000AC1D061F'.
w_partner-addr_type = '3'.
w_partner-addr_origin = 'A'.
w_partner-addr_no = '0000011078'.
w_partner-partner_id = '0000000941'.
APPEND w_partner TO i_partner.
CLEAR v_partner_guid.
CLEAR w_partner.
w_partner-partner_guid = v_partner_guid.
w_partner-p_guid = v_item_guid.
w_partner-partner_fct = '00000027'.
w_partner-partner_no = 'B106B75848BC9B4584C8A1C1EB89EC94'.
w_partner-addr_type = '1'.
w_partner-addr_origin = 'B'.
w_partner-addr_no = '0000015958'.
w_partner-partner_id = '0000000915'.
APPEND w_partner TO i_partner.
*I_ORGDATA
CLEAR w_orgdata.
w_orgdata-guid = v_orgdata_guid.
w_orgdata-p_guid = v_item_guid.
w_orgdata-proc_org_resp_id = '50002754'.
w_orgdata-proc_group_id = '50002754'.
w_orgdata-proc_org_id = '50000040'.
APPEND w_orgdata TO i_orgdata.
CALL FUNCTION 'BBP_PD_SC_CREATE'
EXPORTING
i_ref_guid = v_header_guid
i_park = 'X'
i_save = 'X'
i_header = w_header
IMPORTING
e_header = w_e_header
TABLES
i_item = i_item
i_account = i_account
i_partner = i_partner
i_orgdata = i_orgdata
e_messages = i_messages.
LOOP AT i_messages INTO w_messages .
WRITE:/ w_messages-msgty,
* w_messages-msgid,
* w_messages-msgno,
w_messages-message
* w_messages-msgv1,
* w_messages-msgv2,
* w_messages-msgv3,
* w_messages-msgv4
ENDLOOP
Thanks a lot in advance to help me out this.
Please send if you have code to complete this to sudarsan.srm at gmail (gmail id - sudarsan.srm)
Best Regards,
SudarsanHi All,
I forgot to mention SRM Version. I am working on SRM 4.0.
Thanks,
Best Regards,
Sudarsan -
Add custom field in the selection screen for shopping cart monitor report
Hello,
refering to the notes 458591 an 672960, in order to add custom field at item level, we get the structure INCL_EEW_PD_ITEM_CSF.
But this doesnt make it appear on the "Shopping Cart Monitor Report" selection screen.
So should I try adding it in the existing interface of the badi bbp_sc_mon ?hello Yann,
ok I will implement that. Is it possible to change the interface of the badi method to include more data if we want to check the role of the user who is executing the shopping cart monitor report and accordingly do the settings of field display ? Or calling a function module inside the method to get the attributes of sy-uname would be easier?
rita -
BAdI Change Display in Shopping Cart
Hi,
Has anyone activated the functionality that allows you to change the display of the shopping cart? If yes, what can you actually alter with it and where did you find useful documentation?
JerryHi Jerry,
Here is the BADI documentation. Whichever links you want to hide them, simply pass X to them and activate BADI implementation.
Business Add-In BBP_SC_MODIFY_UI to override the standard settings and tailor the user interfaces Wizard, Simplified Form and Extended Form to your own requirements.
In the Add Items area, you can activate/deactivate the Describe Requirement, Add Limit Item, Request (Service) and Purchase Order (Service) links on the various user interfaces.
You can continue to display the Default Settings for Items area on the 'Wizard' interface, and to hide this area on the 'Extended Form'. This area is not integrated into the application Request.
Regards.
Jay -
SRM XI Content for Shopping Cart model (Extended Classic)
We've loaded the XI content for SRM (XI7_0_SRM_SERVER_7.xxxx) from the sap marketplace and reviewed the data types, messages, and interfaces. It appears there are no pre-built integration scenarios associated with a Shopping Cart model (Purchase Orders, Advance shipment notice, etc). Does a set of pre-built integration scenarios exist, or are these generally built manually? We are going to be pushing purchase orders from ECC to SUS in most of our scenarios. Thanks in advance.
Usually SAP provides the integration scenarios with template systems. But you can always create your own integration scenarios in your own SWC by making a dependency in SLD and using the Interfaces/Message Types and Datatypes in the SAP standard content.
VJ
Maybe you are looking for
-
How much interfaces can be driven in "real-time" with a VI in LABVIEW 6i
In my application I need to merged data from different devices hanging to my computer via different interface types. Each data set in to be specifically formatted in a file. Each data set comes a a rate of ~ 10 Hz. As acquisition devices I do have -
-
Creating a Print icon in Acrobat 8
Is it possible to create a print icon using an image in a PDF'd document? I have Acrobat 8 Professional - Version 8.1.3 Any help you can give would be appreciated. Thanks
-
Which Studio Reference Monitors for a video edit suite?
Sorry that this questions does not have to much to do with Final Cut/Logic Pro though i don't know where i can ask people how know an video edit suite. I'm looking at buying some Studio reference monitor and have found a pair i think are going to hav
-
Can I uninstall Internet Explorer completely? I have chosen Mozilla Firefox as my internet browser and I like it. Internet Explorer always seems to be doing a lot of stuff behind the scenes and it takes forEVER to do anything. I hate it. I want it go
-
Files "impossible to throw away". How do I get rid of them?
Hi, I have on my desk files I didn't create, named 1CE18A00, C7DCF000, 8B0EC000, and when I throw them away I get the message "file impossible to throw away". How do I get rid of them? They are marked as XLSX files, but they don't open when I double