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: 

How to call a report program in an user exit program?

0 Kudos

Hello Experts,


My apologies if this question has been asked before, but I've searched for a few hours today and haven't found anything directly related to my question.  Thank you in advance for any help you may be able to provide!


I have created a user exit for Tcode IW32 (service order change) in which if the user click on 'save' button if the warranty is expired for particular equipments then it should show a error like

"warranty is expired". this error i am able to achieve. But, the exact requirement is like it should show list of all the equipments which are out of warranty in a separate screen if any expired equipment is exist in that particular service order.


pls help me how to acheive this.


Thanks,


6 REPLIES 6

former_member598305
Participant
0 Kudos

Hi,

When SAVE validate data and for error Try to implement screen by filling all your requirements(Messages) and call that screen when vlidatiob(error) fails.

Thanks

Sudhir

tharaka_fernando
Contributor
0 Kudos

This message was moderated.

raymond_giuseppi
Active Contributor
0 Kudos

Do not use a SUBMIT report, as you will (meanwhile) left the current internal session (and get back to it if AND RETURN is used)

So better do your coding in the customer-exit FM, you can add a dynpro to the Xxxx function group, just use customer range 9000-9999. Insure you don't get triggered too late (e.g. already in update-task or such case where an inplicit DB commit triggered by the dynpro display could cause some mess in database...)


NB: If you use a BAdI, so you could wrap the screen in one customer FM to display your screen (or use a docking container so no need of dynpro...)

Regards,

Raymond

tharaka_fernando
Contributor
0 Kudos

Hi Taseer,

Try with below Function Module;

POPUP_WITH_TABLE_DISPLAY

Former Member
0 Kudos

hii Taseer

you can call small screen containing fileds equipment ans description after selcting them in internal table with logic u have.

Sidhant-Acharya
Participant
0 Kudos

Hi

After validation you can gather all the equipment which are out of warranty into an internal table and a function module in you exit should be called with screen displaying the internal table.

Regards,

Sidhant Acharya