cancel
Showing results for 
Search instead for 
Did you mean: 

powl - how to attach invoice header level attachment in powl column field

former_member435508
Participant
0 Kudos

hi,

I have a powl to display invoice, SRM.

Now I need to attach header level attachment of each invoice - as an column - say 'ATTACH'.

I took it as 'LA' in field-cat.

Now in Handle Action -->

when 'ATTACH'

lo_window = lo_window_manager->create_external_window(

       title          = 'ATTACH'

       url            = http://srd-abap.ltc.com:8004/sap/ebp/docserver?phioget&KpId=005056B363

       modal          = abap_false

       has_menubar    = abap_false

       is_resizable   = abap_true

       has_scrollbars = abap_true

       has_statusbar  = abap_false

       has_toolbar    = abap_false ).


But its not working, I think create external window is only for webdyn & not for POWL.


Can you give me any idea ???

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Priya,

1. It is possible to open popup from POWL, you can use method IF_FPM=>OPEN_DIALOG_BOX( )

Opening and Closing FPM Dialog Boxes - Floorplan Manager for Web Dynpro ABAP - SAP Library

2. If you want to download the file upon click on a link, you may use:


cl_wd_runtime_services=>attach_file_to_response(

    i_filename      = <file_name>

    i_content       = <file_content>

    i_mime_type     = <mime_type>

    i_in_new_window = abap_true ).

Hope it helps. Cheers!

Answers (2)

Answers (2)

former_member435508
Participant
0 Kudos

Hey Thanks Nguyen.

Here - I already have file attached at invoice Header.

I need to open that file with click on powl - column. (which has 'LA' in field cat )

In Handle Action what need to do. ???

Is it possible to send url in  e_portal_actions- portal_path ???

former_member435508
Participant
0 Kudos

Is it possible to attach Documents in POWL ???

From anywhere url or local files anything....