How to fire event to generate insert message for the child objects?

We are in process to integrate CRM On Demand and existing Microsoft SQL DB.
We have the following problem:
For ex., we have CRM Object_1 that already synchronized with the SQL DB. CRM also has independent Object_2 and its child Object_2.1
We dicided that we want to connect the Object_2 as child to the Object_1.
The question is how to fire event to generate insert message for the Object_2 and Object_2.1?
What is the best technique? Is it possible to do it by workflow configuration or it needs to be done programmatically?
Thanks,
Dmitry
Edited by: 955827 on Aug 29, 2012 11:57 AM

Hi,
integration events can be generated only via worklow. You will need to create separate workflows for each record type (regardless if it is child or parent) because a workflow for the parent record type will not trigger when a child record is created/ associated. Also, the association workflows will trigger only when the specific event occurs.
There is not way to generate the integrtaion events programatically. They are generated by workflows and are read/ interpreted by a code extension.

Similar Messages

  • Generating Insert Scripts for multiple tables

    Hi,
    I have 6 tables TABLA,TABLB,TABLC,TABLED,TABLEE,TABLEF
    I want to generate Insert Scripts for the above 6 tables.
    Is there any mechanism to do so so that i can generate the .sql files for the above 6 tables to another schema?
    Any help will be needful for me.

    Hi,
    May the below given function script help you...
    CREATE OR REPLACE FUNCTION get_insert_script (v_table_name VARCHAR2)
       RETURN VARCHAR2
    AS
       b_found   BOOLEAN         := FALSE;
       v_tempa   VARCHAR2 (8000);
       v_tempb   VARCHAR2 (8000);
       v_tempc   VARCHAR2 (255);
    BEGIN
       FOR tab_rec IN (SELECT table_name
                         FROM all_tables
                        WHERE table_name = UPPER (v_table_name))
       LOOP
          b_found := TRUE;
          v_tempa := 'select ''insert into ' || tab_rec.table_name || ' (';
          FOR col_rec IN (SELECT   *
                              FROM cols
                             WHERE table_name = tab_rec.table_name
                          ORDER BY column_id)
          LOOP
             IF col_rec.column_id = 1
             THEN
                v_tempa := v_tempa || '''||chr(10)||''';
             ELSE
                v_tempa := v_tempa || ',''||chr(10)||''';
                v_tempb := v_tempb || ',''||chr(10)||''';
             END IF;
             v_tempa := v_tempa || col_rec.column_name;
             IF INSTR (col_rec.data_type, 'CHAR') > 0
             THEN
                v_tempc := '''''''''||' || col_rec.column_name || '||''''''''';
             ELSIF INSTR (col_rec.data_type, 'DATE') > 0
             THEN
                v_tempc :=
                      '''to_date(''''''||to_char('
                   || col_rec.column_name
                   || ',''mm/dd/yyyy hh24:mi'')||'''''',''''mm/dd/yyyy hh24:mi'''')''';
             ELSE
                v_tempc := col_rec.column_name;
             END IF;
             v_tempb :=
                   v_tempb
                || '''||decode('
                || col_rec.column_name
                || ',Null,''Null'','
                || v_tempc
                || ')||''';
          END LOOP;
          v_tempa :=
                v_tempa
             || ') values ('
             || v_tempb
             || ');'' from '
             || tab_rec.table_name
             || ';';
       END LOOP;
       IF NOT b_found
       THEN
          v_tempa := '- Table ' || v_table_name || ' not found';
       ELSE
          v_tempa := v_tempa || CHR (10) || 'select ''- commit;'' from dual;';
       END IF;
       RETURN v_tempa;
    END;(copied and pasted from a commercial site)
    *009*
    Edited by: 009 on Jan 14, 2010 10:43 PM
    (Function after debug)

  • How to generate BP number for the employee (ECC to CRM) ...

    Hi all,
    can any one give solution for ,how to generate BP number for the employee from ECC to CRM other than active status,as i downloaded employee data from ECC to CRM through ALE/IDOC,as only active employment status employees are got BP number generated,remaining also transfered to CRM but BP number is not generated for those employees,these employee records i can able to see in the HRP5580- HRP5587 tables.
    thanks in advance.
    vamshi.
    Message was edited by:
            vamshidher rao

    Hi,
    Or are you looking for this:
    SELECT serial_number, paaf.assignment_number
    FROM pay_assignment_actions paa, per_all_assignments_f paaf
    WHERE action_status = 'C'
    AND paaf.assignment_id = paa.assignment_id
    AND serial_number IS NOT NULL
    AND SYSDATE BETWEEN paaf.effective_start_date AND paaf.effective_end_date;
    - Viky
    Edited by: Viky on Dec 17, 2010 11:42 AM

  • How to give error message for the screen element text field when wrong i/p

    How to give error message for the screen element text field when wrong i/p
    when wrong input given
    eg. 
    I have a text box with SBOOK-CARRID
    so when user give wrong entry in text box i.e LG
    then I should give some error stating that the the input is invalid or not available ,
    now it showing the error of standard messages,
    i want manual message to be displayed when error comes.
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla

    Hi all,
    Thank you for your valuable reply,
    but the thing is that its a screen field,
    i.e text box not a selection screen
    i created in screen layout
    with name sbook-carrid
    now i want to get error message display if wrong i/p is given
    thank you.
    Regards,
    Jagrut bharatkumar Shukla,

  • How do I resolve this related Ical message? The server responded with "400" to operation CalDAVUploadDropBoxFileQueueableOperation.

    How do I resolve this related Ical message? The server responded with “400” to operation CalDAVUploadDropBoxFileQueueableOperation.

    I am having this problem too...and also I (most of the time) can't invite anyone on my google apps domain to a meeting. WEIRD! HELP!!! I just switched to Mac from PC...this was supposed to be EASY!
    I get all kinds of error  messages...
    1) The request for “Test Appointment” in “[email protected]” in account “yyyy.com Google” failed.  The server responded with “400” to operation CalDAVScheduleEventQueueableOperation. *My google calendar *IS* updated despite the error, but the appointment is greyed out on my calendar.
    2)  The URL https://calendar.google.com/calendar/dav/[email protected]/user///calendar.google.com/calendar/dav/[email protected]/user/ encountered HTTP error 404. Make sure the URL is correct. The URL *IS* correct.
    Also, when I try to invite people to appointments, iCal adds random attendees and frequently will not add an attendee if they are in my domain. HELP.

  • When i send a text in iMessage the person receiving it gets it from my email address... how do i change that. and in message settings the receiving thing has my email and phone number but my phone number is gray and i can't click on it

    when i send a text in iMessage the person receiving it gets it from my email address... how do i change that. and in message settings the receiving thing has my email and phone number but my phone number is gray and i can't click on it help

    Hello Todd:
    I had this very same problem when trying to activate iMessage and Facetime on my iPad. When I signed into my account, I actually wasn't even presented with the option of a phone number - notwithstanding the fact that I was contacting others (and being reached by others) by my phone number on my iPhone. Having both the iPad and the iPhone on, I kept trying to turn off and on both iMessage and Facebook in Settings on both my iPad and iPhone, hoping that that they would eventually sync. But this proposed solution by others was unsuccessful for me.
    Then, I found out what the problem was: When my iPhone was activated, it automatically registered my phone number for contact purposes. I was using iMessage on my iPhone for quite some time without actually being signed into my Apple ID account. When another device - such as an iPad or iPod - is being used for iMessage or Facebook, you are prompted to sign into your Apple account, using your username and password. These two devices will not register your phone number as an option for contact unless your iPhone is signed into your Apple account as well. In other words: your phone number will not be synced.
    Go into your "Settings" on your iPhone and click on "Messages". Scroll down and click on "Send & Receive" (which should be followed by your phone number). On the next page, you will be able to determine whether or not your iPhone is using the Apple ID for messaging purposes. (Note: This information applies for Facetime as well.) If it is using your Apple ID for messaging, than at the top, you will see "Apple ID: <your particular e-mail account>" in Blue text. However, if you are not using your Apple ID for messaging, than you will see the words: "Use your Apple ID for message". Even though below this you will see your phone number checked as the contact source, you will want to click the tab that says, "Use your Apple ID for message". Sign into your account (just as you must sign in for iMessage on your other devices), and just choose your phone number as the "Send & Receive" contact. (The option of the e-mail will be there too, but you don't have to check it. And later on, you can delete it as an option.)
    Now that all of your devices are signed in using your Apple ID, the other devices should register your phone number as a choice. It may take a little while, however. What I did was sign out of iMessage on my iPad, and then sign in again. If the option didn't appear, I just went back and signed in again, and kept doing this until the option for the phone number appeared.
    Again, this will work for Facetime as well. The solution is to sync your iPhone account with the other devices by using your Apple ID for messaging (and Facetime) purposes.
    I hope that this works for you, Todd!   ~ Brian

  • How to set an 'alert'  or reminder message for end-user Acrobat X form.

    Hi,
    I'm trying to see if I can add an alert or reminder message for the end user who will be filling in a form that I'm creating from Acrobat Pro X.
    Does it require a script if so, could anyone share one that is already exists?
    If it doesn't need a script, how can I set that up?
    What I want to do, is to remind end-user to fill in Numbers Only and not text.  I have already set my properties for numbers only and provided an example. But, In-case end users did not understand, I'd like to have a message for them to say that they must type in number and not text.
    Currently, with the limitation I've made, they couldn't type in any letters but, they might be frustrated and not fill in anything!
    Please help!
    Thanks,

    Thank you for the code.
    Is it correct to put that code under VALIDATE > run custome validate script, within the Properties box?
    Because I tried it, and it worked only AFTER I typed a number onto the field.
    Since my goal is to have the alert BEFORE, so if someone typed in a text, they should see the alert and correct themselves to type in a number instead.
    Please clarify.
    Thanks!

  • How do I recover a deleted text message if the phone has never been backed up/synced

    How do I recover a deleted text message if the phone has never been backed up/synced.  Yes, I know, I know I should be backing up/syncing my phone . . . but that hasn't been yet.  So, can I still find the deleted text message?  If I sync for the first time will it also sync deleted messages?

    Asking exactly the same question a second time will NOT get you a different answer.
    You can not recover that which has been deleted and was never backed up.

  • I am currently receiving error message "Microsoft Excel quit unexpectedly".  Any suggestions on how to fix?  I notice same message for powerpoint and word.

    I am currently receiving error message "Microsoft Excel quit unexpectedly".  Any suggestions on how to fix?  I notice same message for powerpoint and word.

    That generally has to do with data corruption.   Is your data backed up?
    What version of Office do you have?
    What Mac operating system?

  • PT_QTA00 is generating repetative records for the same quota type

    PT_QTA00 is generating repetative records for the same quota type and one more thing i have already maintained 10 days of quota in 2006 and when i run for the same employee its creating one more record with 10 days again how can we restrict it in configuration

    As said earlier, you want to setup Time Constraints for It2006 which is  in table: V_T582A
    You should set the Time Constraint to 2.
    HR master data uses the following three time constraints:
    Time Constraint 1
    For the entire time that the employee works at the enterprise, exactly one valid infotype record must exist. The validity periods of the individual records must not overlap. If a new record is created, the system automatically uses the start date of the new record as the delimitation date of the old record. Gaps are only allowed between the employeeu2019s entry date and the start date of the first record.
    Time constraint 1 must be used for all of the infotypes containing information that must be available at all times. This is particularly true of personal and organizational assignment data.
    If a record is delimited because of time constraint 1, the system displays an appropriate message.
    Time Constraint 2
    No more than one valid record can exist at any one time. Records with constraint 2 must not overlap. Their existence is not obligatory. If a new record is created, the system automatically delimits the previous record, if one exists.
    If a record is delimited because of time constraint 2, the system displays an appropriate message.
    Time Constraint 3
    Any number of valid records can exist at any one time. The individual records do not conflict with each other.

  • Error Message for the cancellation of paid billing document

    Hi,
    Can i create and error message for the cancellation of paid billing document? If yes, how can i create such.
    Overview:
    Accounting document is created upon creation of billing document. Upon payment, document cleared is the accounting document created. There are instances wherein accounting document was already cleared but our user is still able to reversed billing document. Now, i want to create an error message or user exist wherein, when a user will not be able to reverse the billing document if the accounting document attached to this billing document is already paid.
    Thank you and best regards.
    Rachelle

    Hi Rachel,
    You can make use of the exit (Include) MV45AFZZ. The corresponding form routine is FORM USEREXIT_SAVE_DOCUMENT_PREPARE.
    In this exit, For the given billing document ( which is going to be cancelled ), pick up the accouting document from BSEG tables.
    For this accouting document, Pass this to BSAD Table ( Customer clleared items) 
    If BSEG-BELNR = BSAD-BELNR and
      BSEG-Acc.Year = BSAD-Acc,year )..
    Then throw a error message and EXIT.
    So for all the cleared docments , user can not cancel the invoices.
    Regards,
    Sai

  • What is NetAuthAgent and how can I get it to stop looking for the unnamed file?

    Since the last Mountain Lion update on my MacBook Pro, I get this error message every few minutes:
       2013-12-16 1:19:04.338 PM NetAuthAgent[1739]:
          inErrorInfo = {   
               AuthType = Server;
               ErrorNumber = 45;
               ErrorType = 4;
              Scheme = file;
    How can I get it to stop looking for the unnamed file?
    Kat Nagel

    If streaming music when connected to your carrier's cellular network, it uses cellular data.
    Only the music you purchased from the iTunes Store can be streamed unless you have purchased iTunes Match.
    If there is a slow down at the server where the music is stored or high traffic, steaming can be paused. You can also download a song from the iTunes Store cloud to your iPhone so it doesn't need to be steamed.

  • Event GR Posted is denied for the DBM Order - External service procurement

    Dear Experts,
    We are facing the below mentioned issue while trying to perform goods receipt for external service procurement.
    Error - "Event GR Posted is denied for the DBM Order  -------XXX"
    The error message is raised when the tracking number is maintained in the Purchase order of External servce,
    If we remove the Tracking order (DBM Job order number) from Purchase order and then perform Goods receipt (MIGO) then the error does not exists.
    Request you to help us with suggestion.
    Regards,
    T.R.S,Praveen

    Hi Sachin,
    Thank you for your valuable feedback.
    Requirement Tracking number in Purchase order item screen. Field name - BEDNR.
    Please note that the job order number is not manually updated by us. It is automatically updating in PO line item through Purchase requisition details as per standard behavior.
    If we perform goods receipt then we are getting error message as "Event GR Posted is denied for the DBM Order  -------XXX".
    Goods receipt is working properly if we remove the Job order number in tracking order field in PO.
    Regards,
    T.R.S.Praveen

  • Events cannot have multiple exceptions for the same date

    I just starting getting this message and could not sync to one of my Google calendars. I'm posting this for others who might get the same problem.
    I didn't find the answer on these forums but did find it on this thread on Google:
    http://www.google.com/support/forum/p/Calendar/thread?tid=241155f758d9e2a4&hl=en
    Here's the important excerpt:
    "I had a client, who just had this same issue, nothing to do with Google cals.
    It was apparently, in my best guess, a corruption of the subscribed cal.
    *I did a get info on the cal, copied the URL, deleted the cal, then re-subscribed to it by pasting in the URL, and now it's working fine*."

    I've been having the same problem with my iCal calendars and the "Events cannot have multiple exceptions for the same date" error. Once it gets going, it uses up a lot of the CPU and resources. After reinstalling iCal, all my calendars were missing and I could not even resubscribe to them.
    I took my MacBook Pro to the Apple Store, and they were able to solve the problem by moving some of the iCal files from their existing folders out to the desktop, and reopening the program. That got it working, however, now I'm having the same problem again. So back to square one. Anyone else having this issue and know the cause?
    My setup is my MacBook Pro uses Entourage, use that calendar in my iCal. And I subscribe to two calendars my wife publishes on her Macbook. We're both using Snow Leopard.

  • HT1338 I am getting an error message for the Update store, saying "To Update this application, sign in to the account you used to purchase it."

    I am getting an error message for the Update store, saying "To Update this application, sign in to the account you used to purchase it."  how do I get rid of these Old unneccisary Updates?  anyone?

    Welcome to Apple Communities
    What's this app? You need to use another Apple ID to update it

Maybe you are looking for

  • How to move a downloaded movie from itunes to iphone

    How do I transfer a purchased movie downloaded to my library in iturnes to both my iphone and my ipad?  The movie shows up in the library movie category but I can't seem to get it to the iphone.

  • Client in a different machine..

    Hi, I ve a problem with JMS. I am developing a JMS Application with WebSphere and MQ Series. The application runs fine if i have the both the publisher and subscriber in the same machine. Now i want to move the client to a different machine say X. To

  • Reg : Navition to FB03 Transaction through SAP Query

    Hi Experts, I have developed a SAP quesry for BSIS table with Clearing Doc ( which is always blank value) and Acct doc in the output list and I have made this report as interactive ( RRI- Report/ Report Interface ) to navigate to FB03 whenever a line

  • Custom Indirection Container throwing exception in constructor

    Hi I've following the how-to and implemented my own custom indirection container. However, when reading an object from the database I'm getting the following exception. I'm guessing that it could be related to having null references stored as 0 in id

  • 1315 series all in one printing problem

    Hello,  the printer suddenly won`t function.I asked to print a pdf document, but the function won`t start. In the status bar it says 3 pending documents, because i asked 2 more times to print this document as it woudn`t start. I have tried to cancel