Can we build custom code in xsl-xml

Hi, We are using one of the .xml dump which is stored as a row in the table iby_trxn_documents
We are mapping .xsl (a custom template with the above .xml tags)
We are getting the below tags in .xml (which is stored in table iby_trxn_documents) but the value is not populated in the tags,
We have build one one sequence in the database, where we need to map the incremented value of the sequence in that place.
My (xml looks like any of the below two options)
- <PaymentSequence>
<SequenceName />
<LastValue />
</PaymentSequence>
In this case i am getting output as W
- <PaymentSequence>
<SequenceName>XX_SEQ</SequenceName>
<LastValue>1</LastValue>
</PaymentSequence>
in this case i am getting output as W1, but for next run i want it as W2 etc... or is there any option we can get incremented values in <Creation_Module>
as my above value is coming null, in my output also i am getting null.
Is there a way i can get the value of sequence in my xsl template.
I am writing some thing like this in my (.xsl)
- <Creation_Module>
<xsl:value-of select="concat('W',/PaymentSequence/LastValue)" />
</Creation_Module>
For every run i want this last value to be incremented by 1
Appreciate if some one has any knowledge in this.
Thanks...
Edited by: 902157 on Aug 27, 2012 9:18 AM

Hi, We are using one of the .xml dump which is stored as a row in the table iby_trxn_documents
We are mapping .xsl (a custom template with the above .xml tags)
We are getting the below tags in .xml (which is stored in table iby_trxn_documents) but the value is not populated in the tags,
We have build one one sequence in the database, where we need to map the incremented value of the sequence in that place.
My (xml looks like any of the below two options)
- <PaymentSequence>
<SequenceName />
<LastValue />
</PaymentSequence>
In this case i am getting output as W
- <PaymentSequence>
<SequenceName>XX_SEQ</SequenceName>
<LastValue>1</LastValue>
</PaymentSequence>
in this case i am getting output as W1, but for next run i want it as W2 etc... or is there any option we can get incremented values in <Creation_Module>
as my above value is coming null, in my output also i am getting null.
Is there a way i can get the value of sequence in my xsl template.
I am writing some thing like this in my (.xsl)
- <Creation_Module>
<xsl:value-of select="concat('W',/PaymentSequence/LastValue)" />
</Creation_Module>
For every run i want this last value to be incremented by 1
Appreciate if some one has any knowledge in this.
Thanks...
Edited by: 902157 on Aug 27, 2012 9:18 AM

