How to add attachments to Webdynpro Application?
Hi All,
I have a requirement wherein I need to add supporting documents to a Webdynpro application online. The attachments can be of any type and any number of attachments can be added. If any of you had worked in such a kind of requirement please give some inputs.
Thanks
Subathra
Hi,
i think we can't add an attachment here rathere we can upload the file to to applicarion server
you can do as below
1. create a file upload UIElement.
2.capture the file name in to context element
3.use the following code on your action
DATA: it_bdcdata TYPE TABLE OF bdcdata,
wa_bdcdata TYPE bdcdata,
it_messtab TYPE TABLE OF bdcmsgcoll,
wa_messtab TYPE bdcmsgcoll.
DATA: MSG_TEXT(200) TYPE C.
PERFORM BATCH_INPUT.
CALL TRANSACTION 'CG3Z'
USING IT_BDCDATA
MODE 'A'
UPDATE 'S'
MESSAGES INTO IT_MESSTAB.
LOOP AT IT_MESSTAB INTO WA_MESSTAB.
CALL FUNCTION 'FORMAT_MESSAGE'
EXPORTING
ID = WA_MESSTAB-MSGID
LANG = WA_MESSTAB-MSGSPRA
NO = WA_MESSTAB-MSGNR
V1 = WA_MESSTAB-MSGV1
V2 = WA_MESSTAB-MSGV2
V3 = WA_MESSTAB-MSGV3
V4 = WA_MESSTAB-MSGV4
IMPORTING
MSG = MSG_TEXT
EXCEPTIONS
NOT_FOUND = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
WRITE:/ MSG_TEXT.
ENDLOOP.
*& Form BATCH_INPUT
text
--> p1 text
<-- p2 text
form BATCH_INPUT .
PERFORM bdc_dynpro USING 'SAPLC13Z' '1020'.
PERFORM bdc_field USING 'BDC_CURSOR'
'RCGFILETR-FTFTYPE'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=EIMP'.
PERFORM bdc_field USING 'RCGFILETR-FTFRONT'
*HERE PASS YOU FILE NAME .
PERFORM bdc_field USING 'RCGFILETR-FTAPPL'
HERE PASS THE FILE NAME ON THE APPLICATION SERVER
PERFORM bdc_field USING 'RCGFILETR-FTFTYPE'
'BIN'.
PERFORM bdc_dynpro USING 'SAPLSPO1' '0300'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=YES'.
perform bdc_dynpro using 'SAPLC13Z' '1020'.
perform bdc_field using 'BDC_OKCODE'
'/EECAN'.
endform. " BATCH_INPUT
*& Form BDC_DYNPRO
text
-->P_0112 text
-->P_0113 text
form BDC_DYNPRO using program
dynpro.
*Fill internal table with program name and screen number
CLEAR WA_BDCDATA.
WA_BDCDATA-PROGRAM = PROGRAM.
WA_BDCDATA-DYNPRO = DYNPRO.
WA_BDCDATA-DYNBEGIN = 'X'.
APPEND WA_BDCDATA TO IT_BDCDATA.
endform. " BDC_DYNPRO
*& Form BDC_FIELD
text
-->P_0117 text
-->P_0118 text
form BDC_FIELD using fnam
fval.
CLEAR WA_BDCDATA.
WA_BDCDATA-FNAM = FNAM.
WA_BDCDATA-FVAL = FVAL.
APPEND WA_BDCDATA TO IT_BDCDATA.
endform. " BDC_FIELD
Thanks,
Shaik Shadulla.
Similar Messages
-
How to add attachments in pdf -URGENT
Hi All,
I need information about how to add attachments to pdf in webdynPro. I am unable to find related topics in Forums. Sample code,examples,or suggestions would be helpful.
Thank you
Regards
RaviHello Ravi,
Please take a look at: Add attachments to the Interactive form of a Web dynpro application
Please take a look at my reply there on Mar. 29, 2007. I am not sure but i assume that you are using Web Dynpro for Java. Attachment capability is available with NW04s SP10 (both runtime and NWDS). Although, SP09 contains the required web dynpro runtime changes but the API has only been made part of SP10. Follow the note numbers provided therein.
Best Regards,
Krish -
How to add image to webdynpro screen . ?
How to add image to webdynpro screen . ?
hi,
right click ur application and then click on create mime object.
with Mime Objects u cn upload doc , jpeg, or giff files from our local system into the webdypnpro system .
You can even try creating the MIME objects in webdynrpo abap .
Right click on ur component->mime object->import
after importing you can see that image into your component as MIME object .Now insert a UI element image into your view layout .
Go to the source property of IMAGE element and select F4 option , u will find a window is opening with some tabs
Select tab COMPONENT IMAGES and component name select your component .
You will find the image which you have imported into this section just select the image and save it.
In the transaction sicf/bc/webdynpro , u cn check your component name there you can view the mime objects created by you .
also refer the SAP online help :
http://help.sap.com/saphelp_crm50/helpdata/en/46/bb182fab4811d4968100a0c94260a5/content.htm
to knw more abt mime repositories.
http://help.sap.com/saphelp_nw04/helpdata/en/f3/1a61a9dc7f2e4199458e964e76b4ba/content.htm
regards,
Amit -
How to add push button in application tool bar in SAP transaction VA01
How to add push button in application tool bar in SAP standard transaction VA01 and how to implement the code for that function code.
There is no scope to create a push button in application tool bar. Instead of that we can add in a menu bar.
-
How to add log to an application
Hi,
Can anyone give me the procedure for how to add logs to my application
Regards
PadmaPadma. My understanding is that logging is the same way in Web Dynpro as in a normal J2EE app.
Maybe this section in sap.help will be of use to you.
http://help.sap.com/saphelp_nw04s/helpdata/en/fe/4f5542253fb330e10000000a155106/frameset.htm
I haven't personally used SAP's logging because we ported our apps from WebSphere and we were already using log4j. We evaluated SAP's logging and didn't find that the work involved to switch or bridge log4j to SAP's logging was worth it.
Good luck -
How to add attachments to seeded sshr workflow process
Hi all,
i have a requirement to send an offer letter as an attachment after the final approver
clicks on approve button , ideally the requester is supposed to receive a notification of approval and
a pdf offer letter as an attachment.Currently am not using a custom workflow but the seeded HRSSA workflow item type
and the process am using is HR_SIT_JSP_PRC this requirement is urgent any help will be appreciated .
thanks in advance.Hello Ravi,
Please take a look at: Add attachments to the Interactive form of a Web dynpro application
Please take a look at my reply there on Mar. 29, 2007. I am not sure but i assume that you are using Web Dynpro for Java. Attachment capability is available with NW04s SP10 (both runtime and NWDS). Although, SP09 contains the required web dynpro runtime changes but the API has only been made part of SP10. Follow the note numbers provided therein.
Best Regards,
Krish -
Hi All. Well i want to attach a any pdf/pic etc while replying to any mail. But i could not find any option for the same. Moreover if i want to attach any pdf ( not via ibook or any paid app ) how can i attach ?
Hi,
As per the information which you mention above,
You want to add attachments to appointment.
Please follow these steps to set a attachments as an appointment: -
Step 1: - In
Outlook 2007, click File>New>Meeting Request (or Appointment).
In
Outlook 2010 and 2013, click the New Items>Meeting (or Appiontmet).
Step 2: - In
Insert tab three buttons are available to attach files.
Note: - Insert individual files as attachments
Step 1: - If you want to attach individual files or documents in your meeting invitation or appointment:
Click on
Insert>Attach File.
Step 2: - In the next window, select the documents that you want to attach, and click
Insert button.
Step 3: - After that, you will see that the selected files are attached to the body of meeting invitation or appointment.
Note: - Attach Outlook items in your meeting invitation or appointment
Step 1: - If you want to add Outlook items like: task, notes, email, and so on then
Click
Insert>Outlook Item.
Click to open an Outlook folder in the
Look in box.
Select the item in the Items box that you will attach.
Specify one of attaching patterns in the Insert as a section.
Click Ok.
I hope this information will be helpful for you. Correct me if the information that I am having is wrong.
Thanks and regards
Ashish@V -
How to add attachments to Custom Stationary, having problems.
I created some custom stationary by saving a page created in iWeb ,published, then choose the option -- save as stationary. All is well, I can select my custom staionary and enter text and send a message fine, but.... when I try to add an attachment none of my text stays and some of my stationary just disappears (images et al) my attachment is there and can be mailed ok.
I just cut and paste html and don't really understand coding but i think it may be the way my page is saved. Or... can attachments not be sent in stationary without messing up the file?
Pointers or help is appreciated.
ThanksHello Ravi,
Please take a look at: Add attachments to the Interactive form of a Web dynpro application
Please take a look at my reply there on Mar. 29, 2007. I am not sure but i assume that you are using Web Dynpro for Java. Attachment capability is available with NW04s SP10 (both runtime and NWDS). Although, SP09 contains the required web dynpro runtime changes but the API has only been made part of SP10. Follow the note numbers provided therein.
Best Regards,
Krish -
How to add attachments to a mail
Hi experts!!
I've been looking for a solution of the problem that I have through this forum but I haven't found anything that I can use in order to add attachments documents to the e.m.a.i.l.
I'm trying to add a file using the followings FM, LIST FROM MEMORY, TABLE COMPRESS but when I go to SCOT transaction the file attached is empty... I don't really know how to use this FM, I think my problem is that I can't attached correctly the table in memory and when I call List_FROM_MEMORY FM, it doesn't receive anything... is there any place where I have to put the path where the file is?
I'm using the FM SO_OBJECT_SEND in order to send the mail
Thanks in advance,
Best Regards,
RebecaHello Rebecca,
i would use the FM "SO_DOCUMENT_SEND_API1". There are quite a lot of Explanations how to use this FMs in the Internet. I would almost say this is the FM you got to use. =) Just google around and you'll find some good examples.
Greetz Gollmer
Update:
Here is some Explanation where you can see how to extract binary data from a File:
[http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3d42358411d1829f0000e829fbfe/content.htm|http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3d42358411d1829f0000e829fbfe/content.htm]
Edited by: GollmerBZ on Mar 29, 2011 4:41 PM -
How to create iview from webdynpro application abap
hi ,
i have built webdynpro Application ABAP with adobe interactive form in it. i want this as part of the page in portal .
Can you point me how to do it ...some resources .
thank you
chandra.Hi,
Logon to portal, Content Administration->Portal Content and by right clicking, select New iView. In the "Template Selection" select SAP Web Dynpro iView. In the 2nd step, give the name and id of the iView. In the 3rd step you have the option to select either 'Java' or 'ABAP'. In your case select ABAP.In the 4th step, select the System and supply namespace and application name of your Web Dynpro ABAP Application. Click and Next->Finish. Now you will find the iView for your web dynpro ABAP application.
A doc on integrating web dynpro appl in portal,
http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0c7b2f25-0c01-0010-f2a2-f8a65a9dcad9
Hope this helps.
Regards,
Srinivasan T
<b>Helpful answer=>points</b> -
How to add dll library to application?
I start programmed the CVI a few weeks ago and I have a little problem. I must make an application layer for profibus master device. However I total do not know how to add dynamic library to program, because in another way I get the error: undefined symbol. I know that it very trivial, but I cannot find solution. I have a lib file and also I include file about device, but I still get the error – undefined symbol – can you help me?
Thanks very much for any advice or helpDear laszku,
Are you looking for solutions to connect your CVI application with PLC? Because there are also solutions for that which are easy to use, and to implement with CVI.
If you want to use your DLLs, there are some on-line help, how to import them in CVI.
Basicaly there are two different method to import DLLs:
- static import, when you import the library in your CVI project. The dll will be loaded when the exe starts running. If there is an issue to load the library, you'll be able to get the error at compilation time.
- dynamic dll import, when you load the library at run-time. With this, you get the flexibility to control, when will be the dll linked to your exe in the memory, while running. The disadvantage is, you'll get errors only at run-time.
I recommend you some of our on-line tutorial, how to load DLL into your application in CVI:
CVI Help: Loading Dlls - This says: You cannot import DLLs directly into your project. You need to create DLL Import Library, which can be imported into your project.
To do so, look at this knowledge base: Creating Import Libraries for a DLL in LabWindows/CVI
You might get answers for your following questions at this FAQ page:
FAQ: Using Dynamic Link Libraries with LabWindows/CVI
Some help sites:
Rules for Using DLL Files
Linking to Functions Defined in a DLL From LabWindows/CVI
If you need dynamic linkink, you can get example code with this site:
How Can I Access DLL Functions in a LabWindows/CVI Program Without Including the Import Library in t...
I hope, I could help you to find the way how to import DLL libraries.
If you still couldn't solve the error after studying the links, please provide me more information, where, which symbol is missing, and also the full error message.
The error you get, can be caused by the linker or pre-compiler also, which doesn't find the symbol you requested. Please check the path of your library and dll also.
Best Regards,
Tamas Szekely
Applications Engineer
National Instruments -
How to modify the deployed webdynpro applications
Hi,
I need to modify a deployed webdynpro application.
How to do this?
RamHi
use this link to modify ur EAR file
http://help.sap.com/erp2005_ehp_03/helpdata/EN/c6/cbcad44c54479c8f1bf9683edb2d30/frameset.htm
Thanks -
How to add a module in application
Hi All,
I want to add a new module in application. In Database it is OK. But in application i upload the new module in prodappl folder. But how to set his TOP Plse suggest.
Many Thanks
GhanshyamHello,
What is the database and applications versions?
Additionally please see the following threads;
https://metalink.oracle.com/metalink/plsql/f?p=200:27:4314145935944948375::::p27_id,p27_show_header,p27_show_help:199619.995,1,1
Oracle Metalink: How to add a new module to existing 11i installation. Doc I.D. 199619.995.
https://metalink.oracle.com/metalink/plsql/f?p=200:27:4314145935944948375::::p27_id,p27_show_header,p27_show_help:230513.995,1,1
Oracle Metalink: install 11i all modules? Doc I.D. 230513.995.
https://metalink.oracle.com/metalink/plsql/f?p=200:27:4314145935944948375::::p27_id,p27_show_header,p27_show_help:645423.995,1,1
Oracle Metalink: how to install only needed products? Doc I.D. 645423.995.
Adith -
How to call transaction from webdynpro application
Hi Experts,
I have a web dynpro component zxx_comp.its corresponding web dynpro application zxx_app.
my requirement is , when i test the webdynpro application, i have to call a transaction zxx_txn corresponds to the module pool program zxx_pgm directly . How can i do that?
Regards
Ashwin KVHi Ashwin,
Use the following to open a T-Code from WD application.
CALL METHOD cl_http_server=>if_http_server~get_location
IMPORTING
host = lv_host
port = lv_port
out_protocol = lv_protocol.
DATA lv_url type string.
concatenate lv_protocol '://' lv_host ':' lv_port '/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction='zxx_txn' into lv_url.
DATA lo_window_manager TYPE REF TO if_wd_window_manager.
DATA lo_api_component TYPE REF TO if_wd_component.
DATA lo_window TYPE REF TO if_wd_window.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window_manager->create_external_window(
EXPORTING
url = lv_url
RECEIVING
window = lo_window ).
Regards,
Harsha -
How to access custom JAVA webdynpro application from an iPad?
Hi,
We are trying to access custom JAVA webdynpro application from an iPad, but nothing is opening up from the iPad browser.
What can be the possible reasons for this? Any kind of SICF enablement or opening up of ports in the network?
Any inputs are welcome!!
TIA,
Regards
DeepthiHi,
it is possible to show Java Web Dynpro applications on a mobile device in general, but the controls and the ui should be optimized for the mobile device.
Safari devices are not officially supported so far for Mobile Web Dynpro.
Supported are Windows Mobile devices and Blackberry devices. I also got some good results with Symbian devices.
You can find more inforamtion on Mobile Always Connected at:
ht[http://help.sap.com/saphelp_nwce711core/helpdata/en/7d/28fa3e7cb1d861e10000000a114084/content.htm|http://help.sap.com/saphelp_nwce711core/helpdata/en/7d/28fa3e7cb1d861e10000000a114084/content.htm]
Best Regards,
Stefan
Maybe you are looking for
-
Problems of MacPro 2010 Mixing 2gb & 1gb memory together
Actually my MacPro 2010 12-core was running 8x1gb sticks before. I just got 4 of 2gb sticks memory from a friend today. And I do have problem mixing them with the original 1gb sticks. Only plug 2gb sticks in Slot 1,2,5,6 - No Problem When I have 2 x
-
Reset my Lumia 620 through settings and now it's '...
I planned to give my Lumia 620 to my dad as I had recently upgraded to a 920. Thus I did a reset to make it feel as brand new as possible. Now, it's stuck at the 'cog cycle' for at least a day. What will the care centre do with it?
-
CacheConnect Support for Oracle Materialized View
Does TimesTen cacheconnect support caching Oracle Materialized views? It is my understanding that materialized views are really just Oracle tables under the covers.
-
Clone database from server to PC
Hi all, I am having the difficulty after clone the database from a hot backup from server. Both server & PC running at W2k OS and Oracle 8.1.7. Below are the steps what i am doing. 1)Take a hot backup from the server. 2)Create a folder \oracle\oradat
-
MAC -LR : BACKUP OF IMAGE DEVELOP SETTINGS? SAVE LOCATION
Where does LR store the setting information for each image that has been adjusted? (ON A MAC!) i have read somewhere it stores in some kind of .xmp file, however i think that refers to windows. I want to find the best way to ensure that my setting ar