cancel
Showing results for 
Search instead for 
Did you mean: 

FM or BAPI to modify settlement parameters in CJB2 transaction

Former Member
0 Kudos

Hi All,

I want to update the settlement profile and the project type for a WBS. I can do it manually from CJ20n but I need a BAPI or a FM to do it programatically.

Thanks,

Abhishek

Edited by: Abhishek Joshi on Feb 1, 2012 4:23 PM

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Friends,

I have found out a solution to update the COBRA DB table directly through this FM. Ans hence it will directly reflect in the Settlement rule profile.

  • Modify Settlement rule.(Settlement Rule for Order Settlement table)

  • All the output structure is of type COBRA table

CALL FUNCTION 'K_SRULE_SAVE_UTASK'

TABLES

  • T_COBRA_INSERT =

  • t_cobra_update =

  • T_COBRA_DELETE =

  • T_COBRB_INSERT =

  • T_COBRB_UPDATE =

  • T_COBRB_DELETE =

EXCEPTIONS

srule_utask_error = 1

OTHERS = 2

.

Thanks ,

AJ

former_member201206
Active Contributor
0 Kudos

Hi Abhishek,

the project type for a wbs should & must not be changed via CJB2, it makes absolutely no sense.

The settlment profile can be changed using BADI WBS_SETTLEMENT_RULE indirectly, in which you can change the strategy of the settlement, so that influence the settlment profile.

Kind regards,

Zhenbo

Former Member
0 Kudos

Thanks Zhenbo for your reply.

I have a requirement to update the settlement profile and project type of the corresponding WBS before applying settlement rule. And here I can't use this BADI only to update the settlement profile. And I need to update the project type to get the solution.

Thanks,

AJ