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

Smartform pop-up

Former Member
0 Likes
541

Hi

When we call a smartform is it possible to get a pop-up to attach any file in output (a pop-up comes by which we can select path and then select any file say any pdf file). If possible please tell me which parameter to set.

Thanks and Regards

Aditya

4 REPLIES 4
Read only

Former Member
0 Likes
515

Are you sending form via mail?

or only giving print?

if you want to send it by mail then you can use FM

CALL FUNCTION 'F4_FILENAME'
   EXPORTING
     program_name        = syst-cprog
     dynpro_number       = syst-dynnr
*   FIELD_NAME          = ' '
   IMPORTING
     file_name           = pfile.

once you get file in your program than by using these FM

SO_DOCUMENT_SEND_API1          SAPoffice: Send new document with attachments using RFC 
SO_NEW_DOCUMENT_ATT_SEND_API1  SAPoffice: Send new document with attachments using RFC 
SO_NEW_DOCUMENT_SEND_API1      SAPoffice: Send new document                            
SO_OLD_DOCUMENT_SEND_API1      SAPoffice: Send existing document using RFC

you cant attach along with smartform and send.

Amit.

Read only

Former Member
0 Likes
515

hi

only want to print it.

aditya

Read only

0 Likes
515

am not sure how can you show your file along with smartform?

smartform layout is fix but your file may differ each time .i would suggest you to show the file via ALV.

Read only

Former Member
0 Likes
515

Hi

is there any possiblity to save my output to a particular path.

Aditya