Similar Messages

  • Can i build custom p2p stream server-side app

    Can i build custom p2p stream server-side app

    Hi,
    Here are some links that might help you :
    http://help.adobe.com/en_US/flashmediaserver/devguide/WSa4cb07693d123884520b86f312a354ba36 d-8000.html
    Thanks,
    Apurva

  • Flash Builder custom code folding

    I've just donwloaded the new CC versions and will possibly be buying the subscription at the end of this month.  I was previously using CS4 versions.
    One thing I noticed though, is that the custom code folding options in the Flash CC actionscript editor are gone, you can now only collapse entire functions.  This remains true for flash builder as well.
    So is there any way to collapse custom regions in flash builder instead of just entire functions?  I'm working on a flash MMO and I've got over 10,000+ lines of code.  Being able to collapse only functions simply doesn't cut it.  It really hinders my development time as I have to scroll through masses of code in order to get to what I need.  It's also much much more confusing looking at thousands of lines of code that I don't need to see at the moment.  Visual studio has a way of defining regions by typing "#region" and "#endregion" in the area you wish to collapse.  Is there anything I can do about this?  This is a very very important feature (at least for me) that I'm not sure why it was left out, or I am unable to find it.
    Thanks.

    I've just donwloaded the new CC versions and will possibly be buying the subscription at the end of this month.  I was previously using CS4 versions.
    One thing I noticed though, is that the custom code folding options in the Flash CC actionscript editor are gone, you can now only collapse entire functions.  This remains true for flash builder as well.
    So is there any way to collapse custom regions in flash builder instead of just entire functions?  I'm working on a flash MMO and I've got over 10,000+ lines of code.  Being able to collapse only functions simply doesn't cut it.  It really hinders my development time as I have to scroll through masses of code in order to get to what I need.  It's also much much more confusing looking at thousands of lines of code that I don't need to see at the moment.  Visual studio has a way of defining regions by typing "#region" and "#endregion" in the area you wish to collapse.  Is there anything I can do about this?  This is a very very important feature (at least for me) that I'm not sure why it was left out, or I am unable to find it.
    Thanks.

  • Report Builder Custom code examples

    Hi
    are there any examples out what can be done using custom code in a report?
    any documentation on that?
    Regards
    Klaus

    Hi
    I already found this side.
    I am searching for a kind of object model description, that shows me which properties / methods are existing, for example:
    Report.Parameters is a build in collection.
    I like to see a documentation, which properties/methods are available (buildin to the reportbuilder)
    Maybe there is a way to show the interface in the object browser of visual studio?
    Regards
    Klaus

  • In which table, we can find SCM customer code.

    Friends,
    I am writing an user exit for VA01/VA02/VA3/VA32.
    I am getting the customer number from VBAK-KUNNR  when I execute any of the above transactions.
    According to functional sepecification, we can find SCM code in the data base table ADRC.
    (we can fetch the data from ADRC table where  ADRC-ADDRNR = KNA1-ADRNR;  ( KNA1-KUNNR = VBAK-KUNNR))
    I could not find SCM customer code in the table ADRC.
    Please let me know the Data table and field to find the SCM customer code in SAP.

    Dear balaji
    All condition values will be stored in KONV.  So Go to SE16, input KONV and execute.  You will get all condition types from this table.  Here, you cannot correlate these condition types to your sale order.
    So that you have to do is that there is a field "Doc.condition" in the above report under which, some numeric values will flow.  Copy those values and now go to SE16, input table VBAK and execute.  Here, the same field, viz.Doc.condition will be there.  Paste those values which you copied from KONV and execute. 
    You will now get the desired result.
    thanks
    G. Lakshmipathi

  • How can I extract the code behind ORACLE XML reports?

    Afternoon All.
    I need to customise a copy of one of ORACLE's XML reports.  (Uninvoiced Receipts Report - CSTACREP - PL/SQL Stored Procedure)
    I therefore need to work on the data template behind the original report... But how  do I get at it? Where is it? Is it in a cetain directory somewhere because you can't download it via the application.
    Many many thanks for looking.
    Al

    #facepalm wrote:
    ..many thanks both of you for your help.
    The problem I have is that I only know 11i (and now moving to r12.1.3) report delopment via rdf report style and/or xsl data templates and have no idea how I can take this code in order to create a custom version of it.
    Is there a Note/link somewhere that can tame me through the custom report method using PL/SQL procedures?
    Many,  many thanks.
    Al
    There are many examples/docs/tutorials available, just google "XML Report Custom pls/sql" and you should get many hits.
    Oracle Applications, SQL, PL/SQL: Developing XML Publisher Report - using Data Source as PL/SQL Stored Procedure
    http://erpschools.com/articles/xml-publisher
    Thanks,
    Hussein

  • Can I build custom hot keys?

    I am grateful that Pages '09 has tiered lists. I see where I can assign Fkey's (F1-F9) to different styles. My question is can I go one step farther, into contentment, and assign key combinations that are designed by me and work for me? For instance, if I want to assign commandoption1 to format heading 1 can I do it? (and so on and so on down to commandoption7 for heading 7)
    thanks in advance for any time and attention to this matter,
    kadso

    Hi,
    Here are some links that might help you :
    http://help.adobe.com/en_US/flashmediaserver/devguide/WSa4cb07693d123884520b86f312a354ba36 d-8000.html
    Thanks,
    Apurva

  • Can use asp code in xsl page?

    hello,
    i want to know can i use asp code in xsl page ..if so, please let me know.
    thz
    nway nge

    Hi,
    now we have the tinyMCE editor, where you can insert and edit html-code. It works fine now for the layout,
    but there are still a few problems with the links..
    In the edit mode there are displayed all km images out of the km. But the images aren't displayed under the portal role, when i publish the page. And all the links like one to a wiki or the TBN links doesn't work, too.
    Can anybody help me further?
    Thanks in advance,
    Lydia

  • SSRS Custom code

    Can we call custom code in parent report, which written in the subreport
    Thanks in advance

    Can we call custom code in parent report, which written in the subreport??
    Example :
    i have written code in subreport as follows 
    This can call it on parent report as "code.EmbeddedFunction()"
    Thanks in advance

  • Sending Custom Java Objects over XML!!

    Hello all !
    Can anybody please tell me how can I send custom Java Objects through XML? For example we can set attributes for a node using the setAttribute method, it accepts only strings, also the setTextContent method requires text and sets the node's value.Can I some way set my own Java object as the value of a particular node or attach it to the node?
    Thanks in advance.

    Kami_Pakistan wrote:
    So I should rather go for Marshalling or Serialization or is there any other work-around possible?I don't know. You didn't say what you had against text formats. Since all Java objects are composed of primitives when you get right down to the bottom, everything in Java can be serialized as text versions of those primitives. So you're going to have to explain why you think a work-around is necessary at all.

  • Custom code

    Hi,
    How can we debugged the report which has custom code built for the varialbe. How will we get this custom code.  I mean at what way we can find this code to debug.
    Regards
    dyuthi

    You can check the custom code for variable in
    SE38 program : ZXRSRU01
    You can also come to the above code using CMOD as shambu said.
    To debug :
    You can set breakpoint in the code and execute your query using RSRT.
    Hope this helps.
    Edited by: Praveen G on Sep 23, 2008 4:24 AM

  • AP Invoice Object : Passing Customer Code instead of Vendor Code Using SDK

    Hi,
    Can i use customer code instead of the vendor code in AP Invoice SDK Object?
    i.e.I want only one code for Customer and Vendor in BP Master system.
    I know this is not possible in system then also if anybody knows the alternative solution Kindly suggest the same.
    Warm Regards,
    Mahendra

    Dear Mahendrakumar,
    You can not implement the required function by SDK also.
    Best Regards
    Jane Jing
    SAP Business One Forums team

  • How do I do use the custom code and format for a percentage with 2 decimals in Report Builder 3.0?

    In Report Builder 3.0, I have the following custom code entered:
      Public Function SafeDivide(Numerator as String, Denominator as String) as String
    Try
    If Numerator = “” or Denominator = “” then
    Return “-“
    End if
    If Numerator = “-“ or Denominator = “-“ then
    Return “-“
    End If
    If CDbl(Numerator) =0 or CDbl(Denominator) = 0 then
    Return “-“
    End if
    If IsNothing(Numerator) or IsNothing(Denominator) then
    Return "-"
    End if
    Return Val( ( (CDbl(Numerator) / CDbl(Denominator) )*100 ) )
    Catch
    Return "-"
    End Try
    End Function
    I call the custom code in the cell with the following equation:
      =Code.SafeDivide(sum(Fields!TY_UNITS.Value)-sum(Fields!LY_UNITS.Value),sum(Fields!LY_UNITS.Value))
    I have the format for the cell set to 0.00%, but it’s not being followed.
    I want the result to be formatted as a Percentage, but instead I get values like: 
    -78.9473684210
    80
    300
    -100
    I have the format for the cell set to 0.00%, but it’s not being followed.
    How do I do use the custom code and format for a percentage with 2 decimals?

    Hi AngP,
    After testing the issue in my local environment, I can reproduce it. Based on my research, I find this issue is caused by the type of Units_VAR_Percentage cell is string, while the type of CDbl(Parameters!Var_Threshold.Value) is double, so they cannot be
    compared.
    To fix this issue, we can add a hidden column (Textbox91) next to the Units_VAR_Percentage column, and type =(sum(Fields!TY_UNITS.Value)-sum(Fields!LY_UNITS.Value)) /sum(Fields!LY_UNITS.Value) as the expression. Then use the expression below to control the
    BackgroundColor:
    =iif(iif(reportitems!Units_VAR_Percentage.Value=CStr(format(reportitems!Textbox91.Value,"0.00%")),reportitems!Textbox91.Value,0)>CDbl(Parameters!Var_Threshold.Value),"Yellow","PaleTurquoise")
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How can i write the code in xml publisher desktop

    hi all
    How and where can i write the code in xml publisher desktop ???
    shall i know how to write xml code or what ??
    in which part can i write the code if i have more than one query ?

    hi dear
    Thanks for ur replay...
    What i mean is : i used to work on reports builder,so :
    1- i used to create more than query in some reports.
    2- create formulas ,procedures....
    NOW i want to create the same reports by using xml publisher desktop, so how can i do that...
    when i use {color:#ff0000}report wizard{color}, i can not or i don`t know how to use more than one query, create formulas or procedures.
    Please help me.
    Thanks again.

  • Import customs code list I0136 - how to get .xml file

    The code list I0136 from ATLAS is in format .tsv.
    It's possible to import the code list in transaction /SAPSLL/CUSCS_VMAINT, but you have to have a .xml file.
    Does anyone know where to get the customs code list I0136 in .xml or to convert .tsv into .xml without a special program?

    Hi Renate,
    where do you get this file in .tsv format from?
    I guess from a data provider?
    First thing I would do is to ask the data provider to send the file in another GTS compatible format.
    If you have no influence on the file format which is beeing delivered to you I would just convert those files.
    Easiest tool to convert those files with might be Excel since almost everyone is using it.
    You can import the .tsv into excel and save it as a .xml file afterwards.
    If you have trouble importing the file just check google (open .tsv Excel).
    You might have to tune several options during the import process but once you know the steps it should be easy for you to handle.
    Best Regards
    Gregor

Maybe you are looking for

  • How can i get my ipod to sync with the itunes on my pc?

    i just got a new ipod touch (my first ever) so i don't really know much about it as yet however i got the hang of how to get songs on it but when i'm trying to sync it with my pc after getting some apps from itunes..it won't sync...so i don't know if

  • Netflix aspect ratio problem after update

    Hi guys... Before the latest update for my Apple TV (iOS 6.0.0 new) a lot of movies look great, with black bars on top and bottom and great looking subtitles. Now, i got a lot of movies in full screen mode and all subtitles are now yellow with a gray

  • Playing Video from a SocketConnection

    Please I need assistance on how to play an mpg video over a SocketConnection. I have ServerSocket that send a video file through the InputStream,I want to play the video file over this Stream in a MIDlet. Plz any help or reference will be highly appr

  • Escalation of items in MSS UWL

    SAP will use Workflow to escalate actions in the MSS Universal Worklist to the next level of manager above if the action is outstanding for more than a certain number of days. What I need to establish is, do we have to have the same number of days fo

  • Where is Scenebuilder 2.0 for download?

    Hello, I have been turning around on Oracle website to find a link to download JAVAFX scenebuilder 2.0 to download it for my Eclipse IDE. Is it embedded in JAVA8 SE download and do I have to download this huge file just to get the scene builder? pisc