Userexit/BAdi to run custom code on "Save" in CRM_MKTPL

Hi,
I am trying to identify a userexit or BAdi I can use to run some custom code during the SAVE event of the CRM_MKTPL transaction.
My background is mainly with ECC and I have no experience doing this in CRM. What steps are required to achieve this?
Thanks,
Will

Hello
I can see it by entering SE18-> Badi Name CRM_MKTPL_OL_OBJ -> Open the dropdown in the left hand pane and choose "Interface".
How did I find it? Experience, I had a similar issue, but didn't remember the name, so I went to SE18, open the matchcode and chose "information system". Since transaction CRM_MKTPL belongs to package CRM_MKTPL, I enter this as a search criteria. I found 10 hits, but only CRM_MKTPL_OL* ones sounded right to me. A little navigation and...voilà!
Sometimes, you can also run report SNIF, but it didn't help in this case.
Regards
Joaquin

Similar Messages

  • Run Custom Code - Appearing

    Hi All,
    I've been working in Flash Cat for a while and now I'm having a fairly serious issue.  One of my components has developed a problem that apparently can only be fixed in Flash Builder.  So I reverted to an earlier version of the FXP and have noticed that a lot of my interactions now say "Run Custom Code". I don't use FlashBuilder, all my interactions have been generated solely in Flash Cat.  Can anyone help me fix this and let me know how to avoid this in the future?  By the looks, I have lost about 3 days worth of work by reverting to an earlier version.
    Thanks a million.
    Bry

    OK So I've reverted even further back and managed salvage some work last night.  I save the Project, shut down, go home.  This morning I come into work, and load up the FXP I saved last night.  Now ALL my interactions are showing "Run Custom Code"!  This is a bit of a disaster and I would appreciate some help in how to work around this!  If you have any inkling at all on how I might prevent this then I would very much appreciate you replying to this post!
    Thanks in advance
    Bry

  • I am trying to save a custom code snippet in Flash CC and it does not save, any ideas why?

    I am trying to save a custom code snippet in Flash CC and it does not save, any ideas why?  I am using Windows 8.1 with Flash CC.
    I even when into the "Edit Code Snippet XML" and added a Custom folder and a custom template.  Then I went back to add the code snippet again and it still did not work.
    About line 32, I added:
       <category title="Custom"
          isBranch="true" expanded="false"
          description="Code for common interactions">
          <snippet isBranch="false">
          <title>Custom Snippet</title>
          <description>This is an example of a custom code snippet.</description>
          <requiresSymbol>true</requiresSymbol>
          <code><![CDATA[
    // Code goes here
    trace("A custom code snippet");
          ]]></code>
        </snippet>
        </category>     
    Any assistance would be greatly appreciated.

    UserAgent for the OP is - Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100405 Namoroka/3.6.3 - he might be running a 64-bit 3rd party build.

  • Need Userexit/Badi after save while creating invoice at VF01

    Hi expert,
    Can anyone tell me which BADI / USEREXIT i can use for update the custom table
    after save while creting invoice at VF01.
    Regards,
    Manasi

    Manasi,
    from next time onwards please post it in relevant forums
    for now check these links
    USSER-EXIT creating the invoice in VF01
    Re: user exit at invoice creation Vf01/Vf04
    VF01/VF04 user exit
    Thanks
    Bala Duvvuri

  • How to Assign Customized BADI to Standard T.Code  Example ME51N

    Dear all,
    It would be really appriciate if you provide me a solutions.
    I have Created Customized BADI using SE18,SE19. But I am not aware How to Use those BADI in Standard Transaction.
    Example : I have Created PR Related BADI (ZPURREQ_ACC_CHK). How to utilize this BADI In ME51N,ME52N.
    Please advice me.
    Thanks
    Best Regards,
    KSK

    I think what you need to do is find what exits or existing BAdIs are available for the transaction.  Then in the user exit you can call your customized code.  That way you avoid changing SAP's code for the transaction.  You can find BAdIs related to purchasing by going to transaction SPRO and then following this path:
    Materials Management -> Purchasing -> Business Add-Ins for Purchasing
    I hope this helps.
    - April King

  • While running FBL5N (Business area wise) customer code and customer names a

    Hi Gurus,
    While running FBL5N (Business area wise) customer code and customer names are not appearing.

    Hi Raju,
    Please click on the change layout screen button on the screen of FBLN5N report. then select the fields customer code and customer name from the right hand side table and drag it to left hand side table.
    After that run the report again. it will appear. please assign points.
    Rgds
    Manish

  • SSRS Running Totals Custom Code

    I have a report in which I need to total a column with an expression and created simple code to have a running total.  When I run the report through report builder, the total only reflects the current page (it is 6 pages long) but if I export the report
    out to Excel, the total is correct.
    Below is the code:
    Public running_roy as Double = 0
    Public Function roy_tot(ByVal cust_type, ByVal roy, ByVal ret_value) as Double
    Dim temp_var as Double
    if cust_type = 0 then
    running_roy = running_roy + roy
    if ret_value = 0 then
    temp_var = roy
    else
    temp_var = running_roy
    end if
    ELSE
    temp_var = 0
    end if
    return temp_var
    End Function
    If I change the Public variable to "Public Shared" the totals change as I flip back and forth between the pages in report builder.
    Any suggestions?

    Hello alan2624,
    Thanks for your clarification.
    In the report, the custom code will be compiled as a class before it is used. Every time the page is loaded, the class on the page will be initialized. The un-shared (non-static) instance will be reset. Therefore, you will see the value is reset back to
    zero if the public variable is not announced as "Shared". If you announced it as shared, then the variable is on the class level. It will not be changed by instance initializing. In addition, any operations on the variable will be recorded. This is not the
    bug, but it is by design of the VB.net code.
    If you export the report to the Excel, I think it will only generate a single page, and the total value is only the last one. It should be correct. If it is used in the pages in browser, I suggest you need design your code carefully for VB.net design.
    If you have any questions about this issue, please let me know.
    Regards,
    Edward
    Edward Zhu
    TechNet Community Support

  • The custom code in the form cannot be run. This functionality may be deactivated on the server.

    Dears,
    I was written some C# code on Loading event of InfoPath 2010 form. and it successfully published but when i open the form through browser it shows warning error that: The custom code in the form cannot be run. This functionality may be deactivated on
    the server. For more information, contact the server farm administrator.
    As shown below image
    I am new to SharePoint

    As the error can be caused by various things .You need to check follow details:
    Open SharePoint Central Admin > System Settings > Services on Server .Make sure that ‘Microsoft SharePoint Foundation Sandboxed Code Service’ is running .
    When you publish a form with code behind ,you need to publish it either as a sandboxed solution or as an Administrator Approved Form .
    Check if there is code  in a sandbox which is partially trusted is calling a dll in GAC which is having full trust .
    For more information ,please refer to these sites:
    The custom code in the form cannot be run.:http://www.infopathdev.com/forums/p/19380/69465.aspx#69465
    Infopath publish error : http://social.technet.microsoft.com/Forums/en-US/sharepoint2010customization/thread/856042fc-6ee8-4eda-97f8-fea2d47636ba/
    Publish a form: http://office.microsoft.com/en-us/infopath-help/publish-a-form-HA101783381.aspx#_Toc262226389
    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer.

  • Badi implementation for T-code: QE71

    Hi Experts,
    I am implementing a badi in transcation QE71 my requirement is to automatically generate quality data. In this t-code we enter the value for the MIC of the material for each inspection lot.
    But in the screen only one entry can be done at a time our requirement is to enter 10 data at a time. Badi which hits when we press save button is QE_RESULT_VALUATION but the data entered in screen is column wise that is if it has 5 MIC for the material (thickness, socket length,....) then first it take thickness then in another loop it take socket length and so on. Please give me suggestion that how would I implement this badi. Please help
    Thanks and regards,
    Suruchi

    HI,
    Based on you requirement to enter the multiple entries at a time of inspection result data.
    you can perform the same scenario with the one more transaction called qa32. Over here you need to enter inspection lot no. and serial no. later on the another screen appears with different parameters to enter its respective values.
    using Badi QE_SAVE with two methods 1.) IS_ACTIVE 2.) TABLES_IN_OPERATION
    IS_ACTIVE-RV_ACTIVE = 'X'.
    in  TABLES_IN_OPERATION method, you will find the structure : IS_QALS
                                                                                    EV_SAVING_ALLOWED
                                                                                    CS_QAPO
                                                                                    CS_QAPP
                                                                                    CT_QAMK
                                                                                    CT_QASP
                                                                                    CT_QASE
                                                                                    CT_QAKL
    IS_QALS, CS_QAPP &  CT_QAMK , you will get the all the basic inform.
    and using function modules 1.) QAPB_QAPP_POST 2.) QEBU_QASR_POSTING
    we can update/ insert multiple entries of data in to the qapp, qasr, qals tables.
    At last by running the T-Code : qe71 you will find the all the entries you have inserted in the tables.
    regards,
    balu.

  • Service Limits in Purchase Requisitions: Where to Insert Custom Code?

    The issue is related to finding a place in SAP logic where a BADI, or, an
    enhancement can be implemented when inside transaction ME52N for a
    Service Limits type Purchase Requisition where K is the Account
    Assignment and B is the Item Category for a Service Limit Purchase
    requisition. Especially. or initially, at the point of navigation when
    going from (within the Limit Tab) and selecting the Account Assignment
    Icon to the right.
    By finding a good place to insert custom code in between these two tabs
    during navigation I am referring to (1)the actuality of the transaction
    breaking into this location, and,(2)a place where the global fields can
    be read and changed ie. GL Account Number, Material Group, etc.
    I have read, and reviewed several SAP Notes: 496082, 627072 and 551863.
    Failed Attempts:
    1)I have tried finding BADIs via breakpoints inside of
    CL_EXITHANDLER~GET_INSTANCE. None that are found are used and are not ofany help.
    2)I have attempted to use various user exits within the following SMODs,to name a few:
    MEREQ001 |Customers' Own Data in Purchase Requisition
    SAPLF0PR |Requests: Account Determination and Checks
    SAPMF02H |Function exit: G/L account master data
    V45E0002 |Data transfer in procurement elements (PRreq., assembly)
    WDFE0001 |Customer-Specific Determination of Requirements Data
    COZF0001 |Change purchase req. for externally processed operation
    COZF0002 |Change purchase req. for externally procured component
    3)I have implemented various custom enhancements inside of SAP Main
    Program SAPLMEREQ inside include LMEREQF09, and a few other LMEREQFXX.
    4) We previously used BADI 'ME_PROCESS_REQ_CUST' to satisfy a similar
    requirement, but is of no help for this request.
    Thank-You,

    Custom tags are different than udfs.  Let's stick with udfs.  Your location choices are:
    1.  If only one template is going to use it, you can put it in that template.  Otherwise,
    2. You can put it in a .cfm file and cfinclude that file whenever you want to call the function, or
    3. You can put it into a .cfc.
    A little while back, someone ran some tests and posted the results on one of these forums.  The gist of it was that Option 2 would run faster than Option 3.

  • How to Generate a Custom Message for A Custom Code.

    Hello,
    Can anyone guide me on this -
    Application : 11.5.10.2
    We have a cutom Trigger through which we want to display a custom message.
    We have re-generated the .msb, but it seems that something is missing.
    Following are the Steps We have followed to generate a custom message.
    1. Responsibility "Application Developer"
    2. Go to Applications
    3. Select Message
    4. Define a new custom message.
    5. Save
    6. Run Request " Generate Message"
    Now when the trigger gets fired , we are not able to see our Custom message.
    How do we call this messge in the custom code.
    Pl. help on this , also can i get some reference note id's on this.
    Thanks in advance.
    Regards,
    Jenny

    CREATE OR REPLACE TRIGGER KPC_RCV_TRANSACTIONS_INTERFACE
         AFTER INSERT OR UPDATE ON APPS.RCV_TRANSACTIONS_INTERFACE
         REFERENCING NEW AS NEW OLD AS OLD
         FOR EACH ROW
    ---     This Trigger Validates following things
    ---     1.     Creation date is not modified and is greater than system date.
    ---     2.     RTV should not be possible before ERS is generated.
    ---     3.     Inspection should not be possible through Deliver Transactions Responsibility
    ---     4.     Delivery of Material should not be possible through Inspection Responsibility
    ---     5.     Item is Excisable and Excise Invoice No Or Excise Invoice Date is Missing
    ---     6.     Only Inspected and Accepted material is Delivered to Subinventory
    ---     7.     Check for Existance of 57F4 for Subcon Job Receipts
    ---     8.     Check Taxes are not Missing
    ---     9.     Check Taxes are Correct
    ---     Declaring The Variables
    DECLARE
         v_grade                    number          :=     0;
         v_employee_id               number          :=     0;
         v_responsibility          varchar2(100)     :=     'Z';
         v_closed_taxes_count          number          :=     0;
         v_taxes_count               number          :=     0;
         v_invoiced_status_code          varchar2(01)     :=     'N';
         v_57f4_id               number          :=     0;
         l_date_ok               varchar2(01)     :=     'N';
         l_gate_date_ok               varchar2(01)     :=     'N';
         l_cenvatable_flag          varchar2(01)     :=     'N';
         l_excise_ok               varchar2(01)     :=     'N';
         l_rtv_ok               varchar2(01)     :=     'N';
         l_inspection_ok               varchar2(01)     :=     'N';
         l_delivery_ok               varchar2(01)     :=     'N';
         l_rej_delivery_ok          varchar2(01)     :=     'N';
    BEGIN     
    --      Get Looged in Responsibility Name
         begin
              SELECT      upper(responsibility_name)
                   INTO v_responsibility
              FROM      apps.fnd_responsibility_vl
              WHERE      responsibility_id = apps.fnd_global.resp_id;
         EXCEPTION
              WHEN      NO_DATA_FOUND THEN
                   v_responsibility := 'Z';
              WHEN      OTHERS THEN
                   v_responsibility := 'Z';
         END;
    ---     Modifications Done by SMT to Bypass checking for following Users
         if     (apps.fnd_global.user_id     <     1091)     then
              return;
         end     if;
    ---     if     (apps.fnd_global.user_id     in     (1090,1111,1112,1126,1540,1591,1570,1881))     then
    ---          return;
    ---     end     if;
    ----     Collect the Information Required from Other Tables
    ---     Check whether item is cenvatable
         l_cenvatable_flag     :=     'N';
         begin
              select     'Y'
              into     l_cenvatable_flag
              from     apps.ja_in_po_line_location_taxes     jipll
              where     upper(jipll.tax_type)          in     ('EXCISE','CVD')
              and     jipll.po_header_id          =     :new.po_header_id
              and     jipll.po_line_id          =     :new.po_line_id
              and     jipll.line_location_id          =     :New.po_line_location_id;
         EXCEPTION
              WHEN      NO_DATA_FOUND THEN
                   l_cenvatable_flag     :=     'N';
              WHEN      OTHERS THEN
                   l_cenvatable_flag     :=     'N';
         end;
    ---     Check whether Taxes are closed
         v_closed_taxes_count     :=     0;
         begin
              select     count(distinct jit.tax_id)
              into     v_closed_taxes_count
              from     apps.ja_in_tax_codes               jit,
                   apps.ja_in_po_line_location_taxes     jipl     
              where     nvl(jit.end_date,sysdate)<     sysdate               
              and     jit.tax_id          =     jipl.tax_id
              and     po_header_id          =     :new.po_header_id
              and     po_line_id          =     :new.po_line_id
              and     line_location_id     =     :new.po_line_location_id;
         EXCEPTION
              WHEN      NO_DATA_FOUND THEN
                   v_closed_taxes_count     :=     0;
              WHEN      OTHERS THEN
                   v_closed_taxes_count     :=     0;
         end;
    ---     Check Existance of Taxes
         v_closed_taxes_count     :=     0;
         begin
              select     count(distinct jit.tax_id)
              into     v_taxes_count
              from     apps.ja_in_tax_codes               jit,
                   apps.ja_in_po_line_location_taxes     jipl     
              where     nvl(jit.end_date,sysdate)<     sysdate               
              and     jit.tax_id          =     jipl.tax_id
              and     po_header_id          =     :new.po_header_id
              and     po_line_id          =     :new.po_line_id
              and     line_location_id     =     :new.po_line_location_id;
         EXCEPTION
              WHEN      NO_DATA_FOUND THEN
                   v_taxes_count     :=     0;
              WHEN      OTHERS THEN
                   v_taxes_count     :=     0;
         end;
    ---     Modifications Done by SMT to Get Invoice Status Code of the Original Transaction
         v_invoiced_status_code     :=     'N';
         BEGIN
              SELECT      'Y'
              INTO      v_invoiced_status_code
              FROM      apps.ap_invoices_all          ap,
                   apps.rcv_shipment_headers     rcv
              WHERE      ap.invoice_num               like     '%'||rcv.receipt_num||'%'
              AND     ap.org_id               =     rcv.ship_to_org_id
              AND     rcv.shipment_header_id          =     :NEW.shipment_header_id;
         EXCEPTION
              WHEN      NO_DATA_FOUND THEN
                   v_invoiced_status_code          :=     'N';
              WHEN      OTHERS THEN
                   v_invoiced_status_code          :=     'N';
         END;
    ---     RAISE_APPLICATION_ERROR(-200151,'Incorrect Transaction Date...');     
    ---     Check the transaction_date is correct or not
         l_gate_date_ok          :=     'Y';
         IF     ((:new.ship_head_attribute6     is     null)                                        or
              (to_date(:new.ship_head_attribute7,'DD-MON-YYYY')     <     (sysdate-3))                    or
              (to_date(:new.ship_head_attribute7,'DD-MON-YYYY')     >     sysdate))                    then
              l_gate_date_ok     :=     'N';
         END      IF;
    ---     Check the transaction_date is correct or not
         l_date_ok          :=     'Y';
         IF     (to_date(:new.transaction_date,'DD-MON-YYYY')     <     to_char(sysdate,'DD-MON-YYYY'))     then
              l_date_ok     :=     'N';
         END      IF;
    ---     Check whether Excise Invoice No and Excise Date is present
         l_excise_ok          :=     'Y';     
         if     (l_cenvatable_flag               =     'Y'               and
              :new.ship_head_attribute1          is     null               and
              upper(:new.destination_type_code)     =     'RECEIVING')          then
              l_excise_ok          :=     'N';
         end     if;
         if     (l_cenvatable_flag               =     'Y'               and
              :new.ship_head_attribute2          is     null               and
              upper(:new.destination_type_code)     =     'RECEIVING')          then
              l_excise_ok          :=     'N';
         end     if;
    ---     Check whether Inspection transaction is being made in correct Responsibility
         l_inspection_ok               :=     'Y';
         if     (upper(:new.destination_type_code) = 'RECEIVING')               then
              if     (v_responsibility like '%RECEIPT%QA%')                    then
                   l_inspection_ok     :=     'Y';
              else
                   l_inspection_ok     :=     'N';
              end     if;
         else     l_inspection_ok          :=     'Y';
         end     if;
    ---     Check whether Delivery transaction is being made in correct Responsibility
         l_delivery_ok               :=     'Y';
         if     (upper(:new.destination_type_code) in ('INVENTORY','SHOP FLOOR'))          then
              if     (v_responsibility not like ('%RECEIPT%QA%'))     then
                   l_delivery_ok     :=     'Y';
              else
                   l_delivery_ok     :=     'N';
              end     if;
         else     l_delivery_ok          :=     'Y';
         end     if;
    ---     Check whether RTV is made prior to generating the ERS Invoice
         l_rtv_ok               :=     'Y';
         if     (upper(:new.transaction_type) in ('REJECT','RETURN TO VENDOR'))          then
              if     (v_invoiced_status_code = 'INVOICED')                    then
                   l_rtv_ok     :=     'Y';
              else
                   l_rtv_ok     :=     'N';
              end     if;
         else     l_rtv_ok          :=     'Y';
         end     if;
    ---     Check Error and Display Proper error message
    ---     Transaction Date Error
         if     (nvl(l_date_ok,'N') != 'Y')          then
              apps.fnd_message.set_name('FND','Wrong GRR Date');
              apps.fnd_message.raise_error;
         end     if;
    ---     Gate Entry Date Error
         if     (nvl(l_gate_date_ok,'N') != 'Y')          then
              apps.fnd_message.set_name('FND','KPC_RCV_CHEK:Wrong Gate Entry Date');
              apps.fnd_message.raise_error;
         end     if;
    ---     Return CENVAT Error
         if     (nvl(l_excise_ok,'N') != 'Y')          then
              apps.fnd_message.set_name('FND','KPC_RCV_CHEK:Enter Excise Invoice No');
              apps.fnd_message.raise_error;
         end     if;
    ---     Return Closed Taxex Error
         if     (nvl(v_closed_taxes_count,1) != 0)     then
              apps.fnd_message.set_name('FND','KPC_RCV_CHEK:Taxes Wrong');
              apps.fnd_message.raise_error;
         end     if;
    ---     Return Taxes Missing Error
         if     (nvl(v_taxes_count,0) = 0)     then
              apps.fnd_message.set_name('FND','KPC_RCV_CHEK:Taxes Missing');
              apps.fnd_message.raise_error;
         end     if;
    ---     Return from trigger, if Transaction Type = 'RECEIVE'
         if     (upper(:new.transaction_type) = 'RECEIVE')     then
              return;
         end     if;
    ---     Return Inspection Error
         if     (nvl(l_inspection_ok,'N') != 'Y')     then
              apps.fnd_message.set_name('FND','KPC_RCV_CHEK:Inspection Not Allowed');
              apps.fnd_message.raise_error;
         end     if;
    ---     Return Material Delivery Error
         if     (nvl(l_delivery_ok,'N') != 'Y')          then
              apps.fnd_message.set_name('FND','KPC_RCV_CHEK:Delivery not Allowed');
              apps.fnd_message.raise_error;
         end     if;
         return;
    END KPC_RCV_TRANSACTIONS_INTERFACE;

  • Code for SAVE functionality in FPM_OIF_COMPONENT

    Hi Experts,
    I have enhanced the component DPR_DET_DATA_PROJECT_O. The SAVE functionality for this component exists in FPM_OIF_COMPONENT.
    I have to raise error message depending on the custom fields added in  DPR_DET_DATA_PROJECT_O when I click on 'SAVE' button.
    Please share if any ideas where to write the code for SAVE functionality for the custom fields added on DPR_DET_DATA_PROJECT_O.
    Regards,
    Rafi

    Hi Rafi,
    These similar discussions might provide some assistance:
    BAdI or enhancement on SAVE of Cproject
    which badi triggers while saving cproject
    Code to call for saving the data in WDC - DPR_PROJECT_VIEW
    Cheers,
    Amy

  • Runtime error when I run customizing report

    Hi All,
    The ST22 analysis is as follows,when i run customizing report.
    DUMP Analysis.
    Runtime Errors         MESSAGE_TYPE_X
    Date and Time          19.04.2011 12:28:53
    Short text
         The current application triggered a termination with a short dump.
    What happened?
        The current application program detected a situation which really
        should not occur. Therefore, a termination with a short dump was
        triggered on purpose by the key word MESSAGE (type X).
    What can you do?
        Note down which actions and inputs caused the error.
        To process the problem further, contact you SAP system
        administrator.
        Using Transaction ST22 for ABAP Dump Analysis, you can look
        at and manage termination messages, and you can also
        keep them for a long time.
    How to correct the error
        Probably the only way to eliminate the error is to correct the program.
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "MESSAGE_TYPE_X" " "
        "SAPLSLVC" or "LSLVCU10"
        "LVC_SORT_COMPLETE"
        If you cannot solve the problem yourself and want to send an error
        notification to SAP, include the following information:
        1. The description of the current problem (short dump)
           To save the description, choose "System->List->Save->Local File
        (Unconverted)".
        2. Corresponding system log
           Display the system log by calling transaction SM21.
           Restrict the time interval to 10 minutes before and five minutes
           after the short dump. Then choose "System->List->Save->Local File
           (Unconverted)".
    3. If the problem occurs in a problem of your own or a modified SAP
    program: The source code of the program
        In the editor, choose "Utilities->More
    Utilities->Upload/Download->Download".
    4. Details about the conditions under which the error occurred or which
    actions and input led to the error.
    Pls advise what is the problem,Beacuse Abaper is saying not report problem.
    Pranitha.

    Hi,
    Could you mention for which customization transaction, you get this error?

  • Error when publishing WF containing custom code activity to workflow manager 1.0

    Hello:
    Workflow manager sounds every exciting to me, I am trying it out to see if it will work for me.
    I downloaded "CustomCodeActivitySample" of workflow manager 1.0, and when I ran, I got following exception:
    Workflow XAML failed validation due to the following errors:
    Cannot create unknown type '{clr-namespace:HashActivity;assembly=HashActivity}ComputeHash'. HTTP headers received from the server - ActivityId: 2a1e4d9d-90bd-4f59-a1fc-d3673194dd54. NodeId: NDL0714. Scope: /CustomCodeActivitiesSample. Client ActivityId : 235d66c1-bbe6-4982-8242-833a6bc1f6b1.
    more details:
    Microsoft.Workflow.Client.ActivityValidationException was unhandled
      HResult=-2146233088
      Message=Workflow XAML failed validation due to the following errors:
    Cannot create unknown type '{clr-namespace:HashActivity;assembly=HashActivity}ComputeHash'. HTTP headers received from the server - ActivityId: efe2c3cb-e6fd-4124-88a1-6c8e72aecb06. NodeId: NDL0714. Scope: /CustomCodeActivitiesSample. Client ActivityId : 73d7b773-be53-4a7b-b2d8-ba687e60a4f4.
      Source=Microsoft.Workflow.Client
      ActivityName=ProcessMovies
      ScopePath=/CustomCodeActivitiesSample
      StackTrace:
           at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)
           at Microsoft.Workflow.Client.WorkflowManagementClient.SendRequest[T](HttpWebRequest request, T content)
           at Microsoft.Workflow.Client.ActivityManager.Publish(ActivityDescription description, Boolean overwriteXClassName, Boolean terminateDependentInstances)
           at Microsoft.Workflow.Client.ActivityManager.Publish(ActivityDescription description)
           at Microsoft.Workflow.Samples.Common.WorkflowManagementClientExtensions.PublishWorkflow(WorkflowManagementClient client, String workflowName, String xamlFilePath, Collection`1 externalVariables, IDictionary`2 configValues,
    SubscriptionFilter activationFilter) in c:\WFM_C\C\Microsoft.Workflow.Samples.Common\WorkflowManagementClientExtensions.cs:line 45
           at Microsoft.Workflow.Samples.Common.WorkflowManagementClientExtensions.PublishWorkflow(WorkflowManagementClient client, String workflowName, String xamlFilePath, SubscriptionFilter activationFilter) in c:\WFM_C\C\Microsoft.Workflow.Samples.Common\WorkflowManagementClientExtensions.cs:line
    29
           at CustomCodeActivitySample.Program.Main(String[] args) in c:\WFM_C\C\CustomCodeActivitySample\Program.cs:line 39
           at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
           at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
           at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
           at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
           at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
           at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
           at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
           at System.Threading.ThreadHelper.ThreadStart()
      InnerException: System.Net.WebException
           HResult=-2146233079
           Message=The remote server returned an error: (400) Bad Request.
           Source=Microsoft.Workflow.Common
           StackTrace:
                at Microsoft.Workflow.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
                at Microsoft.Workflow.Client.HttpGetResponseAsyncResult`1.End(IAsyncResult result)
                at Microsoft.Workflow.Client.ClientHelpers.SendRequest[T](HttpWebRequest request, T content)
           InnerException:
    Thanks
    ahorse

    Hi
    We had to update following in assemblyinfo.cs file.
    assembly: XmlnsDefinition("wf://workflow.windows.net/$Current/$Activities", "YourProjectNamespace")]
    to 
    assembly: XmlnsDefinition("wf://{WorkflowManagerServerName}:12291/$Current/$Activities", "YourProjectNamespace")]for e.g.assembly: XmlnsDefinition("wf://workflowmanagerserver:12291/$Current/$Activities", "YourProjectNamespace")]
    Only then custom code activity started working. However, this means, when we want to deploy in other environment with different URL, we need to re-build the assembly. 
    Is there any way by which we have this configurable?
    Regards,
    RK
    Radhakrishna

  • How to execute custom code only when a specific node is selected in infoset

    Hi,
    We have written a piece of custom code under a node (P1045). Not all users will have access to this Infotype as it is related to Appraisals. So, when users (w/no access to 1045) try to run a Query for other info types data, they are getting error message 'Can not access 1045'. Custom code is getting generated whenever user runs a query. Tried to control custom code with simple IF condition by giving user name. Still generating 1045 code.
    All users use same infoset, where a group of users has access to 1045 and another group does not have access to 1045.
    Appreciate your inputs to get this resolved.
    Thanks,
    Swapna.

    Why don't you try another aproach, instead of adding the infotype to the infoset, create a new table as an alias (with the fields you want to show in regards to infotype 1045) and fill it in the node depending on the authorization check for that infotype in the code ?
    I think that adding the infotype as a node will always get the data from the infotype regardless, that is why it's showing the error.

Maybe you are looking for

  • ITunes will no longer sync my pictures and album/movie art

    So I updated my 80G iPod Classic with The Expendables 2, and I noticed that all my pictures were missing with my cover art. I tried re-syncing my iPod later but it's still missing. Not sure if there's some extra box I have to check off since the new

  • Infotype 0573 not getting created

    Hi All, We have an R/3 transaction created for leave application and this is showcased in EP6.0 portal as an Internet Service. Now, when we apply for leave using this application through portal, for certain employees, infotype 0573(Absence infotype f

  • Punkbuster issues(Call of Duty 2)

    I had no problems with Punkbuster with (Call of Duty 2) Multi-player with 10.4 on my old G5 imac it played great. I just wanted to upgrade and maybe play some window based games also! My firewall is open and am using the latest Punkbuster available b

  • Secured Network - Can't get WGA54G to connect

    My brother could connect fine before we secured our network. He is using a WGA54G wireless adapter. We are using a BEFW11S4 router. We were dumb and hadn't secured our network but finally did and got all other computers set up to connect but we are h

  • Best midrange video editing laptop

    I am looking to purchase a video editing laptop for my son.  He has a gopro and iPhone and enjoys making and editing videos.  Honestly I am clueless about the whole thing and would like some guidance and opinions before making the purchase.  I would