Help for Calling RFC in B2C application.
hi,
We had written one RFC and all java classes related to that.
we are able to call RFC in b2c application.we are calling RFC on loading of JSP.
now my requirement is to call same RFC in other JSP but muliple times(in a for loop).But how can i do that?
one thing is sure we cannot calll this RFC on loading of new jsp page.we have to call inside jsp page(in a loop).
there is any way?
please help me out.
thanks in advance.
jayesh talreja
Two things I would like to say here:
1) Calling RFCs directly from JSP is not supported so we need to use interfaces and backend classes.
2) Calling an rfc is java code and in jsp we write java code along with html to make it dynamic...so dynamic
call is also possible.
ie. suppose we want to call our rfc for fetching some data from the backend based on the data entered at item level once the user clicks on update button on order creation page.So we can write the code like below
<%-- messages --%>
<%@ include file="/b2b/itemErrMsg.inc.jsp"%>
<% } %>
<%-- ui.showItemDetailButton() --%>
<% } %>
<%-- ui.isBOMSubItemToBeSuppressed() --%>
<%--Start of addition by Arshid --%>
<!-- From here our custom rfc call is starting-->
<%
String arg1[]= {"crm~isa~isacore~resources_en"};
if((JspUtil.removeNull(item.getProduct()).length()) !=0 && !(JspUtil.removeNull(item.getNetValue()).equals(WebUtil.translate(pageContext,"yourcompany.order.minimumValue",arg1))) )
String baseUOM = "";
int enteredQuan= 0;
double minOrderQuan = 0.00;
double roundingValue = 0.00;
BusinessObjectManager isaBOM = (BusinessObjectManager)userSessionData.getBOM(BusinessObjectManager.ISACORE_BOM);
User user = (User)isaBOM.getUser();
Shop shop = (Shop)isaBOM.getShop();
String distrChannel = shop.getDistributionChannel();
String sod = shop.getSalesOrganisation();
Z_CustomBusinessObjectManager customBOM = (Z_CustomBusinessObjectManager)userSessionData.getBOM(Z_CustomBusinessObjectManager.CUSTOM_BOM);
//Z_prodInfoValue is a bo that will hold the data returned from rfc call
Z_prodInfoValue z_prodinfo = customBOM.getZ_prodInfobo().getProdInfo(Zeropadding.productInfoNoPadding(item.getProduct()), sod, distrChannel);
<!-- Call ends here and this piece of code is called for every item on clicking on update buton -->
Although this is not a good code design as instead of making multiple calls to the backend we can get the above thing done in a single call also.I wrote this code just to give an example .
This clearky proves we can have dynamic calls to the backend through jsps also.
But Jayesh, your question is not very clear to me.
If its about for loop, where you want to call the backend for multiple times with different set of values than i would rather suggest you to create lists of these different datasets and send these in a single call to the backend and fetch the data similarily in tables in a single call.
Regards,
Arshi
Similar Messages
-
Calling RFCs from Webdypro application!!!!
Can anybody show me a suitable example for calling rfc from webdynpro application.
Hi steve,
Look at this tutorial..
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/tutorial on accessing abap functions in web dynpro - 4.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/tutorial on handling transactions with bapis in web dynpro - 5.htm
Follow the steps provided in those documents.
You can easily understand how to access ABAP functions from WebDynpro.
Let me know if you need more help on this.
Regards,
Karthick -
F4 help for file path in the Application server
Hi All,
i want to provide the F4 help so as to enable us to give the file path in the application server (AL11). I'm in version 4.0
Regards
ShekharHi
Copy paste the following code and see the result
Here you can see 2 types of open dialogs
1. Directory View
2. File View
Use any one as per your requirement.
DATA : l_filetable TYPE filetable,
l_rc TYPE i.
DATA: l_folder TYPE string,
l_file TYPE string.
PARAMETERS: p_folder(100) TYPE c,
p_file(100) TYPE c.
*Provide a Dialogue box for getting a folder path
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_folder.
CALL METHOD cl_gui_frontend_services=>directory_browse
EXPORTING
window_title = 'Select Folder Path'
initial_folder = 'D:\'
CHANGING
selected_folder = l_folder.
p_folder = l_folder.
*Provide a Dialogue box for getting a file path
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CALL METHOD cl_gui_frontend_services=>file_open_dialog
EXPORTING
window_title = 'Select a Text File'
initial_directory = l_folder
CHANGING
file_table = l_filetable
rc = l_rc.
Reward points generously
Regards
Akshay Chonkar
READ TABLE l_filetable INTO p_file INDEX 1.
CHECK sy-subrc <> 0. -
Little help for calling report from a form
hi,
I AM NOT ABLE TO CALL THE REPORT WITH THE FOLLOWING CODE. PLEASE TELL ME WHERE I AM DOING WRONG! THANKS A LOT!!
It is Oracle 9i and Reports 6i.
-> I have a form with only one BUTTON.
-> I have a REPORT with only one USER PARAMETER 'P_1' which is a number.
-> I have only one query INSIDE the report. It is "SELECT * FROM EMP WHERE EMPNO = :P_1'
-> I added the report to form in the OBJECT NAVAVIGATOR of FORM and the NAME OF REPORT is 'REOPRT4'
here is the code on the form:
================================
When_button_pressed
DECLARE
vid report_object;
vname varchar2(100);
BEGIN
vid := find_report_object('Report4');
vname := run_report_object(vid);
END;
==================================
-> the FORM and REPORT are in "c:\helloworld" directory.
-> the error I am getting is 'internal pl/sql error'
-> I WANT THE USER TO ENTER THE RUNTIME PARAMETER FOR THE REPORT AT RUNTIME, so no need to worry about supplying the parameter through code!!!
Thank You very much. I appreciate your kind help!!I think that you have to add some code, see page 15 in this:
http://otn.oracle.com/products/forms/pdf/277282.pdf
Helena -
GUID in CRM Online for Objects in ISA b2c Application
Hi All
I am trying to find GUID for Some Objects Like Saved Basket Entries in CRM Online throgh Internet Sales 4.0
<b>Scenario b2c</b>.
Can Anybody Guide !!!!!!
Thanks & Regards
Ravi Sah<i>Hi Roman
Thank you for your attention.
I needed to Find where Exactly Saved Basket( In Shopping Basket Module: <b><b>Save Basket as</b> Functionality</b>) is Stored in CRM . So I tried with Logging & Tracing to get the Function Module( which in turn contain the export tables ) needed to save those type of Basket Only.
But coudnt find Exact One as it wasnot relavent.
So by Stephen's Help i could know the Function Module as <b>CRM_ISA_BASKET_SAVE</b> but the Export Parametrs which it corrosponds , even there i could not find where those Basket Object is saved.
So Last Option i had that if by some means , if i can get some method to get the GUID of the Entity of Saved Basket. We can Search the Exact Location .
So I need ur Help in these Context can u help me !!!!!
Thanks & regards
Ravi Sah</i> -
Help for ICSS registe a B2C account
Hello All,
I want to registe a B2C account in ICSS, but even I input all fields, the button of 'submit' still can not be click. I do not know why. Are there any configuration I have not do?
It is urgent. Need for your help.Hi Gordon,
Please follow the following note number 885866 at http://servce.sap.com/notes.
In this note it is clearly defined the solution to your problem.
Reward points if it helps.
Regards
Pranay -
URGENT help for calling a window from a flash button in a frame not working
Hello, i'm really desperated, because i can't call a window
in a frame from flash with the getURL, i tried other but do
nothing! and something of external something doesn't work too, so
please can enya tellme what can i do???? i'm using flash 8
professional, explorer 6, (and let me tell you that i didn't have
issues before)!!chen1 wrote:
> Hello, i'm really desperated, because i can't call a
window in a frame from
> flash with the getURL, i tried other but do nothing! and
something of external
> something doesn't work too, so please can enya tellme
what can i do???? i'm
> using flash 8 professional, explorer 6, (and let me tell
you that i didn't have
> issues before)!!
Please search the forum, in past weeks I personally replied
to the very same topic
few times.
Search for "Flash Player 9 - broken getURL doesn't open
specified frame"
and "Problems with flash navigation in Internet Explorer 7"
Best Regards
Urami
!!!!!!! Merry Christmas !!!!!!!
Happy New Year
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
hello experts,
are there any example using function 'REUSE_ALV_HIERSEQ_LIST_DISPLAY' with editable columns.
Or, have somebody an idea to resolve my problem.
I can edit the fields in the alv-grid, but I don't see the changes in the internal table using 'LVC_TRANSFER_FROM_SLIS' function.
thanks and regards.
K. WErnerhi,
here is the code for editable Hieararchical ALV
TYPE-POOLS : slis.
TABLES : mseg.
DATA : BEGIN OF itab_head OCCURS 0,
mat LIKE mseg-matnr,
* matnr LIKE mseg-matnr,
werks LIKE mseg-werks,
END OF itab_head.
DATA : BEGIN OF itab_item OCCURS 0,
* mat LIKE mseg-matnr,
matnr LIKE mseg-matnr,
werks LIKE mseg-werks,
mblnr LIKE mseg-mblnr,
menge LIKE mseg-menge,
END OF itab_item.
DATA : t_fcat TYPE slis_t_fieldcat_alv,
key_info TYPE slis_keyinfo_alv,
t_eve TYPE slis_t_event,
gt_subtot TYPE slis_t_sortinfo_alv,
subtot LIKE LINE OF gt_subtot,
t_listhead TYPE slis_t_listheader,
st_line TYPE slis_listheader.
DATA : lin_no TYPE i.
DATA : t_mtdoc LIKE mseg-mblnr.
SELECT-OPTIONS : mat FOR mseg-matnr.
INITIALIZATION.
PERFORM build_cat USING t_fcat.
PERFORM build_eve.
START-OF-SELECTION.
PERFORM get_data.
PERFORM dis_data.
*& Form build_cat
* text
* -->TEMP_FCAT text
FORM build_cat USING temp_fcat TYPE slis_t_fieldcat_alv.
DATA : wa_fcat TYPE slis_fieldcat_alv.
wa_fcat-tabname = 'ITAB_HEAD'.
wa_fcat-fieldname = 'MAT'.
wa_fcat-seltext_m = 'Material'.
APPEND wa_fcat TO temp_fcat.
CLEAR wa_fcat.
wa_fcat-tabname = 'ITAB_HEAD'.
wa_fcat-fieldname = 'WERKS'.
wa_fcat-seltext_m = 'Plant'.
wa_fcat-edit = 'X'.
wa_fcat-input = 'X'.
APPEND wa_fcat TO temp_fcat.
CLEAR wa_fcat.
wa_fcat-tabname = 'ITAB_ITEM'.
wa_fcat-fieldname = 'MBLNR'.
wa_fcat-seltext_m = 'Material Doc.'.
APPEND wa_fcat TO temp_fcat.
CLEAR wa_fcat.
wa_fcat-tabname = 'ITAB_ITEM'.
wa_fcat-fieldname = 'MENGE'.
wa_fcat-seltext_m = 'Quantity'.
wa_fcat-edit = 'X'.
wa_fcat-input = 'X'.
wa_fcat-do_sum = 'Y'.
APPEND wa_fcat TO temp_fcat.
CLEAR wa_fcat.
subtot-spos = 1.
subtot-fieldname = 'MAT'.
subtot-tabname = 'ITAB_HEAD'.
subtot-up = 'X'.
subtot-group = 'X'.
subtot-subtot = 'X'.
subtot-expa = 'X'.
APPEND subtot TO gt_subtot.
ENDFORM. "build_cat
*& Form build_eve
* text
FORM build_eve.
DATA : wa_eve TYPE slis_alv_event.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = t_eve
* EXCEPTIONS
* LIST_TYPE_WRONG = 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.
ENDIF.
READ TABLE t_eve INTO wa_eve WITH KEY name = 'TOP_OF_PAGE'.
IF sy-subrc = 0.
wa_eve-form = 'TOP_OF_PAGE'.
MODIFY t_eve FROM wa_eve INDEX sy-tabix.
ENDIF.
ENDFORM. "build_eve
*& Form get_data
* text
FORM get_data.
SELECT matnr werks mblnr menge FROM mseg INTO CORRESPONDING FIELDS OF TABLE itab_item
WHERE matnr IN mat.
ENDFORM. "get_data
*& Form dis_data
* text
FORM dis_data.
key_info-header01 = 'MAT'.
key_info-item01 = 'MATNR'.
key_info-header02 = 'WERKS'.
key_info-item02 = 'WERKS'.
REFRESH itab_head.
LOOP AT itab_item.
ON CHANGE OF itab_item-matnr OR itab_item-werks.
MOVE-CORRESPONDING itab_item TO itab_head.
itab_head-mat = itab_item-matnr.
APPEND itab_head.
ENDON.
ENDLOOP.
CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
EXPORTING
i_callback_program = 'ZALV_PRDS'
it_fieldcat = t_fcat
it_sort = gt_subtot
it_events = t_eve[]
i_tabname_header = 'ITAB_HEAD'
i_tabname_item = 'ITAB_ITEM'
is_keyinfo = key_info
TABLES
t_outtab_header = itab_head
t_outtab_item = itab_item
* EXCEPTIONS
* PROGRAM_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.
ENDIF.
ENDFORM. "dis_data
*& Form top_of_page
* text
FORM top_of_page.
CLEAR st_line.
st_line-typ = 'H'.
st_line-info = 'Dhwani Shah'.
APPEND st_line TO t_listhead.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = t_listhead
* I_LOGO =
* I_END_OF_LIST_GRID =
* I_ALV_FORM =
ENDFORM. "top_of_page
reward if usefull..... -
Help For Calling Method........!
I am confused about a problem. When I access the method of EJB A: such as UpdJob(),it works seccessfully,
also it is successful when access EJB B: insert(...).
But when I call the both methods at the same time in a method:
public void bothmethod(){
B.insert();..........(the method of EJB B)
A.UpdJob();........(the method of EJB A)
the result is that the B.insert() is success and the B.UpdJob failed with exception: No Resource Available,ejbStore failed,getConnection...
It looks failed to connect the database.
I don't know what's the matter,who can tell me?
Thanks in advance.you may have closed some resources in calling the B.insert(), and then not establish that resource before calling A.UpdJob()
-
i want to increase a new function in existing web site, just like let customer leave their comment for our product and collect it back to company, after modify or delete these no good one, then post it on to the website....i am a beginner,,,, wish any kind ppls can leave some comment for me...thanks a lot
Since you are a beginner, I'd advice you to take a
look at Marty Hall's website
http://www.coreservlets.com/. You can download the
first edition of his book "core servlets and Java
Server Pages" in pdf format. I like Marty Hall's books too, but I prefer Hans Bergsten's JSP book as a starter.
Try to find something about the MVC or Model View
Controller design pattern. This may seem like
overkill for small web apps, but as soon as you're
trying to add some functionality (as you want to do),
you'll see that you gain time using the MVC.
For this, I strongly recommend the "Apache Tomcat
Bible" from Eaves, Jones and Godfrey.
It explains how to install Java SDK, MySQL, Ant,
Eclipse, Tomcat.Personally, I think all this is beyond the OP. He said he was a beginner. If that means he hasn't even written "Hello, World" or compiled a single Java program, I'd say that all this stuff about Tomcat, Ant, Eclipse, serlvets, and JSPs is well beyond him. I'd discourage anyone from taking on a project like this as their introduction to Java. I'd warn his client against spending their money to buy code from a neophyte. There are plenty of talented people out there who need the work and can do the job without having to climb that learning mountain.
If I've misread the situation, I apologize. No insult intended. Just be realistic in assessing your ability and the difficulty of the project.
% -
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 -
MSS - Business Event Details - Error Unexpected Exception when Calling RFC
Dear Experts,
Manager is getting the Error "Unexpected Exception when Calling RFC from Profile Application 'Business Event' when he tries to get the Training history of ONE employee in MSS. However, he is getting the details for the other employees of his department.
Any inputs on this?
Thank you.I believe it is our custom iView that is incorrect.
-
Calling form from web application
i use the below url for calling form from web application.
http://host51.yan.com/forms/frmservlet?form=test&width=700
i would like to know about "frmservlet"
if it's a servlet file then
where its located in application server10gThe servlet is part of the forms-installation on the application-server, on the local OC4J this is located in $ORACLE_HOME/forms/j2ee/formsapp.ear
What exactly do you want to know about the servlet? -
How can I call RFC FM from webdynpro application for ABAP? Please help!
Hi Experts,
I have a requirement where I have to make a call to RFC enabled function module passing some data from webdynpro for ABAP application. How can I achieve this? Any tutorial or links or docs will be very helpfull.
I have seen some tutorial on Adaptive RFC but it talks about webdynpro for Java.
Can I use "Call function XYZ destination A10" statement in webdynpro for ABAP application?
Thanks
Gopalam doing same thing for my current SRM implementation.I am taking data to SRM server from another R/3 server .
This is solution I have used
1) First of all I have made ABAP connection in SM59 .
Go to SM59 .In ABAP Connection creat ABAP connection with system with which u want communicate .
Eg I am connection with Systems PB1.
So i developed Connection call PB1CLNT800.
2) In my requirement I have taken data in my context from another r/3,
I have give called RFC in my supply function of node.
Call to RFC is as usual.
In my case,
CALL FUNCTION 'RFC_MATNR'
DESTINATION 'PB1CLNT800'
TABLES
IT_MATNR = IT_MATNR.
Onwards I have read my itab IT_MATNR and populated data to context.
Hope solution will serve your purpose.
Give point if it works .If any problem i have other ways.
Cheers
Parag Bhise -
Example-- Call RFC from external Java Application
Update: I need code example to call RFC from External Java application. Can onybody help me?
RGDS
RP
hi all.
i want to create my own log for each interface.
i saw this blog:
/people/michal.krawczyk2/blog/2006/09/20/xi-abap-mapping-logs--more-standard-better-visibility
my doubt is how to catch the error that i see in SXI_MONITOR y put it in a Sub-Objetc.
For example: in sxi_monitor i get the error for my interface NMUCustomer: "No receiver could not be found" or "Error Mapping Traformation".
I created an Object called ZNMUCUSTOMER and a Sub-Objetc called ZERROR.
what i must do to get the error I see in monitor and assign it to Sub-Object??
Rgds.
Message was edited by:
Rodrigo Pertierra
Message was edited by:
Rodrigo Pertierra
Message was edited by:
Rodrigo PertierraHi,
Oh, you are using ABAP mapping ......
then use the following in ABAP mapping ..
TRACE1,TRACE2,TRACE3.... for trace level 1,2,3......
http://help.sap.com/saphelp_nw04/helpdata/en/ba/e18b1a0fc14f1faf884ae50cece51b/content.htm
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/866ce290-0201-0010-338f-b8c3553aaa0f
Regards
Chilla
Maybe you are looking for
-
Apple TV3 Not Showing The Main Screen Icons except Computer
I tried to do everything that i've read in here.. I tried to unplug the power cable for 30 seconds and replug it, same problem occurs. The Main Screen icons don't appear such as Youtube, Radio, the internet, etc.. I get the computer and settings icon
-
Hello, Is there a way that we can know the number of BDOCs (Type: BUS_TRANS_MSG) generated for a particular document/order type ? Any input is much appreciated. Regards Krishna
-
ITunes U Courses Not Transferring From iPad to Library
I have a lot of iTunes U podcasts downloaded on my iPad, but they won't transfer to my MacBook. My MacBook is authorized by the AppleID, but it still won't work. I tried syncing it, but nothing happens and still the podcasts are safe on my iPad.
-
When will Camera Raw support .arw files for the new Sony RX-100?
I have Photoshop Elements 9 and just purchased the RX-100. Currently the .arw raw files the camera produces are not supported in Camera Raw. When will Adobe be supporting this format?
-
My neighbor is looking to possibly buy a Macbook Pro this month. She would like to get the 512 solid state drive upgrade but the cost is utterly nuts. My reply to her was, "why pay less when you can pay more?" Seriously. I did mention that she could