on 12-08-2016 2:16 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Simone
I mean:
I put the value B into the field Item category of my file. In this case I can't value correctly the item quantity and the additional fields (date accural start date accural end) are non valued.
I put value space (defalut) into the same record of the same file and I can see the correct quantity and the dates are valued.
When i debug, the structures are correctly filled... and I have no error...
Ok, one down, one left 🙂
For the custom fields, did you debug the points i showed in my reply? It's in that point the extensionin are managed.
If you go step by step you should find why they are not filled.
You can also try with a watchpoint after the Z fields are filled to see where they are set blank.
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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
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.