Application Development 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 header text before saving delivery during creation

Former Member
0 Kudos

Dear All,

Could you please suggest, how to read the header text before saving the delivery during creation.

Regards,

2 REPLIES 2

former_member191735
Active Contributor
0 Kudos

I dont think you can do it before saving the delivery but you can after saving the delivery.

Check out the program MV50AFZ1 - There are two user exits "userexit_save_document" and "userexit_save_document_prepare" .

To read the text (as far as i know), you will need the document number (user READ_TEXT function module).

Document number is not available in user exit "userexit_save_document_prepare" but it is available in "userexit_save_document" .

I dont know what is your requirement but you can choose from the above options. You can read the text from save_document user exit but the delivery was already saved.

good luck

Former Member
0 Kudos

HI,

use the READ_TEXT function module, pass the required parameters by getting the same from the header of the text....

Thanks,

S.