cancel
Showing results for 
Search instead for 
Did you mean: 

Decoding IPC ABAP Routine

Former Member
0 Kudos

Dear IPC Gurus,

I am new to IPC 7.0. I need to decode the following ABAP Pricing useriexit for "RQT"

FORM KOBED_902.

sy-subrc = 4.

IF komk-vbtyp = 'H' OR

komk-vbtyp = 'K' OR

komk-vbtyp = 'L'.

sy-subrc = 0.

ENDIF.

IF komk-vbtyp = 'C' and

( komp-matnr = '000000000004005352' or

komp-matnr = '4005352' ).

sy-subrc = 0.

ENDIF.

ENDFORM.

I have created a Java class extending the interface RequirementAdapter and I am trying to code my checkRequirement method.

public boolean checkRequirement(IConditionFindingManagerUserExit item, IStep step, IAccess access) {

I don't see any methods like item.getDocumentCategory(). Can you please advice how I can check the values of komk-vbtyp and komp-matnr.

Thanks!

Surya.

Edited by: V. Surya on Apr 20, 2009 4:30 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

The VBTYP you are using represent the following types of transactions:

H - Returns

K - Credit memo request

L - Debit memo request

C - Order

In your case, you don't have to explicitly check for the conditions H, K and L. The code is redundant. The check for VBTYP = C can be easily substituted by corresponding Transaction type in the CRM. But the if condition will be little "longer". For example VBTYP = C may require checks to multiple transaction types. The transaction types can be obtained by checking the item attribute "PROCESS_TYPE". In AP 7.00, for item attributes, you can generally use the method getAttributeValue if they are a part of the attributes in the maintained in the configuration for the userexits. For example:

item.getAttributeValue("PRICING_INDICATOR");

to get pricing indicator. For other item specific attributes such as Net Price etc, you should refer to the Javadoc (API)

Easwar Ram

Former Member
0 Kudos

Hi Easwar Ram,

I am new to IPC 7.0 and struck with some questions regarding the IPC. There is this piece of code in ABAP routine:

   select single pstyv from YSE_GP_CALC_PSTY into lv_pstyv
      where pstyv = komp-pstyv.

The 'PSTYV' as defined is for Sales Document Item Category. I could not find anything in Java relevant to this field. How do we get the value of 'PSTYV' in our JAVA routine.

Ques 2 : Also some of the ABAP pricing procedures makes calls to some Function Modules. How do I move forward for the conversion of these calls ?

Thanks in Advance

Regards,

Mayank.

Answers (1)

Answers (1)

Former Member
0 Kudos

hi surya,

i am not sure that there is some default method to get document category.

but if it is not there you can send that as an additional attribute using the crm_cond_com_badi.

thanks and regards

shanto aloor