XSLT coding help

Hi,
XSLT Code.
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:ns0="http://peoplesoft.com/APC_WORKER2_CI" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
     <xsl:template match="/">
          <ns1:Z_HPA_357_PROVISION_USER_IMS.Response xmlns:ns1="urn:sap-com:document:sap:rfc:functions">
               <SUCCESS>
                    <xsl:value-of select="soap:Envelope/ soap:Body/ Create__CompIntfc__APC_WORKER2_CIResponse/ notification"/>
               </SUCCESS>
----pseudo code starts-------------
if SUCCESS eq 1,
then move "Y" to SUCCESS.
elseif SUCCESS eq 0,
then move "N" to SUCCESS
----pseudo code ends-------------
          </ns1:Z_HPA_357_PROVISION_USER_IMS.Response>
     </xsl:template>
</xsl:stylesheet>
Could someone help to put the  pseudo code in XSLT syntax.
Thanks,
-santosh
Edited by: santosh koraddi on Mar 24, 2011 1:23 AM

Below is the solution......
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:ns0="http://peoplesoft.com/APC_WORKER2_CI" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
     <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
     <xsl:template match="/">
          <ns1:Z_HPA_357_PROVISION_USER_IMS.Response xmlns:ns1="urn:sap-com:document:sap:rfc:functions">
               <SUCCESS>
<xsl:choose>
          <xsl:when test = "soap:Envelope/ soap:Body/ Create__CompIntfc__APC_WORKER2_CIResponse/ notification  = 1">
      <SUCCESS>Y</SUCCESS>
          </xsl:when>
          <xsl:when test = "soap:Envelope/ soap:Body/ Create__CompIntfc__APC_WORKER2_CIResponse/ notification =  0">
      <SUCCESS>N</SUCCESS>
          </xsl:when>
     </xsl:choose>                    
               </SUCCESS>
          </ns1:Z_HPA_357_PROVISION_USER_IMS.Response>
     </xsl:template>
</xsl:stylesheet>

