on 10-10-2022 8:17 AM
Hi,
I am facing a problem when trying to put a logic in USEREXIT_MOVE_FIELD_TO_VBAP.
I want to change the field VBAP-ARKTX based on the UPDKZ field. The logic is pretty simple, if the sales quotation item is getting created, VBAP-ARKTX = X and if the sales quotation item is getting modified, thenVBAP-ARKTX = Y.
The problem is that if anyone changes manually the VBAP-ARKTX with VA22, there is no UPDKZ indicator, it comes empty and that makes it impossible to identify the change.
The thing is that, changing the VBAP-ARKTX and the quantity at the same time, does make UPDKZ = 'U', but modifying the VBAP-ARKTX will leave the UPDKZ = space. Changing the quantity alone also makes UPDKZ = 'U'.
Is there any way to track the changes of the field VBAP-ARKTX via user exit? Is there any documentation of which fields trigger UPDKZ = 'U' after a change?
For more information:
Best regards,
Maybe try this:
FORM USEREXIT_MOVE_FIELD_TO_VBAP.
IF SVBAP-TABIX = 0. "Create item *
vbap-arktx = 'Y'.
ELSEIF SVBAP-TABIX > 0. "Change item
vbap-arktx = 'X'.
ENDIF.
ENDFORM.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
this one seems to do the trick. Everytime an item gets created, SVBAP-TABIX = 0.
However, if a created item gets modified in the same session (for example, changing the quantity of an item that has just been added) SVBAP-TABIX <> 0. Luckily, in these cases UPDKZ = 'I' (who knows why it does not equal I before) so we can use both SVBAP-TABIX and XVBAP-UPDKZ.
Thank you very much.
Best regards.
User | Count |
---|---|
101 | |
9 | |
7 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.