Display attachments through WebDynpro Abap
Hi all,
I am currently working on the Generic Object Services and I manage to create attachment and retrieve them. however I can't find how to display attachments into a WebDynpro interface.
The context:
I have two applications which communicate with RFC:
- The first application is the business application. It contains some RFC functions to handle data, business objects and attachments. This application is under SAP R/3 4.6.C environment and attachments are stored via GOS linked to standard transactions (VA03 / CV03 / IW53).
- The other application is a WDA interface for the final users which calls, via RFC, the functions implemented in the first application. This application is under SAP R/3 ECC6.0 environment.
The goal:
I would like to implement the possibility to display some documents (PDF, DOC, XLS) stored with GOS in the first application (SAP R/3 4.6.C) via the web application (SAP R/3 ECC6.0). To do this, I will use RFC functions but I don't know the functions/methods I have to call to perform this process.
Does someone know the information that I need? Please do not hesitate to ask me should you need further information.
Many thanks.
Hi.,
For Displaying PDF use interactive form UI and bind data source to context attribute. Now set the downloaded data from RFC to the context attribute. It will display the PDF.,
let the experts reply for ur query..
Thanks & Regards
Kiran
Similar Messages
-
How to handle unsaved data in portal through webdynpro ABAP ?
Hi Experts ,
I need to handle unsaved data in SAP Enterprise Portal through webdynpro for ABAP . I got a sdn link which explained some code for this..
http://help.sap.com/saphelp_nw70/helpdata/EN/45/b76f4169e25858e10000000a1550b0/frameset.htm
I tired to implement this in EXIT method of the view. but im not able to get this . Can any one help me in this ? .
Regards ,
Kalpana .Hi ,
Yes i have checked the code . But the example itself not working when i linked the same with portal . If EXIT is not the right method , Can you help in placing the code in right method ? The code i pasted in EXIT method is
data L_COMPONENTCONTROLLER type ref to IG_COMPONENTCONTROLLER .
data L_API_COMPONENTCONTROLLER type ref to IF_WD_COMPONENT.
data L_PORTAL_MANAGER type ref to IF_WD_PORTAL_INTEGRATION.
L_COMPONENTCONTROLLER = WD_THIS->GET_COMPONENTCONTROLLER_CTR( ).
L_API_COMPONENTCONTROLLER = L_COMPONENTCONTROLLER->WD_GET_API( ).
L_PORTAL_MANAGER = L_API_COMPONENTCONTROLLER->GET_PORTAL_MANAGER( ).
call method L_PORTAL_MANAGER->SET_APPLICATION_DIRTY_FLAG
exporting
DIRTY_FLAG = ABAP_TRUE . -
Calling transaction through webdynpro abap applicatoin
hi,
Is it possible to call an EWT transaction or an transaction from a webdynpro abap application.
Regards,
DivyaThe example demo listed works under special circumstance ONLY.
Logon to SAP.
At main menu add a favourite of type WDA.
Choose application wdr_sapgui_demo1 .
Now run demo.
The WDA app appears inside an SAP GUI screen.
Now the when the runtime API call the sapgui manager, a handle to the GUI is available.
The new transaction can now be fired. EG navigate away to new transation.
If the GUI is not already active you have another issue.
I suggest you search the forum for the use of SAPGUI shortcuts and other
such tricks . There has been a few topics and solutions discussed.
Cheers
Phil. -
Displaying Smartforms in Webdynpro ABAP
Hi All,
I have to display smartforms in WDA. For that I'm using following link.
[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0de1eb8-0b98-2910-7996-8a3c2fcf6785?quicklink=index&overridelayout=true]
Now, in my case --
Form Name - 'ZFORM'
Importing Field - 'VBELN'
But, my problem is I'm unable to understand some of the fields, used in Tutorial in the link above, which are --
element_zinput
pernr = stru_input1-zpernr
reinr = stru_input1-zreinr
pdvrs = stru_input1-zpdvrs
I can understand that these must be user-defined. But, it has not defined in tutorial and hence, I'm confused.
Can anyone tell me what are these fields and from where are these coming?
Thakns.
Kumar Saurav.hi:Thomas
I have a requirement which smartform convert to pdf in web dynpro for abap ,But garbled for the Chinese.why is this?
my code:
method ONACTIONPDF2 .
DATA FM_NAME TYPE RS38L_FNAM.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZTEST_WDA'
IMPORTING
FM_NAME = FM_NAME
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
DATA: JOB_OUPUT TYPE SSFCRESCL,
LT_OTFDATA TYPE TABLE OF ITCOO.
DATA: LA_CTRL_FORM TYPE SSFCTRLOP,
LA_OUTPUT_OPT TYPE SSFCOMPOP.
** Spool Parameters
*LA_OUTPUT_OPT-TDIMMED = 'X'.
*LA_OUTPUT_OPT-TDDELETE = 'X'.
*LA_OUTPUT_OPT-TDLIFETIME = 'X'.
*LA_OUTPUT_OPT-TDDEST = 'LOCL'.
* Parameters passes to get the output in PDF format
LA_CTRL_FORM-NO_DIALOG = 'X'.
*LA_CTRL_FORM-PREVIEW = 'X'.
LA_CTRL_FORM-GETOTF = 'X'.
LA_CTRL_FORM-LANGU = '1'.
*LA_CTRL_FORM-DEVICE = 'PRINTER'.
LA_OUTPUT_OPT-tdprinter = 'PDF1'.
CALL FUNCTION FM_NAME
EXPORTING
CONTROL_PARAMETERS = LA_CTRL_FORM
OUTPUT_OPTIONS = LA_OUTPUT_OPT
IMPORTING
JOB_OUTPUT_INFO = JOB_OUPUT
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
REFRESH LT_OTFDATA.
LT_OTFDATA[] = JOB_OUPUT-OTFDATA[].
CALL FUNCTION 'SSFCOMP_PDF_PREVIEW'
EXPORTING
I_OTF = LT_OTFDATA
EXCEPTIONS
CONVERT_OTF_TO_PDF_ERROR = 1
CNTL_ERROR = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
DATA: L_DUMMY TYPE STANDARD TABLE OF TLINE,
PDF_DATA TYPE XSTRING,
PDF_SIZE TYPE I.
CLEAR: PDF_DATA, PDF_SIZE.
* convert otf to pdf
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = 255
IMPORTING
BIN_FILESIZE = PDF_SIZE
BIN_FILE = PDF_DATA
TABLES
OTF = LT_OTFDATA[]
LINES = L_DUMMY
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
OTHERS = 4.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
WDR_TASK=>CLIENT_WINDOW->CLIENT->ATTACH_FILE_TO_RESPONSE(
* *path to the word file
I_FILENAME = 'WDA_SMARTFORMS.pdf'
* String Variable
I_CONTENT = PDF_DATA
* File Type
I_MIME_TYPE = 'PDF' ).
endmethod.
image1 for smartforms
image2 for pdf -
To upload a excel file to dB table through webdynpro ABAP
HI,
I am unable to upload a excel file directly by using func module "HR_KR_XSTRING_TO_STRING".
If file is in tab delimited then only, I am able to upload.
Suggest me if there are any other options to upload a excel file.Hi,
The below link gives you an explanation of how you can upload an excel file to web dynpro.
http://www.****************/Tutorials/WebDynproABAP/Upload/Page1.htm
Kindly read go through the below link, as this issue have been brought up before
http://forums.sdn.sap.com/thread.jspa?threadID=1831838
Thanks and regards.
Edited by: Suraj Ravindran Nair on Feb 24, 2012 6:24 AM -
Display Word Document in ABAP WebDynpro
Hi All,
We have a number of word documents stored in the Business Document Navigator (Transaction OAOR) that we would like to display within a simple ABAP WebDynpro. Demo program SAPRDEMO_FORM_INTERFACE shows how to retrieve a document from BDS via class cl_bds_document_set. However, I am not seeing a similiar program for ABAP Web Dynpro.
I was hoping that WebDynpro test application IOS_TEST_SIMPLE_MS would do the trick; however that appears to only work for a MIME repository object. Is there a way to display these documents through ABAP WebDynpro? Can anyone point me to a sample program? Thanks.
JohnHi John
Have a look at this thread [ Approach content repository other way then URL approach |Re: Approach content repository other way then URL approach;.
Thomas Jung delivers some (as always) excellent answers to a very similar problem. If the document is in DMS or BDS really doesn't matter so if I were you I would follow the "cached response" path.
Also, do a google-search for -- abap "cached response" -- and you will find some additional links here (Thomas has even more to offer...).
If you do follow this path please share some details as a follow up in this thread for the benefit of the community at large.
Regards, Johan -
How to display summation of a field in table displayed in Webdynpro ABAP
Hi,
I am displaying a table in Webdynpro ABAP. This consists of data for different PERNRs.
I need to display the sum of a particular column for each PERNR, after the end of each PERNR data. (table sorted by PERNR).
Is there any way to display this in the table? If so then please let me know.
Regards
Moderator message: wrong forum, please have a look in the "Web Dynpro ABAP" forum.
Edited by: Thomas Zloch on Mar 7, 2011 9:20 AMHello,
I believe you have created the query in SQ00.
Go to SQ00.
Select your Query.
Click on Change
On the Top Left Hand Corner, you will find "BASIS MODE"
Click on the Basis Mode Button
Once you click on Basis Mode Button, you will get "Title"
Change the title what you are intended to change.
SAVE the entries.
Execute the Query.
You will be able to see new Heading on the Query.
Hope this helps you.
Regards,
Ravi -
Calling smartform and displaying ALV grid in ABAP WEBDYNPRO
Hi all,
I am new to ABAP web dynpro.I ahve few custom reports which are simple ALV list reports which I now need to convert to ABAP web dynpro application .
For one particular report,based on the selection screen input,I need to display the ALV list and when I select the records from the ALV list,I need to call a smartform on clik of a push button.
My questions:
1. Im using 'REUSE_ALV_GRID_DISPLAY' FM to display the o/p in my report.Is there any similar FM in webdynpro ABAP which will display my list in ALV GRID in my web dynpro application??/
2. How to call a smartfrm in ALV grid in web dynpro??
Edited by: abap_1000 on Jan 9, 2011 6:09 PMHi,
You can search SDN, there are several posts available. Just to get some idea, you can check --
[Beginneru00B4s questions on WDA ALV;
[Reg ALV Display;
For clicking event on ALV --
[Reg Row Data fetching on click in ALV;
For ALV display on WDA --
[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/101df93f-4b5c-2910-14aa-9eb0338c2110?quicklink=index&overridelayout=true]
Thanks.
Kumar Saurav. -
How can we display photo of particular person on webdynpro abap view
hello gurus,
i am very new to webdynpro abap.i have one requirement.could any one can suggest me to overcome my requirement.
in my requirement i have one view.in that view i need to display one photo image which ever saved on my desktoop.if i click on save button i should generate one doc number and update what ever the photo image i have displayed in the view against this doc number.after some time if give the doc number in to docnumber field and click on display button it should display what ever the photo we have saved previously against this doc number.this is my exact requirement.i think for this we need to maintain one Z table to stroe the photo and respective doc.number.for this how can we stroe photo against doc number in ztables.what is the type i supposed to give for photo image field.
could you please any one suggest me on this and could any one send me the sample code if possible.
regards,
babu.Hello Babu,
I doubt whether you can directly display the image from your desktop into the webdynpro application using Image UI Element. Only solution what I can think of is to load the image into the MIME folder and then bind the path of image in the Source property of the image UI element. But if you ask me this is not a good solution. Let me propose my solution. If no one get back to issue with better approach then you can follow the same
1. whenever the image the is uploaded from the desktop, create this image in the MIME folder ( you search in SDN for creating objects in MIME folder )
2. then bind the path of the image in Mime folder to the Source property of the Image UI Element
3. Once the image is persisted in the DDIC table, delete the image from the MIME folder.
4. to persist the image in DDIC table, create an attribute of type RAWSTRING.
5. Whenever you want to display image from DDIC table into the UI, then again create the image in MIME folder and delete the image from MIME folder when you are existing from the application.
Alternative would be to use the Mime repository for storing the image and in the DDIC table just maintain the Mime folder path for the document number.
Hope this helps you.
BR, Saravanan -
Display pdf file using webdynpro abap
Hi Friends,
My requirement is to display pdf file in the second page with the input text entered in the fisrt page when clicked on action
button( in the first page) using webdynpro abap.
Can anybody explain the step by step procedure as I am new to this area.
Thanks in advance.
Reagrds,
NagarajuHi,
Check this.,
Creating a PDF file in webdynpro abap.
Web Dynpro ABAP display pdf
hope this helps u.,
Thanks & Regards
Kiran -
Standard program to display which tables are used by Webdynpro ABAP program
Hi Gurus,
I am working on a couple of enhancements in SAP Promotion Management for Retail (SAP PMR) which works on the principle of Floor Plan Management.
I was wondering if anyone would know of a standard program to display the tables used by Webdynpro ABAP?
(or)
Where can I get info of SAP Tables associated to SAP PMR?Hi,
I am not aware of any standard reports that displays the tables.
If I have to view the tables, I would go to se80, give the package and view all the tables in the package.
Regards,
Daz. -
Regarding Tree structure display in Webdynpro ABAP
Hi Experts,
I am very new to webdynpro ABAP , I was asked to implement some functionalities of RWBE transaction in webdynpro , in RWBE transaction list can be displayed as Tree structure , in webdynpro how i can implement this ? using ALV UI element is it possible . Please help .
Regards,
Ratheesh BSHi ,
I need an output like the below
<material number a1 a2 a3
< plant b1 b2 b3
. org c1 c2 c3
<material number A1 A2 A3
is it possible to show the output as in this format using ALV ?.
I have tried with the help provided by SDN , but not succeed .
also i need to capture double click event and show the currosponding result in a seperate view.
here material number is the parent node , plant and org were child nodes
Regards,
Ratheesh BS
Edited by: Ratheesh Bhaskaran on Oct 7, 2008 4:22 PM
Edited by: Ratheesh Bhaskaran on Oct 7, 2008 4:26 PM
Edited by: Ratheesh Bhaskaran on Oct 7, 2008 4:29 PM -
Display RSS flows in WebDynpro ABAP
Hi,
I was surprised that my search in this topic on "RSS" did not return any result.
I need for a customer to develop a couple of WebDynpro ABAP screens (without any portal) and to display information coming from a RSS flow inside these WD4A screens.
Any idea how to achieve this, standard solution preferred or via custom coding?
Thanks
YannYour question isn't really Web Dynpro ABAP centric. The process to consume and parse the RSS is indepent of the use of classic dynpro, BSP, or Web Dynpro ABAP as the UI. You are probably just going to use the CL_HTTP_CLIENT class to make the HTTP call from ABAP and then parse the RSS with XML or an XSLT. Brian McKellar wrote a nice blog on this some time ago.
/people/brian.mckellar/blog/2004/06/25/bsp-programming-rss-httpclient-xml-xslt
He does his output in BSP, but that part can easily be adapted to Web Dynpro. -
Webdynpro ABAP - ALV how can i display Total of Column
Hi friends,
Webdynpro ABAP - ALV how can i display Total of Columns.
Please tell me any metod is there or any solution.
Thanks,
Kumar.Hi
You can take help of following code snippet to create totals for a particular column
Data: lr_function_settings TYPE REF TO CL_SALV_WD_CONFIG_TABLE.
DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings,
lr_column TYPE REF TO cl_salv_wd_column,
lt_column type salv_wd_t_column_ref,
ls_column type salv_wd_s_column_ref.
Data: lr_field_amnt type REF TO CL_SALV_WD_FIELD.
* get reference of ALV component
lr_salv_wd_table = wd_this->wd_cpifc_OVERVIEW_EARNED_ALV( ).
wd_this->alv_config_table = lr_salv_wd_table->get_model( ).
* get function settings
lr_function_settings ?= wd_this->alv_config_table.
* display columns in correct order
lr_column_settings ?= wd_this->alv_config_table.
lt_column = lr_column_settings->get_columns( ).
loop at lt_column into ls_column.
CASE ls_column-id.
when 'AMOUNT'
* aggregate field
CALL METHOD LR_FUNCTION_SETTINGS->IF_SALV_WD_FIELD_SETTINGS~GET_FIELD
EXPORTING
FIELDNAME = 'AMOUNT'
RECEIVING
VALUE = lr_field_amnt.
* create aggregate rule as total
CALL METHOD LR_FIELD_AMNT->IF_SALV_WD_AGGR~CREATE_AGGR_RULE
EXPORTING
AGGREGATION_TYPE = IF_SALV_WD_C_AGGREGATION=>AGGRTYPE_TOTAL
RECEIVING
VALUE = lv_aggr_rule.
endcase.
Regards
Manas DUa -
WebDynpro ABAP iview display problems
Hi everybody,
I am new to Portal and need some help with the display of a webdynpro iview in the portal. We use portal 7.0 and wish to insert a new webdynpro iview for ABAP in the portal. The webdynpro application displays well the first time, clicking on all options within the applications returns everything as intended and everything looks great. However the second time when we click on a particular option in the application, some icons do not get displayed.
It is as if the second time the iview gets the contents from cache or something. We switched off all cache options within the iview, but it doesn't seem to have any effect.
Has anyone had any experience with this? Does anyone know the solution?
Thank you.
VedadHi Vedad,
can you tell us your portal and R/3 ERP version?
Read the following notes :
979479, 1033496, 970850, 1052625
Also :
Re: wda stylesheet via sap-cssurl parameter
Brad
Maybe you are looking for
-
Works in 1.4 but not in higher versions.
Hello. I am sorry to bother you with this but I am pulling the last of my hair over it. I have received a buch of java scripts, and I can compile them with NetBeans. When I run it pointing to the JRE 1.4.2_14 I can use the application. But when I run
-
Error in Prepare to install minimal configuration phase.
Hi experts, AM installing CRM 7.0 SR1. i finished installing ABAP stack. now installing JAVA stack on the same database (MCOD) Now in the Phase : Prepare to install minimal configuration, its showing error : "Java process dispatcher o
-
I ordered a Droid X at a Verizon and store on 7/30, and the woman who works there told me to expect it to ship about the 6th. So should I go by that or the date on verizon's website.
-
Firefox is now not extending to full screen upon start-up
Firefox used to open msn homepage completely to the edges of our computer screen, excepting browser .. now.. inexplicably, it leaves a border of desktop background showing. We wish it to return to previous format. (?) == This happened == Every time F
-
Monitoring audio during record session
I'm using Soundbooth (CS4) to digitize LP's on my Mac using an Audio Technica AT-LP120 USB turntable. I'm able to capture the audio in Soundbooth, but I'd like to be able to hear the audio during the recording session. I can't seem to figure out how