Survey BSP application for never answered surveys

Hello Experts,<br />
I need to launch the BSP application CRM_SVY_SERVER for an order whose survey hasn't been answered yet.<br />
<br />
<b>Let me explain it better:</b><br />
The customer survey is properly setup, I'm able to answer it in CRMD_ORDER and see the results in CRM_SURVEY_SUITE.<br />
Now I need to enable answering for an order from the BSP application mentioned. But to create an answer in this application, relating to an order, I need to provide the valueguid of the answer (table CRM_SVY_DB_SVS, field VALUEGUID).<br />
<br />
<b>The main problem is:</b> The valueguid of the answer doesn't exist yet, as the survey wasn't answered yet. If I pass the order header guid (CRMD_ORDERADM_H-GUID) to the application, it says: "Survey not found".<br />
<br />
Is there a way to pass the order header guid (CRMD_ORDERADM_H-GUID) to the BSP application, so it creates the answer valueguid automatically? How this BSP application deals with surveys never answered?<br />
I think i'll have to code a little bit, to instantiate a survey and get a valueguid, before calling the BSP application. If you have any ohter idea, please let me know.<br/>
<br />
Sorry for the long text, its just a lot of details.<br />
<br />
Regards,<br />
Rafael Schaffer<br />
<br />

Hi Rafael,
I'm not sure what's the error. I'll give sample code that's already working in my CRM system. It may give you some ideas.
REPORT  ZTEST3.
INCLUDE:CRM_OBJECT_KINDS_CON,
        CRM_OBJECT_NAMES_CON.
DATA: s_orderadm_h TYPE crmt_orderadm_h_com,
      t_orderadm_h TYPE crmt_orderadm_h_comt,
      s_input_fields TYPE crmt_input_field,
      t_input_fields TYPE crmt_input_field_tab,
      s_field_names TYPE crmt_input_field_names,
      t_field_names TYPE crmt_input_field_names_tab,
      s_activity_h TYPE CRMT_ACTIVITY_H_COM,
      t_activity_h TYPE CRMT_ACTIVITY_H_COMT,
      s_objects_to_save TYPE crmt_object_guid,
      t_objects_to_save TYPE crmt_object_guid_tab,
      s_saved_objects TYPE crmt_return_objects_struc,
      t_saved_objects TYPE crmt_return_objects.
***** SURVEY**********
DATA: lead_guid TYPE guid_32,
      activity_guid TYPE guid_32,
      lead_id TYPE crmt_object_id,
      activity_id TYPE crmt_object_id,
      valueguid TYPE crm_svy_db_sv_guid,
      valueversion TYPE crm_svy_db_sv_vers.
DATA: survey_value_guid TYPE guid_32,
      it_values TYPE CRM_SVY_API_STRING_T.
DATA: et_survey_param TYPE CRM_SVY_API_PARAMETER_T,
      it_survey_param TYPE CRM_SVY_API_PARAMETER_T,
      wa_survey_param TYPE CRM_SVY_API_PARAMETER,
      cs_evaluation_infos TYPE CRM_SVY_RE_TAR_OBJ.
DATA: o_survey_runtime TYPE REF TO cl_crm_svy_runtime,
      o_surveyvalues TYPE REF TO cl_crm_svy_values,
      t_application_params TYPE crm_svy_api_parameter_t,
      t_all_values TYPE survy_t_all_values.
DATA: value TYPE string.
****** END SURVEY *****
DATA: guid_h TYPE CRMT_OBJECT_GUID,
      guid_i TYPE CRMT_OBJECT_GUID,
      process_type TYPE CRMT_PROCESS_TYPE,
      item_type TYPE CRMT_ITEM_TYPE,
      object_type TYPE CRMT_SUBOBJECT_CATEGORY,
      process_mode TYPE CRMT_MODE,
      it_survey_ui TYPE CRMT_SURVEY_UI_TAB.
*   Fill required structures
  CLEAR: s_orderadm_h, t_orderadm_h.
  s_orderadm_h-object_id = 'BUS2000126'."'BUS2000108'.
  s_orderadm_h-process_type = 'ZCRC'.
  s_orderadm_h-description = 'Description nih'.
  APPEND s_orderadm_h TO t_orderadm_h.
