Skip to Content
avatar image
Former Member

Attchments in Module Pool

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 20, 2008 at 05:06 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • avatar image
    Former Member
    Oct 20, 2008 at 05:19 AM

    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-ca0a48de5fb3

    Hope this helps.

    Regards

    Satish

    Add comment
    10|10000 characters needed characters exceeded