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

Similar Messages

  • Creation of shopping cart through HTTP request

    Hello all, I am trying to create a shopping cart through a HTTP request.
    The URL I am managing is the same that the one that the Web Service BBPSC01 uses.
    Using the following code I cannot connect to the server in background, the error "This browser is not supported" is launched.
    In addition to this, I can open the URL successfully via R/3 when executing online.
    Help very appreciated!
    Thanks.
    data declarations
    DATA: client TYPE REF TO if_http_client.
    DATA: host      TYPE string VALUE 'host',
          host2      TYPE string,
          service   TYPE string VALUE '8000',
          path      TYPE string VALUE '/sap/bc/gui/sap/its/bbpsc01/?sap-client=020&sap-language=EN',
          errortext TYPE string. "used for error handling
    DATA: dest(13) TYPE c.
    dest = 'ZPORTAL_CESTA'.
    CALL METHOD cl_http_client=>create_by_destination
      EXPORTING
        destination              = dest
      IMPORTING
        client                   = client
      EXCEPTIONS
        destination_not_found    = 1
        internal_error           = 2
        argument_not_found       = 3
        destination_no_authority = 4
        plugin_not_active        = 5
        OTHERS                   = 6.
    IF sy-subrc NE 0.
      WRITE: / 'Create failed, subrc = ', sy-subrc.
      EXIT.
    ENDIF.
    set http method POST
    CALL METHOD client->request->set_method(
      if_http_request=>co_request_method_post ).
    client->request->set_version(
         if_http_request=>co_protocol_version_1_1 ).
    client->request->set_header_field( name = '~request_method'
    value = 'GET' ).
    set request uri (/<path>[?<querystring>])
    DATA uri TYPE string.
    uri = path.
    cl_http_utility=>set_request_uri( request = client->request
                                      uri     = uri ).
    FIN: conectamos el final de la peticion
    Send
    DATA timeout TYPE i.
    CALL METHOD client->send
      EXPORTING
        timeout                    = timeout
      EXCEPTIONS
        http_communication_failure = 1
        http_invalid_state         = 2
        http_processing_failed     = 3
        OTHERS                     = 4.
    IF sy-subrc NE 0.
      DATA: subrc TYPE sy-subrc.
      CALL METHOD client->get_last_error
        IMPORTING
          code    = subrc
          MESSAGE = errortext.
      WRITE: / 'communication_error( send )',
             / 'code: ', subrc,
             / 'message: ', errortext.
      EXIT.
    ENDIF.
    CALL METHOD client->receive
      EXCEPTIONS
        http_communication_failure = 1
        http_invalid_state         = 2
        http_processing_failed     = 3
        OTHERS                     = 4.
    IF sy-subrc NE 0.
      CALL METHOD client->get_last_error
        IMPORTING
          code    = subrc
          MESSAGE = errortext.
      WRITE: / 'communication_error( receive )',
             / 'code: ', subrc, 'message: '.
      EXIT.
    ENDIF.
    DATA return_str TYPE string.
    return_str = client->response->get_cdata( ).
    close
    CALL METHOD client->close
      EXCEPTIONS
        http_invalid_state = 1
        OTHERS             = 2.
    DATA html_control TYPE REF TO cl_gui_html_viewer.
    DATA container   TYPE REF TO cl_gui_custom_container.
    DATA html_table TYPE TABLE OF char255.
    Create container for HTML viewer
    CREATE OBJECT container
      EXPORTING
        container_name              = 'CONTAINER'
      EXCEPTIONS
        cntl_error                  = 1
        cntl_system_error           = 2
        create_error                = 3
        lifetime_error              = 4
        lifetime_dynpro_dynpro_link = 5.
    IF sy-subrc NE 0.
      MESSAGE e208(00)
         WITH 'The control HTML_CONTAINER could not be created'.
    ENDIF.
    CREATE OBJECT html_control
      EXPORTING
        parent = container.
    CALL FUNCTION 'CONVERT_STRING_TO_TABLE'
      EXPORTING
        i_string         = return_str
        i_tabline_length = 255
      TABLES
        et_table         = html_table.
    DATA: l_doc_url(255) TYPE c.
    CALL METHOD html_control->load_data
      EXPORTING
        type         = 'text'
        subtype      = 'html'
      IMPORTING
        assigned_url = l_doc_url
      CHANGING
        data_table   = html_table.
    CALL METHOD html_control->show_url
      EXPORTING
        url = l_doc_url.

    Dear Poster
    Your thread has had no response since it's creation over
    2 weeks ago, therefore, I recommend that you either:
    - Rephrase the question.
    - Provide additional Information to prompt a response.
    - Close the thread if the answer is already known.
    Thank you for your compliance in this regard.
    Jason Boggans
    SAP SRM SDN Moderator

  • Fatal Error encountered while creating a Shopping Cart.

    Hello people,
    Im an amateur ABAP/WDJ Developer, and i am facing a serious issue,i would be so glad if anyone can help me out with this.
    When i create a shopping cart on the portal, it goes all smooth until the checkout, when i click on checkout, it flashes an error...
    "Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Incorrect encoded sequence detected at character (hex) 0xa0, (bin) 10100000. Check whether the input parsed contains correctly encoded characters. Encoding used is: 'utf-8'(:main:, row:2, col:59)Exception"
    I have tried taking traces and have have gone through the FMs that are called from the SRM, but with no luck.
    Can anyone please help me out with this?
    -Regards

    Raghav
    Did you get this issue resolved.  We're having a similar problem.  When the data is entered into the Shopping Cart Name field, it sometime has Hex "C2A0" which looks like the Unicode representation of the UTF-8 Non-Repeating Space character.   This is user entered data and my initial thought was that they were copying and pasting from a web site, but the user claims not.

  • Price Change while creating a shopping cart

    Dear Srm Guru's
    We are in SRM 4.0 and following a classic scenarios.
    While creating a shopping cart  the price in the shopping cart is picked up from the price which we upload through EBP_GET_BACKEND_PRICES
    If there is a variation in the price can we change the price while creating the shopping cart. Currently the field is in display mode what settings should we make that it allows a change of price while creation of shopping cart.
    Regards,
    Nimish Sheth

    Nimish,
    for this you have to change the standard code.
    In screen communication structures, there is a flag "price_changeable" that controls the edit mode of price field.
    You have to change the standard logic to implement your behaviour in FORM price_changable_set from include LBBP_SC_APPF92:
      IF es_item-mode EQ gc_display OR
        ( es_item-rfq_ind EQ gc_yes AND es_item-price IS INITIAL ).
        CLEAR: es_item-price_changeable.
      ELSE.
        IF NOT es_item-catalogid IS INITIAL OR
           es_item-price_origin EQ c_price_origin_f OR
           iv_scenario EQ c_sc_generic_soco OR
           iv_scenario EQ c_sc_generic_history OR
           iv_scenario EQ c_sc_generic_workload OR
           ( es_item-price NE es_item-gross_price AND
             NOT es_item-price IS INITIAL ).
          CLEAR: es_item-price_changeable.
        ELSE.
          es_item-price_changeable = gc_yes.
        ENDIF.
      ENDIF.
    Rgds
    Christophe

  • 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

  • How to change the default delivery day when i create a shopping cart?

    hi,dear
    i got some trouble when i was creating a shopping cart.
    i want to change the default delivery day when i reference an old template.
    pls see the pictures and take the details.
    it seems that this forum dont support the [img][/img],so pls clike the link to open the picture.
    if you cant see the picture ,pls tell me,thank you
    step1:http://p13.freep.cn/p.aspx?u=v20_p13_p_0909111119338649_0.jpg
    step2:http://p13.freep.cn/p.aspx?u=v20_p13_p_0909111119432170_0.jpg
    step3:http://p13.freep.cn/p.aspx?u=v20_p13_p_0909111119557507_0.jpg
    step4:http://p13.freep.cn/p.aspx?u=v20_p13_p_0909111120079773_0.jpg
    Edited by: ming yu on Sep 11, 2009 5:22 AM

    Hello Ming,
    Have a look at following thread concerning BAdI BBP_CHANGE_DEFAULT:
    [Change the delivery date (Required on) of SC|Change the delivery date (Required on) of SC;
    You will have to check in which SC transaction you are in order to distinguish creation from reference to old template.
    Regards.
    Laurent.

  • Getting error while creating the Shopping cart.

    Hi ,
    I am getting error while creating the Shopping cart.
    a.Error in account assignment for item 1  (Item  Testing SC ) 
    b.Duplicates of Cost Centre T10063 are defined in SRM  (Item  Testing SC ) 
    Kindly provide the solutions.
    Thanks,
    Dev

    Try the following in the ERP backend system:
    Standard Hierarchy Inconsistencies
    Issue: one Cost Center is repeating in more than one node in Cost Center Standard Hierarchy.
    Update from SAP Global support, the following was the email received:
    in transaction KSH3 please run both the ambiguity and completeness check(Menu -> Extras -> Check and Help functions).
    If you think that your standard hierarchy is inconsistent you can check that as following:
    Run transaction Extras -> Hierarchy - Master data -> Test. The result shows you if there are in consistencies. If that is the case run also Extras -> Hierarchy - Master data -> Comparison.
    Alternatively, you can run the report 'RKCORRH1' (TN SE38).
    Run both the Hierarchy->Master data->test and the
    Hierarchy->Master data->comparison.
    As stated above inconsistency message showed after Test. Run the comparison and you get a similar message.
    Once the above two are run, again when you go to test, the inconsistency disappears.

  • Display info records while creating a shopping cart in Extended Classic

    Hi ,
    i am working on Extended Classic Scenario in SRM 5.0.
    I have created an info record in R/3 Backend.
    when i create a shopping cart with the relavant information system is not showing up the required info record that is maintained in the R/3 system.
    Please respond to this problem ASAP.
    Thanks,
    mahesh

    Hi,
    See the foll threads:
    Assign the Info-record to SOS automatically.
    Re: Contract preference over PIR in SOS in Classic Scenario
    BR,
    Disha.
    Do reward points for  useful answers.

  • With WBS element unable to create the Shopping cart

    Hi,
    With WBS element unable to create the Shopping cart
    Problem description:
    Shiopping cart >Item detail > Account assignment
    A/c assignment category " WBS element", Assignment no (some no,eg 1000-2 ).System picks the G/L account and business area,unable to create the shopping cart.Getting error message that
    "The account assignment objects are defined for different business areas  "
    Did i missed anything ,please
    Thanks
    Hareesha

    Hi Hareesha,
    As Sreedhar has rightly said the issue is definitely with the correctness of the data.
    Check the assignment of WBS to the proper business area which you are using to create the shopping cart.Check your org. structure and attributes and their assignments once again.
    Neverthless some OSS notes for your reference if in case you can not able to make P.Os or the SC's / P.Os are not getting transfered to back end R/3.
    <b>Note 727897 - WBS element conversion in extended classic scenario</b>
    <b>Note 1000184 - Account assignment error when document transfer to back end</b>
    Even after validating the data if the problem still persists please explain it clearly with the errors for further help.
    Rgds,
    Teja

  • How to create a shopping cart in JSP?

    I am creating an online product ordering system, How can i create a shopping cart in jsp? is there a way i can save a table containg itemcode, price, quantity in jsp? Can i save it using bean or session? please help me. thanks in advance.

    Hello,
    i want to create online shopping cart using html and JSP.
    At first i want to create 1html page where login ad logup optios are provided. After his login, a JSP page containing 3 links namly T-shirts,Jeanspat and Formals is displayed.
    After user select any of the link it must go to particular page.
    There, option of color, size is provided.
    And some 5 to 6 items are displayed with its pfxd prices.
    And in the same page a cart is provided. Whe the user selects(clicks) any item the same must display in cart.
    In the same page link to T-shirts,Jeanspat and Formals is displayed agaiT-shirts,Jeanspat and Formals is displayed agaiT-shirts,Jeanspat and Formals is privided again.
    next page must show the items selected. And finally it must show the "thank you" page stating that your delivary will be delivered to you within 24 hrs.
    Thanks in advance ,
    sameer

  • Creating a shopping cart in iweb?

    Does Apple have software that allows me to create a shopping cart in Iweb?

    No.  You will have to integrate PayPal into iWeb by creating a PayPal business account.
    You can also do a Google search for shopping carts.

  • How does a workflow get triggered when we create a Shopping cart

    Hi all,
    In SRm how does a workflow gets triggered when we create a Shopping cart...what i mean is that in r/3 we use changedocument object or function modules etc..likewise in srm how the wf gets triggere...can anyone help me.
    Thanks&Regards,
    Hari

    Hi martin,
    yes i accept that in SRM also workflows are all started by event...what i mean is in R/3 we go for Change document object(swec) or some other method for event creation...like that in SRM what is there?Just whenwe create a Shopping cart How the workflow is trigerred...suppose if it is trigerred using fm swe_event_create where they might have called the function module.
    Thanks&Regards,
    Hari

  • Reservation not getting created from shopping cart for stores order.

    Hi experts,
    Reservation not getting created from shopping cart for stores order,process used is some custom BADI.Extended classic scenario is the procrss .
    Please help me
    Thanks in  advance.

    Hello,
    please check below wiki:
    Determination of the follow-on document type
    Regards.
    Laurent.

  • Drop Down List empty when user trying to create a Shopping Cart.

    Hi,
        While Creating a Shopping cart.User is unable to select a vendor or a category from the drop down list,As the Drop down list is empty.I have Checked The Extended Attributes Tab for the user in PPOMA_BBP tcode.Are There any other configurations to be checked.
    Appreciate your inputs!!
    Thanks
    Rakesh.

    Hi Muthu,
                 Thanks For your reply.The User is trying to create a Shopping cart,Whilst creating it he is trying to select a Vendor from the Drop downlist.But the drop down list is showing up empty values.The User is unable to pass the vendor to the shopping cart from the drop down list.
    Thanks
    Rakesh.

  • Price Field Changeable while creating the Shopping cart

    Hi We are in SRM 4.0 and follow a classic scenarios.
    For some materials we run program EBP_GET_BACKEND_PRICES
    and get the prices from the backend, how ever while creating a shopping cart if the price differs we need to change the price but the field is grey.
    how do we change the price ????
    EX - My MAP in R/3 for Material A is  100 Rs. how ever while I create a shopping cart the price i need to enter is 102 how do I change the  price.
    can anyone throw light on this.
    regards,
    Nimish Sheth

    Nimish,
    for this you have to change the standard code.
    In screen communication structures, there is a flag "price_changeable" that controls the edit mode of price field.
    You have to change the standard logic to implement your behaviour in FORM price_changable_set from include LBBP_SC_APPF92:
      IF es_item-mode EQ gc_display OR
        ( es_item-rfq_ind EQ gc_yes AND es_item-price IS INITIAL ).
        CLEAR: es_item-price_changeable.
      ELSE.
        IF NOT es_item-catalogid IS INITIAL OR
           es_item-price_origin EQ c_price_origin_f OR
           iv_scenario EQ c_sc_generic_soco OR
           iv_scenario EQ c_sc_generic_history OR
           iv_scenario EQ c_sc_generic_workload OR
           ( es_item-price NE es_item-gross_price AND
             NOT es_item-price IS INITIAL ).
          CLEAR: es_item-price_changeable.
        ELSE.
          es_item-price_changeable = gc_yes.
        ENDIF.
      ENDIF.
    Rgds
    Christophe

Maybe you are looking for

  • Page numbers are repeating in Page Thumbnail view.

    Using Adobe Actobate XI Standard with Windows.  When I in insert another adobe document into my current document (by either using the tool Insert from File or dragging it from another screen), my page numbers in the thumbnails get the same page numbe

  • Problem in starting OIM managed server

    Hello, After configuring the Managed server in a cluster, when we try to start the server it is starting in ADMIN mode. The SOA Managed server was started successfully. 23:41:38 INFO [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (s

  • Timing discrepancy between burned DVD and Adobe Premiere Elements 12

    Why does the DVD I burned have a different total time (1:54:35) as compared to the ending time in Adobe Premiere Elements 12 (1:54:42)? A similar thing happened a week ago too, when the raw video when played in Windows Media didn't match up with the

  • Adobe illustrator cs3 installation help

    I had to reinstall Illustrator cs3 recently.  It goes through the installation process and ask me to put in Adobe Indesign CS4 cd into my mac to continue the instalition process.  I only downloaded the trail Version of Indesign so i dont have the the

  • How can I restore my files after emptying trash??!!

    Hi there. I've got question about my Macbook. I am using Macbook to work. And one day I found that some of the files are no longer needed so I just moved them to the trash and then I emptied it. Few hours later then I found that I make a mistake, I d