cancel
Showing results for 
Search instead for 
Did you mean: 

Incompletion log for custom field in sales order

0 Kudos
1,090

Hello,

I added a custom field(ZXYZ) in Header->additional tab B of sales order. If this field is empty then i have to show it in incompletion log. The incompletion log should be displayed only for customers of specific country.

I have added the field in SPRO. Since we have added this in customizing, the incompletion log is getting displayed for all customers. To avoid this (To Not show incomplete log for other customers) , i have added logic in 'userexit_move_field_to_vbak' to delete entry from table xvbuv. For ex:

if customers country NE 'ABCD'.

DELETE xvbuv where tbnam = 'VBAK' and fdnam = 'ZXYZ'.

Endif.

Its working fine when i save the order. But when i click on incompletion log in VA01/VA02 , i could see that field. Is someting is missing here? Do i need to delete the entry in onther user exit too? Please advice.

Thank you,

Manoj.

Accepted Solutions (0)

Answers (2)

Answers (2)

Resloved by myself by shifting code from 'userexit_move_field_to_vbak' to 'userexit_check_vbak'. Is it necessary to call FM 'RV_CHECK_DOCUMENT_INPUT' and

PERFORM xvbuv_loeschen_vor_pruefen(sapfv45f)?

0 Kudos

Note: I dont want to fill that custom field for non-related customers.