Reg- Folder in ABAP Webdynpro
Hi Experts,
I Need to create Folder in View.How 2 create older in Webdynpro.
My Req is Once select file and Upload mean it will stored in Particular folder.At any time we can see that file.
Regards:
Prabu
HI,
I would suggest you to follow this approach :
1. Create a Table in your View in which FileUpload is there.
2. Populate this value with valid file extension.
3. Make it invisible by default.
4. Now when you have entered value in Fileupload and click on Ok button.
5. Check whether Mimetype matches any value in Table.
6. If it is invalid, Throw an error message and mke Table of Valid extension Visible.
Sample code to have Table with Valid entries.
types : begin of str,
valid_ext type string,
end of str.
data : wa type str,
itab type table of str.
wa-valid_Ext = 'EXL'.
append wa to itab.
wa-valid_ext = 'DOC'.
append wa to itab.
lo_nd->bind_Table( itab ).
here lo_nd is your ref to node of Table having valid extensions.
7. Bind this Table's Visible property wiht wdui_visiblity .
8. Set it Visible - 02 , Inviisible - 01.
I hope it is clear.
Similar Messages
-
Reg File Upload Object in abap Webdynpro
Hi Friends,
Would like to enquire one doubt in the file upload object in abap webdynpro.
By default when we press the browse button, near to the file name there is a button which shows the the file types like:
., *.html, ,gif,.jpeg etc.
Is there any way we can control that, as i have an requirement where in to upload only certain extension types.
thankyou.HI,
I would suggest you to follow this approach :
1. Create a Table in your View in which FileUpload is there.
2. Populate this value with valid file extension.
3. Make it invisible by default.
4. Now when you have entered value in Fileupload and click on Ok button.
5. Check whether Mimetype matches any value in Table.
6. If it is invalid, Throw an error message and mke Table of Valid extension Visible.
Sample code to have Table with Valid entries.
types : begin of str,
valid_ext type string,
end of str.
data : wa type str,
itab type table of str.
wa-valid_Ext = 'EXL'.
append wa to itab.
wa-valid_ext = 'DOC'.
append wa to itab.
lo_nd->bind_Table( itab ).
here lo_nd is your ref to node of Table having valid extensions.
7. Bind this Table's Visible property wiht wdui_visiblity .
8. Set it Visible - 02 , Inviisible - 01.
I hope it is clear. -
How to browse for a folder with ABAP WEB DYNPRO
Hi,
I want to browse for a folder in my local file system with ABAP
WEB DYNPRO. I am looking for a functionality which the function module
TMP_GUI_BROWSE_FOR_FOLDER gives.
Regards,
VinayHI Karl
Good evening, I am Maruti from London. I would like to paractise ABAP WebDynpro.I am not sure which Vesrion of SAP R/3 supports for ABAP WebDynpro applications. Can you please suggest me .
Thank you
Maruti
[email protected] -
Theme customization in ABAP WebDynpro
>server metnioned above : is it portal server and port details
No this isn't the portal server. If you are running in the portal then you don't need this approach at all. The iView will automatically take on the customized portal theme as long as you have maintained the portal support package level along with the backend ABAP AS SP level.
>and what is the <application> here in the url..
Your web dynpro ABAP application.
><folderOfYourCustomTheme>---here we need to give the folder name of our application in WebDynpro ABAP
No. The MIME folder where you stored your customized theme.Hi..
I tried this approach and also the approach mentioned in below link
[Re: How to call custom themes for Web Dynpro ABAP Application?;
still unable to get the solution.
I tried the method to run a report WD_THEME n upload the theme. getting version mismatch error.
Request some one to clearly explain the step by step process to use the custom themes in ABAP WebDynpro.
Regards,
Syed Umar -
Issue with new abap webdynpro INBOX EHP5
Hello Experts,
I'm currently working on the configuration of ESS/MSS services in EHP5. We are using different services like Appraisal OSA, Learning solution,etc. I already configured the Launchpad ESS, it's working fine but now I have an issue with the new Abap webdynpro INBOX. The employee and manager see their workitem notifications correctly in their respective inbox.(I'm calling application: IBO_WDA_INBOX that I integrated in my launchpad).
My problem is that when clicking on a workitem in order that it opens me the appraisal document (in edit or display mode), I got an error saying: "There is no iView available for system "": object "SWF_WIOBN". For more information, contact your administrator."
I did some search on SAP help without any results. I'm wondering how should I register workflow tasks? I saw there is a table called IBO_C_WF_TAS (I added entries e.g:
IBO_WDA_INBOX TS99700031 EXECUTEAPPRAISALDOCUMENT).
I tried also to register all my custom tasks in transaction SWFVISU.
example:
TASK: TS99700013
Visualization Type: ABAP Webdynpro
APPLICATION: HAP_MAIN_DOCUMENT
DYNPARAM : sap-wd-configId=HAP_AC_MAIN_DOC
NAMESPACE : sap
SYSTEM_ALIAS: SAP_Webdynpro_XSS (I did create a system in sap portal under System Administration with as AS property /webdynpro/dispatcher )
Could you let me know what could be wrong, what I missed? Shall I create an iView, if yes which one? which properties?
I would really appreciate any help.
Thanks!Hello Siddharth,
Thanks for you reply. Still the same issue. Following are the config I did till now:
In the PCD I created a new business object (SWF_WIOBN), an operation linked to the object (NAVIGATE).
I did create an iView (powl) in the custom folder, I integrated the operation within iView. I created a page that contains the iView.
In the properties of the iView I gave:
Application Name: HAP_MAIN_DOCUMENT.
Launch in New Window: "Display in separate Headerless Portal Window".
System: SAP_ECC_HumanResources
I added the required entries in tables:
IBO_C_WF_TTAS
IBO_C_WF_ACS
IBO_V_WF_TAC
IBO_V_WF_TTAC
etc...
I saw in the code of linked feeder class: CL_IBO_INBOX_FEEDER_WI that it's checking something called "Launch_Editor".. Is it a property that we can set somewhere?
Following are the parameters retrieved by system:
BO_NAME = SWF_WIOBN
BO_OP_NAME = NAVIGATE
LAUNCHER_PARAMETERS -> empty.??
BO_RESOLVE_MODE = USER_SET_OF_ROLES
LAUNCH_EDITOR empty where must be set?
At the end I still get the error:
There is no iView available for system "": object "SWF_WIOBN". For more information, contact your administrator.
Any advice,
Thanks in advance -
IE Script error when double clicking on a view in Abap Webdynpro component
Hello experts,
I am running mini SAP trial version 2004 with Internet explorer 7.0 and also installed gui patch 23.
I am making a sample application in SE80 and when double clicking on a view in Abap Webdynpro component I get following error:
<b>Internet Explorer Script Error</b>
An error has occured in the script on this page.
Line: 1
Char: 1
Error: 'wdp_show_menu' is undefined
Code: 0
URL: http://satellite5200:8000/sap/bc/wdvd/painting.html?_vdrespkey=EOJ6V1JQMX0VLTQ7AP6DQM64Y&_vdframe=painting&sap-client=000
Do you want to continue running scripts on this page?
Thanks in advance.
BhupendraHi Bhupendra,
If you are seeing this error in the Se 80 editor , i guess you can ignoire that ...While running the application it will not show any error.
Thanks
Anzy -
SOFM: Dsiplay method is not working when called from ABAP Webdynpro
Hi All,
I want to open an attachment from ABAP Webdynpro.
I have approached in this fashion:
1) Get the attachments as SOFM object key
2) On Click of a link on Webdynpro, I am calling a function module within which I am creating an instance of the SOFM object
3) Then I am calling the DISPLAY method
It is not opening.
But, if it opens when I driectly execute the function module. It open when I directly test the business object.
Any Idea ?
Thanks & Regards,
DebDisplay Method uses the Dialogue Module, You should not access such methods in web dynpro which are SAPGUI specific.
Web Dynpro Applications are run in Browser environment which cannot understand Dialog, it can understand only HTML.
Read the attachments and get the content and use FileDownload UI element to show it to user.
Abhi -
Error while trying to call a ABAP webdynpro appl. as a link on html form
Hi,
When I am trying to call a ABAP Webdynpro aplication as a link on html form. I get the following error
Error when processing your request
What has happened?
The URL http:///sap/bc/webdynpro/form_ap/ (Path of ABAP webdynpro application) was not called due to an error.
Note
The following error text was processed in the system DRD : Error in Web Dynpro Runtime System
The error occurred on the application server DRD_06 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: GET_REQUEST_INPLUG_PARAMETERS of program CL_WDR_CLIENT_APPLICATION=====CP
Method: INIT of program CL_WDR_CLIENT_APPLICATION=====CP
Method: IF_WDR_RUNTIME~CREATE of program CL_WDR_MAIN_TASK==============CP
Method: HANDLE_REQUEST of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP
Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
Module: %_HTTP_START of program SAPMHTTP
What can I do?
If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system DRD in transaction ST22.
If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server DRD_06 in transaction SM21.
If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 0 in transaction ST11 on the application server DRD_06 . In some situations, you may also need to analyze the trace files of other work processes.
If you do not yet have a user ID, contact your system administrator.
Error code: ICF-IE-http -c: 102 -u: -l: E -s: DRD -i: DRD06 -w: 0 -d: 20081002 -t: 032939 -v: RABAX_STATE -e: UNCAUGHT_EXCEPTION
HTTP 500 - Internal Server Error
Your SAP Internet Communication Framework Team
Any help will be greatly appreciated.
Thanks
RMRM,
url clearly shows that it is unable to get host and port.check how you are building that url in html page
Thanks
Bala Duvvuri -
Zci type ADOBE Interactive Form in ABAP Webdynpro short dump
Adobe Reader version 8.1.2
Life Cycle Designer version 7.1.4270.1.421766
ECC 6.0 patch 13
When I ran the 'FP_PDF_TEST_00' , it shows
Version Information: 710.20061024154505.342190
In my ABAP Webdynpro app., it has 3 inputfields.
In the Form layout, I changed the form layout type to 'ZCI' for interactive form, and Insert the WebDynpro Script.
And in the ABAP Webdynpro view layput designer, I enabled the pdf form element.
All objects compiled without any problem.
During the runtime, it got the following short dump:
21 METHOD CX_WD_GENERAL=================CP CX_WD_GENERAL=================CM003 5
CX_WD_GENERAL=>RAISE
20 METHOD CL_WD_ADOBE_SERVICES==========CP CL_WD_ADOBE_SERVICES==========CM008 193
CL_WD_ADOBE_SERVICES=>CREATE_PDF
19 METHOD /1WDA/LADOBE==================CP /1WDA/LADOBE==================CCIMP 1955
CL_INTERACTIVE_FORM_ZCI=>IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT
Our BASIS sent me the ADS trace:
SAP Interactive Forms by Adobe
Render Error Report
'pdf' Log Entries
restoreState is not a valid attribute of subform, Attribute not loaded. Line 5.
Invalid node type: dataGroup
The fault occurred on line 0.
The SOM expression '$record.BAPIBNAME' for the dataRef specified on field 'BAPIBNAME', resolved to an incompatible node type of 'dataGroup'.
Any comment or advise?Hi,
As far as i know when you use Adobe forms in a WD4A application, language is your "web" connection language.
You can have a look at standard class CL_WD_ADOBE_SERVICE, it's used when generating an adobe forms from WD4A. , more particulary look at method DETERMINE_DOCPARAMS.
regards -
Deleting row from table in ABAP webdynpro
Hi all,
Can anyone help me regarding deletion of a row from a table in ABAP webdynpro.
I have written a code like this :
DATA:
NODE_STUDINFOSYS TYPE REF TO IF_WD_CONTEXT_NODE,
ELEM_STUDINFOSYS TYPE REF TO IF_WD_CONTEXT_ELEMENT,
STRU_STUDINFOSYS TYPE IF_COMPONENTCONTROLLER=>ELEMENT_STUDINFOSYS .
navigate from <CONTEXT> to <STUDINFOSYS> via lead selection
NODE_STUDINFOSYS = WD_CONTEXT->GET_CHILD_NODE( NAME = IF_COMPONENTCONTROLLER=>WDCTX_STUDINFOSYS ).
get element via lead selection
ELEM_STUDINFOSYS = NODE_STUDINFOSYS->GET_ELEMENT( ).
deleting data selected via lead selection
NODE_STUDINFOSYS->REMOVE_ELEMENT( ELEMENT = ELEM_STUDINFOSYS ).
*But I am getting an error:*
Error when processing your request
What has happened?
The URL http://hsdnt24s11.hclt.corp.hcl.in:8000/sap/bc/webdynpro/sap/znet310_add_del_sech/ was not called due to an error.
Note
The following error text was processed in the system HE6 : The lead selection has not been set. VIEW_ADD_DEL_01
The error occurred on the application server hsdnt24s11_HE6_00 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: RAISEELEMENT_NOT_FOUND of program CL_WDR_CONTEXT_NODE===========CP
Method: PATH_TABLE_GET_ELEMENT2 of program CL_WDR_CONTEXT_NODE===========CP
Method: GET_BOUND_ELEMENT of program CL_WDR_VIEW_ELEMENT_ADAPTER===CP
What can I do?
If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system HE6 in transaction ST22.
If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server hsdnt24s11_HE6_00 in transaction SM21.
If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 0 in transaction ST11 on the application server hsdnt24s11_HE6_00 . In some situations, you may also need to analyze the trace files of other work processes.
If you do not yet have a user ID, contact your system administrator.
Error code: ICF-IE-http -c: 800 -u: SUMANK -l: E -s: HE6 -i: hsdnt24s11_HE6_00 -w: 0 -d: 20081220 -t: 155832 -v: RABAX_STATE -e: UNCAUGHT_EXCEPTION
HTTP 500 - Internal Server Error
Your SAP Internet Communication Framework Team
Can anyone help me???Hi Suman,
this issue seems to be not specific to the FPM. I would like to suggest you to address this problem in the ABAP forum.
Best regards,
Thomas -
Hi Experts,
I am new to ABAP WebDynpro and self-learning going through SDN stuff and other online-help. Please provide me
your kind explanation on below doubts.
1. When do we use GET_ATTRIBUTE and GET_STATIC_ATTRIBUTE
2. How to read the index of a particular selected row in table?
3. How do you change position of a particulr node dynamically?
4. Is it possible to execute a component without a window?
5. Is it possible to run a VIEW without embeding into a window in Webdynpro application?
6. How to read the content entered in PARAMTER and SELECT-OPTION elements in ABAP Webdynpro? Can anybody pass code how to read entries?
I mean GET_ATTRIBUTE or GET_STATIC_ATTRIBUTES is used for reading attribute value.
7. Is it possible to fix the Message window position? Show at the bottom of a screen? Please provide some code for this.
8. Is it possible to change the color of a laber attached to a attribute dynamically? For example somefield is mandatory but you forgot to enter and press on u2018Continueu2019 then program should show that elementu2019s lable with redcolor text. Please provide me example code.
Thanks in advance for the support and useful explanation!
Regards,
Meera.Hi
Refer the answers inline
1) When do we use GET_ATTRIBUTE and GET_STATIC_ATTRIBUTE
GET_ATTRIBUTE
Method to get the values of a context attribute.
The prerequisite for this method is that the application knows the data type of the attribute.
The value of the given attribute is copied to the export parameter. To do this the export parameter must have a data type to which a value can be written.
GET_STATIC_ATTRIBUTES
This method copies the static attributes to the transferred variable. If the structure is not identical, a move-correspondingis performed, which is not as efficient as a direct move, but is still useful in many cases.
Static attributes are those that either have been declared or that belong to the structure with which the node was declared.
2) How to read the index of a particular selected row in table?
data: lr_element type ref to if_wd_context_element,
lv_index type i.
lr_element = wdevent->get_context_element( name = 'CONTEXT_ELEMENT' ).
lv_index = lr_element->get_index( ).
3) How do you change position of a particulr node dynamically?
Explain Bit deeply
4) Is it possible to execute a component without a window?
No it is not possible, actually the component view can be viewed by embedding it to the window
5) Is it possible to run a VIEW without embeding into a window in Webdynpro application?
No it is not possible, without window you cant run the view
6) Is it possible to run a VIEW without embeding into a window in Webdynpro application?
DATA LO_ND_MAIN_NODE TYPE REF TO IF_WD_CONTEXT_NODE.
DATA LO_EL_MAIN_NODE TYPE REF TO IF_WD_CONTEXT_ELEMENT.
DATA LS_MAIN_NODE TYPE WD_THIS->ELEMENT_MAIN_NODE.
DATA LV_INP_VALUE LIKE LS_MAIN_NODE-INP_VALUE.
navigate from <CONTEXT> to <MAIN_NODE> via lead selection
LO_ND_MAIN_NODE = WD_CONTEXT->GET_CHILD_NODE( NAME = 'MAIN_NODE' ).
get element via lead selection
LO_EL_MAIN_NODE = LO_ND_MAIN_NODE->GET_ELEMENT( ).
get single attribute
LO_EL_MAIN_NODE->GET_ATTRIBUTE(
EXPORTING
NAME = `INPUT_VALUE`
IMPORTING
VALUE = LV_INP_VALUE ).
7) Is it possible to fix the Message window position? Show at the bottom of a screen?
Yes it is possible to show the messages by using the message area UI element in the needed position
8. Is it possible to change the color of a laber attached to a attribute dynamically? For example somefield is mandatory but you forgot to enter and press on u2018Continueu2019 then program should show that elementu2019s lable with redcolor text.
Im working onit and let you know after i complete.
Regards
Arun.P -
ABAP Webdynpro Development - Script Error when Accessing Visual Elements
I am encountering a strange error at my client . I can't use the Abap Webdynpro visual elements to build views .
To reproduce the error :
- T-code SE80
- Open up any ABAP webdynpro component .
- Open up one of the view and go on Tab Layout .
Normal Screen : You would see many WYSIWYG items ( buttons, radiobutton , text elements etcu2026. ) at the left side u2026 these elements are used to build the view .
Here : No elements displayed and when we click on that area we get an error .
Instead of the elements to get displayed .. lines are displayed and when you try to open up ( click ) the lines , an internet explorer script error stating the following occurs ( although the abap wendynpro is edited in SAP Gui ) :
An Error has occured in the script on this page .
Line : 1
Char : 25
Error : Object Required
Code: 0
URL : http://hdrerpdev05.bchydro.bc.ca:8100/sap/bc/wdvd/toolbar.html?_vdrespkey=4KE8FGJO3P88DO8K5XCEYHTEA&_vdframe=toolbar&usedynp=&usepat=&sap-client=100
Anybody had had the same kind of error before ^^????
Thanks and Best Regards !Hi,
we are getting the some what related errors in SE80 -> Web Dynpro Layout
An Error has occured in the script on this page .
Line : 1
Char : 1
Error : Object Expected
Code: 0
URL : http://<FQDN>:8000/sap/bc/wdvd/painting.html?_vdrespkey=4KZ4LYLFQA2I7X53H3CRICKFC&_vdframe=painting&sap-client=230
An Error has occured in the script on this page .
Line : 110
Char : 2
Error : Could not complete the operation due to error 80020101
Code: 0
URL : http://<FQDN>:8000/sap/bc/wdvd?_vdrespkey=4KZ4LYLFQA2I7X53H3CRICKFC&_vdframe=no_add_ui_lib&sap-client=230
Recently, we have upgraded our ERP system (SAP ECC 6.0 SPS17) with EHP4 SPS8. SAP_BASIS and SAP_ABA patch level same on 701_0008.
FQDN is mantianed at icm/host_name_full parameter in system as well as in /etc/hosts file with associated system IP address.
As suggested by Ted Dinh, we do not find any duplicate MIME files in our MIME Repository (SE80) and we cleared/invalidated ICM cache many times in problem analysis.
As suggested by Thierno Diarra , in our affected system domain WDY_MD_UI_ELEMENT_CATEGORY is well maintained in value ranges.
We have raised SAP OSS Message for the same, they told us to check dns server connectivity/settings with the affected system. we did the suggested DNS settings in affected system. But still the same error message is occuring. They have suggested same sap notes like #979039 and #1009930 & #1483210 , but all the corrections/suggections/SICF service status as mentioned, are found OK in our system.
Regards,
Bhavik G. Shroff -
ABAP webdynpro with interactive form - launching failure
We are doing some prototype in the solution manager box using ABAP webdynpro and Adobe Interactive Form. I created a webdynpro with a very simple Adobe form embedded in an view.
But when I test the webdynpro, I got the following error page in internet browser, any idea?
Error when processing your request
What has happened?
The URL http://md1as086.medimmune.com:8001/sap/bc/webdynpro/sap/z_wd_bookflight_gebo/ was not called due to an error.
Note
The following error text was processed in the system SMT : WebDynpro Exception: ADS: Request start time: Tue Mar 06 11:53:06 EST 2007(200.101). ?ꯂ.RuntimeProcessor.process(RuntimeProc
The error occurred on the application server MD1AS086_SMT_01 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: RAISE of program CX_WD_GENERAL=================CP
Method: CREATE_PDF of program CL_WD_ADOBE_SERVICES==========CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/LADOBE==================CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/LADOBE==================CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
Method: CONV_VIEW_INTO_VE_ADAPTER_TREE of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
Method: SET_CONTENT_BY_WINDOW of program CL_WDR_INTERNAL_WINDOW_ADAPTERCP
What can I do?
If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system SMT in transaction ST22.
If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server MD1AS086_SMT_01 in transaction SM21.
If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 0 in transaction ST11 on the application server MD1AS086_SMT_01 . In some situations, you may also need to analyze the trace files of other work processes.
If you do not yet have a user ID, contact your system administrator.
Error code: ICF-IE-http -c: 200 -u: CHEUNGJ -l: E -s: SMT -i: MD1AS086_SMT_01 -w: 0 -d: 20070306 -t: 115305 -v: RABAX_STATE -e: UNCAUGHT_EXCEPTION
HTTP 500 - Internal Server Error
Your SAP Internet Communication Framework TeamHi,
Is you ADS Configured ?
Check that out.
Regards
<i><b>Raja Sekhar</b></i> -
How to create a view to display Multiple lines of Text using ABAP WebDynpro
Hi,
I need to create a static view page in ABAP WebDynpro that displays Static text data in multiple paragraphs. I tried to use textview, formatted text, text edit controls by binding the textcontrol to a text object that is created in so10, but the output I am getting is only one line and the character count is limited to 60 to 65 characters.
I would like to know which control needs to be used in ABAP Webdynpro to get multiple lines displayed with text formatting like Paragraph, Indenting and Size.....
Thanks for your time!
Madhavi.Find the sample codes:
data sapscript_lines type tlinetab.
data sapscript_lines1 type tlinetab.
data sapscript_tline type tline.
data sapscript_head type thead.
data text type string.
data formatted_text type ref to cl_wd_formatted_text.
call function 'DOCU_GET'
EXPORTING
id = 'TX'
langu = 'D' "Germany language
object = 'WDR_TEST_HELP_EXP1'
IMPORTING
head = sapscript_head
TABLES
line = sapscript_lines
EXCEPTIONS
no_docu_on_screen = 1
no_docu_self_def = 2
no_docu_temp = 3
ret_code = 4
others = 5.
if sy-subrc <> 0.
text = space.
endif.
formatted_text = cl_wd_formatted_text=>create_from_sapscript(
sapscript_head = sapscript_head
sapscript_lines = sapscript_lines
" set it into the context
if Not ( formatted_text is initial ).
wd_context->set_attribute(
name = 'FORMATTED'
value = formatted_text->m_xml_text ).
endif.
clear sapscript_head.
clear sapscript_lines.
*Get the text created by SO10
CALL FUNCTION 'READ_TEXT_INLINE'
EXPORTING
ID = 'ST'
INLINE_COUNT = 1
LANGUAGE = 'E' "English language
NAME = '85XX_FOOTER'
OBJECT = 'TEXT'
LOCAL_CAT = ' '
IMPORTING
HEADER = sapscript_head
TABLES
INLINES = sapscript_lines1
LINES = sapscript_lines
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
OTHERS = 7
formatted_text = cl_wd_formatted_text=>create_from_sapscript(
sapscript_head = sapscript_head
sapscript_lines = sapscript_lines
" set it into the context
if Not ( formatted_text is initial ).
wd_context->set_attribute(
name = 'FORMATTED1'
value = formatted_text->m_xml_text ).
endif. -
How to call a RFC of a remote system from an ABAP webdynpro component
Dear Experts,
I am a newbie in ABAP Webdynpro.
I am working on a requirement where I have a webdynpro component on ECC system.I need to call a RFC located on CRM system from my webdynpro component on the ECC system.
How do I do that ?? Please help.
Regards,
Mamai.Calling RFC from some other system is same as local except the difference is that you have to give destination name while calling.
And the regarding the method of calling it depends on your FM.
if it is big RFC with complex structure, you can create the service call for it with destination given as RFC desitination.
if it is simple straight forward RFC you can directly call it.
for creating RFC service call call use this method
1. Starting the Wizard
To start the wizard, position the cursor on the Web Dynpro component to be edited in the object list at the left margin of the
workbench window. Open its context menu and choose the entry Create->Service Call. The wizard is started and leads you
through the creation process.
Press Continue.
2. Choice of Controller
On the second dialog window of the wizard, you can choose whether the service call is to be embedded in an existing
controller or whether a new controller is to be created for this purpose. Service calls can only always be embedded in
global controllers u2013 that is, in the component controller or in additionally created custom controllers. It is not possible, to
embed service calls in view controllers.
a. Select radio button Use Existent Controller
b. Do not change the default entry for component: <CC name>
c. Enter for controller COMPONENTCONTROLLER
d. Press Continue.
3. Service Type and Service Selection
a. You now select, which service type should be used for this service call. Select radio button Function Module. Fill the
destination here. Press Continue.
b. Select the service: for Function Module enter <RFC name>. Press Continue.
4. The Required Methods and Context Elements
On the two subsequent dialog windows, default values are listed for giving names to the context nodes and attributes
required by the service call as well as to the required methods. The proposed names are based on the names of the
embedded service, but you can change them as required. However, heed the respective notes in the corresponding dialog
box.
a. Adapt Context: Select from Nodes/Attributes . Press Continue.
b. Specify Method Name: leave all entries as provided: Component: Controller: COMPONENTCONTROLLER Method: EXCUTE_ Press Continue.
5. Completing the Choice
When you have confirmed the last dialog box, the generation is triggered. Afterwards you now have the required methods
and contexts at your disposal for using them within your Web Dynpro component.
or if you want to call directly the use the call statement with destination
Maybe you are looking for
-
What is the problem in this code (problem in select query)
Just need your help in solving one issue. In the below code one query which is highlighted Select statement not working means cursor directly goes to the endselect .means these two statements not executed. CLASS cl_abap_container_utilities DEFINITION
-
Re: the similar decode sql command (in Oracle) in ABAP
Dear ABAP Expert, Could you let me know where there is a similar decode command in Oracle in ABAP? Thanks. Arthur
-
Adobe Document Services - http Response 500 - How to configure the logging?
We are building an application in Web Dynpro Java that fetches data from an R/3 system via an RFC connection and is then supposed to show said data in a pdf within an iview. For that task we want to use the InteractiveForm UIElement. We bind the data
-
Why can't I have my bookmarks sidebar restored on the left hand side of my home page?
Prior to the latest update of Firefox I was accustomed to having my bookmarks available and stable on the home page screen. Now the bookmarks are only (it seems) from several clicks of icons and then are not retained on screen. The previous arrangeme
-
Read tables from different schemas in oracle
Hi, I'm trying to write a code to run a query to get data from an Oracle server, the problem is that the query refers to multiple tables in multiple schemas... the regular way to do it in oracle (SCHEMANAME.TABLENAME) does not work in excel vba query