Skip to Content
avatar image
Former Member

Bapi_pr_create - Value additional fields when Overall limit is used

Goodmorning everyone, I'm stuck with a BADI.

When i try to load a Purchase requisition through BAPI_PR_CREATE , I can not fill two additional fields (Begin accural date - End accura date).

I valued the extensionin structures, appending the fields using the structure BAPI_TE_MEREQITEMX.

Everything works except when I try to load a PR with type position PSTYP = 1 (Overall limit valued).

what should I do?

Thank you all.

Greetings

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Dec 09, 2016 at 11:39 PM

    you are talking about Z-fields?

    You said it did not work for PSTYP = 1 , did it really work for other item categories?

    have you tested this specific case already in ME51N? did it work?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 10, 2016 at 11:17 AM

    Thank you Jürgen.

    Yes, I'm talking about Z-fields (Begin accural date - End accural date).

    It works for item category "Standard" (not valued).

    Testing in ME51N, I can insert the fields... It works...

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 12, 2016 at 08:26 AM

    Hi Giuliano,

    what do you mean with

    Everything works except when I try to load a PR with type position PSTYP = 1 (Overall limit valued).

    ?

    You got some return error? Or just the fields are not updated?

    Do you implemented some BAdI or customer function on Purchase requisitions which can influence the behaviour?

    I suggest you, as first step, to put a break point here where the extensions are managed

    and here where you can catch some messages

    and follow in debug the code to check what's going wrong.

    Sadly, being custom fields, it's hard to replicate your scenario.

    Add comment
    10|10000 characters needed characters exceeded