How to combine ABAP and javascript in BSP
I have a variable "w_temp" in ABAP(defined in page attributes) and another variable "x" in javascript.
I can assign value of w_temp to x as follows :-
x = <% w_temp. %>
but I want to do vice versa i.e. assign value of x to w_temp.
How to do that ???????
You can do this by using a javascript function. Like :
<%
fun(){
return x;
%>
<%
w_temp = fun();
%>
Regards,
Animesh
Similar Messages
-
How to combine sales and delivery data
hi
i have requirement to make a report from sales as well as deliveries. Important fields in report are sales document , material , plant , sales document type , country key , sold to party , ordered quantity , delivered quantity , price from vakon ( KBETR ), actual goods issue date.
The required extractors are 2LIS_11_VASCL, 2LIS_11_V_SSL ,2LIS_11_VAKON.
Problem is how to combine sales and delivery data as V_SSL has different key figures.Multicube is not the solution as dont have plant , sold to party and many other fields in V_SSL.
Kindly suggest how to combine sales and deivery data.
Regards,
MonikaI guess you do have shipping point in delivery.
In most scenarios shipping point may not(or) may be same like order plant.
Although they are different you can still roll up the delivery information to order level by plant since you have order # available as reference key in delivery.
With this reference key you can convert all delivery information to order (item) level.
I guess you can use one merge ODS with one cube (or) with 2 ODS for each at order level for validation.
You may have to map delivery type to order type as per R3 configuration as well.
speak with any Logistics guys for help.
cheers
Martin -
How to combine servlet and jsp
I'm doing a project. My friend using jsp. and i using servlet..
we are confused, how to combine servlet and jsp. or we can just use redirect??
but it's still doesn't work properly...thanks for your helppYou can use RequestDispatcher interface for calling a JSP from a Servlet, or vice-versa.
Following is the code for sending output to a JSP page from a servlet:
javax.servlet.RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(�/Ashu.jsp�);
request.setAttribute(�Name�,�Ashutosh�);
dispatcher.forward(request,response);
- Ashutosh -
How to combine insert and where query ?
hi..
could somebody guide me how to combine insert and where query ?
insert into tdc_imarspc (ANUMBER,EMF_ID,PRODUCT) values ('1234567','65','ITFS')
where anumber not like '1234567';
Thank you,
BaharinHi, Baharin,
As Mahesh said, WHERE only works on a query.
You can always base a query on dual, like this:
INSERT INTO
tdc_imarspc (ANUMBER, EMF_ID, PRODUCT)
SELECT '1234567', '65', 'ITFS'
FROM dual
WHERE anumber NOT LIKE '1234567';Of course, you can use a literal, like '1234567' in both places where I used the bind variable, but if you're not using a variable, why would you want to?
You could also put all the literals in a sub-query (based on dual), and reference column names in the main WHERE clause, LIKE THIS:
INSERT INTO
tdc_imarspc ( ANUMBER, EMF_ID, PRODUCT)
WITH sub_q
AS (
SELECT '1234567' AS an, '65' AS ei, 'ITFS' AS pr
FROM dual
SELECT an, ei, pr
FROM sub_q
WHERE an NOT LIKE '1234567';
I assume you're not really saying
an NOT LIKE '1234567'If you're not using any wild cards after LIKE, you might as well use !=
an != '1234567' -
Combining Flashvideo and javascript nav-menu in same page?
Hi,
I'd be very greatful if I could get some help with the
following.
I have a page where I want to to insert a flash video. Only
problem is that I have built my navigation menu with a plugin from
PVII (PopMenuMagic-plugin) and it uses a bit of javascript.
So there is a mention of the menu's javascript in the
<head> and also in the <body onload=""> tag.
And this seems to collide with the mention of javascript that
Dreamweaver inserts relating to Flashvideo in the <head> tag
as well as it has its own <body onload=""> tag.
I don't know javascript (which is why I got the plugin in the
first place) so I don't know how to combine the flash video and the
navigation menu on the same page.
1) I don't know if there is a collision in the <head>
area between the javascript statements.
2) I don't know how to combine the 2 <body onload="">
arguments into a single argument.
A page with the working flash video can be seen here:
And a page with the navigation menu can be seen here:
Does anyone have an idea of how to resolve this?
I was thinking perhaps I could put the video in an iFrame as
a workaround but it would be nice to do it correctly without
iFrames.
Thanks!Hello ,
I think what you need in Windows Phone 8 for the menu buttons is the Pivot Control(see
[1]).
You can find the code for the LongListSelector at
[2].
[1]
https://msdn.microsoft.com/en-us/library/windows/apps/hh202890(v=vs.105).aspx
[2]
https://msdn.microsoft.com/en-us/library/windows/apps/jj244365%28v=vs.105%29.aspx
Regards,
Bo Liu
Developer-Hotline for MSDN Online Germany
Disclaimer:
Please take into consideration, that further inquiries cannot or will be answered with delay.
For further information please contact us per telephone through the MSDN-Entwickler-Hotline:
http://www.msdn-online.de/Hotline
For this post by the MSDN-Entwickler-Hotline the following terms and conditions
apply: Trademarks,
Privacy
as well as the separate
terms of use for the MSDN-Entwickler-Hotline . -
How to check ABAP and Portal connections
Hi
I was told to check ABAP and Portal connections. What does that mean? And what and where to check?
Thanks
AnnieHi
Thanks for your reply.
We are on BI 7. SP16.
When i run that in se38, i am getting the following information: No default in RSPOR_T_PORTAL and no user parameter RSPOR_DEFAULT_PORTAL" when i clicked on yes(tickmark), view BI_Content of web template 0ANALYSIS_PATTERN(A) is displayed
There are two options with check box are present 1. 30 template present (Unchecked) 2. BI- Template Present (checked), and a big XML code is displayed.
When i executed in browser mode, it says Windows cannot find'/irj/servlet/prt/portal............... make sure you typed the name correctly and then try again. to serch for a file, click the start button, and then click search"
What does that mean?
Regards
Annie
Edited by: Annie on Nov 17, 2008 5:38 AM -
How to combine Submit and Commit into a single operation?
JDev 11.1.1.6
Is there a simple way to combine Submit and Commit or Create and Commit or Delete and Commit into a single operation without creating a custom Operation class?
Thanks,
PeeVeeHave a button and in the action listener event..you should drag and drop both create & commit onto your page so that it will have the required bindings in the pagedef.
OperationBinding createOperationBinding = ADFUtils.getOperationBindingForMethod("Create");
createOperationBinding.execute();
OperationBinding commitOperationBinding = ADFUtils.getOperationBindingForMethod("Commit");
commitOperationBinding.execute(); -
URGENT:HOW TO COMBINE CLUSTER AND TRANSPARENT TABLE..WITHOUT USING FOR ALL
how can we join bkpf and bseg without using FOR ALL ENTRIES.HOW DO I COMBINE THE 2 TABLES SO THAT I GET BETTER PERFORMANCE.
START-OF-SELECTION.
SELECT bukrs belnr gjahr budat FROM bkpf INTO TABLE i_bkpf
WHERE bukrs = p_bukrs AND "COMPANY CODE
gjahr = p_gjahr AND "FISCAL YEAR
budat IN s_budat. "POSTING DATE IN DOC
IF sy-subrc = 0.
SELECT bukrs belnr gjahr hkont shkzg dmbtr FROM bseg INTO TABLE
i_bseg FOR ALL ENTRIES IN i_bkpf
WHERE bukrs = i_bkpf-bukrs AND "COMPANY CODE
belnr = i_bkpf-belnr AND "A/CING DOC NO
gjahr = i_bkpf-gjahr AND "FISCAL YEAR
hkont = p_hkont. "General Ledger Account"
IF sy-subrc = 0.
SELECT bukrs belnr gjahr hkont shkzg dmbtr FROM bseg INTO TABLE
i_bseg1 FOR ALL ENTRIES IN i_bseg
WHERE bukrs = i_bseg-bukrs AND "COMPANY CODE
belnr = i_bseg-belnr AND "A/CING DOC NO
gjahr = i_bseg-gjahr. "FISCAL YEAR
ENDIF.
ENDIF.
IF NOT i_bseg1[] IS INITIAL.
LOOP AT i_bseg1.
IF i_bseg1-hkont = p_hkont AND i_bseg1-shkzg = 'S'.
v_sumgl = v_sumgl + i_bseg1-dmbtr.
ELSEIF i_bseg1-hkont = p_hkont AND i_bseg1-shkzg = 'H'.
v_sumgl = v_sumgl - i_bseg1-dmbtr.
ELSEIF i_bseg1-hkont NE p_hkont .
IF i_bseg1-shkzg = 'H'.
i_bseg1-dmbtr = - i_bseg1-dmbtr.
ENDIF.
i_alv-hkont = i_bseg1-hkont.
i_alv-dmbtr = i_bseg1-dmbtr.
APPEND i_alv.
v_sumoffset = v_sumoffset + i_bseg1-dmbtr.
ENDIF.
ENDLOOP.
regards
Essam.([email protected])Hi Friend,
I see your code.. there is no other way than using for all entries for your situation.. how ever i saw ur code and a small recommandation in the change of code.
SELECT bukrs belnr gjahr budat FROM bkpf INTO TABLE i_bkpf
WHERE bukrs = p_bukrs AND "COMPANY CODE
gjahr = p_gjahr AND "FISCAL YEAR
budat IN s_budat. "POSTING DATE IN DOC
IF sy-subrc = 0.
if not p_hkont is initial.
SELECT bukrs belnr gjahr hkont shkzg dmbtr FROM bseg INTO TABLE
i_bseg1 FOR ALL ENTRIES IN i_bkpf
WHERE bukrs = i_bseg-bukrs AND "COMPANY CODE
belnr = i_bseg-belnr AND "A/CING DOC NO
gjahr = i_bseg-gjahr. "FISCAL YEAR
ENDIF.
i_bseg[] = i_bseg[]1.
delete i_bseg where hkont ne p_hkont.
else.
Your existing logic...
endif.
In this way you can avoide writing two selects on bseg..
Thanks
Mahesh -
How to combine ABAP spools into a single PDF
Hi
I have some ABAP spools each with different no-of fields with different formats(Colors of ALV)
I need to combine all these sppols into one PDF without disturbing their formats.
Canu plz write ur suggestions.
NarendraHi,
Use this FM
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = gd_spool_nr
no_dialog = c_no
dst_device = c_device
IMPORTING
pdf_bytecount = gd_bytecount
TABLES
pdf = it_pdf_output
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
If you have 2 spools in a single PDF,
DO 2 TIMES.
Call the same FM and create an internal table, in another internal table append the data.
ENDDO.
Regards,
Pankaj -
How to combine spatial and secondary index, when extracting?
Hi spatiallers,
vers.: (32 bit) Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production on Sun/SunOS 5.8 (64 bit)
In our DataWarehouse the table topo_geodata stores all topographic data in Denmark. The table has a spatial index (QT) on its SDO_geometry column named utm_geo as well as a primary key on the column topo_geo_id and 4 secondary indexes on other columns.
The query to find all geomtries in a given munipalicy is as follows
select count(*) as antal_AnyInteract_topo_geodata
from topo_geodata k, topo_geodata tg
where SDO_RELATE(tg.utm_geo, k.utm_geo, 'mask=AnyInteract querytype= WINDOW') = 'TRUE'
and k.topo_geo_id = 961 -- geometry of a municipality
and it returns a count of 19445 in 4 minuttes. However our users are only interested in extracting certain object types, that is a very small subselection of the 19445 geometries. The subselection is typically based on some value or a range of values in the secondary indexed columns.
Question: How can I make the SELECT use a combination of the spatial index index and a secondary index?
Only when a pinpoint 1 particular value of the primary key do I get fast response. When pinpointing 1 value in a secondary index as in
select count(*) as antal1
from topo_geodata k, topo_geodata tg
where SDO_RELATE(tg.utm_geo, k.utm_geo, 'mask=AnyInteract querytype= WINDOW') = 'TRUE'
and k.topo_geo_id = 961 -- Gladsaxe
and tg.mtk_obj_id = 58476 -- has secondary index
the performance deteriorates back to 4 min., and the queryplan shows some weird bitmap conversion followed by a bitmap-and operation.
- Thanks in advance,
Jens Ole Jensen
Kort & MatrikelStyrelsen (WWW: http://www.kms.dk)
DanmarkHi Jens,
I'm not sure I understand the question, or what it is that works fast.
In this case, the SDO_RELATE with the anyinteract mask has to be done first.
If this takes 4 minutes, then adding additional criteria to reduce the amount of
data returned from that subset will only add time.
The spatial portion of the query has to be done using the spatial index, which is
a monolithic index for the whole table, so all of the geometry data has to be searched,
and the anyinteract applied to all of this data.
After that set of rows comes back, then the additional predicate is applied.
I'm not sure what this means:
Only when a pinpoint 1 particular value of the primary key do I get fast response. You do have a few options to try to make things work faster:
If queries included additional predicates on mtk_obj_id, you might try
to use range partitioning.
If the predicates on mtk_obj_id is very selective, then you might want to select
values based on that column, then use sdo_geom.relate between that very
small subset and the query window.
Hope this helps, and all is well with you.
Dan -
Not sure how to combine libraries and sync. Help!
If my wife and I want to combine iTunes libraries and sync all of our devices, what would be the step by step process in doing this? We have 2 MacBook Pros, 2 iPhones, and 1 iPod Classic. I just don't know what the first step should be. I don't want to lose any music. Please help! Thanks
No that will not work. What you may want to consider is using reflaction to create an instance of a sort class and have the sort classes implement a sort interface.
Example:
public Sorter createSorter(String name){
Sorter sort = (Sorter) Class.forName(name).newInstance();
return sort;
The Sorter interface would include these methods:
public void sort();
public void add(Object obj);
ect
gl
kimoS -
Creating smart playlists: how to combine "any" and "all"?
I want to create a smart playlist, say with all songs by Miles Davis OR John Coltrane; and I also want to limit the playlist to songs rated above 3 stars. This seems like a really easy task, but I can't do it with the "create smart playlist" box on iTunes. Am I missing something? When I add the "above 3 stars" criteria, I get ALL the songs rated 4 stars or above, whether I add a criteria using "any" or "all."
I want ONLY songs that are by Miles OR Coltrane AND above 3 stars. Is there any way to do so?
Thanks!
~PeterI have to START with the "above 3 stars" criteria, not add it at the end.
That is not correct. It makes no difference if it's at the beginning, middle or end.
The smart playlist simply needs to be set up your correctly. -
How to call Abap Program from Javascript or html ?
Hi All,
I have developed a program using html, abap and javascript. I want to call an abap program while clicking on the button.
How can I do it ?Hi Rajesh,
What kind of program it is? is it a report or a transaction?
If it's transaction, you can call the transaction as below from a link or button.
http://<host>:<port>/sap/bc/gui/sap/its/webgui?~transaction=<transaction>
Please replace the parameters in <..> with appropriate values before testing.
Regards,
Ravi -
How to combine more than 2 templates in same window horizontally
Hello friends........
can u tell me how to combine templates and windows in smart forms.
Any example program to illustrate it.
I am having a requirement that to make a template by combining 3 windows which are having 3 templates by using the
concept combining templates and windows.
i know folder concept but it will combine the nodes which are appended to it ,but i don't what that one.....
i want in a template with 2 windows with 2 templates coming in a same line .
friends can u please help me out .......thank u very much for replying
i have requirement in smart forms like this my client wants a smart form in which i have to use the concept of
combining 2 windows inside a template
actually some part of my template looks like this
|-- | |--
|
vv
this box should not have any rows in it, it should be as it is like this plain.
when i have searched the net i found that this can be done by the concept of combining templates and windows we can do it.
i went to sap portal and read sap press eBook and seen many sites but i could not
find the way to do this .
can u please guide me what can i do..... -
Dataretrieval in hr abap (how to combine both pa and om in hr abap)
Hi Experts?
My requirement is i wants to retrieve the data from HRP1000 table i.e get the long text from the field sc_text ,for this they have provided me some field values like PLVAR='01' , OTYPE='O' , OBJID -
(not given) ,ENDDA =9999.12.31. and also they have mentioned table PA0001-BUKRS(field).
how to get objid field?
Please provide me query ,how to combine Organizational data(hrp1000) with Personnel administration data(pa0001-bukrs)
Thanks in advance,
mohanHi mohan,
1. Its very impractical,
especially in SAP HR Tables,
to directly get data from tables using joins.
2. In your case,
first read from infotype 0001
using direct select statement,
(or u can use HR_READ_INFOTYPE)
3. After wards, LOOP / FOR ALL ENTRIES IN
and then read from the other required tables HRP1000.
regards,
amit m.
Maybe you are looking for
-
Concurrent (async, queue) Message processing - design issue
Hi, The question pertains to the following scenario: 1. A single input gateway (queue) for messages. 2. Messages arriving from different systems. High incidence (>30 within a min) during specific periods 3. Message should be processed in near real-ti
-
Palm Treo to Blackberry Tour conversion
Hi there - Just bought the new Blackberry Tour after having lost my Palm Treo this weekend Been using the Palm desktop software for eons and have tons of data to convert: contacts and calendar most important. Is the best way to do this still to trans
-
Function module to validate time
Hi Gurus, I am getting invalid time from source system , I need to validate the time in BW. Is there any function module to use to validate the time field ? Thanks Liza
-
Error of using UIX Template?
I just copied the example from the Help Documentation "UIX Includes and templating" for a test. But I always get two error messages: I wonder what has caused these two errors? <?xml version="1.0" encoding="UTF-8"?> <templateDefinition xmlns="http://x
-
Hello This is my first time requesting help from forums so please if I make a mistake I do apologize. Before I start im not asking you to do my homework for me but rather point me in the right different and a lil correction here and there. so that y