Calling Smartform in WD application?
Hi,
Is it possible to call Smartform in WD application?
Thanks
Yes it is. Check out the thread [Displaying Smartforms in Webdynpro ABAP |Re: Displaying Smartforms in Webdynpro ABAP; and check the code as Vikrant Trivedi suggested.
Also check the SAP document [How to Display a Smartform as PDF document in Web Dynpro for ABAP|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0de1eb8-0b98-2910-7996-8a3c2fcf6785].
Hope it helps.
Similar Messages
-
FPM Form Scripting - How to call a web dynpro application as pop up
Hi All,
I want to call a web dynpro application as a pop up from FPM form scripting.
Like click on button -Maintain Approval Routing in a FPM form i want to open a web dynpro pop up..
Thanks In Advance.Refer to the post How to show pop up’s in WDA HCMPF by Yugandhar Reddy - on some hints
Hope this helps.
Regards,
Sahir. -
Error while calling COM routines via application prog(return code 1028533-)
Hello Expert,
In Interactive Demand Planning ( /SAPAPO/SDP94 ), when I'm trying to load data in a planning book , error
'Error while calling COM routines via application program (return code 1028533-)' is encountered.
In my selection id, i have only two locations....there is no material selection.
When I select the 1st location and load the data its getting loaded properly.....but when i select the 2nd location and try loading data ...the above error is coming.
I did run /SAPAPO/TS_LCM_CONS_CHECK but the problem persist.
Any advise to fix this issue would be much appreciated.
Thanks.
TomHi Tom,
Please see if below exiting threads help you.
COM error 40134 in Interactive Planning on SCM 5.0 Support Pack SAPKY50011
Error for COM Routine application program (return code 40028)
Thukral -
Calling a Web Dynpro Application from POWL feeder class
Hi,
I know this question is asked before but never answered, but I try again......
I have a own POWL feeder class where I defined a button in method IF_POWL_FEEDER~GET_ACTIONS.
I know that this action can be handled in method IF_POWL_FEEDER~HANDLE_ACTION.
When pressing the button I want do call another web dynpro application.
How can I do this? -> Any Example Coding?
Thank you and best regards, EdgarHi Vineet,
it works, thanks a lot!!!! Best Regards, Eddy
P.S.: Here is the coding for triggering the event and passing parameters for the selected POWL table line:
METHOD if_powl_feeder~handle_action.
DATA: ls_parameter TYPE powl_namevalue_sty.
DATA: lt_flights TYPE ty_flights.
DATA: ls_flight TYPE sflight.
DATA: ls_selected TYPE rstabix.
FIELD-SYMBOLS: <lt_fligts> TYPE STANDARD TABLE.
IF i_actionid = 'EDIT'.
* Important: this triggers the event
e_portal_actions-fire_wdevent = abap_true.
* Pass parameters to event
ASSIGN c_result_tab TO <lt_fligts>.
lt_flights = <lt_fligts>.
* Determine the first selected row
READ TABLE c_selected INTO ls_selected INDEX 1.
* Read selected POWL data
READ TABLE lt_flights INDEX ls_selected-TABIX INTO ls_flight.
CHECK sy-subrc = 0.
* Pass parameters
ls_parameter-key = 'ACTIONID'.
ls_parameter-value = 'I_ACTIONID'.
APPEND ls_parameter TO e_portal_actions-parameters.
ls_parameter-key = 'CARRID'.
ls_parameter-value = ls_flight-carrid.
APPEND ls_parameter TO e_portal_actions-parameters.
ls_parameter-key = 'CONNID'.
ls_parameter-value = ls_flight-connid.
APPEND ls_parameter TO e_portal_actions-parameters.
ls_parameter-key = 'FLDATE'.
ls_parameter-value = ls_flight-fldate.
APPEND ls_parameter TO e_portal_actions-parameters.
ENDIF.
ENDMETHOD. -
Calling a web dynpro application via portal using SSO
Hello Expert,
i have a requirement where i need to call a web dnpro application via portal.
But it is asking for user name and password.
i want to call using single sign on.
Can u please suggest a way.
i did the coding like this:-
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = l_c_appl_name
IMPORTING
out_absolute_url = l_v_gv_url_string.
l_v_icf_url = l_c_icf_url_val. "#EC SYNTCHAR
CALL METHOD cl_icf_tree=>if_icf_tree~service_from_url
EXPORTING
url = l_v_icf_url
hostnumber = l_c_0
authority_check = space
IMPORTING
icfactive = l_v_m_sso_active.
IF l_v_m_sso_active = l_c_x .
CREATE OBJECT o_viewer
EXPORTING
parent = o_empty_co.
CALL METHOD o_viewer->enable_sapsso
EXPORTING
enabled = l_c_x
EXCEPTIONS
OTHERS = 0.
l_v_gv_url_c = l_v_gv_url_string .
CONCATENATE l_v_gv_url_c l_c_url_string p0022-pernr INTO l_v_gv_url_c.
CALL METHOD o_viewer->detach_url_in_browser
EXPORTING
url = l_v_gv_url_c
EXCEPTIONS
cntl_error = 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
RAISING error_occured.
ENDIF.
cl_gui_cfw=>flush( ).
ENDIF.
but it is not working
thanks
MaheshHi Mahesh,
You need to setup a Single Sign On between SAP Portal and ECC system where yoy are doing the development.
Ask basis team to setup the single sign on and usually this is the job done by Basis teams. Refer the below link to get some idea on SSO setup:
http://scn.sap.com/community/enterprise-portal/blog/2013/12/15/sso-configuration-between-sap-portal-73-and-ecc-60-ehp-6
Thanks
Krishna -
Examples of 'calling a web dynpro application with parameters'
Hi!!
I'm I have been watching manual 'Web dynpro for abap: advanced concepts' in the sections 'url parameters' and 'calling a web dynpro application with parameters'.
Is there some example where these terms are seen.
Thanks in advance.Hi Ana,
a window inbound plug can have parameters.
These parameters are automatically fished out of the URL by the framework.
So your inbound plug handler method has easy access to the parameters.
URL
http://<host>:port/sap/bc/webdynpro/sap/<your application>?param1=xyz¶m2=abc
The application is configured to call an inbound interface(window) and plug.
The plug can be declared with parameters.
Double click on window inbound plug and add your parameters.
The parameters are made available by framework if present in Launch URL.
You can also call an application that has parameters directly entered on the parameters tab.
ie Parameters can be part of the application launch.
regards
Phil -
How do we call smartforms in abap program or web services
how do we call smartforms in abap program or web services
How many types of smartforms are there?
points will be rewardedHi
See this sample program
Using the fun module smartform is called from the program
Calling SMARTFORMS from your ABAP program
REPORT ZSMARTFORM.
Calling SMARTFORMS from your ABAP program.
Collecting all the table data in your program, and pass once to SMARTFORMS
SMARTFORMS
Declare your table type in :-
Global Settings -> Form Interface
Global Definintions -> Global Data
Main Window -> Table -> DATA
http://sapr3.tripod.com
TABLES: MKPF.
DATA: FM_NAME TYPE RS38L_FNAM.
DATA: BEGIN OF INT_MKPF OCCURS 0.
INCLUDE STRUCTURE MKPF.
DATA: END OF INT_MKPF.
SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
MOVE-CORRESPONDING MKPF TO INT_MKPF.
APPEND INT_MKPF.
ENDSELECT.
At the end of your program.
Passing data to SMARTFORMS
<b>call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZSMARTFORM'</b>
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
if sy-subrc <> 0.
WRITE: / 'ERROR 1'.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call function <b>FM_NAME</b>
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
GS_MKPF = INT_MKPF
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.
<b>Reward points for useful Answers</b>
Regards
Anji -
How to call smartform FM after using SSF_FUNCTION_MODULE_NAME?
Hi Experts,
How to call smartform FM after using SSF_FUNCTION_MODULE_NAME?
I mean, in driver program i called SSF_FUNCTION_MODULE_NAME to get the related FM for my smart form. after that How do I call it(smartform fm) . I tried to call by pressing PATTERN button in Report. but it is showing FM is not exist error.
Call function SSF_FUNCTION_MODULE_NAME
Export
formname = 'zsmartform'
import
fm_name = function_name.
function_name is stored the corresponding smartform fm. then How do i call it to process my smartform?
thanks in advance.hi,
Chk this sample.
DATA: p_output_options TYPE ssfcompop, "occurs 0 with header line
p_control_parameters TYPE ssfctrlop. "occurs 0 with header line
p_output_options-TDCOPIES = 3. "number of copies.
p_output_options-tddest = 'LP01'. "def
p_control_parameters-no_dialog = 'X'. "no dilog box
p_control_parameters-preview = 'X'. "no preview
DATA : v_form_name TYPE rs38l_fnam.
*---- Function to get the function module name of the ----
*---- specified Smart form. ----
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'GIVE YOUR SMART FORM NAME'
* VARIANT = ' '
* DIRECT_CALL = ' '
IMPORTING
fm_name = v_form_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3 .
*---- Function Module to call the Smart Form ----
*step 1 - go to ur smart form
*step2 - take environment
*step3-take function module name
*copy that unique number.
*step4 -come back to ur driver program.
*step5 - place ur cursur here. take patter,.give that unique number.
*at that time u will get the below code.
*step6 - rename that unique number with 'v_form_name' in the code generated by pattern.
CALL FUNCTION v_form_name
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_PARAMETERS =
control_parameters = p_control_parameters
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
output_options = p_output_options
user_settings = ' '
* ARCHIVE_INDEX_TAB =
* IMPORTING
* DOCUMENT_OUTPUT_INFO =
* JOB_OUTPUT_INFO =
* JOB_OUTPUT_OPTIONS =
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.
for any clarifiaction pls revert.
regards,
Reshma -
How to call a WD JAVA application from a WD ABAP application
Hi experts,
Here I have two applications with me. One has been created through WebDynpro ABAP while the other one has been created through WebDynpro JAVA. Now i have to call upon the JAVA aplication from my ABAp application. In other words in need to integrate both the applications so as to have an easy navigation in between them.
In the whole process I need to take care that the data is not lost from both ABAP or JAVA side.
Please help me someone knows the solution.
Regards,
Kaustubh MaithaniHi,
Usally to run WebDynpro for Java Application, we get the Application URL.
If you want to call this WebDynpro Java Application from Webdynpro Abap, then create UI element like Link to Action or LinktoURL and give the url as WebDynpro for Java URL.
Regards,
Lakshmi Prasad. -
How to call smartform in me54n
Hai All,
Iam developing a smartform for PR print with ztcode,the user asked me that,he dont want seperate tcode,in me54n tcode itself he want
print.I have tried in the enhancement spot but it is not firing.
Regards,
Siva jyothi.Hi ,
The print button creates a spool number through which you can get ALV output of the ITEM details but cannot call smartform from that.
PR is just an internal document.There is no other way to do it(As far as i know).
You now have only two options to go for:
1) Create a subscreen with a pushbutton , and then call the driver program to print the smartform.
2) A Z transaction to print the PR , which you have already done.
Let me know if you find any other way to do it.
Br.
Giri -
Hi all,
i want to print the data that i have in Portal (WD) in a PDF via Smartforms,
can somebody tell me how can i do this?
Best Regardsget the Smartform function module
call smartform
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = '<Smartform name>'
IMPORTING
FM_NAME = LV_FUNC_MOD_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
IF SY-SUBRC <> 0 .
RETURN.
ENDIF.
call LV_FUNC_MOD_NAME with Control parameter NO_DIALOG,GET_OTF marking X
*convert the OTF to PDF using
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = 132
IMPORTING
BIN_FILESIZE = LV_LENGTH
BIN_FILE = LV_XSTRING
TABLES
OTF = LT_RETURN-OTFDATA
LINES = LT_TLINE
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
ERR_BAD_OTF = 4
OTHERS = 5.
IF SY-SUBRC <> 0.
RETURN.
ENDIF.
now use use runtime service method to push the PDF to browser client
CL_WD_RUNTIME_SERVICES=>ATTACH_FILE_TO_RESPONSE -
Excel sheet generation through RFC call from a BSP application
Hi,
I am calling a RFC FM ( in R3) in Event handler 'OnInputProcessing' of a BSP application in a SRM server.
That function submits a report program which geneates a excel sheet using download FM . Excel sheet is not getting generated.
But when i am calling this RFC FM (in R3) from a report program ( in srm server)
this is generating an ecel sheet.
I want to have call RFC from BSP application.
I tried the way of submit a program ( which contains RFC call) from BSP application ,but it is also not generating excel sheet.
My ultimate AIM is to generate excel sheet by trigerring CALL or submit from BSP
application.
can any one propose solution for it.
Useful answers will be rewarded.Hi,
Which FM is it. I guess that the download generated is a SAP gui oriented solution, which will never work in a web environment
Eddy
PS. Reward useful answers and earn points yourself -
Assume that a Labview application is running on a PC. The PC has a DC battery. When a "power off" is detected on the AC line, data should be saved, Labview application and Windows should be closed.
What kind of function(s) (of which dll) should be called by a Labview application to realize this data and system management in a safe manner ?UPS (Uninterrupted Power Supply) systems can send messages to the PC through the serial port when the AC is lost and when battery is low. I'm not sure how this message is sent but I suspect they use Windows Messaging. If you could find this out, you could write your vi to constantly look for this message and shutdown when it sees the message.
- tbob
Inventor of the WORM Global -
Call the ess payslip application using a URL
Hi
i want to
1. call the ess payslip application using a URL
2. and pass PERNR as parameter to this URL so that the salary slip displayed is for that particular PERNR.
i am able to get the payslip application through URL.
Now how to acheive point no. 2 ?
Regards
Rajendra
Edited by: Rajendrakumar Gaikwad on Dec 30, 2008 11:55 AMHello
If this is not possible , let me know which BAPI it is calling to create the pdf
so that i will create a application to call the BAPI itself and pass PERNR .
Regards
Rajendra -
i have created a ITS screen which in turn calls a Abap report
I want to call this ITS screen from a BSP application .
Could you please provide some sample code which is used to call ITS from BSP application..
Useful answers will be rewarded
ThanksSince it is related to both ITS and BSP i thought i can post it in both. and also i didnt get answers for the queries..... for a long time. Anyhow i will take your suggestion for my future query.
i hv done using iframe to call my ITS application.
I can able to call the Bsp application whichin turn calls its screen abap program.
while executing , the selecting the directory from the file browse pop up doesnt work for downloading the file
becos the client , they will not change the settings related to applet in the internet browser for security reasons.
I hav to make it some how to make it work in the portal which calls this BSP application..
at the moment i mapped this BSP application to the user role in the SUS Portal . but it appears in the SUS portal . but i m not able to click the application and also handsymbol is not seen while bringing the mouse to that area.
Could you please tell me , how to use Action_id for that particular application, Authorisation profile settings.
Kindly give your suggestions asap.
Maybe you are looking for
-
Which mac mini is better for running a Wacom 24HD
Should i get 2.7GHz Dual-Core Intel Core i7 with 8GB ram or the 2.0GHz quad-core Intel Core i7 with 8GB ram i hear that AMD Radeon HD 6630M which comes with the Dual-core is better than Intel HD Graphics 3000 which comes with the Quad-core This will
-
Errors closing Word multiple documents
Since upgrading to GroupWise 7 Support Pack 3 this problem occurs for everyone: Multiple Word documents have been opened. Closing any of the open Word documents will cause the message to appear 'This file is in use by another application or user'. Th
-
Get the id or namespace of container of ADF Task flow
Hi, I have an ADF Task flow and I put it inside either a region in a jspx page or portlet page. And I want to refer to the component in the adf page fragment in javascript by its id. How do I dynamically detect the id of the container of the ADF task
-
[SOLVED] dwm config
[SOLVED] Hi, I am asking for help with my dwm config. What I want it to do is, instead of snapping directly to the edge of the screen, I want it to snap a certain distance away from it (and maybe other windows). Can someone point me in the right dire
-
Turn Telstra Online Security features on or off
Step 1 On the Telstra Online Security dashboard select the Computer Protection icon Step 2 Click on the Computer Protection icon. This will expand the product dashboard to offer more options. Step 3 Next to the computer protection heading will be the