How to call a smartform in a bsp application
Hi,
I would like to have an example or code for calling a Smartform in a BSP program.Can anyone suggest me in this ?
Thanks in Advance,
shwetha
Hi,
Also chek the BSP application sf_webform_01 and page form.htm in it.
Go through the event OnInitialization of the events of form.htm too.
Hope this will be useful.
Rgds,
Vijayalakshmi
Similar Messages
-
How to call a Webdynpro view from BSP page (MVC) in a new window?
Dear Experts,
kindly advise how to call a webdynpro view from BSP application after performing an event (through button or hyper link).
Regards,
Sarat.Hi,
This has been discussed many times in several forums.
Please check the method CL_WD_UTILITIES=>CONSTRUCT_WD_URL, to create a runtime url for your WD Application and call this URL.
Refer thread: Call Webdynpro Application from BSP Application
Hope this will be useful!
Regards,
Meganadhan S -
How to call an abap report in BSP..
hi all,
Please can anybody tell me how to call an abap report in BSP application.....since I am new to BSP....
with regards,
Santoshcheck this thread
Urgent!! How to call a custom transaction or an ABAP program in BSP? -
How to call our smartform in standard report
Hi friends,
How to call Zee smartform from standard report without affecting stadard flow.
Thanks,
YogeshHi,
do it this way.
in the ALV function call
give in
exporting
I_CALLBACK_USER_COMMAND = 'user_command '
write a subroutine
FORM user_command USING whatcomm TYPE sy-ucomm whatrow TYPE
slis_selfield.
case whatcomm.
when 'print'.
call 2 function modules here
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING FORMNAME = P_FORM "Your form name
variant = ' '
direct_call = ' '
IMPORTING FM_NAME = FM_NAME
EXCEPTIONS NO_FORM = 1
NO_FUNCTION_MODULE = 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.
EXIT.
ENDIF.
calling the generated function module
CALL FUNCTION FM_NAME
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = CPARAM
OUTPUT_OPTIONS = OUTOP
USER_SETTINGS = SPACE
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
IMPORTING
JOB_OUTPUT_INFO = TAB_OTF_DATA
DOCUMENT_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.
endcase.
endform.
This is an example in the function gereated call give you own importing and exporting parameters.
Regards
Kiran Sure -
How to call a servlet by java standalone application
//program related to calling a servlet by java standalone application and printing the response on console
import java.io.*;
import java.util.*;
import java.lang.Object;
import java.net.*;
public class Program
public static void main(String s[])
System.out.println("Hello this programm defines about how to call a servlet with a java application ");
try{
URL servlet = new URL("http://localhost:8080/anchor/studentform.html");
URLConnection conn=servlet.openConnection();
conn.setDoOutput(true);
InputStreamReader isr=new InputStreamReader(conn.getInputStream());
BufferedReader br = new BufferedReader(isr);
String str =br.readLine();
System.out.println("Source code is" +str);
catch(IOException e)
System.out.println("exception is" +e);
i am able to read only one line of the form, please help me out to read the whole form (file)You are only reading one line? Why aren't you reading the data in a loop? E.g. a while loop. (Keep reading till readLine returns null)
Kaj -
How to call a abap report in BSP
hi all,
Please can anybody tell me how to call abap report in BSP..
with regards,
Santosh.Also see below BSP tutorial
http://help.sap.com/saphelp_nw04/helpdata/en/c8/101c3a1cf1c54be10000000a114084/content.htm
Regards. -
How to call a Smartform in Report to print Production Order
Hi all,
Can any one tell me how to develop a smartforms when the user selects the print button in ALV report.
i.e, The requirement is when the user presses the print button in ALV report, at that time it has call the smartform and it has to print the Report.
Can any one shed some light on this.
Regards
YathishHi Yathish
do it this way.
in the ALV function call
give in
exporting
I_CALLBACK_USER_COMMAND = 'user_command '
write a subroutine
FORM user_command USING whatcomm TYPE sy-ucomm whatrow TYPE
slis_selfield.
case whatcomm.
when 'print'.
call 2 function modules here
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING FORMNAME = P_FORM "Your form name
variant = ' '
direct_call = ' '
IMPORTING FM_NAME = FM_NAME
EXCEPTIONS NO_FORM = 1
NO_FUNCTION_MODULE = 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.
EXIT.
ENDIF.
calling the generated function module
CALL FUNCTION FM_NAME
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = CPARAM
OUTPUT_OPTIONS = OUTOP
USER_SETTINGS = SPACE
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
IMPORTING
JOB_OUTPUT_INFO = TAB_OTF_DATA
DOCUMENT_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.
endcase.
endform.
This is an example in the function gereated call give you own importing and exporting parameters.
Kindly reward points if helpful.
Regards
Zarina -
How to call two smartforms with using a single print program
Hi,
I have a requirement wherein I need to call two smartforms using a single print program.
The interface parameters are different in two smartforms.
I presently solved the issue using the smartform names as the reference.
Can anyone let me know if there is any other way to solve it.
I heard something about global params. But not sure.
Please let me know the best possible way to solve this issue.
Thanks and Regards,
DebabrataHi Debabrata,
Based on the condition in your print program you can call the below code
fname1 TYPE rs38l_fnam.
IF -
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZSMARTFORMS'
importing
fm_name = fname1
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.*
CALL FUNCTION FNAME
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 =
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.
ELSE.
fname2 TYPE rs38l_fnam.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZSMARTFORMS'
importing
fm_name = fname2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.*
CALL FUNCTION FNAME
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 =
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.
ENDIF. -
How to get workitem ID parameter in BSP application in UWL?
Hello All,
okay, it's been a long day and i stuck with this seemingly simple problem - how to get a workitem id in my BSP application when calling from UWL.
Points are guaranteed to all who post an answer.
i got MVC BSP iview is configured to be called for my task in SWFVISU, all re-registered and seem fine. Correct BSP is being called when i execute the workitem from UWL, but wi_id is not passed there.
What am i missing?
Thanks!Hi Serge
How you solved it .I have same issue please let me know.
Thanks -
How to find the Name of the BSP Application Being Invoked?
Hi ,
Is there any FM or method that would return the name of the BSP Application being invoked?
Say i have a method A which is being invoked by 2 BSP Application B and C. How do we determine which BSP is invoking the method A?
Any input on this regard will be of great help.
Thanks and Regards,
PavithraHi,
this methods are not 100% efective but you may try it:
On runtime:
set an external breakpoint in your method A and run your application. When it stops, the debugger has many folders, so press the one marked with "Standard" and in section ABAP stack you see the different call steps that have been executed, including the application that is calling the method.
For this you must activate the new debugger (Utilities --> settings --> ABAP editor --> Debugging)
On development time:
Click on method A and press button Where-used list. In the incomming window press BSP applications.
Hope it helps. -
Calling of Sapscript program from BSP Application
Hi,
I have a requirement to display the sapscript output in PDF throgh BSP.
In the Application program I am taking the output in PDF format.
Now While calling the Driver program in BSP it is giving dump.
I am using Submit 'Prog_name' and return.
Pls help.Hi Thanuja,
You cannot call the program using SUBMIT PROGRAM in BSPs.
You can create PDF from a Smart Form. <i>I have no idea of SAPSCRIPTS calling from BSPs.</i> You can do one thing, you can migrate your SAPSCRIPTS to SMARTFORMS and try the below code.
You can call the the below three FMs in the following sequence.
1)
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = l_form_name
importing
fm_name = l_function_module_name
exceptions
no_form = 1
no_function_module = 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.
2) call function l_function_module_name
3) call function 'CONVERT_OTF'
Thanks,
Sreekanth -
How to deal the timeout session in BSP application
Hello everybody,
inside a BSP application, I want to inform the user that he is near to reach the timeout of its session.
So I wonder how to know the lifetime of the session and how to calculate the time from its connection.
Anyone of you can help me on his topic?
Thanks in advance.Starting point: <a href="/people/mark.finnern/blog/2003/09/24/bsp-in-depth-confusion-between-stateless-stateful-and-authentication">BSP In-Depth: Confusion between Stateless, Stateful and Authentication</a>
The trick will be to after each roundtrip set a JavaScript timer tied to a alert statement. The weblog gives you ideas of what values you want to look at. -
How to generate the output of a BSP application in PDF format?
Hi,
I need to modify one BSP application, which generates its output in the form of PDF. I have checked all the methods in the bsp pages and its corresponding controller class's. I couldn't find any relevant method, which deals with generating the output in PDF.
Could you please share your valuable thoughts on this?
Again it would be helpful, If anyone of you share some knowledge on Interactive Adobe Forms.
Thanks,
John>
I am using oracle version 11.2.0.1, I have set a cronjob which will run on every 15 minutes and give us a log file mentioning the execution time taken for that SQL query:-
The above query will return the output as well as the time taken for execution of the query. I want to suppress the output of the query and only want the time taken to be printed. Is it possible by set commands. I have marked the output as bold and made it Italic.
>
How would that even be useful?
A query from a tool such as sql*plus is STILL going to send the output to the client and the client. You can keep sql*plus from actually displaying the data by setting autotrace to trace only.
But that TIME TAKEN is still going to include the network time it takes to send ALL rows that the query returns across the network.
That time is NOT the same as the actual execution time of the query. So unless you are trying to determine how long it takes to send the data over the network your 'timing' method is rather flawed.
Why don't you tell us WHAT PROBLEM you are trying to solve so we can help you solve it? -
How to use Portal SSO with existing BSP application
Hi all,
we run SAP EP 6.0 here and have a single start BSP page of
an application integrated with the SAP appintegrator for BSP. The rest of the existing BSP application still uses
the login functionality based on CL_BSP_LOGIN_APPLICATION
and is not integrated in the portal.
Problem: If a user directly accesses one of the "old" BSP pages, he should be redirected to the portal to auth. him via SSO and afterwards the original BSP page with all its parameters should be processed.
How to deal with that? Is there a similar mechanism like with the BSP_LOGIN_APP in between for the SAP EP?
Thanks for your help!
-RAINER-I think that doesnt solve the problem.
I have 2 systems: SAP ECC with all BSPs and the portal on another system. So I have to entry points: Via portal using the appIntegrator BSP or directly to the ECC.
As-is: If the auth. for the BSP appl. fails, the user is re-directed via the error page given in the service (SICF)
to a BSP login app. and from there to the requested page.
No portal in this concept.
Must-be: A user is still able to directly access a BSP on the SAP ECC by entering the URL in the browser. It's not a must entering via the portal first.
So when the login failed on the ECC (no SSO ticket), he should be redirected to the portal for getting his SSO.
After he signed in successfully the user will be forwarded to the BSP page he entered in the browser the first place.
I can't see a way to use the URL iView. I am thinking of simply changing the login mechanism of the BSP using the portal login functionality.
The link you gave me offers an implementation of CL_ICF_SYSTEM_LOGIN. Any ideas?
Regards,
-RAINER- -
How to call a web Service from Oracle Applications?
Hi friends,
I've posted this question on OA Framework forum , but may be it's more appropiated put it here. Sorry for do it again:
It's about how to call a web service from a Form or a .sql (via Request) in Oracle Applications:
Could you please explain here the detailed steps (with code example if it's possible) to invoke a webservice from Oracle Applications?.. how did yo do it...?
I've read differents posts here and the 33097.1 metalink note (by the way, the first recommended link in this note is broken...), but there are lots of theorical concepts and no real examples to see how/from where invoke the WS
I'll have to call one webservice (I suppose the customer will give me the interface implementation)...but I've never did it with Applications so that's why I ask you for all the detailed steps...
I work with Forms 6i, Apps 11.5.10.2 and DB 9.2.0.7.
Thanks a lot.
Jose.Hello Jose,
I did using java program to call BPEL web services in 11.5.10.
I pasted below the metalink note for your reference (Note:250964.1)
The idea is first write a java program to call the webservice (in my case it is calling an BPEL web service, so this may not help directly), test it.
Then port the java program as specified in the note, so that you could call your web service through concurrent manager scheduler.
Is this ok?
Thanks
Arun.
======================================================
Checked for relevance on 25-Apr-2007
Application Install - Version: 11.5.8 to 11.5.10
Goal
====
How to register and create a Java concurrent program for Oracle Applications
Release 11i
Solution
========
1. Create your Java Concurrent Program (JCP) , using a text editor.
/*===========================================================================+
| Concurrent Processing Sample Code |
| |
| FILENAME |
| Hello.java |
| |
| DESCRIPTION |
| Sample Java concurrent program |
| About the simplest possible program, just writes a message to the |
| logfile and output file. |
| |
| HISTORY |
| $Log$ |
| |
+===========================================================================*/
package oracle.apps.fnd.cp.sample;
import oracle.apps.fnd.cp.request.*;
public class Hello implements JavaConcurrentProgram {
public static final String RCS_ID = "$Header$";
public void runProgram(CpContext ctx) {
ctx.getLogFile().writeln("-- Hello World! --", 0);
ctx.getOutFile().writeln("-- Hello World! --");
ctx.getReqCompletion().setCompletion(ReqCompletion.NORMAL, "");
=======================================
End Sample
=======================================
2. Create a sample directory under $JAVA_TOP:
$ mkdir $JAVA_TOPoracle/apps/fnd/cp/sample
3. Copy Hello.java into $JAVA_TOP/oracle/apps/fnd/cp/sample:
$ cp $HOME/Hello.java $JAVA_TOP/oracle/apps/fnd/cp/sample
4. Compile your java program:
javac $JAVA_TOP/oracle/apps/fnd/cp/sample/Hello.java
5. Test at the command line with following syntax:
jre -Ddbcfile=$FND_TOP/secure/your_dbc_file.dbc \
-Drequest.outfile=./outfile \
oracle.apps.fnd.cp.request.Run \
oracle.apps.fnd.cp.sample.Hello
6. Register your custom java concurrent program with Oracle Applications.
a. Navigate: Concurrent > Program > Executable
b. Enter details into the form
Executable: JCPHELLO
Shortname: JCPHELLO
Application: Application Object Library
Execution Method: Java Concurrent Program
Execution File Name: Hello (Insert a name that does not contain space or period)
Execution File Path: oracle.apps.fnd.cp.sample
c. Save the details
d. Navigate: Concurrent > Program > Define
e. Enter details into the form
Program Name: JCPHELLO
Program Shortname: JCPHELLO
Application: Application Object Library
Executable: Choose JCPHELLO from LOV
Executable Options :
f. Save the details
7. Add this new concurrent request to your responsibility request group.
a. Navigate > Security > Responsiblity > Request
b. Query System Administrator
c. Add new row and choose TestJava
d. Save the changes.
8. Run your new Hello Java Concurrent Program
Navigate: Request > Run
References
~~~~~~~~~~~
Oracle Applications Developers Manual for Release 11i A75545-01
====================================================
Maybe you are looking for
-
Evaluated receipt settlement open, deletion not possible in R3
I am getting an error message "Evaluated receipt settlement open, deletion not possible" in R3 (message no ME867) when trying to delete a line item in PO. We did a GR and than reversed it (102 movement). I also unchecked the ERS flag and GR based IV
-
Dreaded 90 degree and screen goes black
I have been putting up with my ibook screen going dim whenever you open the screen to 90 degrees for about five months. However, it is now starting to become really annoying because I have to switch the computer off, close the screen and reboot it in
-
In our business we use multi level configuration, as a result, when we use CU51 to manage Engineering to Order details on Sales Order BoM the lower level configuration is part of the CU51 activities. When we complete any actions in CU51 and save the
-
ABAP objects - what a headache!!!
Howdy, Objects is really getting me down. I had a program that worked really nicely when I'd created the classes locally within the program. Now I've created the class globally via SE24 and whenever I try to run the program I get a dump beacuse of a
-
Process modelling : Design patterns & Best Practices
Hi Could some one please suggest/share any technical information or documents tha's related to 'Process modelling - Design Patterns & Best Practices' Thanks in Advance Santosh K. Edited by: Santosh539 on Jul 29, 2010 4:07 PM