05-07-2008 10:47 AM
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!
05-07-2008 11:00 AM
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
05-08-2008 3:12 AM
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!