Skip to Content

Validation of COPA characteristics during purchase order

Hello all,

I am trying to validate COPA characteristics during purchase order (ME21N).

Validation will be based on the account so I can't use EXIT_SAPLKEDRCOPA_001 because I haven't got the account there. Based on the account some characteristics are not allow to be filled and other will be mandatory.

I am looking for some validation or user exit to make it.

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Mar 05 at 02:27 PM

    If nothing works try it with a Dirty Assign within your validation rule. A dirty assign is a pointer on a global variable of a program which is available in your callstack.

    Something like this

    Assign ('('SAPLMEGUI')MEACCT1100-SAKTO') to field-symbol(<sakto>).

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 05 at 02:56 PM

    Hi Francisco

    Here is what I think should work

    1. Create a Characteristic Group in KEPA that tells what chars are mandatory

    2. Assign the Char Group to Busn Transactions RMBA / RMBE in KE4G

    3. Now when you create the Purchase Order, it should act as a natural validation. Remember that, this Char Group would apply to all GL accounts

    4. Should you want to validate different set of chars based on different GL accounts, exit COPA0003 would help you do that.

    First try the steps 1 to 3, we can think of step 4 later

    Regards

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 08 at 01:54 PM

    Thanks Holger and Ajay!

    Holger, I can't make the dirty assign because I need the validation in purchase orders and in finance invoices. I can´t get the values.

    Ajay, In COPA0003 I can get the account but I can´t get the pa object values but in COPA0001 I can get the object values but I can´t get the account.

    Regards!

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 08 at 07:13 PM

    Finally I used exit COPA0003 to take de account and export to memory the value. And the in exit COPA0001 import from memory de account a make de valuation with copa characteristics.

    Thanks!

    Add comment
    10|10000 characters needed characters exceeded