Hi Gurus,
I have a requirement to make the field VBAP-PCRTF = VBAP-PRCTR in Sales order.
I tried to use the USER_EXIT_MOVE_FIELD_TO_COBL. Although there are two more user-exits available
- USER_EXIT_MOVE_FIELD_TO_VBAP
- USER_EXIT_SAVE_DOCUMENT_PREPARE/SAVE
Where one can change VBAP fields. However, after searching the forum ,i found it is better option to use
USER_EXIT_MOVE_FIELD_TO_COBL.
This works fine only on screen.By this I mean, when i navigate to Account Assignment tab from the material entered, i can see that
VBAP-PCTRF is populated on the screen.
But is not making to VBAP table.
Below is the code
If vbap-vbeln is not initial.
vbap-pctrf = vbap-prctr.
endif.
Please advice me,where I am going wrong?
Thanks in advance,
Lakshmi