Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

IPC PricingUserExits VARCOND

Hi Experts,

I need some help for implemention of the Userexit PricingUserExits with IPC 4.0 in conjunction with variant condition VARCOND. The IPC runs in ISA-scenario against SAP ERP.

The task is to read the database whether there is an attribute ZZVA5_FVC for the variant condition VARCOND. This has to be done for all VARCONDs. Each VARCOND might have a different attribute ZZVA5_FVC. VARCOND might even have no attribute ZZVA5_FVC.

In the method checkRequirement of PricingUserExits should be checked if ZZVA5_FVC is not NULL, then requirement 910 should become true. If ZZVA5_FVC is NULL, then requirement 912 should become true.

The implemention is

public boolean checkRequirement(IConditionFindingManagerUserExit item,
                                IStep step,
                                int reqNo) {
IAttributeValue xvalue;
xvalue = item.getItemAttributeValue("ZZVA5_FVC");
if ( xvalue != null ) {
	zzva5_fvc  = xvalue.getValue();
	if (zzva5_fvc.equals("")) {
		zzva5_fvc = null;
	}
boolean ret;
switch (reqNo) {
     case 910:   
	if ( zzva5_fvc != null ) {   	
	   ret = true;
       	} else {
       	   ret = false;
       	}
       	return ret;
     case 912:   
       	if ( zzva5_fvc != null ) {   	
           ret = false;
        } else {
           ret = true;
        }
        return ret;

But I don't know what I have to do to have access to VARCOND in order to read the database and set the attribute ZZVA5_FVC for each VARCOND. The access of the database is not the problem. But I don't know which methods of PricingUserExits or other classes are to be used to read VARCOND and set ZZVA5_FVC.

I have already done some experiments. What I have found out is

- method checkRequirement is only called once, although there are more then one VARCONDs with different ZZVA5_FVC.

- I have tried methods overwriteConditionValue, determineRelevantAttributesForValueFormula and getConditionValueFormulaNumbers. But these methods are not called. I think because T683S-KOFRM are empty for the requirements 910 and 912 in SAP customizing.

Thanks in advance

Karl-Wilhelm

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question