FM to validate Product against a catalog

Hi All,
I have a requirement where in i need to validate a product is available in a given catalog or not. I am trying to look for FM/class method which can help in this regard. Any pointer on this will be great.
Regards,
Uday

Hi
You can use 'CO' --> Contains only
Eg:
if field CO '0123456789-.'.
Write : 'Only Numeric'.
else.
Write: 'Other Field'.
Endif.
reward points if useful
Bhupal

Similar Messages

  • How to Validate XML against XSD through PL/SQL?

    Hi friends,
    I m new to this forum. This is my first query.
    In our project, we are trying to generate output XML using PL/SQL procedure. I have done that successfully. Now my problem is I have to validate this against our XSD. How will I do that? Can you provide me with a sample example.
    Thanks to all in advance.
    Regards,
    apk

    Have you looked at the XML DB FAQ thread (second post) in this forum? It has some examples for validating XML against schemas.

  • Production against sales order

    Hi all experts,
    I am creating a report for Linewise width wise handover
    summary(OK production against sales order)
    I am taking Date from MKPF and QTY from MSEG
    I need to show Work Center [ CRHD-ARBPL ]
    but dont know how to link tables
    can any one send me the code and link btween MSEG and
    CRHD or any other table which having ARBPL field linking with
    MSEG.
    Thanx in Advance ......

    Hi,
    CAUFV and AFKO tables are linked with table CRHD. These two tables are related to order. You can try these tables to get the desired data.
    Regards
    Amit parkhi

  • As good will gesture, we can help you with the upgrade for PSE 13. We would request you to place the order for Adobe Photoshop Elements 13 as an upgrade and then we will provide you the full version serial number for the same product against the new upgra

    I RECIVED AN EMAIL FROM ADOBE AS  :  As good will gesture, we can help you with the upgrade for PSE 13. We would request you to place the order for Adobe Photoshop Elements 13 as an upgrade and then we will provide you the full version serial number for the same product against the new upgrade order"  IS THIS UPGRADE FREE AND WHAT SHOULD I DO, HOW CAN I HAVE THIS UPGRADE?

    Compare with on-line stores. The full version is often cheaper than Adobe's upgrade price.
    See this example from Amazon, but check pricing in your own region.
    http://www.amazon.com/gp/product/B00N4OLCRO/ref=s9_simh_gw_p65_d4_i2?pf_rd_m=ATVPDKIKX0DER &pf_rd_s=desktop-1&pf_rd_r=0F1GED9546928YP3PHC0&pf_rd_t=36701&pf_rd_p=1970559082&pf_rd_i=d esktop

  • Validate XML against XSD using PLSQL

    Hi,
    We now need some kind of automated solution that will pick
    up the XMLs from a specific location or table and validate them
    against the XSD in only Oracle PLSQL.
    The validation of the XML against the XSD should take place when the XML is parsed.
    I want to know how first the XSD's are stored or registered in the Oracle XDB repository.
    Please can anyone suggest me how this can be done with a simple example
    with a sample XML and XSD?
    Regards,
    Marlon.

    Hi, I'm not an expert but I've been reading a lot and I found this and it works. I'll hope it is useful.(Oracle 10)
    declare
    -- Local variables here
    res BOOLEAN;
    tempXML XMLType;
    xmlDoc XMLType;
    xmlSchema XMLType;
    schemaURL varchar2(256) := 'testcase.xsd';
    schemaPath varchar2(256) := '/public/testcase.xsd';
    begin
    dbms_xmlSchema.deleteSchema(schemaURL,4);
    -- Test statements here
    xmlSchema := xmlType(
    '<?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb"
    elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xs:element name="root" xdb:defaultTable="ROOT_TABLE">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="child1"/>
    <xs:element name="child2"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    dbms_xmlschema.registerSchema(schemaURL,
    xmlSchema , --xdbURIType(schemaPath).getClob(),
    TRUE,TRUE,FALSE,TRUE
    xmlDoc:=xmltype('<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="' || schemaURL || '"><child1>foo</child1><child2>bar</child2></root>');
    dbms_output.put_line(xmlDoc.getStringVal());
    xmlDoc.schemaValidate();
    END;

  • User can not add more then two products against one order

    Hi frnd,
    My requirement is in CRM while creating order using CRMD_ORDER transaction. The user can not be entered more then two products against one order.
    I am using CRMD_ORDERADM_I_BADI badi to give error I am unable to use this badi. Is there any other options are there.
    Please do need full help.
    Regards,
    Ashish.

    Hi Amit,
    DATA: gt_header TYPE crmd_orderadm_h. "OCCURS 0 WITH HEADER LINE.
    data: ET_PRODUCT_I     TYPE     CRMT_PRODUCT_I_WRKT.
    data: gs_PRODUCT_I     TYPE     CRMT_PRODUCT_I_WRKT.
    DATA : gt_header_guid     TYPE     crmt_object_guid_tab.
    DATA : gs_header_guid     TYPE     crmt_object_guid.
      gs_header_guid = IV_HEADER.
    *INSERT gs_header_guid INTO TABLE IV_HEADER.
      CALL FUNCTION 'CRM_ORDER_READ'
        EXPORTING
          it_header_guid       = gt_header_guid[]
        IMPORTING
          ET_PRODUCT_I         =   ET_PRODUCT_I[]
        EXCEPTIONS
          document_not_found   = 1
          error_occurred       = 2
          document_locked      = 3
          no_change_authority  = 4
          no_display_authority = 5
          no_change_allowed    = 6
          OTHERS               = 7.
    endmethod.
    I am using ds code. Its working fine records are coming in Product. But how i will save product into one
    itab.
    Regards,
    Ashish S

  • Add non-SAP product to Software catalog - Error

    Hi experts,
    When i want to add a non-SAP product to Software Catalog with your name, vendor and version the system give me the error: Class already locked: SAP_ProductLine. What does this mean?
    very thanks,

    Maybe the name of your product is already used?
    Or did you try to use vender sap.com? This is not allowed.
    Regards
    Stefan

  • Any idea how to enable customers to buy all products from a catalog with one click?

    I need to set up reoccurring purchases and want to get around it by having customers purchase all products off a catalog with one click after they set the amount. Any idea how to get there?
    Thank you.

    hello, firefox has just a simple viewing capability for files on a ftp server. for more advanced functions please use an extension like fireftp: https://addons.mozilla.org/firefox/addon/fireftp/

  • How to validate XML against XSD and parse/save in one step using SAXParser?

    How to validate XML against XSD and parse/save in one step using SAXParser?
    I currently have an XML file and XSD. The XML file specifies the location of the XSD. In Java code I create a SAXParser with parameters indicating that it needs to validate the XML. However, SAXParser.parse does not validate the XML, but it does call my handler functions which save the elements/attributes in memory as it is read. On the other hand, XMLReader.parse does validate the XML against the XSD, but does not save the document in memory.
    My code can call XMLReader.parse to validate the XML followed by SAXParser.parse to save the XML document in memory. But this sound inefficient. Besides, while a valid document is being parsed by XMLReader, it can be changed to be invalid and saved, and XMLReader.parse would be looking at the original file and would think that the file is OK, and then SAXParser.parse would parse the document without errors.
    <Book xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="book.xsd" name="MyBook">
      <Chapter name="First Chapter"/>
      <Chapter name="Second Chapter">
        <Section number="1"/>
        <Section number="2"/>
      </Chapter>
    </Book>
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="Book">
    <xs:complexType>
      <xs:sequence>
       <xs:element name="Chapter" minOccurs="0" maxOccurs="unbounded">
        <xs:complexType>
         <xs:sequence>
          <xs:element name="Section" minOccurs="0" maxOccurs="unbounded">
           <xs:complexType>
            <xs:attribute name="xnumber"/>
          </xs:complexType>
          </xs:element>
         </xs:sequence>
         <xs:attribute name="name"/>
        </xs:complexType>
       </xs:element>
      </xs:sequence>
      <xs:attribute name="name"/>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    public class SAXXMLParserTest
       public static void main(String[] args)
          try
             SAXParserFactory factory = SAXParserFactory.newInstance();
             factory.setNamespaceAware(true);
             factory.setValidating(true);
             SAXParser parser = factory.newSAXParser();
             parser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaLanguage",
                                "http://www.w3.org/2001/XMLSchema");
             BookHandler handler = new BookHandler();
             XMLReader reader = parser.getXMLReader();
             reader.setErrorHandler(handler);
             parser.parse("xmltest.dat", handler); // does not throw validation error
             Book book = handler.getBook();
             System.out.println(book);
             reader.parse("xmltest.dat"); // throws validation error because of 'xnumber' in the XSD
    public class Book extends Element
       private String name;
       private List<Chapter> chapters = new ArrayList<Chapter>();
       public Book(String name)
          this.name = name;
       public void addChapter(Chapter chapter)
          chapters.add(chapter);
       public String toString()
          StringBuilder builder = new StringBuilder();
          builder.append("<Book name=\"").append(name).append("\">\n");
          for (Chapter chapter: chapters)
             builder.append(chapter.toString());
          builder.append("</Book>\n");
          return builder.toString();
       public static class BookHandler extends DefaultHandler
          private Stack<Element> root = null;
          private Book book = null;
          public void startDocument()
             root = new Stack<Element>();
          public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
             if (qName.equals("Book"))
                String name = attributes.getValue("name");
                root.push(new Book(name));
             else if (qName.equals("Chapter"))
                String name = attributes.getValue("name");
                Chapter child = new Chapter(name);
                ((Book)root.peek()).addChapter(child);
                root.push(child);
             else if (qName.equals("Section"))
                Integer number = Integer.parseInt(attributes.getValue("number"));
                Section child = new Section(number);
                ((Chapter)root.peek()).addSection(child);
                root.push(child);
          public void endElement(String uri, String localName, String qName) throws SAXException
             Element finished = root.pop();
             if (root.size() == 0)
                book = (Book) finished;
          public Book getBook()
             return book;
          public void error(SAXParseException e)
             System.out.println(e.getMessage());
          public void fatalError(SAXParseException e)
             error(e);
          public void warning(SAXParseException e)
             error(e);
    public class Chapter extends Element
       public static class Section extends Element
          private Integer number;
          public Section(Integer number)
             this.number = number;
          public String toString()
             StringBuilder builder = new StringBuilder();
             builder.append("<Section number=\"").append(number).append("\"/>\n");
             return builder.toString();
       private String name;
       private List<Section> sections = null;
       public Chapter(String name)
          this.name = name;
       public void addSection(Section section)
          if (sections == null)
             sections = new ArrayList<Section>();
          sections.add(section);
       public String toString()
          StringBuilder builder = new StringBuilder();
          builder.append("<Chapter name=\"").append(name).append("\">\n");
          if (sections != null)
             for (Section section: sections)
                builder.append(section.toString());
          builder.append("</Chapter>\n");
          return builder.toString();
    }Edited by: sn72 on Oct 28, 2008 1:16 PM

    Have you looked at the XML DB FAQ thread (second post) in this forum? It has some examples for validating XML against schemas.

  • Cannot validate Production Premium CS4 upgrade

    I purchased Production Premium CS4 using a upgrade path which allowed for a discount based on my prior purchase of Design Standard CS4. The screen that validates my copy of Production Premium (it was a download) asks for the serial number of my qualifying previous package, but the pulldown menu doesn't list any choices except CS3 packages. So, of course, my Design Standard serial number doesn't work and I am only able to use the trial version. All the Adobe technical staff seems to be unreachable until October 14, after their system upgrade is complete. Can anyone offer suggestions?
    Thanks

    Just to follow up, Customer Service was able to get Production Premium CS4 installed fairly easily today, but my concern about Photoshop CS 4 turned out to be well-founded. I still do not have  PS CS4 Extended. After a frustrating four sessions with four different reps today, which included an uninstall of my existing version of Photoshop CS4 (not Extended) and re-install of the trial version of PS CS4 Extended, I still show only the regular version. Nobody seems to know what the problem is, but the fifth contact at Customer Service has agreed to send me an actual installation disc with which to install the extended version. I am running OS X 10.6, Snow Leopard, and I don't know if that is a complicating factor here.
    I give my thanks to Adobe for their service reps--everyone was courteous and eager to help, although the first two gave advice that was patently wrong. The first had me uninstall PS (against my better judgment) in the hopes that PS Extended would somehow magically appear. That left me without any PS at all. It took three more sessions to get it re-installed. After I finally re-installed the trial version, Rep # 4 had me enter my Production Premium serial number at the appropriate prompt and the number was rejected. I accepted the trial option and have closed and reopened the program several times and have never been asked for a serial number again nor is there any other indication that this is a trial version. It seems to have just settled in place with the rest of Production Premium. The second rep reported that his superiors said that my upgrade path from Design Standard CS4 to Production Premium CS4 ($799.00) was invalid despite the assurances of two representatives with whom I talked before I purchased, as well as their website upgrade path page.
    I am hoping that the physical disc will settle the issue.
    Thanks for your attention.
    P.S.: By the way, Adobe seems to have at least three levels of help in this area--one for installation/activation problems, another called "Tech Support", and a third "Customer Support" and it was this last category that has provided the installation disc. Although I have referred to everyone above as "reps" or "Customer Service", I believe the first two people I talked to were in the first category, the second two in the second category, the last one being in the third category. I actually called about 5:30 AM Pacific time. I think they start at 5:00 AM Pacific.

  • SQL Reports Bad Idea Against RMAN Catalog?

    11.2.0.1 SPARC 64
    We use OEM to manage/execute our backups. The MML is NetBackup. One downside to this is that the "job" within OEM executes the backup for 20+ databases. In a serial fashion the backups occur in NetBackup...but most are queued - they throttle through and over time they complete. To this end, we have no way of seeing the true backup duration. We know the rman start and completion times, but they're not "actual."
    I started looking at creating a sql statement/report/[pl/sql] block that would give us the granular informatin on the true timings of the backup "pieces" as they relate to a "set."
    Research out on the wire shows a number of high level solutions, but nothing to which a report shows the data files, etc. Usually when I see this I start to question..."hey, is this even a good approach?"
    I do realize that through the RMAN utility there are a number of reports which are available...this post, however, is focused on the idea of sql reports against the rman catalog.
    Any advice would be welcome.
    Conceptual report:
    -> INCREMENTAL LEVEL 0
    --> BACKUP SET
    ---> BACKUP PIECE
    ----> HANDLE, TAG, DATAFILE, START, COMPLETION
    I'm NOT looking for the sql...I can work that out, I just want to know if this is a smart approach or best to stay out of the catalog.
    -abe
    Boulder, Colorado
    Edited by: user10863631 on Mar 10, 2011 7:43 AM
    Edited by: user10863631 on Mar 10, 2011 7:56 AM

    I think this is the wrong forum for such a question. The Database - General (General Database Discussions might be better suited. Or maybe the RMAN forum (Recovery Manager (RMAN)

  • Validate xslt against JDK5 so we can remove the 'Use SAP XML Toolkit' flag

    We are working on PI7.1 and have hit an issue with an XSLT mapping. We were getting an error when testing that said:
    TransformerException during XSLT processing:
    javax.xml.transform.TransformerException: com.sun.org.apache.xalan.internal.xsltc.TransletException: com.sun.org.apache.xalan.internal.xsltc.TransletException: java.io.FileNotFoundException
    We found a few threads on SDN pointing us to using the 'Use SAP XML Toolkit' flag, which we'd not even noticed before. Ticking this flag did get us around the problem. Further investigation suggested to us, however, that this flag will not be available in future releases, so I guess our best solution would be to try and resolve the issues in our mapping against the current version of java (JDK5). When we use other tools such as XMLSPY they do not detect a problem with the XSLT. Can anyone point me to a tool that would enable us to validate our XSLT file against JDK5, which will provide us with error messages that will enable us to fix the error and therefore remove the 'Use SAP XML Toolkit' flag?
    thanks,
    Malcolm.

    > Can anyone point me to a tool that would enable us to validate our XSLT file against JDK5, which will provide us with error messages that will enable us to fix the error and therefore remove the 'Use SAP XML Toolkit' flag?
    I am sorry to have to say that even inside SAP nobody can answer this question.
    In principle it will work when it is pure XSLT 1.1 but some commands from XSLT 2.0 might work also.

  • Rework Order after QC Rejection......for Production against Sales Order

    Hi All,
    Can you help me in the following issue.........?
    I have Make to Order production scenario. After Production Order is confirmed material goes for QC inspection and some quantity get rejected ( need rework).
    Since I have confirmed total quantity in order confirmation, if I create a rework order with reference to the sales order that will increase the production qty by the rework qty. But I need a rework order to rework on the rejected quantity.
    Let me know how to resolve the issue.
    Thanks and Regards,
    Samar

    Hi!,
    From your mail it seems that you are doing quality inspection on GR (inspection type 04). Please carry out following steps:
    1) At the time of quantity posting on usage decision please put rejected quantity in field against retuen to vendor (i.e. carry out 122 movement for the rejected material). By doing this you will find the delivered quanity on prod order reduced by the rejected quantity.
    2) Now create a production order without material (CO07) for the rejected quantity and put the original order as cost receiver in the settlement rule so that all the cost incurred during rework will be settled on original order.
    3. Confirm the origianl order / Final operation again for the reworked quantity and make the GR again. This will again create a new inspection lot.
    4. Carry out the result recording and UD for this new inspection lot.

  • How to include /Exclude products in customer catalog view.

    We are using CRM 4.0 with internet sales applications (ISA).We have product catalog setup in webshop where customer/customer service team given access to view products based on the different product hierarchy.
    This is enabled though creation of multiple customer views
    Now we have a requirement that customer need to view only few product out of the product category level assignment but asper the current system if a particular product category is marked then it show all the product under the product category in hierarchy assignment
    Which means assume there are 100 products assigned to a product category ID under customer view, but customer has show all the 100 products but he need to view only 50 products out of 100 products assigned
    We need to find out if it is possible to include / exclude products from a customer view not based on the product hierarchy / category ID.
    Is that possible? we tried Partner product range but not sure ...can anyone throw some light in it... please let me know if I'm not clear on this.
    Thanks
    Jegatheesan.

    The app builder prior to 8.x was only designed to install the application you created. The actual instrument driver VIs should be included in the app but the IVI driver itself (the low level dll) is not. You should really include the installer for the IVI driver and not just the dlls. This is the .msi file that is on the instrument driver download page. If you are getting an error about VISA32, then it sounds like VISA was not installed either. I usually install VISA and NI-GPIB from the CD that comes with the GPIB board and I do this when I install the board into the computer. However, you can also include these installers with your app as well. On the Installer Settings tab, click the Advanced button. You have the option there of 'Run executable after installation'. The simplest thing to do is to create a .bat file that will call the other installers you include with the distribution. Don't forget that you also need the IVI Compliance Package so include that installer as well.

  • Validate xml against xslt

    i have a mapping with custom xslt. how to test against an input xml file?
    how to debug the xslt by giving the input xml file as input?

    Click on your map in Visual Studio Solution Explorer
    Browse to your input xml file in the TestMap Input Instance property
    Right click on your map in the solution Explorer and choose Test Map
    In the output window, you can hold down ctrl and click on the link after The output is stored in the following file" to see the result.
    You can also choose an output filename and path in the TestMap Output Instance property to have the file saved to a location of your own choosing.
    Any errors will be displayed in the Error List in Visual Studio.
    Depending on how strict you have it, you might need to disable the properties "Validate TestMap Input" and "Validate TestMap Output" when testing.

Maybe you are looking for