ABAP class as abap webdynpro model
Hello Folks,
I have small requirements that needs to be developed in OO ABAP and ABAP Webdypro. I have created class that fetch data from database and would like to use this class as webdypro model.
I appraciate if you can provide me materials related to this.
Thanks,
Robert
Hi,
You can correlate ur class mthods to webdynpro by declaring the reference variable for the class under the Atticbutes tab of the Component controller in se80 as
Attribute : <ref_variable>
Asssociated type : <class_name>
and tick the Public and RefTo checkbox.
Now using the reference variable,one can access the class methods .
Also, u can find list of tutorials in the below link for the webdynpro beginners,
https://www.sdn.sap.com/irj/sdn/nw-ui?rid=/webcontent/uuid/fed073e5-0901-0010-4eb4-c9882aac7b11 [original link is broken]
Thanks,
Divya.S
Similar Messages
-
Calling a PP03 BDC from abap webdynpro throws an exception from the class
Hi Experts,
I am calling a BDC FM for PP03 TCPDE form abap webdynpro.
When i run the standalone FM, it works fine and When called from Webdynpro its giving a dump saying an exception is raised in the class CL_GUI_SPLITTER_CONTAINER.
Can you please let me know how to resolve the issue? Your siggestions will be of great help to me.
Thanks,
Shilpa>
shilpa hv wrote:
> Hi Experts,
>
> I am calling a BDC FM for PP03 TCPDE form abap webdynpro.
> When i run the standalone FM, it works fine and When called from Webdynpro its giving a dump saying an exception is raised in the class CL_GUI_SPLITTER_CONTAINER.
>
>
> Can you please let me know how to resolve the issue? Your siggestions will be of great help to me.
>
>
> Thanks,
> Shilpa
Hi,
The FM might be calling a dialog or bringing a GUI screen up. This would cause the Webdynpro session to disconnect abruptly.
Any conversion exit, GUI screen,dialog popup, transaction handling..etc would cause the webdynpro to disconnect. So you cannot use all FM's as it is. -
Models in Abap Webdynpro.
Hi All,
I am a Java guy having knowledge in Java webdynpro, it happend for me to get into ABAP webdynpro just had a small query here.
How does models functionality work in ABAp Webdynpro.
How do we access RFC, BAPI, web services, EJBs etc in ABAP web dynpro.
Thanks in Advance,
Sai Krishna.Hi Sai,
Model is nothing but the business logic similar to the Java webdynpro . I guess you have seen those Hook methods like WD_doinit, WD DOmodifyView some standard default methods which we get according to the requirement we write our code as and where we want . One basic thing is u must be aware of the Context which is the heart of the webdynpro abap applications the interaction between the screen and the database is done by this .
Let me take a small example of how are we going to use the RFC or Bapis.
EG:
We have a screen UI elemnets in which we have one input field and a table our aim is to fetch the data into the table depending upon the input field or say selection field . and here we will be using say RFC or it may be a BAPI.
SO step1. Intially we desing the screen UI elements , create a Node for the input field with cardinality (0:1). and create another node for the table binding with cardinality as (0:n).then bind the values of the screen .
step2: Now since after giving the value in the input filed we want to fetch the data. On action of the Button or on enter of the input filed we need to write our code.
That means here our bapi or RFC comes into picture . what we need to do is get_attribute of the input field and call that RFC in import values pass the get_attribute value and see that it returns some table
say lt_table.
Now when you debug you can see the table values which we need to bind it to the table.
lo_nd_table->bind_table( lt_table ).
This will fetch the table values depending upon the input field values you giv .
Hope it is clear and helpful.
Have A GoodDay:)
Regards,
Sana. -
Serialisation failed : ABAP webservices as webdynpro model
Hi All,
I have created a webdynpro application consisting of a ABAP webservice model . This webservice takes some input parameters which are optional and give output which we are displaying as webdynpro table.. we have successfully deployed and run it on our development server .
We have transported the EAR to Quality server after changing the target address under model> webservice> logical port corresponding to Quality webservice URL..
But at quality server it is giving "Serialisation failed" for particular input parameter. for rest of the input parameter proper output is coming .
Please tell the possible solution.
regards
PoonamThe input that you are trying to give might not be complaint with the data that you are providing .. go to http://server:port/wsnavigator and give the data there and test .If the data type and the length of the input parameter are not complaint with the data that you are providing u will get that error
-
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 -
Whether Workflow Program Exit works in ABAP WebDynpro
Hi,
I have the custom workflow in which in each task i have given a program exit to update the status into my custom tables.
Now i'm in doing the change in workflow, that it should call the abap webdynpro screen, where the user decisions has to be made.
I'm getting the Workitem id from the UWL and then it lauches the Web Dynpro to choose either Approve, Reject or Change etc along with some other travel expense information.
Now once i complete the web dynpro by calling the method 'SAP_WAPI_WORKITEM_COMPLETE', the particular work item is completed.
I want to ask whether before this FM is called,whether the Program Exit which i have written in the Class method and which is called in the Workflow, whether it triggers or not?
Regards,It is calling the workflow program exit before the SAP_WAPI_WORKITEM_COMPLETE function module.
So closing the thread. -
How to read URL Parameters in ABAP WebDynpro ?
Hi,
How and where (which class, method) in ABAP WebDynpro we can read URL Parameters ? I found answers for WebDynpro JAVA but nothing for ABAP.
Thanks
MeenalHi Meenal,
Please see a post by Sanjay Agarwal titled 'Sequencing Problem in Web Dynpro ABAP'. I believe you will find your answer there.
Cheers,
Rich -
How to open a brfplus Catalog from abap webdynpro screen.
How to open a catalog from abap web dynpro application. and also what roles are to be provided to a user for restricting access only to the objects in the given catalog.
Hi Pratik,
do you use NetWeaver 7.0, Enhancement Pack 2 (or higher)?
Then you can then define an own UI mode class and set it via SET_UI_MODE( ) in IF_FDT_WD_UI_EXECUTION before you call EXECUTE_CATALOG_BROWSER().
An explanation how to define a UI mode class is available in the chapter "Configuration through a UI mode class (7.0/7.1 EHP2)" of the document [Embedding a BRFplus Object in an ABAP WebDynpro Application|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50e44bf9-9135-2d10-2ea2-b13e5be8661d]
Hint: With help of the interface IF_FDT_WD_USER_CONFIGURATION you have the possibility to hide views in the navigation view by using the respective, listed parameters (e.g.. GC_PARAMETER_FAVORITES_VIEW). Please be aware of that the configuration is just available to adapt the UI, it does not fulfill the requirements to act as an authority concept. If you do not set the parameter GC_PARAMETER_HIDE_SETTING_DLG of the interface IF_FDT_WD_CONFIGURATION to false, the user is also able to change it via the configuration dialog in the BRF+ workbench.
With the current available BRF plus standard authority concept you can prevent that the user can see the content of objects like applications but you have no influence to prevent the user from seeing UI artifacts like the repository tree. Please consult the documentation to learn more about its capabilities.
Kind Regards,
Marco -
Error occured while showing adobe form in abap webdynpro application
Dear SAP-Masters ,
This is the mail regarding the error occured while showing adobe form in abap webdynpro application .
When i run the adobe form seperately it works fine but with abap web dynpro , i'll get following error .
Pls tell me how to resolve this problem .
The following error text was processed in the system D35 : WebDynpro Exception:
The error occurred on the application server DV35_D35_00 and in the work process 2 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: UPDATE_PDF of program CL_WD_ADOBE_SERVICES==========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/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
Method: RENDER_WINDOWS of program CL_WDR_CLIENT_SSR=============CPHi Arjun ,
Thanx for ur reply ,
i got following results in ST22 dump analysis :
' An exception occurred that was not caught ' .
and
Source Code Extract
Line
SourceCde
79
x_xml = get_wd_context_as_xml( data_source = data_source ).
80
m_pdf_object->set_data( formdata = x_xml ).
81
catch cx_fp_exception into lr_fpexc.
82
raise exception type cx_wd_general
83
exporting
84
previous = lr_fpexc.
85
endtry.
86
if fillable = abap_true.
87
if m_version is initial.
88
m_version = m_pdf_object->get_version_info( ).
89
endif.
90
if version < ''.
91
set_usage_rights( m_pdf_object ).
92
endif.
93
endif.
94
endif.
95
endif.
96
97
only call the ads if requested
98
if execute_ads_call = abap_true.
99
try.
100
set document
101
m_pdf_object->set_document( pdfdata = pdf ).
102
103
execute, call ADS
104
m_pdf_object->execute( ).
105
106
get result
107
m_pdf_object->get_document( importing pdfdata = pdf ).
108
catch cx_fp_exception into lr_fpexc.
>>>>>
raise exception type cx_wd_general
110
exporting
111
previous = lr_fpexc.
112
endtry.
113
endif.
114
115
endmethod.
and
Error analysis
An exception occurred which is explained in detail below.
The exception, which is assigned to class 'CX_WD_GENERAL', was not caught and
therefore caused a runtime error.
The reason for the exception is:
WebDynpro Exception:
The occurrence of the exception is closely related to the occurrence of
a previous exception "CX_FP_RUNTIME_SYSTEM", which was raised in the program
"CL_FP_PDF_OBJECT==============CP",
specifically in line 255 of the (include) program
"CL_FP_PDF_OBJECT==============CM02Y".
The cause of the exception was:
ADS: com.adobe.ProcessingException: PDF is not interactive. Data can only be
| imported into interactive forms.(201501). -
ABAP WEBDYNPRO - What is it all about ?
Hi Guys & Gals,
I am doing ABAP for last 5 years. Planning to learn ABAP WEBDYNPRO from any SAP education partner. But i don't know JAVA and Classes and Methods(Scared of these).
1. Can i cope with ABAP WEBDYNPRO ?
2. Is it more programming or layout design or configuration or what it is ?
3. How is the scope ?
Kindly provide as much info as you can. I should decide quickly will it fit for me or not.
Thanks
RajHi Raj kumar,
Welcome to Web Dynpro for ABAP forum.
As you said you have good knowledge of ABAP.That is enough to learn WDA.But you should aware of ABAP OO concepts prior learning WDA.No need to think about java classes.
There are many threads,articles and sap documents to learn Web Dynpro for ABAP.You can easily learn through them.If you have any doubts you can post in this forum to get clarification. -
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 create popup in ABAP webdynpro.
Hi,
I found lot of examples to create a popup/ model window for java webdynpro.
Could anyone give a pointer to an example which explains how to create popup in ABAP webdynpro??
Kind Regards
ShahulHi Thomas:
It worked fine the 1st time. Second time when the user clicks on the button to open up the popup it dumps.
Here is the code in the action for popup:
data: l_cmp_api type ref to if_wd_Component,
l_window_manager type ref to if_wd_window_manager,
l_api type ref to if_wd_View_controller,
l_text type string_table.
l_cmp_api = wd_comp_controller->wd_get_api( ).
l_window_manager = l_cmp_api->get_window_manager( ).
if wd_this->m_popup is initial.
wd_this->m_popup = l_window_manager->create_window(
window_name = 'DOCQSOW'
button_kind = if_wd_window=>co_buttons_ok
message_type = if_wd_window=>co_msg_type_none ).
component_usage_name = 'DOCQUERY_USAGE_1'
l_api = wd_this->wd_get_api( ).
wd_this->m_popup->subscribe_to_button_event(
button = if_wd_window=>co_button_ok
button_text = 'Transfer'
action_name = 'POPUP_CLOSED'
action_view = l_api ) .
wd_this->m_popup->SET_REMOVE_ON_CLOSE( abap_true ).
endif.
wd_this->m_popup->open( ).
Second time when the popup tries to open, I get the following error:
Method: RENDER_WINDOW of program CL_WDR_WINDOW_RENDERER========CP
Method: RENDER_WINDOW of program CL_WDR_CLIENT_SSR=============CP
Method: RENDER_POPUP_WINDOWS of program CL_WDR_CLIENT_SSR=============CP
Method: RENDER_WINDOWS of program CL_WDR_CLIENT_SSR=============CP
Method: IF_WDR_RESPONSE_RENDERER~RENDER_VIEWS of program CL_WDR_CLIENT_SSR=============CP
Method: IF_WDR_RESPONSE_RENDERER~RENDER_USER_INTERFACE_UPDATES of program CL_WDR_CLIENT_SSR=============CP
Method: IF_WDR_CLIENT~SEND_RESPONSE of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP
Method: IF_WDR_CLIENT~SEND_RESPONSE of program CL_WDR_CLIENT_SSR=============CP
Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP
Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
Is there a way to destroy the instance of the m_popup?
Any help is appreciated!
Thanks -
ABAP -WebDynpro - Read URL Parameter
Hi,
We have a Custom 'Catalog' that needs to be called from SRM using OCI (Open Catalog Interface). We are developing this custom catalog using ABAP Web Dynpro. We have following issues because of which we are unable to communicate back to Shopping cart from the Custom Catalog:
1. Unable to read the value of 'HOOK_URL' in WebDynpro application. We need this value so that it can be used as Exit URL. How and where do we read this URL parameter in ABAP WebDynpro ?
2. How can we return the 'HTML Form' to SRM with the values from Custom Catalog to fill the shopping cart ?
I would appreciate your help...
Thanks
MeenalHi Menal,
I had the same problem.
Did you define the HOOK_URL parameter in your webservice ? If not, do this 1st.
2nd
In you Webdynpro read the HOOK_URL in your handledefault method your window. Store it e.g. as attrribute in you assistance class.
method handledefault .
*&- Add FOF and HOOK_URL to assistanceclass attributes
wd_assist->hook_url = hook_url.
endmethod.
After this you can read your HOOK_URL e.g in a view via:
concatenate 'HOOK_URL=' wd_assist->hook_url zlv_hook_url into zlv_hook_url
I hope your question is answered.
What I want to now is: How to controll the HOOK_URL so that the formfields of the extenal catalog is added to the shopping card. Do you now that ?
John -
Internationalization in ABAP Webdynpro
Hi All,
What is the methodology for implementing ABAP webdynpro. Can any body let me know what are the various possiblities for Internationlization.
Regards
VijayHello,
To implement Web Dynpro ABAP you must use the MVC (model, view, controller) model, and about internationalization you can use the [OTR (online text repository)|http://help.sap.com/saphelp_nw04/helpdata/en/36/00f13a62d1ad6de10000000a11405a/frameset.htm].
You can get more information at the following sites:
[An Extended Web Dynpro For ABAP Application|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2eb11b59-0a01-0010-dfa3-8292abdf9c4f]
[SAP Network Blog: Internationalization and Translation for WD4A|/people/gopi.nidjelli/blog/2008/10/20/internationalization-and-translation-for-wd4a]
Regards. -
Dear friends,
I am trying to find out what is the simplest and best way to have validations in an ABAP webdynpro. There are a bunch of fields in a view in one of the webdynpros that iam working on. I would like to set up validations to some of the fields. I am trying to find out if there is a standard action or method that will help me achieve this; or would i have to create a new class for this.
Any help is greatly appreciated.
Thanks
-Neha.closed
Maybe you are looking for
-
How do I delete songs from library but not my ipod
Hi, Can anyone help me. I want to delete songs that in my library to increase the memory on my pc, but if I de-select them, they will be deleted from my ipod. I want to keep all the songs in my ipod but add to them later, how do i do this. also, i ma
-
Unable to Print with HP 4215 and New Extreme N
Hello: I have the new Airport Extreme N, upgraded from the previous Extreme model. In the past, I have been able to operate my HP All In One 4215 from the USB port in the back of the Airport. With the new N station, I can not. In the Airport Utility,
-
What are the 5 Most Useful Shareware programs you've come across?
I wanted to lighten the mood on the forum with all of the complaints about the MBP with something potentially useful to current users as well as potential users like myself. I was just wondering what were the 5 most useful shareware programs people h
-
Multi-step content approval process
Dear All, We have a requirement like this: A content (after it has been authored) has to go through an n-step approval process. In our requirement, suppose if the 3rd approver rejects the content, then it should go back to the 2nd approver. But if we
-
1536 ORA-01536: space quota exceeded for tablespace
I am trying to update a record in the particular table.. its keep saying the above error msg.. I have extended the table space segment, but still am getting the same error. Can some one have any idea on this.. Thanks in advance