on 02-01-2012 3:22 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
96 | |
10 | |
9 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.