Similar Messages

  • XSLT mapping Help Required.

    XSLT mapping Help Required.
    Hi Experts,
    I am New to XSLT Mapping. I am practising the below Example:
    InputXML File:
    <?xml version="1.0" encoding="UTF-8"?>
    <?xml-stylesheet type="text/xsl" href="Persons111.xsl"?>
    <ns0:MT_XSLT_Source xmlns:ns0="http://XYZ.com/gen">
    <Person>
    <FirstName>Anshul</FirstName>
    <LastName>Chowdhary</LastName>
    <Gender>Male</Gender>
    <Address>
    <Street>2nd Main</Street>
    <Houseno>83/b</Houseno>
    <City>Mysore</City>
    </Address> </Person>
    </ns0:MT_XSLT_Source>
    XSL StyleSheet File:
    <?xml version='1.0' encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://XYZ.com/Gen"
    Xmlns:ns1=”http://XYZ.com/Test”>
    <xsl:template match="/">
    <ns1:MT_XSLT_Target>
    <Title> <xsl:value-of select="ns0:MT_XSLT_Source/Person/Gender"/> </Title>
    <Name> <xsl:value-of select="concat(concat(ns0:MT_XSLT_Source/Person/FirstName,' '), ns0:MT_XSLT_Source/Person/LastName)"/>
    </Name>
    <Street> <xsl:value-of select="concat(concat(ns0:Mt_XSLT_Source/Person/Address/Houseno,' '),
    ns0:Mt_XSLT_Source/Person/Address/Street)"/> </Street>
    <City> <xsl:value-of select="ns0:Mt_XSLT_Source/Person/Address/City"/> </City>
    </ns1:MT_XSLT_Target>
    </xsl:template>
    </xsl:stylesheet>
    The Desired Output shuold be:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns1:MT_XSLT_Target xmlns:ns1="http://XYZ.com/Test">
    <Title>Male</Title>
    <Name>Anshul Chowdhary</Name>
    <Street>83/b 2nd Main</Street>
    <City>Mysore</City>
    </ns1:MT_XSLT_Target>
    I have refered the xsl in xml and i am getting the below Oupt in a Single line like this:
    Anshul Chowdhary Male 2nd Main 83/b Mysore
    I am Unable to display in Target XML Fomrat as shown above. Please check and do the needful.
    Regards,
    GIRIDHAR

    Hi,
    I have used below for testing.
    Input xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <?xml-stylesheet type="text/xsl" href="Persons111.xsl"?>
    <ns0:MT_XSLT_Source xmlns:ns0="http://XYZ.com/gen">
    <Person>
    <FirstName>Anshul</FirstName>
    <LastName>Chowdhary</LastName>
    <Gender>Male</Gender>
    <Address>
    <Street>2nd Main</Street>
    <Houseno>83/b</Houseno>
    <City>Mysore</City>
    </Address> </Person>
    </ns0:MT_XSLT_Source>
    xsl code:
    <?xml version='1.0' encoding="UTF-8"?> 
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://XYZ.com/gen" 
        xmlns:ns1="http://XYZ.com/Test"> 
        <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> 
        <xsl:template match="/"> 
            <ns1:MT_XSLT_Target> 
                <Title> <xsl:value-of select="ns0:MT_XSLT_Source/Person/Gender"/> </Title> 
                <Name> <xsl:value-of select="concat(concat(ns0:MT_XSLT_Source/Person/FirstName,' '), ns0:MT_XSLT_Source/Person/LastName)"/> 
                </Name> 
                <Street> <xsl:value-of select="concat(concat(/ns0:MT_XSLT_Source/Person/Address/Houseno,' '), 
                    /ns0:MT_XSLT_Source/Person/Address/Street)"/> </Street> 
                <City> <xsl:value-of select="/ns0:MT_XSLT_Source/Person/Address/City"/> </City> 
            </ns1:MT_XSLT_Target> 
        </xsl:template> 
    </xsl:stylesheet>
    For testing in PI ,change the extension from .txt to .xsl and zip it and upload into PI as an imported archive .
    Regards
    Venkat

  • How to write XSLT codeing in file to file using XSLT mapping?

    Hi ,
    Experts,
    I am new to XSLT coding as iam doing File to File XSLT Mapping for i have created IR and ID part and i have wriiten XSLT codeing which is not working.
    source structure:                     Target structure
    Fname                                    Name  = (Fname+Lname)
    Lname
    maths   
    science                                   Total_marks = (mathssciencesocial)
    social   
    <?xml version='1.0' ?>
    <xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sap="http://www.sap.com/sapxsl" xmlns:aash="http://xlst.file2file" xmlns:ns0="http://xlst.file2file">
    <xsl:template match="/">                                               |
    <aash:mt_student_result>                                      this is my Naming Space
    <Data>
    <Name>
    <xsl:value-of select="concat(ns0:mt_student/data/FName,ns0:mt_student/data/LName)"/>
    </Name>
    <Marks>
    <Total_Marks>
    <xsl:value-of select="(ns0:mt_student/data/Marks/Maths)(ns0:MT_Student/Data/Marks/Science)(ns0:mt_student/data/Marks/Social)"/>
    </Total_Marks>
    </Marks>
    </Data>
    </aash:mt_student_result>
    </xsl:template>
    </xsl:transform>
    while testing in Interface mapping the values are not comming into result side please verify the code and suggest me the correct one.
    Thanks in advance
    shabeer ahmed.

    Hi Shabeer,
    PFB, the corrected XSL.
    try using it, it would work.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sap="http://www.sap.com/sapxsl" xmlns:aash="http://xlst.file2file" xmlns:ns0="http://xlst.file2file">
    <xsl:template match="/"> |
    <aash:mt_student_result> this is my Naming Space
    <Data>
    <Name>
    <xsl:variable name="vFName" select="ns0:mt_student_result/Data/FName"/>
    <xsl:variable name="vLName" select="ns0:mt_student_result/Data/LName"/>
    <xsl:value-of select="concat($vFName,$vLName)"/>
    </Name>
    <Marks>
    <Total_Marks>
    <xsl:variable name="vMaths" select="ns0:mt_student_result/Data/Marks/Maths"/>
    <xsl:variable name="vScience" select="ns0:mt_student_result/Data/Marks/Science"/>
    <xsl:value-of select="concat($vMaths,$vScience)"/>
    </Total_Marks>
    </Marks>
    </Data>
    </aash:mt_student_result>
    </xsl:template>
    </xsl:transform>
    I have given input as,
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:mt_student_result xmlns:ns0="http://xlst.file2file">
              <Data>
                   <FName>FName</FName>
                   <LName>LName</LName>
                   <Marks>
                   <Maths>M</Maths>
                   <Science>S</Science>
                   </Marks>
              </Data>
    </ns0:mt_student_result>
    Output was,
    <?xml version='1.0' ?>
    |
    <aash:mt_student_result xmlns:sap="http://www.sap.com/sapxsl" xmlns:ns0="http://xlst.file2file" xmlns:aash="http://xlst.file2file"> this is my Naming Space
    <Data><Name>FNameLName</Name><Marks><Total_Marks>MS</Total_Marks></Marks></Data></aash:mt_student_result>
    It worked.Try it out.
    Regards,
    Swetha.

  • XSLT Coding in XI

    Hi Experts,
    developing the new scenario for XSLT.
    Here i need to write the condition in XSLT. Pls let me know if you have any idea on this....
    Condition : i<10 and i>1
    Note : Here i need to know inplace and postion..like how to write the code in XSLT.
    Reward points for helpful answers...
    Regards,
    Yeswanth.

    Hi Yeswanthraj,
    For XSLT mapping, please try to create msg types for sender and recv, import these two into XML Mapforces (This is a software which enables us to do mapping this you can download from altova mapforce site) , do mapping in that mapforce , late click on XSLT icon , one XSLT file will be c reated that file , prepare zip and late come to xi , import under imported archieves,do Interface mapping by selecting the XSLT mapping option, select imported archieve..
    See below examples..
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/01a57f0b-0501-0010-3ca9-d2ea3bb983c1
    http://www.troobloo.com/tech/xslt.toc.shtml
    http://www.w3schools.com/xsl/
    http://www.w3.org/TR/xslt
    http://help.sap.com/saphelp_nw04/helpdata/en/73/f61eea1741453eb8f794e150067930/frameset.htm
    https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/generic%20xslt%20mapping%20in%20sap%20xi%2c%20part%20i.pdf
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
    Required XSLT Mapping tips!
    Reward points if helpful.
    Regards
    Vani.

  • XSLT Mapping Help Needed

    Hi,
    I have a XSD file with multiple references in my external definition. I am trying to build a schema validation functionality for a xml based on the multiple XSD's.
    Is it possible to do a schema validation using xslt mapping?
    I am using Altova mapforce to generate XSLT mapping but somehow it is not working. It gives me an error "XML Not well Formed".
    Please help!!

    Hi Jyanth
    yes you can do this
    i advice you to use XML Schema Tools like stylus studio or spy for editing, mapping, converting, validating, generating, binding and documenting any XML data model
    few  links for you how you can do in XML
    validating XML using XSLT
    http://www.ldodds.com/papers/schematron_xsltuk.html
    http://www.w3.org/TR/xslt20/
    http://www.stylusstudio.com/xsd_to_xsd.html
    https://www.xsltstudio.com/xml_schema.html
    regards
    Sandeep
    If helpful kindly reward points

  • XSLT Mapping - help

    Hi All,
    I am new to XSLT mapping.
    My requirement is: file to XML file with CDATA, for this I am planning to use the XSLT Mapping.
    I downloaded the Stylus studio, then what next, Please help meu2026
    In source flat file I have 5 fileds, and target I need to generate the XML file with CDATA set for 5 fields.
    Thanks,
    ANU-

    Hi Anu,
      Is your requirement is sending 5 fields into one string on target side ,If yes
      this code might help you for CDATA section
         <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" encoding="UTF-8" indent="yes"/>
    <xsl:template match="/">
    <MT_TARGET>
    <String>
    <xsl:text disable-output-escaping="yes"><![CDATA[<![CDATA[?xml version=\"1.0\"
    encoding=\"ISO-8859-1\"?>]]]]></xsl:text>
    <xsl:copy-of select="*"/>
    <xsl:text disable-output-escaping="yes"><!CDATA[]]]></xsl:text>
    <xsl:text disable-output-escaping="yes"><![CDATA>]></xsl:text>
    </String>
    </MT_TARGET>
    </xsl:template>
    </xsl:Stylesheet>
    //if you use " * " then entire source structure will go into target StringUsers node
    Regards,
    Sandeep

  • Xslt code help needed

    Dear SAP experts,
    Would you be able to help me in configuring the right xslt code to accomodate the looping logic?
    Source Document:
    School  (occur only once)
    - Name (can occur multiple times)
          - Nickname (occur only once)
          - Desired name (occur only once)
    Target Document:
    School
    - Name
         - Nickname (the value for this should be obtained from 'Desired name field')
         - Desired name
    I have this code, but seems not working in looping logic. (to accomodate the multiple Names):
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" version="1.0" media-type="xml" encoding="UTF-8" indent="yes"/>
    <xsl:template match="@*|node()">
    <xsl:copy>
        <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
    </xsl:template>
    <xsl:template match="Order/OrderDetail/ListOfItemDetail/ItemDetail/BaseItemDetail/ItemIdentifiers/PartNumbers/BuyerPartNumber">
      <BuyerPartNumber>
         <PartNum>
            <PartID>
                <xsl:value-of select ="/Order/OrderDetail/ListOfItemDetail/ItemDetail/BaseItemDetail/ItemIdentifiers/PartNumbers/ManufacturerPartNumber/PartID"/>
            </PartID>
        </PartNum>
    </BuyerPartNumber>
    </xsl:template>
    </xsl:stylesheet>
    What happened is that the value was taken ONLY on the 1st line item. (1st Name occurence)
    The succeeding Name field just copied the value of Nicknames from the 1st Name field.
    Kindly advise how to handle the context (loop logic) in the xslt code.
    Thanks!

    Apologies, but, it seems i did not indicate the complete message structure for the document I am testing.
    Order (root)
    OrderHeader (1st parent segment)
    OrderNumber (child fields - 1st)
    Order.. (child fields - 2nd)
    Order...(child fields - 2nd)
    OrderDetail (1st parent segment)
    <fields under this segment were already mentioned from previous threads>
    OrderSummary (1st parent segment)
    NumOfLines (child fields - 1st)
    TotalAmount (child fields - 1st)
    Under Order, there are also OrderHeader and OrderSummary parent segment, other than OrderDetail, in which we focus our code.
    I've tried your code, but, the segments OrderHeader and OrderSummary and child fields under it were not appearing on my output.
    But it seems, I've already generated the correct code.
    Here it is,
    <?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
         <xsl:output method="xml" version="1.0" media-type="xml" encoding="UTF-8" indent="yes"/>
         <xsl:template match="@*|node()">
              <xsl:copy>
                   <xsl:apply-templates select="@*|node()"/>
              </xsl:copy>
         <xsl:template match="/Order/OrderDetail/ListOfItemDetail/ItemDetail/BaseItemDetail/ItemIdentifiers/PartNumbers/BuyerPartNumber">
              <xsl:for-each select=".">
                   <BuyerPartNumber>
                        <PartNum>
                             <PartID>
                                  <xsl:value-of select="../ManufacturerPartNumber/PartID"/>
                             </PartID>
                        </PartNum>
                   </BuyerPartNumber>
              </xsl:for-each>
         </xsl:template>
    </xsl:stylesheet>
    I believe, the code you've suggested last time will accomodate only OrderDetail parent segment. Is this correct?
    Thanks!

  • AS 2.0 to AS 3.0 coding help!

    im  new to flash and all this, so can someone please translate this code to AS3.0 coding, before i kill myself
    _root.onEnterFrame = function ()
    if (_root.mouseX<50){
    imgBar.prevFrame();
    imgBar.prevFrame();
    if (MovieClip(root).mouseX<550){
    imgBar.nextFrame();
    imgBar.nextFrame();
    I know i have to change _root with MovieClip(root) but after that im just stuck  help please. thy!

    if, when your mouseX is less than 50, you want imgBar to move to its previous frame use:
    imgBar.addEventListener(Event.ENTER_FRAME,onEnterFrame)
    function onEnterFrame()
    if (MovieClip(root).mouseX<50){
    imgBar.prevFrame();
    } else {
    imgBar.nextFrame();

  • ECR/ECO Authorization on system statuses - Coding help requested

    HI PLM Gurus,
    Unfortunately ( or that ,,,Iam not aware of)There is no SAP standard Authorization object to control a user setting a particular system status in ECR/ECO. This means by SAP's standard functionality any user who is authorized  with authorization objects  ECM_REQ and ECM_ORD  in their role  and all activities allowed, can set any statuses in ECR /ECO.
    But typical business requirment in any change management requires the control status wise and so do we have one.
    We knew this can be achieved by a custom authorization object. We have created a manual object  but need help with coding to get the current status of the object for matching the authorization (allowed) values .
    Any help is appreciated.
    Thanks,
    Satya

    Thanks Pranav,
    Just to clarify ,I knew about the exit  and  Iam using the same exit, I was trying to get help on the coding part . Identifying Exit is not a problem .( we have used this exit a number of times for different requirements in ECM, like checking the lab/office field for an object before setting a system status , defaulting a  new version of document  etc)
    Update : Got a parameter ( a dynamic field value)which helped us code very easily
    ,,,,Can share with you .
    For system level authorization checks ,one can use Digital signatures and this might be the reason for not having(SAP not providing) a standard authorization object for "system status check "in Standard SAP ECM Authorizations.
    Thanks a bunch for the response.
    Rgds,
    Satya.

  • Coding Help Needed

    My problem is this...
    On our website, viewers have an option to view anonymously or
    sign in for better functionality.
    If they choose to sign in, I want them to be able to return
    to the page they were just on.
    Is there a simple way to do that in the PHP coding?

    Simple:
    So you have your page that does something:
    Inserts into database or just posts to a specific page and
    point it to
    "redirect.php"
    Now you have a page called redirect.php
    In there you add the code of the page it needs to go to.
    <?php
    header('Location: index.php');
    ?>
    So if you came from index.php then your code in redirect.php
    would read:
    <?php
    header('Location: index.php');
    ?>
    Problem solved.
    "Les_S" <[email protected]> wrote in message
    news:ff2e4f$6fn$[email protected]..
    > That didn't seem to work.
    >
    > Here is what I have working now....
    >
    >
    > if (isset($_POST['username'])) {
    > $loginUsername=$_POST['username'];
    > $password=$_POST['password'];
    > $MM_fldUserAuthorization = "";
    > $MM_redirectLoginSuccess = "
    http://www.mysite.com/success.php";
    <---
    > this
    > line is what I would like to change.
    > $MM_redirectLoginFailed = $_SERVER['HTTP_REFERER'];
    <-- hopefully to
    > something similar to this.
    > $MM_redirecttoReferrer = false;
    >
    > Using the code method from your reply, the page did not
    load at all.
    >
    > Any other ideas?
    >
    > Please help.
    >
    >

  • Coding help reqd

    Hi friends,
    In MIGO, and Qty field ERFMG...i want to put a coding check that it should display a message as "Quantity should be minimum of 10% less and maximum of 20% high only",whenever the user tries to change the value of the field(existing value from the order #).
    the field is cs_goitem-erfmg....
    FYI.
    I know the badi implementation and assinged it also.the coding part is not coming perfectly what i needed.
    Pls do reply, if anyone have sample code or have solutions how to declare it.
    thanks & regards
    sankar.

    Hi Sankar,
    Please post your coding and explain what "is not coming perfectly" and we might be able to help you.
    Regards,
    John.

  • Coding help please - changing image using links

    Hi there,
    I wonder if anyone could help me? I'm designing a website at
    the moment, but being a traditional print designer, I'm finding it
    quite difficult to get use to the coding at first. What I have is a
    page (which is shown in the link below with what i'm after) with
    six links, some text and a default image which I want the user to
    be able to click on the 'linked text' and change the main image so
    if 1.jpg was the main image, when they click 'cover 2' they get
    2.jpg and so on in the same frame that the main image is kept in.
    I've tried some javascript code I found on another help site
    but it just messes the frames up and only seems to work if the code
    is as one rather than pasted in my pages code?
    Please, please, please can someone help as it's driving me
    mad and the boss is getting closer to the room :-)
    Below is a screenshot of my page and written in red on it is
    the various bits I need to work out with your help.
    [IMG]http://i7.photobucket.com/albums/y254/080780/help.jpg[/IMG]
    http://i7.photobucket.com/albums/y254/080780/help.jpg

    Select a link, and apply a DW Image Swap behavior to swap the
    main image to
    the one desired. Do not use the automatic restore.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Gavin Wood" <[email protected]> wrote in
    message
    news:fhegg8$o4s$[email protected]..
    > Hi there,
    >
    > I wonder if anyone could help me? I'm designing a
    website at the moment,
    > but
    > being a traditional print designer, I'm finding it quite
    difficult to get
    > use
    > to the coding at first. What I have is a page (which is
    shown in the link
    > below
    > with what i'm after) with six links, some text and a
    default image which I
    > want
    > the user to be able to click on the 'linked text' and
    change the main
    > image so
    > if 1.jpg was the main image, when they click 'cover 2'
    they get 2.jpg and
    > so on
    > in the same frame that the main image is kept in.
    >
    > I've tried some javascript code I found on another help
    site but it just
    > messes the frames up and only seems to work if the code
    is as one rather
    > than
    > pasted in my pages code?
    >
    > Please, please, please can someone help as it's driving
    me mad and the
    > boss is
    > getting closer to the room :-)
    >
    > Below is a screenshot of my page and written in red on
    it is the various
    > bits
    > I need to work out with your help.
    >
    >
    [IMG]http://i7.photobucket.com/albums/y254/080780/help.jpg[/IMG]
    > http://i7.photobucket.com/albums/y254/080780/help.jpg
    >
    >
    >

  • Javascript Coding Help: Checkbox

    I am not familiar with coding except to say that I know what the possibilities are. I work for a small business and I need help adding a javascript code to a writeable PDF form we are using in Adobe Acrobat Pro.
    If a check box (Checkbox1) is clicked then I would like this text (PAID IN FULL) to appear in a text box named (Paid In Full1). If the check box is not clicked then the text box remains empty.
    Can someone help write this code for me?
    Thank you for your time and patience.

    You can use something like this as the text field custom calculation script, then:
    event.value = this.getField("Checkbox1").value=="Off" ? "" : "PAID IN FULL";

  • Coding help reqd for BADI

    HI Friends,
    Im working on MB_MIGO_BADI object for MType: 261.Here, im facing a problem to call a info msg with coding effect.i.e, I've to give a conditional message says that if the user tries to change the quantity (changing the existing/available in the field text of MIGO), then it'll give a window pop-up message or info msg like "Quantity should not be changed". Pls reply ur post how to fix this.
    The fields are
    1) cs_goitem-bwart " MType
    2) cs_goitem-erfmg "Quantity
    Note: A) It'll be applied only for MType:261.
              B) Pls advise, Here, shall I declare the export and import memory id concept?
    FYI
    ******Below is the coding part declared inside the method function.
    method IF_EX_MB_MIGO_BADI~LINE_MODIFY.
    if cs_goitem-bwart eq '261'.
    *cs_goitem-erfmg is not initial and
    *call function 'CUSTOMIZED_MESSAGE'
    *exporting
    Message i006(zmsg).
    endif.
    endmethod.
    Above, it helps only showing the info msg while entering the mtype: 261.But i need to display it only if the cursor comes into Qty (ERFMG) field. Pls advise me how to fix with ur coding example.
    mail me:[email protected]

    Posted newly since one of the issue got solved.
    thanks

  • Socket private chat coding help!!!

    any one get the private chat coding in TCP/IP(socket connection). I have coding the chat program that can public chat but the private chat get problem.
    anyone get the private chat tutorial and comment.....pls help me....
    hong

    Try searching around with Google. There are millions of chat programs all over the net with source.

Maybe you are looking for

  • Problems printing transperencies from acrobat pro 9 using HP laserjet 2605 dn

    Hello: I have been "printing" PDF's from an indesign CS4 document to acrobat 9 pro (both are part of cs4 master collection). The in-design documents include photoshop cs4 documents with transparencies which have been created by processing images usin

  • Exporting PDF to Excel, Possibly Secured for HIPPA

    In the medical industry, see site below.  Received a secure PDF and PW from a Medical office and are trying to export it to PDF.  We are trying to analyze the data to see what and who purchased medical equipment.  All attempts to export have turned t

  • Edge Animate 2014.1.1 is now live

    Hi all, Edge Animate 2014.1.1 addresses a majority of the concerns reported by you post the October release of Edge Animate (2014.1). See http://helpx.adobe.com/edge-animate/kb/edge-animate-501.html if you do not see the update listed in your CC appl

  • Where is the Text Tool.

    I am trying to put text on a photo. I cannot find the Text tool. I see the Type mask tool on the left, but not the regular Type Tool. Help?

  • ICal calendars vanished

    I am using iCal on 10.4.11 Recently after deleting what I believed to be a corrupted plist file none of my calendars appear. Now here is the strange part. When I choose to make a new Calendar Group my old events and times come back but none of the ca