Call a HTML page from ABAP dynamically
Hi,
My requirement : I need send information to a specific URL in a HTML format and get a response ( just the status)
We are using an implicit enhancement to gather the details for this. Once the values are populated into form we need to send this form to a specific URL when the customer is getting saved on XD01/ XD02.
The HTML will not be shown to the user hence I cannot download and then use the execute option using CL_GUI_FRONTEND_SERVICES. ( I have already tried this option and it working perfectly fine )
Any suggestions of the best way of achieving this ?
Thank you.
Regards,
narayani
Hi,
to get the data from URL(http) we have so many function modules under function group SFTP ,recently i used HTTP_GET to get the data from url.
but i don't know how to send the data to url ,but this following link may helps you,
https://help.sap.com/saphelp_nw04/helpdata/en/2b/d920434b8a11d1894c0000e8323c4f/content.htm
Similar Messages
-
How to call an HTML page from a JSP
Hi,
I am getting problem in calling an html page from a jsp
The Sample code is
int rowsAffected = stm.executeQuery("Select * From Table");
if (rowsAffected == 1)
{ %>
<jsp:forward page="xyz.html" />
<%See the other forum where you asked the same question http://forums.java.sun.com/thread.jsp?forum=45&thread=158981
Please refrain from cross posting. -
Call a html page from a applet
did somebody can tell me how call any html page to display in the current window of the browser when the user push a Button in one applet
http://forum.java.sun.com/thread.jsp?forum=31&thread=566530&start=1&range=1
or
http://forum.java.sun.com/thread.jsp?forum=31&thread=566059&tstart=0&trange=100 -
Calling a BSP page from ABAP programme
Dear Friends...
I am cslling a BSP... from an ABAP program... for that I have used this class and also a function module to ckeck.. actually from the abap program it invoks the BSP page very nicely and as my logic for invoking the BSP is a part of the Business Object and it is associated with the Enterprise portal so... when i reach the ep and trigger that business object to instantiate the BSP page from my calling logic of abap... it goes to the ITS and port 80 or something and didnt produce the BSP.. and only the blank screen was there...kindly help me how i am supposed to instantiate the BSP from properly from ABAP by interfacing the EP... my code is given below...
data :
lv_url type string.
concatenate
'http://sapdevbp.sbic.co.za:8041/sap(bD1lbiZjPTIwMA==)'
'/bc/bsp/sap/z_updatemng/bp.htm?bpid=' object-key-businesspartnerid
into lv_url.
call method cl_gui_frontend_services=>execute
exporting
document = lv_url
exceptions
others = 1.
please help....
me...
regards
NaimInstead of hard coding the URL try to get the URL of the BSP application with the below code
CALL METHOD cl_http_ext_webapp=>create_url_for_bsp_application
EXPORTING
bsp_application = '<BSP application name'
bsp_start_page = <start page e.g default.htm>
bsp_start_parameters = params " any parameter you want to pass along with url
IMPORTING
local_url = url.
Then try out passing the URL to the execute function -
How to call a html page from servlet
i want to link a servlet to a html page, if i use requestdispatcher, it says XXX.html is not available, can anybody help
Can you be more specific about what you're trying to do? Can't read your mind =). But if you mean you want to just have an static HTML page such as a header read by the servlet you can you the requestdispatcher include().
Create a servlet to generate a page, and then map it as /getPage in the web.xml file. Then you can use:
// header
RequestDispatcher rd = ...getRequestDispatcher("/getPage");
rs.include(req, res);
// the rest of the servlet output
// and you can do another one for the footer down here
rd = ...getRequestDispatcher("/getPageFooter");
rs.include(req, res);
and it'll output the HTML in the servlet.
Hope this helps -
Dynamic HTML generation from a Dynamic PDF/XDP
I was wondering if LiveCycle is able to generate a dynamic HTML page from a dynamic XDP/PDF form in LiveCycle ES ?
I have read up on the help contents regarding HTML generation from PDF forms but its not mentioned anywhere whether LiveCycle supports the creation of an HTML page that mimics the dynamic behavior of a dynamic PDF/XDP form.
Thanks in advanceYes it does ....
Paul -
Calling a html page deployed in weblogic server using RequestDispatcher
Hi All,
I want to call a HTML page from a java page using requestdispatcher. The whole application is deployed in Weblogic server.I have used the below syntax to call the page from any machine..
ServletContext sc = getServletContext();
RequestDispatcher rd = sc.getRequestDispatcher("http://172.25.40.148:7001/Filecomparetool/Result3.html");
rd.forward(req, res);
Im getting Null pointer exception...Plz help..Thanks in advance!Please use the CODE tags (see the CODE button above, or the formatting tips page, and not the BOLD button.
Post the stack trace.
Either getServletContext or getRequestDispatcher is returning null. Find out which, read the API to find out why. -
How can I display the HTML page from servlet which is called by an applet
How can I display the HTML page from servlet which is called by an
applet using the doPost method. If I print the response i can able to see the html document. How I can display it in the browser.
I am calling my struts action class from the applet. I want to show the response in the same browser.
Code samples will be appreciated.hi
I got one way for this .
call a javascript in showDocument() to submit the form -
How to call html page from an applet
I want to call a html page after the user presses a OK button in the applet. please help me in this.
In you actionPerformed put:
AppletContext appContext=getAppletContext();
URL myURL= new URL("http://www.javasoft.com");
String target="_self";
appContext.showDocument(myURL,target);P.S. If you want to pen the URL in a new Browser window
use
target="_blank"; -
IP - Is it possible to call exit planning function from ABAP Report..
Hi All,
Greetings.
Is it possible to call exit planning function from ABAP Report (t-code SE38) ? Or I mean is not limited only to be called from ABAP Report, perhaps from BSP / Web-Dynpro / Function Module.
If somebody here has been doing it before, I'm keen to ask to kindly share it. Particularly how to call and transfer data to that exit function.
Or if somebody has done in BPS, appreciate if it can be shared too .
Thanks a lot and have a good day,
Best regards,
Daniel N.Hi.
You can achive this as suggested by Mattias in your previous post.
Lets say you have next data structure:
CostCenter | Amount | PercentForDistibution |
Create input ready query in this format. Restrict cost center by variable type range.
Create WAD with analysis item.
When you run web page you enter range of cost centers (lets say you will enter 101004 to 101010).
I assume you have data only for 101004 in your cube (lets say 1000).
You will see only one record in your webpage.
CostCenter | Amount | PercentForDistibution |
101004 | 1000 | NOTHING
When you create WAD in analysis item properties set "NUMBER_OF_NEW_LINES" to lets say 1 (so in WAD you will see always one blank line for entering new data).
Just add 6 new records:
CostCenter | Amount | PercentForDistibution |
101005 | NOTHING| 10
101006 | NOTHING| 30
101007 | NOTHING| 20
101008 | NOTHING| 25
101009 | NOTHING| 5
101010 | NOTHING| 10
Then run planning FOX function like this:
FOREACH Z_COST_CENTER.
IF {Amount, Z_COST_CENTER} <> 0
Z_AMNT_TO_DISTRIBUTE = {Amount, Z_COST_CENTER}.
ENDIF.
ENDFOR.
FOREACH Z_COST_CENTER.
IF {PercentForDistibution Z_COST_CENTER} <> 0.
{Amount, Z_COST_CENTER} = Z_AMNT_TO_DISTRIBUTE * {PercentForDistibution Z_COST_CENTER}.
ENDIF.
ENDFOR.
It is not perfect FOX, but as an idead, it should work.
Regards. -
Exclude HTML page from Webcache with ESI
Hi.
I would like to exclude a html page from cache using ESI.
Somebody can show me the tags that I need to use?
Thanks in advanced.It is possible to dynamically exclude pages from caching through Surrogate-Control . I couldn't get what you are trying to achieve by using ESI...
-
How to cache a content item like a Static HTML Page from UCM to Coherence/C
Hi All,
How to cache a content item like a Static HTML Page from UCM to Coherence/Coherence Web?
ThanksHi,
Could you explain your use case in more detail?
It does not look like proper use of coherence to cache static content - it more suited for dynamic content like user session etc.
Adam -
Send BW query results as HTML email from ABAP program
I have published a code sample for sending BW query results as HTML email from ABAP program. if you have any questions or clarification, please post them here.
the same can be accessed from this link.
http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b7658119-0a01-0010-39a9-b600c816f370
Regards
Raja
Message was edited by: Durairaj Athavan RajaOK forget about my earlier post.
do the following changes.
declare the following variables:
data: xtext type standard table of solix .
DATA: atta_sub TYPE sood-objdes .
after the call of FM SCMS_STRING_TO_FTEXT add the following code.
CALL FUNCTION 'SO_SOLITAB_TO_SOLIXTAB'
EXPORTING
ip_solitab = text
IMPORTING
EP_SOLIXTAB = xtext .
and after the following statement
document = cl_document_bcs=>create_document(
i_type = 'HTM'
i_text = text
i_length = conlengths
i_subject = subject ).
add the following code
CALL METHOD document->add_attachment
EXPORTING
i_attachment_type = 'htm'
i_attachment_subject = atta_sub
i_att_content_hex = xtext.
now you will have results both in the body as well as attachment. (this is for test you can remove one of them )
Regards
Raja -
How to call OAF standard page from form by passing parameters?
Hi,
I have a requirement where I need to call a standard OAF page from Oracle form, I was able to call the page through personalization, but I also want to pass a parameter to the OAF page and query the OAF page using that parameter, could anyone please help?
Note: Under the forms personalization I wrote the below code for parameters
Actions --> Parameters--> ='contractLineId='||:OKS_LINES.ID
Thanks,
BharatHi Niladri,
My requirement was calling the OAF page from standard form (menu), below are the steps that I followed,
1) Get the OAF page function name
2) Personalize the form, by calling the OAF page function
a) Function Code: Give the OAF function code
b) Parameter: Here pass the parameters
example: ='contractLineId='||:OKS_LINES.ID
Note: If you are calling from a custom form you can also try using fnd_function.execute to call the OAF page
Thanks,
Bharat -
How to call a sub screen from abap report
Hellow friends,
how to call sub screen 1001 prog name SAPLMGD1
and main program SAPLMGMM screen 4000 of tcode MM02.
i need to call the sub screen from abap reportHi Rajesh,
You can use FM MATERIAL_MAINTAIN_DIALOGUE to go to subcreen MRP1 in MM02.
Please check this sample code from other thread and enter 'MRP 1' for p_dytxt.
REPORT zsritest.
TABLES mara.
DATA: lv_bilds LIKE t133a-bilds,
ls_t130m LIKE t130m,
ls_rmmg1 LIKE rmmg1,
lwa_view TYPE mbildtab,
lwa_auswg TYPE mgauswg,
lt_views TYPE STANDARD TABLE OF mbildtab INITIAL SIZE 0,
lt_auswg TYPE STANDARD TABLE OF mgauswg INITIAL SIZE 0.
PARAMETERS: p_matnr LIKE mara-matnr,
p_werks LIKE marc-werks,
p_dytxt LIKE mbildtab-dytxt.
SELECT SINGLE * FROM mara WHERE matnr EQ p_matnr.
CHECK sy-subrc EQ 0.
CALL FUNCTION 'T130M_SINGLE_READ'
EXPORTING
tcode = 'MM02'
kzrfb = 'X'
IMPORTING
wt130m = ls_t130m
EXCEPTIONS
not_found = 1
wrong_call = 2
OTHERS = 3.
CALL FUNCTION 'BILDSEQUENZ_IDENTIFY'
EXPORTING
branche = mara-mbrsh
materialart = mara-mtart
tcode_ref = ls_t130m-trref
* KZRFB = ' '
IMPORTING
bildsequenz = lv_bilds
* KZ_BILDS_CHANGED =
EXCEPTIONS
wrong_call = 1
not_found = 2
OTHERS = 3.
CALL FUNCTION 'SELECTION_VIEWS_FIND'
EXPORTING
bildsequenz = lv_bilds
pflegestatus = mara-pstat
TABLES
bildtab = lt_views[]
EXCEPTIONS
call_wrong = 1
empty_selection = 2
OTHERS = 3.
ls_rmmg1-matnr = mara-matnr.
ls_rmmg1-werks = p_werks.
READ TABLE lt_views INTO lwa_view WITH KEY dytxt = p_dytxt.
CHECK sy-subrc EQ 0.
lwa_auswg-auswg = lwa_view-auswg.
APPEND lwa_auswg TO lt_auswg.
CALL FUNCTION 'MATERIAL_MAINTAIN_DIALOGUE'
EXPORTING
irmmg1 = ls_rmmg1
* IRMMG1_REF = ' '
KZ_EIN_DARK = 'X'
t_tcode = 'MM02'
* FLG_MATNR_RES = ' '
p_pstat = mara-pstat
* FLG_STAT_ALL = ' '
* CALL_MODE2 = ' '
* IMPORTING
* MATERIAL_NO =
* UPDATE_OK =
TABLES
iauswg = lt_auswg[]
EXCEPTIONS
no_authority = 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.
Regards,
Ferry Lianto
Maybe you are looking for
-
Will rotting void BestBuy's warranty, or/and Manufactur​er's?
Will rooting void Samsung's 1-year warranty and/or BestBuy's 2-year extended warranty? I really, REALLY want to know.
-
How to import an Quarkxpress 5 file into Indesign CS3
Hello, I am in trouble when trying to open with Indesign CS3 for windows a file created with Quarkxpress 5 for Mac. Do you have any hint? (file attached) thanks for support
-
Domain controller 2008 Server with SP2
Here is a real issue which i cannot track down what is causing it. It appears that in windows 2008 Server running DHCP, DNS and AD i am getting some weird errors on the clients. The client machines are all Windows 7 Professional x64. The Issue is tha
-
Need help connecting two macbooks via ethernet
im at home trying to get my snow leopard disc to install on my macbook. my optical drive is busted so i was trying to use my brothers macbook pro to mount the image and then boot my machine to it. i only have an ethernet cable. can anyone help us? th
-
Odd question on automatic sleep mode when laptop is closed
Is there a way to have the laptop closed and yet still have a program opperating? I'd like to play music through the headphone jack while driving and don't really have a spot to set an open laptop, but iTunes stops playing when I shut the computer. T