Regarding webdynpro
hi all,
I want to know can we call smartform in webdynpro.
If possible can any body give me the procedure how we can do it.
Thanks And Regards,
Sreelatha Gullapalli
Sure you can call a smartform in WebDynpro (ABAP):
This is the procedure:
1. Create your smartform (if not already available).
2. Create a view in which smartform should be displayed.
3. Insert interactive form UI element for smartform to be displayed in.
4. In method WDDOINIT (for example), retrieve the FM for the smartform.
5. Call function module for smartform (set control parameter getotf to 'X' and no_dialog also to 'X'. Set device type).
6. In import parameter job_output_info-otfdata the pdf is contained.
7. call FM CONVERT_OTF to convert to pdf format.
8. Now the bin_file will be returned (import parameter).
9. Use this data to set the attribute of the smartform UI element.
Example coding:
METHOD wddoinit.
DATA:
node_diamond_data TYPE REF TO if_wd_context_node,
elem_diamond_data TYPE REF TO if_wd_context_element,
stru_diamond_data TYPE if_smartform_view=>element_diamond_data,
tab_diamond_data TYPE if_smartform_view=>elements_diamond_data.
DATA:
node_remarks TYPE REF TO if_wd_context_node,
elem_remarks TYPE REF TO if_wd_context_element,
stru_remarks TYPE if_smartform_view=>element_remarks ,
item_remarks_text LIKE stru_remarks-remarks_text.
DATA:
node_smartform_pdf TYPE REF TO if_wd_context_node,
elem_smartform_pdf TYPE REF TO if_wd_context_element,
stru_smartform_pdf TYPE if_smartform_view=>element_smartform_pdf ,
item_stones_data LIKE stru_smartform_pdf-stones_data.
DATA:
lt_diamonds TYPE zpo_ssp_list_t,
lt_lines TYPE TABLE OF tline.
DATA:
ls_output_options TYPE ssfcompop,
ls_control_parameters TYPE ssfctrlop,
ls_output_data TYPE ssfcrescl.
DATA:
lv_form_name TYPE tdsfname VALUE 'ZMM_P_SSPS',
lv_function_module_name TYPE rs38l_fnam,
lv_devtype TYPE rspoptype,
lv_pdf_len TYPE i,
lv_pdf_xstring TYPE xstring.
* navigate from <CONTEXT> to <DIAMOND_DATA> via lead selection
node_diamond_data =
wd_context->get_child_node(
name = if_smartform_view=>wdctx_diamond_data ).
* Retrieve diamond data from context.
node_diamond_data->get_static_attributes_table(
IMPORTING
table = tab_diamond_data ).
* Copy Diamond data.
lt_diamonds[] = tab_diamond_data[].
* navigate from <CONTEXT> to <REMARKS> via lead selection
node_remarks =
wd_context->get_child_node(
name = if_smartform_view=>wdctx_remarks ).
* get element via lead selection
elem_remarks = node_remarks->get_element( ).
* get single attribute
elem_remarks->get_attribute(
EXPORTING
name = `REMARKS_TEXT`
IMPORTING
value = item_remarks_text ).
* Get name of generated function module
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING formname = lv_form_name
* variant = ' '
* direct_call = ' '
IMPORTING fm_name = lv_function_module_name
EXCEPTIONS no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc <> 0.
* error handling
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
EXIT.
ENDIF.
* Setting of output options
* language
ls_control_parameters-langu = sy-langu.
* set control parameters to get the output format (OTF) from Smart Forms
ls_control_parameters-no_dialog = 'X'.
ls_control_parameters-getotf = 'X'.
* get device type from language
CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
EXPORTING
i_language = sy-langu
* i_application = 'SAPDEFAULT'
IMPORTING
e_devtype = lv_devtype
EXCEPTIONS
no_language = 1
language_not_installed = 2
no_devtype_found = 3
system_error = 4
OTHERS = 5.
IF sy-subrc <> 0.
* error handling
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
* set device type in output options
ls_output_options-tdprinter = lv_devtype.
CALL FUNCTION lv_function_module_name
EXPORTING
control_parameters = ls_control_parameters
output_options = ls_output_options
user_settings = 'X'
it_diamonds = lt_diamonds
iv_remarks = item_remarks_text
IMPORTING
job_output_info = ls_output_data
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.
* now convert the final document (OTF format) into PDF format
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
IMPORTING
bin_filesize = lv_pdf_len
bin_file = lv_pdf_xstring " binary file
TABLES
otf = ls_output_data-otfdata
lines = lt_lines
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4
OTHERS = 5
IF sy-subrc <> 0.
* error handling
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
* navigate from <CONTEXT> to <SMARTFORM_PDF> via lead selection
node_smartform_pdf =
wd_context->get_child_node(
name = if_smartform_view=>wdctx_smartform_pdf ).
* get element via lead selection
elem_smartform_pdf = node_smartform_pdf->get_element( ).
* get single attribute
item_stones_data = lv_pdf_xstring.
elem_smartform_pdf->set_attribute(
EXPORTING
name = `STONES_DATA`
value = item_stones_data ).
ENDMETHOD.
Similar Messages
-
Regarding webdynpro iviews transport
HI,
What are prerequisites for transporting the webdynpro iviews from one landscape tp another.
Thanks
sekhar.Hi,
There is no special pre-requisite.You will have to take the ear file from the project. The iViews and roles of the application can be exported as epa. Deploy this ear in the other portal and import this epa in it. You are done. But make sure if there are any references like host name in the project which uses model from webservices, then you may have to change it if required and create a new ear. Use this ear for the new server.
Regards,
Harini S -
Hi Everyone,
I need to develope a java webdynpro iview through which i have to capture the data from a backend ASP.Net web application and the iview should be able to send XML message in form of HTTP request.
please let me know the methode and how i can create it. its very urgent.Hi Sunkara,
Didn't really understand your requirement fully.
Try this blog on <a href="/people/community.user/blog/2006/10/18/how-to-parse-xml-file-uploaded-from-client:///people/community.user/blog/2006/10/18/how-to-parse-xml-file-uploaded-from-client
Regards,
Sudeep -
Regarding WebDynpro Certification
Hi SAP Knoladge gurus,
I am having 6 months experince in SAP .I am currently working on WebDynpro ABAP . May I know Can I go for certification on such small experince .
What are prerequisites for doing any SAP cerification .Is that nessasary that consultant should have minimum 1 or 2 years of experince.
Please let me know .Parag,
I think that the years of experience on SAP are not a prerequisite for take any SAP certification. The only requirements you need are <b>study</b> and <b>practice</b> on:
<a href="http://www.help.sap.com">http://www.help.sap.com</a>
<a href="http://www.sdn.sap.com">http://www.sdn.sap.com</a>
Best regards,
GOOD LUCK!!!!
Gianluca Barile -
Regarding WebDynpro Application
Hi all,
I have a requirement to access the applications which
are deployed previously in my server from WebDynpro project..
Can any one guide me proper way to do this..
Thanks in advance
LakshmiNarayana.NHi,
Go through [this|List of deployed applications] thread. You can also look at the class WDServerState.
Regards,
Satyajit. -
Dear Experts
I have read one sentence abt webdynpro api.
Sentence:IMessage interface is for GCP messages.
What is meant by GCP?
Thanks & Regards
Hazrath.GHi,
"Sentence:IMessage interface is for GCP messages.
IMessage is specialised version of ICMIMessage
The Enterprise Services Framework (ESF) Generic Client Proxy (GCP) is used to connect to the Object Access Layer (OAL) from Web Dynpro. The GCP provides an interface based on the ESF definition through which a pattern can connect to any backend. Backend connectivity to data and metadata is through ESF.
The OAL implementation of ESF GCP has the following subtasks:
● Access to the metadata repository and provision of metadata information to Web Dynpro via data model information.
● Caching of data
● Connection to cross application (xApps) EJBs (Enterprise Java Beans)
● Generic service module implementation
● Service facade to instantiate OAL implementation
http://help.sap.com/saphelp_nw04s/helpdata/en/0a/650764fbff10468d19168dded7f2be/frameset.htm
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/abbreviations%2bin%2benterprise%2bsoa
Regards
Ayyapparaj -
Hi All,
Can anyone please explain me in detail What a "Webdynpro Runtime" is? How does it help?
Regards,
DivyaHi Divya,
just go through following Lines.
Design Time and Runtime
Visual Composer is a design-time software tool in which you can develop an application and then deploy it. After deployment, you can run the actual application in the portal to check its runtime functionality. During model creation and configuration, you define all the runtime attributes of the model components, such as the frame of a table, the size and types of toolbar buttons and the format of an output form. You can also define a range of properties of the actual Visual Composer design-time tools, such as the use of a background grid or the placement of the various toolboxes used with each board.
Runtime Environments
Models designed in Visual Composer can be deployed to run in one or more technology engines, including Web Dynpro and Flex. The same model can be deployed to more than one environment, although not all components and controls are fully supported in each. Models deployed to Flex can run on a range of browsers, including Microsoft Internet Explorer, Netscape and Firefox.
Visual Composer implements a proprietary XML-based Visual Composer Language as its source code for creating the models. Only at deployment is the model actually compiled into the executable code required by the selected UI technology. The result is a model once run anywhere capability.
Regards,
Govindu -
Regarding WebDynPro Application Development Problem
Hi,
I have created a WebDynPro application to access the BackEnd System.I have Used BABI_MATERIAL_SAVEDATA functional Module.In my appln I Used 2 views , first view has fields like material name,desc,unitof measure .In 2nd view it will display the message which is from Backend .it the fields are i have created system and successfully connected with Server. But while running this application its displaying as " Trying to create X: -
(dash) "
x is the material Name .
whr is the actual problem ,in Server or Coding ? How to solve it ?
Please Help Me ..
Thanks in Advance.Hi,
It seems not an Error.In second the View thr is a TextView . I bind that with a context node-MESSAGE which is derived from Bapi_material_savedata Module.. While executing that appln
,"TRYING TO CREAT " message shows in the text view.. i want to Know that whether i would b a server Pblm or In coding ?.. -
Regarding Webdynpro at Slim edition
Hey guys,
i have installed SP11 Sneak preview slim edition from SDN download.
Now i want to work with Webdynpro. I could not see NWDS installed in my system. In my system-start-programs..i could not see NWDS installed.
I tried
C:\SAPNetWeaver04SneakPreviewSlimSP11\J2EE-CD\IDE
JDTSetup..but it gives 3options and continues with finish button.
If i try Eclipse..i could not find J2EE engine at Preferences..
Am i doing something wrong..
Pls guide me how to have startup with Webdynpro..here
ambichanI solved my prob thanks.
I tried installing SAPIDE seperately..again.
thanks
ambichan -
Regarding WebDynPro TutWD_CarRental_Init.zip & WDSL
Hi
I have just started working on portal i have been practising some excercises,
i have been struck in two places can any one help me out
First i am creating a model with an WSDL file i have given the WSDL file as
<b>http://webservices.matlus.com/scripts/emailwebservice.dll/wsdl/IemailService</b>
which i have got from an practice excercise of SAP material
but it says that its an invalid descriptor, can any one tell wats wrong with this or is there any other WSDL address i have to type.
Second i have been loking for <b>TutWD_CarRental_Init.zip</b> i have gon through the formus and they have given this link for download but its not working.
: https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/9fc0e990-0201-0010-199c-e38fc6dafb5d
any one who is having that zip file ,if possible can send to my mail,
my mail id id [email protected]
regards,
Sunil.Hi Sunil,
copy the wsdl file into local system and try creating the model
by giving the localsystem path.
sometimes being the wsdl file length larger or connection being slow it will not recognise the model.
I have sent you the file.
Regards
Abhimanyu L
Message was edited by:
Abhimanyu Lagishetti -
Regarding webdynpro accessing Pblm
Hi,
Im beginer of Webdynpro java. i have developed a application to accessing r/3 back end. Am using bapi module...I have tested The Connection and also My appln is running successfully . But i cant retreive the data from the back end... what type of Pblm it is ? How to solve this... Experts give new ideas..Hi welcome to webdynpro forum
You have mentioned that you are using bapi module ( is it a standard BAPI ?). or let us if you are trying to have a RFC connection. What is meant by 'appl running successfully' ?
Retrieving data from back end has some simple procedures. Have you defined the import parameters(if any) and export parameters correctly ?
Have you provided the context in normal way. What kind of data ? Is is a simple table information ?
Please go through the webdynpro tutorials in SDN on data / context binding and data retrieval using SAP Function modules.
If you have any issues, do let us know. -
Suggestion for a good book for webdynpro for java
Hi, I am new to this technology,and i know a little bit basics,but i want to learn in depth regarding Webdynpro For Java and my backend is SAP R/3
can anyone suggest me a good book for webdynpro for javaHi padma,
Check this link.
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#9">Web Dynpro Sample Applications and Tutorials</a>
Re: Guides for new entrant to Webdynpro
Regards,
Mithu -
WebDynpro accessing custom-build EJB applications
Hi there,
I have a query regarding WebDynpro accessing custom-build applications deployed on web-logic server and J2EE servers.Following is the scenario.
There is central authentication mechanism deployed in J2EE server. GUI users (in EP) have to be authenticated through this application(EJB).
In EP, this remote call would happen through the WebDynpro. After successful authentication, calls will be sent to another Weblogic server.
Too many remote calls. How about the scalability & performance factors with WebDynPro?HI,
Webdynpro and EP are almost same except coustomisation coming to picture in EP, why do you want webdynpro to EP to web logic, Just crate your UI in dynpro convert them to Iviews in EP through EP call wenlogic server/J2ee server i hope there will not be any hindarence to scalability or perfomance.
when it comes to remote calls after all your going to call weblogic through EP but dynpro UI will be as an Iview
I hope it helps you
in case if you need further details let me know
Regards
RK -
I need documentation on Webdynpro
Hi all ,
Please give some documents regarding Webdynpro.
Will be very thankful for your information.
Thanks .hI,
refer to these links
Hi All,
Webdynpro Knowledge Center :
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/02e1fa45-0801-0010-10a0-f1cf47e8c943
Look at the below thread for documents & example..
I want some Material for WebDynpro Applications?
Re: i need material on ABAP Webdynpro..
WDA in SAP Help
http://help.sap.com/saphelp_nw2004s/helpdata/en/7c/3545415ea6f523e10000000a155106/frameset.htm
Web Dynpro for ABAP in SDN
https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/webcontent/uuid/512040e1-0901-0010-769c-c238c6ca35d9 [original link is broken]
Developing ABAP Applications Using Web Dynpro
http://help.sap.com/saphelp_nw2004s/helpdata/en/42/d41b25d2216babe10000000a1553f6/frameset.htm
Web Dynpro ABAP: Development in Detail
http://help.sap.com/saphelp_nw2004s/helpdata/en/03/0048413e466e24e10000000a155106/frameset.htm
WDA Sample programs & tutorials
https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d
Web Dynpro ABAP Demonstration Videos
/people/thomas.jung/blog/2006/06/20/web-dynpro-abap-demonstration-videos
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/webcontent/uuid/fed073e5-0901-0010-4eb4-c9882aac7b11 [original link is broken] -
Hi Experts,
I am an ABAP developer having 1.5 years of work-experience. I want to learn Webdynpro ABAP. Could anyone please explain me regarding Webdynpro. Also please suggest some good books for the same.
Regards,
RamyaHi Ramya,
Welcome to the world of WebDynpro.
Please have a look on following links.
SAP Web Dynpro Overview
http://wendtstud1.hpi.uni-potsdam.de/sysmod-seminar/SS2005/presentations/12-WebDynpro-Overview.ppt
Web Dynpro General Concepts
https://admin.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/30ea953b-8e57-2910-4e85-f7be60b00407 [original link is broken]
Web Dynpro
http://help.sap.com/saphelp_nw2004s/helpdata/en/15/0d4f21c17c8044af4868130e9fea07/frameset.htm
Web Dynpro for ABAP: Tutorials for Beginners
Web Dynpro for ABAP: Tutorials for Beginners [original link is broken]
Web Dynpro Architecture
http://help.sap.com/saphelp_nw04/helpdata/en/a5/1a1e3e7181b60ae10000000a114084/content.htm
Web Dynpro User Interface Design
https://www.sdn.sap.com/irj/sdn/webdynpro?rid=/webcontent/uuid/ce44a14c-0a01-0010-af89-d7dbd944f176 [original link is broken]
Getting Started with Web Dynpro Java
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/webcontent/uuid/8921447c-0501-0010-07b4-83bd39ffc7be [original link is broken]
Developing ABAP applications using Web Dynpro Configuration Scenario
http://www50.sap.com/businessmaps/8729920B31E343F099B71340B15F06DB.htm
http://www.sapforum.co.kr/TECHDAY07/download/9.%20SAP%20WebDynpro_%EA%B9%80%ED%98%9C%EC%84%AD.pdf
The Structural Concepts of Web Dynpro Components
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a048387a-0901-0010-13ac-87f9eb649381
Web Dynpro:Context Mapping & Model Binding
http://wendtstud1.hpi.uni-potsdam.de/sysmod-seminar/SS2005/presentations/14-Web_Dynpro_dataflow.pdf
Web Dynpro:Getting Involved
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c193252d-0701-0010-f5ae-f10e09a6c87f
Web Dynpro for ABAP
http://www.vnsg.nl/temp/508773747/A1-WDA_Themadag.pdf
http://www.octavia.de/fileadmin/content_bilder/Hauptnavigation/SAP_NetWeaver/WebDynpro/Web_Dynpro_Part_IV.pdf
Web Dynpro for ABAP in SDN
https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/webcontent/uuid/512040e1-0901-0010-769c-c238c6ca35d9 [original link is broken]
Developing ABAP Applications Using Web Dynpro
http://help.sap.com/saphelp_nw2004s/helpdata/en/42/d41b25d2216babe10000000a1553f6/frameset.htm
Web Dynpro ABAP: Development in Detail
http://help.sap.com/saphelp_nw2004s/helpdata/en/03/0048413e466e24e10000000a155106/frameset.htm
WDA Sample programs & tutorials
https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d
Web Dynpro ABAP Demonstration Videos
/people/thomas.jung/blog/2006/06/20/web-dynpro-abap-demonstration-videos
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/webcontent/uuid/fed073e5-0901-0010-4eb4-c9882aac7b11 [original link is broken]
Go to the following link and download the zip file. the zip file contains complete training material of ABAP Webdynpro.
http://www.esnips.com/doc/2977fd89-0f69-4e65-ae76-9448bbb746b8/WebDynpro_ABAP
Please find this weblog , which is full of Videos for intro on webdynpro ABAP. This will find a grip on your concepts.
/people/thomas.jung/blog/2006/06/20/web-dynpro-abap-demonstration-videos
Preferred book for WebDynpro ABAP is ABAP Objects by Horst Keller, Sascha Kruger - Pearson Education .
Reward points if useful.
Regards,
Prakash.
Edited by: Surya Prakash Veera on Jun 6, 2008 12:07 PM
Maybe you are looking for
-
Error message when trying to salve pages or numbers documents
All of a sudden i get the following message when trying to save newly created pages or numbers documents into my documents folder "The file "Untitled.numbers-tef" couldn't be opened". THis is for doocuments created from scratch. Can anyone please hel
-
Receiving message "error 7 (windows error 1114).
I cannot get on itunes anymore. I am receiving the error message. I have unistalled and reinstalled itunes 9.0 more than 10 times and receive the same message. Does anyone have any suggestions how to fix.
-
Export to pdf for thai characters get blank result.
Dear expert, I have a problem, when export Sales Order that contain thai characters to PDF in SAP B1 2007A SP01 PL08, the page converted to pdf successfully for english characters, but not for Thai character. Thai characters did not display anything,
-
Where can i get a iphone 5s user manual that is specific to the ATT iphone 5s?
I'm looking for a user manual that is specific to the ATT iphone5s. All I can find is the generic manual from the apple site. There must be one that specifically addresses all the features, icons and apps on the ATT version. I also own a Samsung Gal
-
Docs2go excel function on playbook
two questions... 1) if you enter "=row(a1)" in a cell, it tells you the function is not recognized. is there something i need to do to enable this? how can an elementary function like that not work? 2) is there a way to find out what functions are av