Link needed between Case and activity

Hi CRM guru`s,
I need a function module or a table in order to make a link between a case and its activities.
Can anybody help?
Thanks,
Frederik

Solved it see
my code sample
* Get casenr where this activity belongs to                            *
* >>> Start from activity nr                                           *
* .......... convert activitynr > activity guid
CLEAR x_actguid.
SELECT single GUID FROM CRMD_ORDERADM_H
                    INTO X_ACTGUID
                    WHERE object_id = p_activ.
IF sy-subrc = 0.
* .......... convert activity guid > document ID
   CLEAR X_LOIO_ID.
   SELECT single LOIO_ID FROM SCMGRECP01
                         INTO X_LOIO_ID
                         WHERE PHIO_ID = X_ACTGUID.
   IF sy-subrc = 0.
* .......... convert document ID > Dossiers POID-ID
      CLEAR X_PDIR.
      SELECT single PROP08 FROM SCMGRECL01
                           INTO X_PDIR
                           WHERE LOIO_ID = X_LOIO_ID.
      IF sy-subrc = 0.
* .......... convert Dossiers POID-ID > Case nr
         CLEAR x_case_guid.
         SELECT single CASE_GUID FROM SCMG_T_CASE
                                 INTO x_case_guid
                                 WHERE RECORD_PDIR = X_PDIR.
         IF sy-subrc = 0.
            CLEAR x_case.
            SELECT single EXT_KEY FROM SCMG_T_CASE_ATTR
                                  INTO x_case
                                  WHERE case_guid = x_case_guid.
            IF sy-subrc <> 0. ENDIF.
         ENDIF.
      ENDIF.
   ENDIF.
ENDIF.

Similar Messages

  • Case Management - Table to find out relation between Case and Activity

    Hi.
    I do search the SDN for the same quesiton, I found one but it was not answered by a single person. So let me ask it again:
    I am working on an interface in CRM that will create the activity and link it to the open case.
    I can get the existing case GUID and information from table CRMD_CMG_CASE_AT .
    I can get the GUID as a return parameter when activity will be created using BAPI.
    But how can I link the activity to the case.
    1. Which table is having relation between both case and activity?
    2. What class or BAPI will be used to link created activity to existing case?
    Thanks in advance.
    Hitesh

    done

  • Different between Passive and Active SFP+ cable

    Hey,
    We'd like to know what is the different between Cisco SFP+ copper passive twinax cable and active cable?
    We test some Siemon passive SFP+ 7m and 10m copper cables and these cables passed our lab test ( link between nexus 5548 and FEX link).
    Is that means we can using Siemon to take over Cisco because of same function and lower cost?
    Thanks.

    Greetings,
    The following page explains in detail the difference between passive and active copper assemblies - http://www.scientificcomputing.com/High-speed-Copper-Interconnects-Address-Critical-HPCHurdles.aspx.
    You can use any Cisco Twinax cables between a Nexus 5548 switch and Fabric Extender (note that Nexus 7000 switches do not support all Twinax cables). The 7 and 10m cables use an active design while the shorter cables are passive.
    Non-Cisco transceivers are not compatability validated and may not be supported by TAC if you encounter any issues (Warranty Guideline http://www.cisco.com/en/US/prod/prod_warranty09186a00800b5594.html). We recommend always using official Cisco components.
    Hope this helps,
    /Phil

  • Pls tell me difference between case and decode

    Hi all
    pls tell me difference between case and decode
    regards

    Well not entirely true when you consider working with
    sign and decode together. Your example could be
    written with decode and sign like this:
    decode(sign(sal-1000),1,sal+comm,-1,sal,0)But the case expression reads more easily, I admit.Rob it was just example you considered it special case ,BTW can you do it for me by DECODE function.
    SQL> SELECT sal,comm,CASE WHEN sal>1000 AND sal<1300 THEN sal+comm ELSE 0 END
      2    FROM emp
      3  /
           SAL       COMM CASEWHENSAL>1000ANDSAL<1300THENSAL+COMMELSE0END
          5000                                                          0
          2850                                                          0
          2450                                                          0
          2975                                                          0
          1250       1400                                            2650
          1600        300                                               0
          1500          0                                               0
           950                                                          0
          1250        500                                            1750
          3000                                                          0
           800                                                          0
           SAL       COMM CASEWHENSAL>1000ANDSAL<1300THENSAL+COMMELSE0END
          3000                                                          0
          1100
          1300                                                          0
    14 rows selected.Note for OP CASE can be used within PL/SQL witing ORACLE 9i or later release
    but DECODE function can only be used within SQL.
    Khurram

  • What are the configuration need between R3 and XI when we use RFC sync adap

    hi,
    What are the configuration need between R3 and XI when we use RFC sync adapter.
    Regards
    siva.

    if its the sender adapter ref:
    RFC adapter
    Sender- /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    Receiver;
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/e80440a832e369e10000000a155106/content.htm
    Also;
    trouble shooting rfc/soap -
    /people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009

  • What are the differences between inactive and active ABAP objects?

    Can anybody tell me what are the differences between inactive and active ABAP objects?
    In my opinion,  an active object is compiled and system wide available, that means the system do not have to compile the program again before run or use the object. While An inactive object is not system wide available and every time you run an inactive object, firstly the abap runtime will have to  generate a tempory runtime object and this inactive object can not seen by others.
    Am I right? Can anybody kindly tell me other differences?

    Hi,
    "When it is inactive, it is like it would not exist at all:" no - it's like it only exists to you
    "If we just saved that one means it is stored in application server not in database": no - the inactive version is also stored in the database. You can log off and log on and it will still be there, in its inactive status.
    "Only active objects can be executed.": no - inactive objects can be executed by you
    When you create or modify a program, it is inactive until you activate it.
    With a change, there are two versions of the program stored in the database - the active version (as it was before you made your change), and the inactive version. If you attempt to run the program, you'll run the inactive version - the one with your changes. Everyone else on the system will run the active version.
    In this way, you can make changes without affecting anyone else.
    Once you activate your program, then the inactive version becomes the active version.
    With a create, there is no active version, until you hit the activate button. This means ONLY you can run the program.
    An additional benefit of this model, is that if you make a change, save it, and then change your mind without activating, you can recover the active version into the editor, using version management.
    A downside is that sometimes you have to activate your change before you can test it, if it interacts with other, active, programs.
    Regards,
    Kumar

  • ### How to make integration between UCCX and Active Directory##

    Hello,
    I want to know what is the right procedure to perform a right integration between the UCCX and the Active Directory?
    Waiting Yours Reply,,,,
    Thanks a lot......

    What version?
    Assuming a current version (5.0 and higher): there is NO direct integration between CCX and Active Directory. The CCX server must not be joined to a domain.
    CCX uses UC Manager End Users for synchronized usernames and passwords. If UC Manager is synchronized with an LDAP source, such as Active Directory, then this will carry forward to CCX. CCX would pass authentication requests to CCX through AXL. UCM would perform the LDAP authentication and inform CCX of the success/failure.

  • Search (priority) of linked contacts between iCloud and facebook

    Hi,
    on my iOS I have linked contacts between iCloud and facebook. There have to be a priority, at least for searching for details in the contact, because i only find some of the contacts that a have a same note set by me in the iCloud card. When I link contacts with different names, the unified contact get the facebook name. Then I can't search for the details I have set for the iCloud card. If I choose "Use This Name For Unitief Card" of the iCloud card, I can search for it's details from that moment on.
    Can I set this generel priority to iCloud?!

    does nobody has the same problem/can reconstruct the behaviour?

  • Link Table between CRM and ERP

    Hi Experts,
    Does anyone knows the link table between CRM and ERP for Contact Person (Buss Part) CRM and Contact Person ERP.
    In my customer system, contacts are automatically duplicated in CRM.
    When you make a change in ERP, this change is automatically done in CRM.
    So I suppose that there is a table between the both systems to find the corresponding number...
    Thank you for your help and hope my English is good enough to understand :o)
    Best regards,
    Luis.

    Hi Micky,
    Thanks for your answer.
    Unfortunatelly, number are differents...
    I move this question to CRM forum ;o)
    Kr,
    Luis.
    This has been solved in this thread:
    Link Table between CRM and ERP
    Edited by: Luis Loredo Marino on Feb 24, 2010 1:24 PM

  • Sharing linked files between mac and pc

    Dear Community and AI Support,
    My team is trying to share AI files between Macs and PCs.  That works fine until we have Linked assets.  Once we have linked assets, AI either forgets to, or is unable to, let us relink more than one of the linked files.  We can't edit the links or even delete them.  The linked files are just ignored, leaving the file half empty. 
    We've tried hacking the paths directly in the .AI file, hoping to eventually write a perl script to help us switch back and forth. but no luck.  We assume there is a checksum or crc code or hash, etc..., as AI won't even try to open the file after that.
    But to clarify the issue. here is an example of the Mac and PC links we need to switch between using an excerpt from the AI file.  These are valid, working directories on both platforms.
    Mac flavor:
                   <rdf:li rdf:parseType="Resource">
                      <stMfs:linkForm>EmbedByReference</stMfs:linkForm>
                      <stMfs:reference rdf:parseType="Resource">
                         <stRef:filePath>/T/source/stories/00002/characters/puppy.ai</stRef:filePath>
                         <stRef:documentID>xmp.did:5bbaeed4-f8e3-f54b-b302-0b9d14f5a0eb</stRef:documentID>
                         <stRef:instanceID>uuid:1f66816c-99cb-4d62-ab88-aa6f9c92adad</stRef:instanceID>
                      </stMfs:reference>
                   </rdf:li>
    Win flavor:
                   <rdf:li rdf:parseType="Resource">
                      <stMfs:linkForm>EmbedByReference</stMfs:linkForm>
                      <stMfs:reference rdf:parseType="Resource">
                         <stRef:filePath>T:\source\stories\00002\characters\puppy.ai</stRef:filePath>
                         <stRef:documentID>xmp.did:5bbaeed4-f8e3-f54b-b302-0b9d14f5a0eb</stRef:documentID>
                         <stRef:instanceID>uuid:1f66816c-99cb-4d62-ab88-aa6f9c92adad</stRef:instanceID>
                      </stMfs:reference>
                   </rdf:li>
    Thanks! :]
    Chris

    ooohhhhh very interesting.  I did a find and replace on all the strings, but no dice.  I didn't think to look at those types of data.  But now that you have mentioned it, perhaps I'll do a diff on the same file saved on both platforms to see what has been changed.  Should have already thought of it, but your note has made me check my assumptions.

  • Difference between CASE and DECODE

    Hi All,
    Could you please explain me the basic differences between the CASE and DECODE, which performs fast...?
    DECODE is Oracle one, and the CASE is ANSI standard.
    As per my knowledge, CASE is a statement and DECODE is a function which was defined in the Standard package.
    If we use DECODE, the package has to load first, so it will take a little longer than the CASE. CASE is a simple statement which is ANSI standard.
    We can use the CASE in the where clause and can not use the DECODE in the where clause.
    Please clarify me and correct me if anything wrong.
    Thanks,

    IMO, the main important point is the way CASE and DECODE handles NULL
    SQL> select ename,comm,
      2         decode(comm,300,'A',null,'B','C') dcd,
      3         case comm when 300 then 'A'
      4                   when null then 'B'
      5                   else 'C'
      6         end cs
      7  from emp;
    ENAME            COMM D C
    SMITH                 B C --"DECODE treats NULL=NULL. But for CASE, NULL is not equal to "another" NULL
    ALLEN             300 A A
    WARD              500 C C
    JONES                 B C
    MARTIN           1400 C C
    BLAKE                 B C
    CLARK                 B C
    SCOTT                 B C
    KING                  B C
    TURNER              0 C C
    ADAMS                 B C
    JAMES                 B C
    FORD                  B C
    MILLER                B C
    14 rows selected.
    {code}
    Edited by: jeneesh on Jun 3, 2013 1:13 PM
    Note: in CASE, you should use IS NULL
    {code}
    case when comm=300 then 'A'
           when comm is null then 'B'
          else 'C'
    end
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Linking files between Macs and PCs in InDesign

    I'm Mac, my colleagues are PC.
    They have removed the letter mapping from their server links to enable me and them to share InDesign files seemlessly. This works perfectly until an Indesign file draws graphics from two (or more) seperate servers. In this case, Indesign for me can only draw links from the server in which the file is saved. All graphics from the other server appear broken.
    I'm sure PCs and Macs co-existing isn't rare. And I'm sure using graphics from multiple servers also isn't rare. How do I get around this problem?
    Many thanks,
    Nicola

    All graphics from the other server appear broken.
    What happens when you attempt to relink them?

  • DB Link issue between 8i and 11g

    Hi, We have developed the shell script to connect oracle 11g database and do something and then update the oracle 8i database tables using the DB link. We have created the Public DB link in Oracle 11g database.
    When we execute the script manually everything works fine. But while executing the same script using the LINUX - crontab the script failed to execute the DB link and throws the below error message
    Error Message:
    =========
    ORA-12154: TNS:could not resolve the connect identifier specified Error loading the files
    Anyone come accross this error before? please help
    Thanks in advance

    user4883361 wrote:
    Hi sb92075:
    How about Easysoft ODBC-Oracle Driver?
    http://www.easysoft.com/products/data_access/odbc_oracle_driver/index.html
    does this driver will permit me to create a DB link between 11g and 8i?
    Thanks
    Since it is not possible to prove a negative, you are left with the challenge to prove me wrong.
    If you can make it work, then I was incorrect.
    Please post your conclusion here, after you determine the answer to your question.

  • Link aggregated between NAS and a switch: the Mac as a very slow access...

    Hello,
    in my Office we're working with Macs and PCs and all the data is on a NAS.
    Here is our configuration:
    NAS <-link1->Switch<-Link2->Macs or PC.
    Macs are connected with AFP protocol (because SMB is very slow).
    We want to use Link Aggregation between the NAS and the switch (with 802.3ad procotol) but when we do that all the Macs have a very slow access to the NAS. But all is OK with the PCs.
    What can we do? Is there a problem with macOS X and link aggregation?
    Thank you for your help.
    Nicolas

    Sorry, not sure what the question is exactly.
    You must have an Xserve, or Ethernet cards capable of Jumbo Frames for one, I assume the Switch & NAS are capable?
    Possible clues...
    http://docs.info.apple.com/article.html?path=ServerAdmin/10.4/en/c3ha3.html
    http://discussions.apple.com/thread.jspa?threadID=1715388&tstart=0
    http://www.macnn.com/articles/04/06/21/link.aggregation.for.macs/
    http://www.smallnetbuilder.com/content/view/30556/53/
    http://www.afp548.com/forum/viewtopic.php?showtopic=8309

  • Difference between passive and active data connection mode for  FTP

    Hi,
    Does any body have the idea of passive and active data connection mode for the transport protocol FTP.
    I have one server with FTP, I have to pick the data from this FTP to XI.
    What is the difference between active and passive data connection? Does XI supports both the connections?
    Thanks & Regards
    Katta Mohan Reddy

    Hi
    According to SAP Note - 821267
    Q: Does the File Adapter support active data connections when connecting to an FTP server?
    A: Up to and including SP14, the File Adapter exclusively uses passive data connections. Starting with SP15, active connections will be available.
    Difference between active and passive,
    You can definitely refer to the site mentioned by Suraj
    cheers
    Sameer

Maybe you are looking for

  • Exchange 2010: Multi-Mailbox Search causes log out

    This could well be the freakiest problem I have seen in years, or at least the more unexplainable.  We have the Multi-Mailbox Search feature in place, all things have been configured properly that I know of, and it has been working fine for about a y

  • Camera issue on nokia e5

    hi i am using nokia e5 mobile phone and i am geting strange issue when  i open my camera . camera work fine but 9 or 10 lines appear on screen and when i cpature image  lines capture in image. is software issue on my e5 ? i listne someone who says tr

  • N73: I want to save the file Contacts.cdb

    Neither with the file manager x-plore nor Y Browser did I manage to find the file Contacts.cdb in my sister's Nokia N73. I want to copy it to the PC so to save the addressbook. Can anybody suggest how to do so? The file should be in C:\System\Data, b

  • Cannot pair my magic keyboard through Bluetooth.

    Hello, My Magic Keyboard does not pair with my Mac. I'm running Mavericks (OS X 10.9).It's detecting my keyboard but won't let me enter the password number or freezes halfway through the finalisation process. I've trashed the plist.com.apple bluetoot

  • Automate filling a PDF Form

    Hi All I have Adobe acrobat Standard installed on my system and i want to automate filling a PDF Form. While doing this am not able to get any of the field names. Here is the peice of code i used, can any one help me out what i need to do? Set AcroEx