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: 

Attchments in Module Pool

Former Member
0 Kudos

Hey guys,

i need to implement attachments in my module pool program, can anyone help me with this scenario in step by step procedure with code...

Thanks,

Abhishek.

3 REPLIES 3

Former Member
0 Kudos

Hi Abhi,

Attachements means in what way you want to implement.

Its better to use SAP's inbuilt facility rather creating again.

Try to use txcode - SBWP for your attachments.

Or i can suggest you one more way wise with in your module pool program use "Call Transaction 'SBWP'".

Or else try to study program SAPLSINWP.

Cheers!!

Balu

0 Kudos

Hi balu,

well i want to introduce a browse button beside my field in the screen layout, from where i can call my file what i want.

or

can i directly display a hyperlink beside the field.

satsrockford
Active Participant
0 Kudos

Hi,

To attach documents this is the flow.

You must be saving the transaction no in a table.

This transaction no. must be a key field there. If not make it as key field.

After that, define a new business object using SWO1 transaction. Accept what ever it proposes and sounds correct.

Create table key field(your transaction no field) as Key field in this business object.

Now go to OAOR transaction and execute, enter the business object you created in class name, BO in class type and a transaction no. already existing in your table.

In the next popup say Ok.

Here you can add attachments in the create attachments on the lower left tab.

Now go to FM GOS_EXECUTE_SERVICE in R/3 and execute with this details..you can see what you have attached.

If you are in Solution Manager or CRM system then you have different FM which is better. Unfortunately that is not there in R/3.

what you can do is make a BDC recording such that it takes the transaction no. from your module pool and lands directly in attachment screen where user can attach attachments directly.

Now go to FM GOS_EXECUTE_SERVICE in R/3 and execute using same transaction no. you will get to see the attachments.

Let me know if its not clear.

chk this link

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0e6b0d95-0a01-0010-4696-ca0a48de...

Hope this helps.

Regards

Satish