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: 

Check header text whether is empty or not

Former Member
0 Kudos

I would lik to add a checking in userexit in PO when save the document, it will check the header text whether is empty or not, but the header text seems can't check the textbox directly, so how can i do that. Thanks!

2 REPLIES 2

Former Member
0 Kudos

Hi,

USe FM READ_TEXT. IF this returns sy-subrc = 4 then it implies there is no header text.

To use FM READ_TEXT you will need ID, NAme & Object. Toget it go to PO header text, you are interested in Double click on the right side so that it will go to the entry mode, then go to header & all thse key fields will be displayed at the top.

Regards

Raju Chitale

Edited by: Raju Chitale on May 7, 2008 12:01 PM

Former Member
0 Kudos

It seems cannot check in the process time, for example, when I create PO and enter header text, because the text has not yet stored in database, if i call the FM it should return 4. Thanks!