08-03-2009 7:06 PM
Hi Folks,
I am trying to populate the field vbap-vkaus from EXIT_SAPLVEDA_001.
It's not populating on sales order.
Code segment:
if z_e1edp01-abrvw is not initial.
z_vbap-vkaus = 'ZZ'.
dxvbap = w_vbap.
z_d_flag_p-pde2 = 'X'.
d_flag_p = z_d_flag_p.
endif.
Can someone explain what am i doing wrong.
Thanks,
Matt
08-03-2009 7:33 PM
I'm not exactly sure about what that user-exit does, but the DXVBAP parameter is a TABLES parameter. When you do
dxvbap = w_vbap.
you are basically moving something to the header line of that internal table, not to the actual contents of the table. You probably have to do a MODIFY command to alter the table entries, or use a field-symbol (recommended).
Also, have you tried the SD exits on include MV45AFZZ, form USEREXIT_MOVE_FIELD_TO_VBAP?
Regards,
Sergio
edited:
EXIT_SAPLVEDA_001 seems to be an IDoc-related exit. If you need to populate fields on the VBAP table, you should definitely use include MV45AFZZ, form USEREXIT_MOVE_FIELD_TO_VBAP.
Edited by: Sérgio Oliveira on Aug 3, 2009 8:35 PM