Composite Salary Survey/Survey Results

I'm looking for details information on how to configure Composite Salary Survey and Survey Results infotypes in HR ECM. 
Please let me know where can I find detail information.
Thank you in advance.
H

Hi Hetal,
In ECM, you need only the Composite Survey Results (1271) infotype.  The Survey Results (1051) infotype is for CM.
Coming to IT1271, this infotype will be automatically maintained for jobs if you are using the Job Pricing BSP. It is too elaborate to write everything down here. Please go through this link:
http://help.sap.com/erp2005_ehp_04/helpdata/en/01/6e083f56e4d861e10000000a114084/frameset.htm
Look under the Job Pricing section for the detailed process.
Cheers,
Donnie

Similar Messages

  • Salary Comparision & Survey

    Hi,
    1. In Salary page peer comparision and peer averages are not showing any statistics although I have created employees with same Job, same location and same
    salary basis.
    2. I have setup salary survey lines and mapped with appropriate jobs. I am even able to see them in the salary page. But I want to know where else this data can
    be refered. Can this info be seen in Change Pay function of the Manager Self-Service or any where in CWB. Since this info would be useful while making pay
    changes.
    Thanks,
    Sri.

    Hi Sanchal,
    You can also use Tcode <b>PP01</b> for this, choose the job for which you made a survey and select the <b>Info type 1051</b>..then give the job from survey "name",it automatically displays the Average salary, bonus and currency from which you made a survey...
    Thats it----
    Note: Check the <b>Table T710S</b> for any queries...
    Give points if Helpful, Bye & take care
    Regards
    <b>Saplok</b>

  • Survey Suite Results

    Helloz SAP Experts,
                                    I had created Survery using Survey Suite and i had attached the survey in the Emailer as an Attachment and i had mailed across to 2 Business partners for testing and when then cilck on "SAVE"(execute) push button i am receiving a link which is mentioned below
    svyApplicationId=CRM_SURVEY_MARKETING&SurveyId=TEST_SURVEY&svySurveyId=TEST_SURVEY&svyVersion=0000000001&SchemaVersion=1&svySchemaVersion=1&svyLanguage=EN&conid=&svyValueGuid=E0B7AC3F88F6CFF1A9BC00145E7A941C&svyValueVersion=0000000001&survey%2Fresult%2Fq1%2Fa1=&onInputProcessing%28SUBMIT%29=Save
    Where can track the responses. Can you please help me out in this regard.
    Edited by: madhuthiurnahari on Jul 27, 2011 12:49 PM

    Hi please refer to this link. You will get an answer to your query.
    Survey Suit in CRM
    if you need more info, you can refer to these links as well
    crm survey suite extractors into BW
    Survey Suite - "Evaluation" button not returning any results
    Hope this helps.
    rgrds,
    Randhir Soni

  • Automating Survey form results to email. Thanks!

    Hi all
    I am currently doing a survey form which will automatically send the results to a specific email on the key of the submit button. I have tried writing out to a text file before but not to an email. Can anyone please help? Thanks a lot.

    Hi all
    I am currently doing a survey form which will
    automatically send the results to a specific email on
    the key of the submit button. I have tried writing out
    to a text file before but not to an email. Can anyone
    please help? Thanks a lot.I havent tested the following code and its just to give you a brief idea as how to go. Please take it only as a guideline and look at the java mail API specially
    javax.mail.internet.MimeMessage
    public String mailIt
       (java.lang.String from,
       java.lang.String to,
       java.lang.String subject,
       java.lang.String textmessage)
       String status = "Your message was sent";
       try {
       //Obtain the initial JNDI context
       InitialContext ctx = new InitialContext();
       //Perform a JNDI lookup to obtain the resource
       //reference object
       Session session = (Session) ctx.lookup("java:comp/env/mail/mymailserver");
       //Construct the message
       MimeMessage message = new MimeMessage(session);
       //Set the from address
       Address[] fromAddress = InternetAddress.parse(from);
       message.addFrom(fromAddress);
       //Set the to address
       Address[] toAddress = InternetAddress.parse(to);
       message.setRecipients(Message.RecipientType.TO,toAddress);
       //Set the subject and text
       message.setSubject(subject);
       message.setText(textmessage);
       //Send the message
       Transport.send(message);
       } catch(AddressException e) {
         status = "There was an error parsing the addresses"+e;
       } catch(SendFailedException e) {
         status = "There was an error sending the message"+e;
       } catch (MessagingException e) {
         status = "There was an unexpected error"+e;
       } catch (NamingException e) {
         status = "The mail session could not be created.";
      System.out.println("The status is:"+ status);
      return status;
    }

  • I am logging in - but the Adobe FormsCentral will not open.  It just shows an explanation mark in a circle.  How do I open my surveys and results?

    I have several surveys/questionnaires in Adobe FormsCentral and when I log in -- it won't open.  It just gives me an explanation mark in a circle.  Help!  Mary

    Hi maryfulton,
    I checked your account, and there are no issues there. If you're still having trouble logging in, please clear the browser cache, and then try logging in directly to https://formscentral.acrobat.com. Any luck?
    Best,
    Sara

  • Director Next Survey - More Results

    Hi all,
    It's been three weeks since I closed the survey. And it's
    taken that
    amount of time to go through all the data and sort
    everything. The most
    time consuming part was examples/elaborations people gave on
    the
    features. Just as well not everyone filled those parts in.
    Anyway, all
    that information has been collated, nicely organised, and
    sent off to
    Adobe.
    I have not put this info on my site as I'm not sure if people
    would be
    interested in reading it all. If anyone is interested in this
    info, let
    me know. I could always email a specific feature document to
    you.
    I have added a new page to the survey section of my site. It
    is:
    http://www.deansdirectortutorials.com/survey/DirectorRoadmap/comments.htm
    This covers the 300 odd comments I received on the survey.
    They range
    from positive things on Director, to rants, to thanks. All
    are sorted.
    Thanks again for all who contributed.
    regards
    Dean
    Director Lecturer / Consultant / Director Enthusiast
    http://www.deansdirectortutorials.com/
    http://www.multimediacreative.com.au
    email: [email protected]

    Hi Dean,
    I would recommend giving Adobe one more clue:
    They should improve Director's sound engine so it would make
    it easier
    to sheamless loop SWA or MP3 COMPRESSED sounds of background
    music type.
    Specifically I mean sounds played from file or stream rather
    than memory.
    Currently it is damn hard to make it working in an elegant
    manner.
    Normally there is either some nasty pause or in the worst
    scenario -
    some loud audible tick while looping this sort of sounds. The
    moment of
    looping is normaly not sheamless with compressed files.
    On the other hand - looping background music theme (often of
    several
    minutes length) is frequently required feature of CD or web
    presentations. Customers got bored with simple looped phrases
    of just a
    few bars. Now they want something "less noticably looping".
    Rgs,
    Ziggi
    Dean Utian wrote:
    > Hi all,
    >
    > It's been three weeks since I closed the survey. And
    it's taken that
    > amount of time to go through all the data and sort
    everything. The most
    > time consuming part was examples/elaborations people
    gave on the
    > features. Just as well not everyone filled those parts
    in. Anyway, all
    > that information has been collated, nicely organised,
    and sent off to
    > Adobe.
    >
    > I have not put this info on my site as I'm not sure if
    people would be
    > interested in reading it all. If anyone is interested in
    this info, let
    > me know. I could always email a specific feature
    document to you.
    >
    > I have added a new page to the survey section of my
    site. It is:
    >
    http://www.deansdirectortutorials.com/survey/DirectorRoadmap/comments.htm
    >
    > This covers the 300 odd comments I received on the
    survey. They range
    > from positive things on Director, to rants, to thanks.
    All are sorted.
    >
    > Thanks again for all who contributed.
    >
    > regards
    > Dean
    >
    > Director Lecturer / Consultant / Director Enthusiast
    >
    http://www.deansdirectortutorials.com/
    >
    http://www.multimediacreative.com.au
    > email: [email protected]
    >
    >
    >

  • ESS Salary Statement 'No result exist'

    Hi All,
    We are setting-up our salary statements on ESS and I am getting this error. I can see results in the overview section, but no form. We are using the HR Forms (PE51) method. I think I have the features setup correctly.
    EDTIN: CUS&BEHR_MXESS
    HRFOR: ESS = $CEDT$
    EDPDF: Y_MX_ESS_PAYSLIP_TO_PDF
    The error doesnt say there is an issue with the form, so maybe its something else .. authorization?
    Any help is appreciated.
    Brandyn

    Hi Brandyn,
    Are you able to see form Y_MX_ESS_PAYSLIP_TO_PDF under SMARTFORMS transaction and see if it is active status.
    This could be anothe rreason for form not showing on ESS.
    Also, check if you are logging into ESS for correct system and login system. Possibly url may be incorrect.
    Also, ensure new transaction pz11_pdf (old one was pz11) is assigned to ESS user role and pz11_pdf service is published under ITS/Portal in order to recognize the transaction.
    Thanks,
    Ameet

  • Take the JavaFX Survey - Survey Closes September 16

    Help drive the direction of JavaFX training and certification by taking the [JavaFX developer survey|http://www.sun.com//training/certification/javafx_survey.html] . You'll need only 5 to 10 minutes. The JavaFX team is designing a comprehensive curriculum for Java developers. The primary objective of the curriculum is to enable developers to use JavaFX technologies to build rich internet applications. We're looking for your input on the topics and tasks to include in the training.

    Hi Bob, APEX is perfectly multiuser and the person that created the pages or items makes no difference.
    Here's a shot in the dark, are the buttons on these pages redirect buttons as opposed to submit?
    Redirect buttons would NOT save the data and would NOT trigger validations.
    Thanks
    -Jorge

  • Survey / Survey Suite

    Dear all,
    I have a really rookie question.
    Oure customer like to use Surveys in CRM 5 wich is used via a SAP Portal.
    Now I defined a testsurvey(questionaire) via the servey suite, and activated it. After that I defined the determination and the criteria for determination, but it won't work in the CRM GUI nor than in the PCUI.
    Do you have any idea what I forgot?
    Thanks for any help!
    Best regards
    Christian

    Hi KZ,
    thanks for your answer and the good points you mentioned.
    I checked it twice, and found an error. Now I can see the under the register questionaire the created survey, but the problem is, that there are only the the headlines, but no questions and no answers. What have I done wrong. It is the same behavior in the PCUI and in the CRM 5 via gui.
    Thanks and best regards
    Christian

  • Envent Handler in Web Survey (SURVEY transaction)

    Hi all,
    I have made a questionnaire in the SURVEY transaction. Now I want to active an eventHandler in an InputField, but the second dropdown just put "No function selected"
    Does anybody know how to put there an action to execute??
    I heard about application library for Web survey in this link,
    Assigning an Application Library - Web Survey - SAP Library
    but I don´t know how to make an application library.Any ideas??
    Thanks,
    Rodrigo

    Hi Emily,
    did you solve the issue?
    I have exactly the same issue. I have created the class, I have assign the application library to the class via UBDS and the message appears with the error "no function selected".
    Could you give me any clue?
    Thanks, have a great weeknd.

  • How to see results for surveys in CIC Interaction record under script prfl?

    Dear Experts,
    In Interaction Record>Under Script tab> I have filled a survey-> upon entering all answers and saving->System showing a message, that survey has been sucessfully saved.
    But I dont know where these surveys are getting stored. and I could not find the created survey or results next time when I opened the same Interaction record.
    Kindly tell me where can we find the survey results, which is created under Script tab in Interaction Record.
    Your suggestions will be highly appreciated
    Best regards
    Raghu ram

    Hello,
    Have you found solution to this case?
    BR
    Piotr

  • Survey results not updated to Application

    Hi Experts,
    I have created a Survey and Questionnaire in SAP-BIW using "SURVEY COCKPIT" (TCODE : SURVEY).
    I have than assigned one Target Group to that survey which is having 3 recepients (e-mail ID's).
    When I send the Survey to them the mail is deliverd to recepients with survey form as an attachment, but when they are submitting the Questionnaire/Survey the results are not updated into the system.
    I have enabled the setting for Questionnaire as Direct Update into Application.
    Still the problem persists. I have also done all the required settings in SICF and SO50.
    Please help.
    Thanks in Advance.

    Dear Nishant
    For inspection point you need to import SAMPLE_RESULTS also similar to CHAR_RESULTS. A simple method you can adopt is
    First create an inspection lot and record this manualy. Once you have recorded it pass the inspection lot to this BAPI - BAPI_INSPOPER_GETDETAIL. Check the data in this BAPI
    The same pattern of DATA has to be passed in the BAPI_INSPOPER_RECORDRESULTS
    This is BAPI is running fine for me. Please check and let me know if you have any issues
    Regards
    Gajesh

  • CRM Survey result Table

    Hello CRM Experts,
    We have assigned survey to Transaction ( Activities , Lead , Opportuninity )  . Transaction is being created and Questionnaire ( Survey )  is filled . Then Transaction is saved . Transaction ID is generated . We want name of the Table in  which survey Results (answers) are store.
    As we get the tables for Questions of surveys.
    We not able to find the tables where all surveys Results (i.e may filled by Business Partners,Users etc) are store.
    Please suggest.
    Regards.
    Anup.

    HI Anup,
    The list of all tables used in surverys are as follows
    CRM_SVY_DB_MT                  CRM Surveys: Media Type                                
    CRM_SVY_DB_MTT                 CRM Surveys: Media Types (Text Table)                  
    CRM_SVY_DB_S                   CRM Surveys: Survey                                    
    CRM_SVY_DB_SA                  Survey Applications                                    
    CRM_SVY_DB_SAD                 CRM Surveys: Survey Application Descripti              
    CRM_SVY_DB_SD                  CRM Surveys: Survey Description                        
    CRM_SVY_DB_SET                 CRM Surveys: Text Table for CRM_SVY_DB_SE              
    CRM_SVY_DB_SEV                 CRM Surveys: Input Help Table for Function             
    CRM_SVY_DB_SFA                 CRM Surveys: Survey File Access                        
    CRM_SVY_DB_SP                  CRM Surveys: Generic Survey Attributes                 
    CRM_SVY_DB_SSC                 CRM Surveys: Survey Schema                             
    CRM_SVY_DB_ST                  CRM Surveys: Survey Template                           
    CRM_SVY_DB_STS                 CRM Surveys: Survey Transformation Select              
    CRM_SVY_DB_SV                  CRM Surveys: Assessable Survey Values                  
    CRM_SVY_DB_SVS                 CRM Surveys: Survey Values                             
    CRM_SVY_DB_SVT                 CRM Surveys: Survey Value Template                     
    Thanks
    Abishek

  • Crm survey suite extractors into BW

    Does anyone know whether there are some Business Content extractors for the survey data in CRM. My CRM colleagues have setup surveys using the CRM_SURVEY_SUITE transaction and it would seem to store at least some of this data in the table CRM_SVY_DB_SVS, but not all. However I cannot find any standard extractors to extract all the survey data.
    There are extractors for the web survey stuff but the CRM_SURVEY_SUITE transaction does not appear to be a web survey.
    Any help would be much appreciated on this.
    We are using CRM 4.0 with BW 3.5
    Thanks
    David

    Hi!
    you can find survey datasources under RSA5  Root->CRM->0crm_SURVEY. these are some datasources
    0SVY_ANSWER_TEXT     CRM Survey: Answers                
    0SVY_APPL_TEXT       CRM Survey: Applications           
    0SVY_DATA_1          CRM Survey: Results                
    0SVY_QSTNNR_TEXT     CRM Survey: Survey Header          
    0SVY_QUEST_TEXT      CRM Survey: Questions              
    0SVY_STATUS_TEXT     CRM Survey: Status of Question     
    0SVY_SURV_TEXT       CRM Survey: Campaign Texts         
    0SVY_TAROBJ_ATTR     CRM Survey: Recipient Attributes   
    and web survey datasources under PI_BASIS->0CA_SUR
    0WS_ANSWER_TEXT    Web Survey: Reply              
    0WS_APPL_TEXT      Web Survey: Applications       
    0WS_KFIGTYP_TEXT   Web Survey: Key Figure Types   
    0WS_QSTNNR_TEXT    Web Survey: Questionnaire      
    0WS_QUEST_TEXT     Web Survey: Questions          
    0WS_STATUS_TEXT    Web Survey: Question Status    
    0WS_SURVEY_TEXT    Web Survey: Survey             
    0WS_TAROBJ_ATTR    Web Survey: Recipient          
    0WS_TAROBJ_TEXT    Web Survey: Recipient          
    hope it helps
    with regards
    ashwin

  • BAPI_LEAD_CREATEMULTI  - with surveys

    somebody knows like enclosing a survey to lead?
    use ' BAPI_LEAD_CREATEMULTI ' but does not create the document of surveys.
    thanks

    Hello. I have this same problem. We need a RFC function module where user can enter a lead description and survey answers. Then lead with filled in description and survey  with filled in answers get created in CRM and linked together. I debugged crmd_bus2000108. Here is my solution( it is a little test program for now but it works ). You can determine input values for your case for FMs using debugging. Procedure:
    -create lead using CRM_ORDER_MAINTAIN_MULTI_OW
    -create survey and populate the data( like on evaluation tab of lead ) using object cl_crm_svy_runtime.
    -link survey to existing lead using CRM_ORDER_MAINTAIN_MULTI_OW
    -save lead with CRM_ORDER_SAVE
    -commit changes with BAPI_TRANSACTION_COMMIT
    Code:
    *& Report  Z_TEST_LEAD_SURVEY
    REPORT  z_test_lead_survey.
    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: survey_data TYPE string,
          valuexml TYPE string,
          valuexml_hex TYPE xstring.
    DATA: lead_guid TYPE guid_32,
          lead_id TYPE crmt_object_id,
          valueguid TYPE crm_svy_db_sv_guid,
          valueversion TYPE crm_svy_db_sv_vers.
    DATA: s_lead_h TYPE crmt_lead_h_com,
          t_lead_h TYPE crmt_lead_h_comt,
          s_orderadm_h TYPE crmt_orderadm_h_com,
          t_orderadm_h TYPE crmt_orderadm_h_comt,
          s_field_names TYPE crmt_input_field_names,
          t_field_names TYPE crmt_input_field_names_tab,
          s_input_fields TYPE crmt_input_field,
          t_input_fields TYPE  crmt_input_field_tab,
          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,
          s_survey TYPE crmt_survey_com,
          t_survey TYPE crmt_survey_comt.
    *                     CREATE LEAD
    * Fill required structures
    s_orderadm_h-object_id = 'BUS2000108'.
    s_orderadm_h-process_type = 'ZLEA'.
    s_orderadm_h-description = 'TEST LEAD - DENEB'.
    APPEND s_orderadm_h TO t_orderadm_h.
    s_input_fields-ref_kind = 'A'.
    s_input_fields-objectname = 'LEAD_H'.
    APPEND s_input_fields TO t_input_fields.
    s_input_fields-ref_kind = 'A'.
    s_input_fields-objectname = '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.
    s_lead_h-lead_type = '0007'.
    APPEND s_lead_h TO t_lead_h.
    * Create lead
    CALL FUNCTION 'CRM_ORDER_MAINTAIN_MULTI_OW'
      EXPORTING
        it_lead_h             = t_lead_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.
    s_objects_to_save = lead_guid = s_orderadm_h-guid.
    APPEND s_objects_to_save TO t_objects_to_save.
    * Potrdi spremembe
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    *                     CREATE SURVEY SURVEY
    * Create survey answers input string
    CONCATENATE 'svyApplicationId=CRM_SURVEY_LEAD'
                '&SurveyId=ZNEW_LEAD_FORM_SISVSAP'
                '&svySurveyId=ZNEW_LEAD_FORM_SISVSAP'
                '&svyVersion=0000000003'
                '&SchemaVersion=1'
                '&svySchemaVersion=1'
                '&svyLanguage=EN'
                '&conid='
                '&survey/result/address/name1=Deneb Debelak'
                '&survey/result/address/street=Tekstilna 17a'
                '&survey/resultaddress/postalcode=4000'
                '&survey/result/address/city=Kranj'
                '&survey/result/address/region=Gorenjska'
                '&survey/result/address/phone=041966493'
                '&survey/result/address/fax=Nimam'
                '&survey/result/address/email=d.debelakhotmail.com'
                '&survey/result/address/uri=http://www.nimam.com'
                '&survey/result/bankdetails/bankcountry=Slovenija'
                '&survey/result/bankdetails/bankkey=1234'
                '&survey/result/bankdetails/bankaccount=78238348238328'
                '&survey/result/id_ddb164f9ec715ef1acf9001b7840a5e4/id_ddbc6515052e00f1acf9001b7840a5e4=Kr neki 1'
                '&survey/result/id_ddb164f9ec715ef1acf9001b7840a5e4/id_ddbc65a01ff500f1acf9001b7840a5e4=Kr neki 2'
                '&survey/result/id_ddb16f9ec715ef1acf9001b7840a5e4/id_ddbc66812b7273f1acf9001b7840a5e4=id_ddbc66872638c2f1acf9001b7840a5e4'
                '&survey/result/id_ddb164f9ec715ef1acf9001b7840a5e4/id_ddb165018f99b4f1acf9001b7840a5e4=Kr neki 3'
                '&survey/result/id_ddb164f9ec715ef1acf9001b7840a5e4/id_ddb1682cf66426facf9001b7840a5e4=Kr neki 4'
                '&survey/result/id_ddb16650885482f1acf9001b7840a5e4/id_ddb1666f95b6daf1acf9001b7840a5e4=Kr neki 5'
                '&survey/result/id_ddb16650885482f1acf9001b7840a5e4/id_ddb1671399e9c2f1acf9001b7840a5e4=Kr neki 6'
                '&survey/result/id_ddb16650885482f1acf9001b7840a5e4/id_ddb166a505462f1acf9001b7840a5e4=Kr neki 7'
                '&survey/result/id_ddb16650885482f1acf9001b7840a5e4/id_ddb166bcdef443f1acf9001b7840a5e4=Kr neki 8'
                '&survey/result/id_ddb16650885482f1acf9001b7840a5e4/id_ddb166d6b77e3ff1acf9001b7840a5e4=Kr neki 9'
                '&survey/result/id_ddb16650885482f1acf9001b7840a5e4/id_ddbd38c6829df9f1acf9001b7840a5e4=THE END'
                '&onInputProcessing(SUBMIT)=Save'
           INTO survey_data.
    * Create survey runtime object
    CREATE OBJECT o_survey_runtime
      EXPORTING
        i_runtime_mode   = 'INBOUND'
        i_application_id = 'CRM_SURVEY_LEAD'
        i_survey_id      = 'ZNEW_LEAD_FORM_SISVSAP'
        i_survey_version = '0000000000'
        i_language       = 'E'
        i_media_type     = '01'
        i_valueversion   = '0000000000'
        i_no_value_save  = ''.
    * Save survey answers
    o_survey_runtime->set_values( EXPORTING i_survey_data = survey_data
                                  IMPORTING e_valueguid = valueguid
                                            e_valueversion = valueversion
                                            et_application_params = t_application_params ).
    * Get survey values object
    o_survey_runtime->get_values( IMPORTING er_survey_values = o_surveyvalues ).
    * Get XML values - filled out in previous call
    o_surveyvalues->get_internal_values_xml( IMPORTING e_internal_values_xml = valuexml
                                                       e_internal_values_xml_hex = valuexml_hex ).
    *                     LINK SURVEY WITH LEAD
    * Fill required structures
    CLEAR t_input_fields.
    s_input_fields-ref_guid = lead_guid.
    s_input_fields-ref_kind = 'A'.
    s_input_fields-objectname = 'SURVEY'.
    *Subtable FIELD_NAMES
    CLEAR: s_field_names, t_field_names.
    s_field_names-fieldname = 'EVALUATION_INFOS'.
    APPEND s_field_names TO t_field_names.
    s_field_names-fieldname = 'SURVEYID'.
    APPEND s_field_names TO t_field_names.
    s_field_names-fieldname = 'SURVEYVERSION'.
    APPEND s_field_names TO t_field_names.
    s_field_names-fieldname = 'VALUEGUID'.
    APPEND s_field_names TO t_field_names.
    s_field_names-fieldname = 'VALUEVERSION'.
    APPEND s_field_names TO t_field_names.
    s_field_names-fieldname = 'VALUEXML'.
    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.
    s_survey-ref_guid = lead_guid.
    s_survey-ref_kind = 'A'.
    s_survey-surveyid = 'ZNEW_LEAD_FORM_SISVSAP'.
    s_survey-surveyversion = '0000000003'.
    s_survey-valueguid = valueguid.
    s_survey-valueversion = valueversion.
    s_survey-valuexml = valuexml_hex.
    s_survey-mode = 'A'.
    APPEND s_survey TO t_survey.
    * Link survey to lead
    CALL FUNCTION 'CRM_ORDER_MAINTAIN_MULTI_OW'
      EXPORTING
        it_survey             = t_survey
        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.
    * Save lead
    CALL FUNCTION 'CRM_ORDER_SAVE'
      EXPORTING
        it_objects_to_save = t_objects_to_save
      IMPORTING
        et_saved_objects   = t_saved_objects
      EXCEPTIONS
        document_not_saved = 1
        OTHERS             = 2.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    READ TABLE t_saved_objects INTO s_saved_objects INDEX 1.
    lead_id = s_saved_objects-object_id.
    * Commit work
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    *                     WRITE GUIDs
    WRITE: 'LEAD GUID:', lead_guid, /,
           'LEAD ID:', lead_id, /,
           'VALUE GUID:', valueguid, /.
    Revard points if usefull.
    Edited by: Deneb Debelak on Dec 11, 2008 3:21 PM

Maybe you are looking for