Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

USEREXIT_READ_DOCUMENT

Former Member
0 Likes
1,175

Hi..

I want to know the function of the form USEREXIT_READ_DOCUMENT used in teh delivery program.

I mean when is it triggered and what things can we write inside this exit.

Thank You

Hi..

I want to know the function of the form USEREXIT_READ_DOCUMENT used in teh delivery program.

I mean when is it triggered and what things can we write inside this exit.

Thank You

3 REPLIES 3
Read only

Former Member
0 Likes
752

This userexit can be used to read data in additional tables when the program reads a sales document.

Read only

0 Likes
752

For example you can do the following validations here :

FORM USEREXIT_READ_DOCUMENT.

IF vbak-audat IS INITIAL.

vbak-audat = vbak-erdat.

ENDIF.

IF vbuk-abstk = 'C'.

MESSAGE i000(fb) WITH

'Document is Completely Rejected'.

ENDIF.

ENDFORM.

Read only

Former Member
0 Likes
752

Hi

That exit is triggered at the beginning, when the system read the data before showing them.

You can use it to read your additional table or inizialize some variables used in another exits.

Max