cancel
Showing results for 
Search instead for 
Did you mean: 

CRM IPC issue

Former Member
0 Kudos

I am facing an issue while working in IPC part of CRM. I need to write a IPC class for the following logic written in ECC in CRM JAVA.

IF XVAKEY IS NOT INITIAL AND komp-kposn IS NOT INITIAL.
*      select KSCHL from T685A into table t_kschl
*        where kofrs = '901'.
*      READ TABLE t_kschl into wa_kschl with key KSCHL = .
      if GKOMV_KEY-KSCHL = 'ZR00'.
      CLEAR : w_passvalue.
      if t_komp_tmp[] is INITIAL.
        w_passvalue = 'X'.
      else.
        w_passvalue = 'X'.
      LOOP AT t_komp_tmp INTO wa_komp_tmp.
        READ TABLE tkomp INTO wa_komp with key kposn = wa_komp_tmp-kposn.
        IF wa_komp-zzmvgr3 = komp-zzmvgr3.
          clear w_passvalue.
        ENDIF.
      ENDLOOP.
      endif.
      clear wa_komp.
      READ TABLE t_komp_tmp INTO wa_komp_tmp with key kposn = komp-kposn .
      if sy-subrc = 0 .
         w_passvalue = wa_komp_tmp-passvalue.
       else.
         wa_komp_tmp-kposn = komp-kposn.
         wa_komp_tmp-passvalue = w_passvalue.
         APPEND wa_komp_tmp to t_komp_tmp.
       endif.
      endif.
      IF w_passvalue IS NOT INITIAL.
        xkwert = 1000 .
      ENDIF.
      endif.

The above formula is ScalebaseFormula. Even if there are some examples for Scalebaseformula that should help.

Regards,

Pranay

Accepted Solutions (0)

Answers (1)

Answers (1)

MichaelNe
Employee
Employee
0 Kudos

Hi,

the guide attached to SAP note 809820 does provide some general example. In addition, the relevant interfaces and the technique to register attributes for your formula are described (additional attribute values you would like to pass from ABAP to your formula).

Best Regards,

Michael