cancel
Showing results for 
Search instead for 
Did you mean: 

Settlement receiver(costcenter) and PM Order costcenter validation

Former Member
0 Kudos

Dear Guru's

I am having 1 requirement with below issue.

1. Our client given requirement for costcenter in PM order and Settlement receiver should be same at the time of saving once PM Order Released.

for this we have done with the help of ABAPer, but it was not working.

Please suggest with you valuable solutions.

ABAPer coding is:

SELECT SINGLE objnr kostl

FROM  cobrb INTO wa_cobrb

WHERE objnr=caufvd_imp-objnr

and kostl=caufvd_imp-kostl.

IF sy-subrc <> 0.

  MESSAGE 'Settlement Receiver & Costcenter is not correct' type 'E'.

END IF.

Regards

Raju K

Accepted Solutions (1)

Accepted Solutions (1)

peter_atkin
Active Contributor
0 Kudos

Raju K

That is probably because the code is reading the database values (COBRB) and not the memory values in the currenlty open order.

There are a suite of function modules that may help starting with K_SETTLEMENT*

Try these. Otherwise I will check next week when I'm back in the office.

PeteA

Former Member
0 Kudos

Hi Pete,

Thank you for your inputs. As per your suggestion , we are trying but we are checking with customized BADI.

Sorry for late update, i will update if works or Not.

Thanks

Raju K

Answers (1)

Answers (1)

IbtissemNOUI
Explorer
0 Kudos

Hi Raju,

try to create project with the user exit IWO10010.

you can imlemante your code at the 'save' event: % if EVENT <> 1%

combining between customising and developpement could solve your pb.

Regards.