before saving the PO so that user can decide whether to save the PO or discard it. What is the best way ?
Try using EXIT_SAPLEINS_001. It is entered during the saving operation of a PO. You can review the PO, present a popup dialog using one of the POPUP_* functions enabling the user to decide either to save or abort the PO. Q: PO item text is being adopted from the Material master. The text has got adopted status and is not stored in the text ID tables STXH and STXL. Hence print program is not able to print these texts. How can we solve this? A: Purchase order texts can be adopted from Info record or material master. All the texts finally gets stored in table STXH with different text application objects. Incase of PO header text it is EKKO and PO Item text it is EKPO. Even if the texts are adopted from either of these, there is a possibility that it can be altered at PO level. Here it will get stored with object EKKO or EKPO. There is no need to store this at PO level if there is no change made to the text at PO level,. Try these: Check for texts in EKKO or EKPO ( depending on header or i