******  ADD FIRST PROPERTY TO INPUT FIELDS -> ACTIVITY_H
  CLEAR: s_input_fields, t_input_fields .
  s_input_fields-ref_kind = gc_object_kind-orderadm_h."'A'.
  s_input_fields-objectname = gc_object_name-activity_h."'ACTIVITY_H'."'LEAD_H'.
  CLEAR: s_field_names, t_field_names.
* in order to get location and external reference no values, their fieldnames must be added to these
  s_field_names-fieldname = 'ACT_LOCATION'. APPEND s_field_names TO t_field_names.
  s_field_names-fieldname = 'CATEGORY'. APPEND s_field_names TO t_field_names.
  s_field_names-fieldname = 'EXTERN_ACT_ID'. APPEND s_field_names TO t_field_names.
  s_input_fields-field_names = t_field_names.
  APPEND s_input_fields TO t_input_fields.
******  END FIRST PROPERTY TO INPUT FIELDS -> ACTIVITY_H
******  ADD SECOND  PROPERTY TO INPUT FIELDS -> ORDERADM_H
  CLEAR: s_input_fields.
  CLEAR: s_field_names, t_field_names.
  s_input_fields-ref_kind = gc_object_kind-orderadm_h ."'A'.
  s_input_fields-objectname = gc_object_name-orderadm_h."'ORDERADM_H'.
*Subtable FIELD_NAMES
  s_field_names-fieldname = 'DESCRIPTION'. APPEND s_field_names TO t_field_names.
*/Subtable FIELD_NAMES
  s_input_fields-field_names = t_field_names.
  APPEND s_input_fields TO t_input_fields.
******  END ADD SECOND  PROPERTY TO INPUT FIELDS -> ORDERADM_H
CLEAR: s_activity_h, t_activity_h.
  s_activity_h-ACT_LOCATION = 'Location nih'.
  s_activity_h-EXTERN_ACT_ID = 'Extern ref no nih'.
  s_activity_h-category = 'ZC1'.
  APPEND s_activity_h TO t_activity_h.
* Create activity
  CALL FUNCTION 'CRM_ORDER_MAINTAIN'
    EXPORTING
*    it_lead_h             = t_lead_h
      it_activity_h         = t_activity_h
*    it_partner            = t_partner_h
*      iv_collect_exceptions = ''
    CHANGING
      ct_orderadm_h         = t_orderadm_h
      ct_input_fields       = t_input_fields
    EXCEPTIONS
      error_occurred        = 1
      document_locked       = 2
      no_change_allowed     = 3
      no_authority          = 4
      OTHERS                = 5.
  IF sy-subrc <> 0.
*  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
*    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
* Get GUID of created LEAD for later saving
  READ TABLE t_orderadm_h INTO s_orderadm_h INDEX 1.
  CLEAR: s_objects_to_save.", t_objects_to_save.
*s_objects_to_save = lead_guid = s_orderadm_h-guid.
  s_objects_to_save = activity_guid = s_orderadm_h-guid.
  APPEND s_objects_to_save TO t_objects_to_save.
