Application Development and Automation 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 only

attaching a file

Former Member
0 Likes
458

hi guys,

I have a zprogram which needs to have the feature such that we need to attach a file to it like in usual mail attachment style.for eg. go to t-code me22.click the icon services for object.then a popup comes where we can select 2 pushbuttons .create attachment and attachment list.i want these 2 functionalities in my zprogram.kindly provide me with a solution that will serve my purpose.i tried debugging the program but it dint return anything.

2 REPLIES 2
Read only

athavanraja
Active Contributor
0 Likes
417

just call this FM

call function 'SWU_OBJECT_PUBLISH'

exporting

objtype = 'REPORT'

objkey = sy-repid

exceptions

objtype_not_found = 1

others = 2.

(if in selscreen - call at selection-screen output or in the list call in start-of-selection)

Regards

Raja

Read only

Former Member
0 Likes
417

Hi

i am little bit confuse what you have mentioned in your question.

ME22- Change purchase order and there is no icon as services for object.

So i am unable to give you the details.Anyway if you want to debug the report then go to SAPMM06E and first look for your requirement and start debugging line by line and i am confirmed that you will get the solution.

Thanks

Mrutyunjaya Tripathy