Wiki

Scale Your Enterprise

User Tools

Site Tools


kb:kb_item_136

KB Item 136

Product

SAP BUSINESS ONE

Product Version (if applicable)

None Defined

Issue

BP Activity Query

Symptom

Cause

Resolution Notes

select clgcode,

    case [Action] 
          when `C` then `Phone Call` 
          when `E` then `Note` 
          when `M` then `Meeting` 
          when `N` then `Other` 
          when `P` then `Campaign`
          when `T` then `Task` end as `Activity`, 
          oclt.Name as ActivityType, 
          OCLS.Name as ActivitySubject,
          t0.U_NAme as AssignedTo,
          T1.U_NAme as AssignedBy,
          OCLG.CardCode, OCRD.CardName,
          ocpr.Name as ContactPerson          

from oclg

    left join oclt on oclt.code = oclg.cntcttype 
    left join ocls on ocls.code = oclg.cntctsbjct
    left join ousr T0 on t0.internal_k = oclg.attenduser
    left join ousr T1 on t1.internal_k = oclg.assignedBy
    left join ocrd on ocrd.cardcode = oclg.cardcode
    left join ocpr on oclg.cntctcode = ocpr.cntctcode

KB Type

Solution

Item Date

24 Oct 2012

kb/kb_item_136.txt · Last modified: 2019/01/24 09:44 (external edit)