*** continue to next post
because of SDN forum limitation (2500 line of code from [this link|Formatting issues in SDN postings (character limit and code tags);) , please see my next post to continue my code

Similar Messages

  • How to secure BSP applications for external users on the internet?

    I posted this question under Enterprise Portal forum but got no response. I am hoping some of you experts in this area can help.
    We have developed BSP applications and set them up as iViews in Enterprise Portal 6. Our portal implementation will be used by external users.
    We have security concerns that the access to the BSPs  allows external users direct access to the R/3 system. We were told that we should use ITS application instead of BSP application for external users.
    Do any of you have any insight into how we could work around the security problem with BSP applications, or BSP applications in EP6? Your help will be greatly appreciated.

    In sense they are correct as to whether it is more secure or not would have to be a call by people who are more of an expert than myself.
    But I can see there point the BSP runs directly on the system and uses the system security where as the ITS is basically just an RFC call. However for us we use a 620 server with BSP's and make RFC calls to our R/3 systems thus keeping people of the R/3 directly - however we are not opened to the Internet.
    If your message is answered please remember to mark it solved so others searching in the future can find the solved ones quicker - just click on the yellow star.

  • Restricting the drop down menu contents in CRM BSP application for portal

    Dear All,
    I have a problem with CRM BP where I am accessing a BSP application for ACTIVITIES - SEARCH "CRMD_BUS2000126_F4" as an iview. This iview has been assigned to a user who is an external employee of the organization. This contains a drop-down menu to search for ACTIVITIES based on user's choice(ME, MY DEPT, MY GROUP..etc). My problem is to restrict the choices in the DROP-DOWN menu to only ME and remove all others.
    How do i do that???
    rgds
    Chan

    Hi Chan,
    u r on right track.
    Save the changes that you make to the field group (entering a default value and tick 'read-only')
    I hope you are changing the field-group in CRMC_BLUEPRINT_C.
    after u have saved the canges to the fieldgroup, you need to re-gerenate the layout.
    Layout of User Interface (People-Centric UI) -> Application Element -> Field Group -> Layout Generation.
    Enter the name of the fieldgroup that u just changed.
    First run it as it is (with the "Only Check Field-Groups" ) to see if it is running into any errors.
    If there are no errors, Make sure that you remove the "Only Check Field-Groups" option and then execute.
    The layout will b generated and you should see the desired changed now.
    Hope this helps. / reward points if helpful..
    Regards,
    Raviraj

  • BSP Application for creating surveys in EP 6 & 7

    Hello friends,
    I have been searching for a BSP application that supports the creation of surveys in EP 7, although this function should have been available in teh standard EP Role (campaign manager:com.sap.pct.crm.campaignmanager)
    can anyone help me in finding this role or the BSP app.
    thanks,
    HM.

    Hi,
    Please avoid double posting in differnt categories.
    Replied to in creating users in EP 6.0 from BSP application

  • Bad URL in BSP applications for login

    I have some BSP applications using the following URL for login (standard SAP login page):
    /sap/public/bsp/sap/system/login.htm?sap-url=<%=PATHTRANS%>&bspchangepasswordvisible=X&bspclient=001&bspdontshowhttpswarning=X
    this URL for login works good with a WAS 6.20 but not with a WAS 6.40
    Does anybody have an idea of why ? or if there is another login page to call in the WAS 6.40 to have the same functionality ?

    Hi Eric,
    in fact, there is a new login application available in 6.40, a lot easier to integrate and with more features than the old system application.
    To activate do the following: in SICF - at the tabrider where you configure the redirect to ../system/login.htm - you can find a checkbox labeled 'System Logon'. Setting this checkbox enables the new logon. The button 'Settings' opens another window where you can configure fields, default values, styles etc.
    Documentation is at http://help.sap.com/saphelp_nw04/helpdata/en/ff/c7de3fc6c6ec06e10000000a1550b0/frameset.htm.
    There is a set of weblogs in work to cover customization. In case you have further questions open a thread in this forum with topic '6.40 System Logon'.
    What is the error or problem which you get using the redirect to .../system/login.htm in 6.40?
    regards, Ulli

  • BSP Application for starting Web UI in CRM 2007 (6.0) using SE 80

    Hi All,
    Could you let me know the name of the BSP application that I need to execute using SE80 transaction
    in CRM 2007 (6.0) to start the Web UI from the CRM GUI. Also, let me know if there is any other way
    (tcode... etc) to start Web UI from GUI.
    Thanks in advance.
    --R D

    You can use BSP Appl CRM_UI_FRAME to start the WebUI in 6.0 version.
    Also you can create a favorite in the start menu, right click on fav and select add other object, then choose BSP application and put application name as CRM_UI_FRAME, some description and start page as default.htm. Thats all now you can directly click on that favorite and launch the WebUI
    Regards,
    Shobhit

  • How to Find Controller class of  BSP application for particular Iview

    Hi  All,
    Any one please  help me  to find a Controlller class of BSP for an  I view.
    http://Host Name :Port No/sap/bc/gui/sap/its/wosm-cr-->this is for sap retail,
    My requirement  is to change some source code in that particular iview.
    i goine with SE80 Tcode
    with package called WOSM>ITS service>Topic 90-->which contain Mime Objects,Html Templates.
    but i dint find any
    Point will be given!!!

    Hi All,
    My question is where should i find Controller class ?
    i gone with Tcode  SE80>packages>WOST>ITS service>WOSM>Topic90>which contain Mime Objects,HTML Templates.
    i dint find any controller class.
    regards
    Naresh

  • FIRST TIME RUNNING THE DEFAULT BSP APPLICATION IN ABAP

    Hi BSP experts,
            I am happy to see many people are solving the problems on BSP in sdn.
    I am running the bsp application for the first time by taking the t-code se80 into consideration and executing the default bsp application given there.But I am getting the error   The URL http://nwrbcs:8000/sap/public/bsp/sap/system/login.htm was not called due to an error.The error is common as to all RABAX_STATE and in addressbar the address displayed is
    http://nwrbcs:8000/sap/public/bsp/sap/system/login.htm?sap-url=%2fsap%2fbc%2fbsp%2fsap%2ftutorial_1%2fdefault%2ehtm&sap-ffield_b64=c2FwLXNlc3Npb25jbWQ9b3Blbg==.
    Mainly my problem is i am not able to goto logon page.I am using the version Netweaver’04 to run this application.Are there any special prerequisites to run a bsp application.I had donwe some settings in t-code SICF all services are activated(subservices also) and in path /default_host/sap/bc/bsp rightclick display service in handler list tab I added CL_HTTP_EXT_BSP. In RZ10 I added the parameter icm\host_name_full (as I am using workgroup instead of domain in my system) for instance profile.In t-code SCICM status is running.
    If not clear with the above details I will send the screenshots of required t-codes and runtime errors to the mail-id immediately.
    But I am not able to retrieve the problem.Is it necessary to check any kernel updates.I don’t know more about that, I will send the required screenshots clearly to know all the details.I will send the trace file also if u need.It is very urgent for me to work on bsp but I can’t.If u r  familiar with particular version I will send that screenshots as I tried it in 4.7ee(R/3),ECC5.0(R/3) AND Netweaver’04(abap).I am getting different errors in all the three versions.pls go through this and help me.
        Helpful answer will be rewarded unfailed.

    you need to configure the FQDN. That is causing the issue in your case.
    the URL shd start something like abc.mycompany.com:port_number...
    Refer below thread & blog:
    /people/durairaj.athavanraja/blog/2005/08/21/running-your-first-bsp-application-in-sap-netweaver-04-abap-edition--nsp
    - step by steby link to configure the FQDN - Re: Unable to run any BSP application
    Raja T

  • Handling events in BSP application using WML tag Extensions

    Hello Everyone  ,
                            We are developing a BSP applications for Mobile handheld using WML tag library. I am looking for some code samples to know how we can handle evevents inside the BSP using the WML tag library.
    Can any one of  you plesae help us by placing a code snippet for handling onInputprocessing() methods (BSP Using WML Tag extensions).
    I mean to ask how we can handle events inside the BSP applications that uses the WML tag library.
    I know about how to handle BSP events using HTMLB and XHTMLB tags frameworks.
    Thanks for your help in advance.
    Thanks,
    Greetson

    Is this WML tag library something that is supplied by SAP u2013 as a BSP Extension Element?  Or are you just using WML tags directly in your layout?  I can tell you in general that if you want to generate HTMLB events from regular HTML code you can generate the JavaScript calls using the htmlbEvent tag of the BSP extension library.  However your tags have to be running within an HTMLB Content tag for this to work.
    If you want to work totally without HTMLB then you need to use the simple HTTP Post but format the input name as OnInputProcessing(<function code>) like this:
    <input type="submit" name="OnInputProcessing(ok)" value="OK">
    This will cause the OnInputProcessing event handler to trigger without needing any HTMLB tags (this is how it was done in WebAS 6.10 before we BSP Extensions).

  • Enhance  Standard  BSP  Application HRRCF_CAND_APPL

    Hi,
      I want to change  Std  BSP  Application for E recruitment  candidate.HRRCF_CAND_APPL
        Should  I want to  Copy  Std  BSP   ,  IF I copy    how  shouldi  incorporate custom  bsp in portal.
    If I want to  go  for  enhancment  , then  how  should i do?
    Thanks,
    Asha

    Hi Asha,
    I can see that HRRCF_CAND_APPL is not one of the start page applications. So,you will have to copy this into a Z application & replace the reference to the the standard application with this Z application. This will be a pure development activity with changes to be done to the BSP code.
    Regards,
    Sowmya

  • E-recruiting Session Timeout BSP application

    Hi,
    for the BSP applications for E-recruiting Session Timeout occurs as a result I am not able to view any start page.
    Regards,
    Manish

    Hi,
    Go to SMICM and Goto-Services
    There for http go to change.
    And increase the time for keep alive and processing time to 1000 sec in the beginning . Later after all applications are opened atleast once you can reduce it.
    Also if the server is restarted it becomes default.
    Regards,
    Divya

  • Use a Customizable Logo / Image in a BSP Application

    Dear All,
        I am developing a BSP Application for a client. My company wants to use this same application for two clients. How can I dynamically change the logo of the company, used in the BSP Application? Say, how can the application administrator, who has access to a customization page, also upload the logo, once the application is transported to his server? Can this be done from within the BSP Application? I believe, we have to import it into the mime folder. But fow?
       Thank you all in advance.
    Regards
    Gladson

    <i>The administrator of Client A, should be able to upload a logo through the Administrator's page of the BSP Application,</i>
    Are you developing this Administrator page as well?
    what you could do in your code is just refer to image called logo.gif
    Ask Client A  to load their image to the BSP application from SE80 in dev (in their server) and ask them to transport to prod.
    ask Client B also to do the same.
    Both client A and Client B has to upload the image with the same name i.e logo.gif
    Regards
    Raja

  • BSP Applications in CRM

    Hi
    How do we find the respective BSP application for an iView in CRM, (lets say Activities OIP and ODP application)? And how and where do you view the source of that BSP application? We are in CRM 4.0 SP 8.
    Thanks in advance..!
    Regards
    Sasi

    Hi
    Technically there is only one BSP application for all People-Centric UI applications - it is called CRM_BSP_FRAME.
    This is the Controller part of the Model View Controller setup.
    The application specified in the URL (as above) specifies the layout and the model. You can set parameter ID 'CRM_BSP_TRACELEVEL' in the CRM backend for your user to turn on the PC-UI trace. See note 658311. Then you can see which ABAP class is triggered for each UI section (the so-called Model Access Classes).
    If you want to adjust the application, you really need to read 'The Book' (full title "Implementing People-Centric User Interfaces with Business Server Pages and SAP Enterprise Portal - The Book for Developers and Technical Consultants"). You can get it in the Service Marketplace.
    Cheers
    Dom

  • How to Reuse BSP Application in CRM UI

    Hi All,
    I have a custom BSP Application which was used in PCUI as part of search help display. After migration of the system we would like to resuse this BSP application for the search help for the same field. Can anyone let me know what are the steps involved for this?
    Objective: Steps involved for how to reuse BSP application in CRM UI.
    Regards,
    Harish P M

    HI Harish,
    There is one idea to use transaction lancher.
    1. Check the relevant URL parameters that you need to define. You can find the parameters at the end of the URL.
    2. Define those paramters at IMG -> CRM -> Interaction Center WebClient -> Basic Functions -> Define URLs and Parameters
    3. Assign the values of the relevant parameters in the Transaction launcher wizard that can be accessed through IMG -> CRM -> Interaction Center WebClient -> Basic Functions -> Transaction Lancher Wizard at the step "Transaction parameters".
    Best,
    Levente

  • BSP application on Blackberry

    Hello,
    I'm developing a BSP application for Blackberry. When I'm testing the application on the blackberry I'm getting an error:
    "SAP Note The Following error text was processed in the system: <htmlb:content> (*)  This browser is not supported for Design2003 the Internet Explorer as of 5.50 and the Mozilla as of 1.75 are supported "
    Thomas Jung already answered on this question (thanks btw)
    "You can't use the *htmlb libraries in a mobile BSP application. That means no htmlb:content tag. You must create your own rendering layout. "
    Can anybody explain some more in detail what is meant by this? Any help is really appreciated!
    Many Thanks!
    Siegfried

    Thanks Graham,
    In my case, I have a couple buttons "Execute" and "Clear". I need to know if the user push "Execute" in order to call a Function Module to create a Good Issue, otherwise clear the fields in the HTML screen.
    This is why I think I have to put my code to execute the Func.Module either OnInitialization or OnInputProcessing but I don't know how to catch as an event what the button the user clicked.
    Here is my HTML button.
                    <form method="post">
                    <input type="submit" name   = "onInputProcessing(eventid)"
                                        value   = "Execute" />
                    </form>
    and it is going to "OnInputProcessing" but "eventid is blank.
    I tried using different classes from IF_BSP_APPLICATION_EVENTS like CL_BSP_APP_IT00 but I'm getting a check syntax error (You can only use "class=>method" with static methods).
    response = CL_BSP_APP_IT00=>get_response( runtime->server->response ).
    It is right because the method is "Instance".
    If you have any example, please tell me how you handle the events or buttons in order to perform the right Function call or action, when the user click one of the buttons.
    Thanks in advance and Cheers,
    JC

Maybe you are looking for