Determine all valid ORDERs for a Produced Good.

Hi All,
I need to determine the valid Order number for a produced goods:
Each Material that has been u201Cproducedu201D is fetched as follows:
if not i_marc[] is initial.
SELECT matnr
FROM aufm INTO CORRESPONDING FIELDS OF TABLE i_aufm
FOR ALL ENTRIES IN i_marc where budat IN s_budat AND BWART = '101'
  and matnr = i_marc-matnr
  and werks = i_marc-werks.
endif.
Now I need to read all Order Numbers (AUFM-AUFNR),
Where Produced good AUFM-MATNR has atleast one record with Movement Type
AUFM-BWART is equal to u2018101u2019 or u2018102u2019 and posting date (AUFM-BUDAT) is within user defined date
range AND Plants (AUFM-WERKS) is within the user defined range.
Can some body help me in this?
Thanks,
Debrup.

Hi All,
I need to determine the valid Order number for a produced goods:
Each Material that has been u201Cproducedu201D is fetched as follows:
if not i_marc[] is initial.
SELECT matnr
FROM aufm INTO CORRESPONDING FIELDS OF TABLE i_aufm
FOR ALL ENTRIES IN i_marc where budat IN s_budat AND BWART = '101'
  and matnr = i_marc-matnr
  and werks = i_marc-werks.
endif.
Now I need to read all Order Numbers (AUFM-AUFNR),
Where Produced good AUFM-MATNR has atleast one record with Movement Type
AUFM-BWART is equal to u2018101u2019 or u2018102u2019 and posting date (AUFM-BUDAT) is within user defined date
range AND Plants (AUFM-WERKS) is within the user defined range.
Can some body help me in this?
Thanks,
Debrup.

Similar Messages

  • Requested delivery date in Sales order for internally produced products

    Dear All,
    I'm searching for a solution for the following case:
    Customer places a sales order for inhouse produced material, there is no stock for that product and no planned receipts, so ATP check does not confirm anything.
    A sales person does not know when product can be produced since thats depended on components availability on stock or confirmed dates of future receipts of needed components.
    So at the stage when a sales person inputs a sales order he should somehow calculate the requested delivery date.
    He can create a production order (without saving it) for requested good and check components availability inside production order, and based on that figure out a valid date, but thats of course is not convenient at all.
    He will need to go through all confirmed dates in ATP (in production order) and figure out the latest date when the latest component is available. Then he will get a start date for production order and as a result a date when requested product will be on stock.
    All these activities which could be a workaround are not so convenient for sales persons.
    I'm curious, is there any official SAP way how to calculate a day for above described case when product will be produced (like simulation of overall chain) and of course much better to have it in background...
    Your ideas and suggestions are very much appreciated.
    Best Regards,
    Andrey

    Hi Andrey
    I feel this is more of process issue rather than config problem. Whatever market and productline your client is operating in ,there will be some analysis available regarding the time required to replenish a material from the date requirement is generated and this is even if you don't have SAP.
    Generally companies have the approximate time entered in  material master  either in GR processing When material is procured  or in planned delivery time When  produced in house.
    So you can still maintain approximate time there and configure availability check to check cumulated confirmed quantities.
    change VOV8 to propose the delivery date. this way u get delivery proposal for availability check and then still u can block the delivery as Mr.Sai ; has suggested , OR  have your own checks incorporated in user exits in  RV03VFZZ.
    The requirement transfer can be blocked and you can use  user status  or  combination of user status and user exit to control the requirement transfer.
    For customer specific manufacturing of sales order stock also ,you need to verify strategy group and planning strategy .that should solve problems rather than changing config. into sales.
    So i would suggest that have a second look  at PP ,MRP config and material  master data and then check for changes on SD side. also try using delivery proposal.
    Regards
    Mandar

  • How to get all production orders for a workcenter

    Hello ...
    I have a requirement to create a report of all production orders for a given workcenter.  The user enters the workcenter (CRHD-ARBPL), plant (CRHD-WERKS) and a date range, and wants to see a list of orders (AUFNR) that fall within that date range along with some other data from AFKO and AFPO. 
    I can't figure out a good, consistent way to get from workcenter to production orders.
    Any ideas?
    Thanks!
    Sharon

    Hi there check this program for relation between SO PO and Production order
    REPORT z_so_info.
    TABLES: vbak, vbap, afko, afpo.
    *Field catalog
    TYPE-POOLS: slis.
    DATA: lv_repid TYPE sy-repid VALUE sy-repid,
    xfield TYPE slis_t_fieldcat_alv,
    afield TYPE slis_fieldcat_alv.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(25) text-002.
    SELECT-OPTIONS: so_so FOR vbak-vbeln OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-003.
    PARAMETERS:
    p_kunnr LIKE vbak-kunnr, " sold-to
    p_kunwe LIKE vbak-kunnr. " ship-to
    SELECTION-SCREEN END OF BLOCK b2.
    *Constants
    CONSTANTS: c_zor TYPE vbak-auart VALUE 'ZOR',
    c_we TYPE vbpa-parvw VALUE 'WE',
    c_ag TYPE vbpa-parvw VALUE 'AG'.
    * c_space TYPE space.
    *Ranges
    RANGES: ra_parvw FOR vbpa-parvw,
    ra_kunnr FOR vbpa-kunnr.
    *Tables
    DATA: BEGIN OF gt_output OCCURS 0,
    vbeln LIKE vbak-vbeln, " sales order number
    posnr LIKE vbap-posnr, " SO item number
    matnr LIKE vbap-matnr, " material number
    sh LIKE vbpa-kunnr, " Ship-to
    sp LIKE vbpa-kunnr, " Sold-to
    lifnr LIKE ekko-lifnr, " Vendor
    bstnk LIKE vbak-bstnk, " PO number
    banfn LIKE vbep-banfn, " Purchase requi
    po_st TYPE char30, " PO status text
    pstyv TYPE vbap-pstyv, " Item catagory
    aufnr LIKE afpo-aufnr, " Production Order
    prd_stat TYPE string, " Prd order status
    END OF gt_output.
    DATA: wa_output LIKE gt_output.
    FIELD-SYMBOLS: <fs_output> LIKE gt_output.
    *Table for sales order and PO
    TYPES : BEGIN OF gs_data,
    vbeln TYPE vbak-vbeln,
    posnr TYPE vbap-posnr,
    pstyv TYPE vbap-pstyv,
    matnr TYPE vbap-matnr,
    END OF gs_data.
    DATA: gt_data TYPE STANDARD TABLE OF gs_data,
    wa_data TYPE gs_data.
    *Table for Production Orders
    TYPES: BEGIN OF gs_prd,
    aufnr TYPE afpo-aufnr,
    posnr TYPE afpo-posnr,
    kdauf TYPE afpo-kdauf,
    kdpos TYPE afpo-kdpos,
    wepos TYPE afpo-wepos, "Goods Receipt Indicator
    elikz TYPE afpo-elikz, "Delivery Completed Indicator
    objnr TYPE aufk-objnr, "Object number
    * getri TYPE afko-getri, "Confirmed Order Finish Date
    * gltri TYPE afko-gltri, "Actual finish date
    END OF gs_prd.
    DATA: gt_prd TYPE STANDARD TABLE OF gs_prd,
    wa_prd TYPE gs_prd.
    *Table for partner data
    TYPES: BEGIN OF gs_partner,
    vbeln TYPE vbak-vbeln,
    posnr TYPE vbap-posnr,
    parvw TYPE vbpa-parvw,
    kunnr TYPE vbpa-kunnr,
    END OF gs_partner.
    DATA: gt_partner TYPE STANDARD TABLE OF gs_partner,
    wa_partner TYPE gs_partner.
    TYPES: BEGIN OF gs_po,
    ebeln TYPE ekkn-ebeln,
    ebelp TYPE ekkn-ebelp,
    vbeln TYPE ekkn-vbeln,
    vbelp TYPE ekkn-vbelp,
    END OF gs_po.
    DATA: gt_po TYPE STANDARD TABLE OF gs_po,
    wa_po TYPE gs_po.
    TYPES: BEGIN OF gs_preq,
    vbeln TYPE vbep-vbeln,
    posnr TYPE vbep-posnr,
    banfn TYPE vbep-banfn,
    END OF gs_preq.
    DATA: gt_preq TYPE STANDARD TABLE OF gs_preq,
    wa_preq TYPE gs_preq.
    TYPES: BEGIN OF gs_po_stat,
    ebeln TYPE ekko-ebeln,
    procstat TYPE ekko-procstat,
    lifnr TYPE ekko-lifnr,
    END OF gs_po_stat.
    DATA: gt_po_stat TYPE STANDARD TABLE OF gs_po_stat,
    wa_po_stat TYPE gs_po_stat.
    *Field symbols
    FIELD-SYMBOLS: <fs> TYPE tj02t-txt04,
    <fs_temp> TYPE tj02t-txt04,
    <fs_stat> TYPE char30.
    START-OF-SELECTION.
    PERFORM fr_build_range.
    PERFORM fr_get_data.
    PERFORM fr_build_fc.
    PERFORM fr_output.
    *& Form fr_get_data
    * text
    * --> p1 text
    * <-- p2 text
    FORM fr_get_data.
    *Get SO
    SELECT a~vbeln a~posnr a~pstyv a~matnr
    FROM vbap AS a
    JOIN vbak AS b
    ON a~vbeln = b~vbeln
    JOIN vbpa AS c
    ON b~vbeln = c~vbeln
    INTO TABLE gt_data
    WHERE b~vbeln IN so_so
    AND b~auart EQ c_zor "Only Sales Orders
    AND c~kunnr IN ra_kunnr. "from selection screen
    DELETE ADJACENT DUPLICATES FROM gt_data COMPARING vbeln posnr.
    *get data of the production order
    IF NOT gt_data[] IS INITIAL.
    SELECT a~aufnr a~posnr a~kdauf a~kdpos a~wepos a~elikz
    b~objnr
    FROM afpo AS a
    JOIN aufk AS b
    ON a~aufnr = b~aufnr
    INTO TABLE gt_prd
    FOR ALL ENTRIES IN gt_data
    WHERE a~kdauf EQ gt_data-vbeln
    AND a~kdpos EQ gt_data-posnr.
    ENDIF.
    *Get partner data
    IF NOT gt_data[] IS INITIAL.
    SELECT vbeln posnr parvw kunnr
    FROM vbpa
    INTO TABLE gt_partner
    FOR ALL ENTRIES IN gt_data
    WHERE vbeln EQ gt_data-vbeln.
    ENDIF.
    *Get Purchase Order
    IF NOT gt_data[] IS INITIAL.
    SELECT ebeln ebelp vbeln vbelp
    FROM ekkn
    INTO TABLE gt_po
    FOR ALL ENTRIES IN gt_data
    WHERE vbeln EQ gt_data-vbeln
    AND vbelp EQ gt_data-posnr.
    SELECT vbeln posnr banfn
    FROM vbep
    INTO TABLE gt_preq
    FOR ALL ENTRIES IN gt_data
    WHERE vbeln EQ gt_data-vbeln
    AND posnr EQ gt_data-posnr.
    ENDIF.
    IF NOT gt_po[] IS INITIAL.
    SELECT a~ebeln a~procstat a~lifnr
    FROM ekko AS a
    JOIN ekpo AS b
    ON a~ebeln = b~ebeln
    INTO TABLE gt_po_stat
    FOR ALL ENTRIES IN gt_po
    WHERE b~ebeln EQ gt_po-ebeln
    AND b~ebelp EQ gt_po-ebelp.
    ENDIF.
    *Move data to output table
    LOOP AT gt_data INTO wa_data.
    wa_output-vbeln = wa_data-vbeln.
    wa_output-posnr = wa_data-posnr.
    wa_output-pstyv = wa_data-pstyv.
    wa_output-matnr = wa_data-matnr.
    READ TABLE gt_po INTO wa_po WITH KEY vbeln = wa_data-vbeln
    vbelp = wa_data-posnr.
    IF sy-subrc EQ 0.
    wa_output-bstnk = wa_po-ebeln.
    READ TABLE gt_po_stat INTO wa_po_stat WITH KEY ebeln = wa_po-ebeln.
    IF sy-subrc EQ 0.
    wa_output-lifnr = wa_po_stat-lifnr.
    CASE wa_po_stat-procstat.
    WHEN '01'.
    wa_output-po_st = 'Version in process'.
    WHEN '02'.
    wa_output-po_st = 'Active'.
    WHEN '03'.
    wa_output-po_st = 'In release'.
    WHEN '04'.
    wa_output-po_st = 'Partially released'.
    WHEN '05'.
    wa_output-po_st = 'Released Completely'.
    WHEN '08'.
    wa_output-po_st = 'Rejected'.
    ENDCASE.
    ENDIF. "inner read subrc
    ENDIF. "outer read subrc
    READ TABLE gt_preq INTO wa_preq WITH KEY vbeln = wa_data-vbeln
    posnr = wa_data-posnr.
    IF sy-subrc EQ 0.
    wa_output-banfn = wa_preq-banfn.
    ENDIF.
    READ TABLE gt_prd INTO wa_prd WITH KEY kdauf = wa_data-vbeln
    kdpos = wa_data-posnr.
    IF sy-subrc EQ 0.
    wa_output-aufnr = wa_prd-aufnr.
    *get the purchase requisition for production order as well
    SELECT SINGLE banfn
    FROM ebkn
    INTO wa_output-banfn
    WHERE aufnr EQ wa_prd-aufnr.
    *Get the status of the production order
    PERFORM fr_get_prd_stat USING wa_prd-objnr
    CHANGING wa_output-prd_stat.
    ENDIF. " sy-subrc
    READ TABLE gt_partner INTO wa_partner WITH KEY vbeln = wa_data-vbeln
    parvw = c_we.
    IF sy-subrc EQ 0.
    wa_output-sh = wa_partner-kunnr.
    ENDIF.
    READ TABLE gt_partner INTO wa_partner WITH KEY vbeln = wa_data-vbeln
    parvw = c_ag.
    IF sy-subrc EQ 0.
    wa_output-sp = wa_partner-kunnr.
    ENDIF.
    APPEND wa_output TO gt_output.
    CLEAR: wa_data, wa_prd,wa_partner,wa_output.
    ENDLOOP.
    ENDFORM. " fr_get_data
    *& Form fr_build_range
    * text
    * --> p1 text
    * <-- p2 text
    FORM fr_build_range .
    *Range for partner function
    MOVE 'I' TO ra_parvw-sign.
    MOVE 'EQ' TO ra_parvw-option.
    MOVE 'SH' TO ra_parvw-low. " we
    APPEND ra_parvw.
    CLEAR ra_parvw.
    MOVE 'I' TO ra_parvw-sign.
    MOVE 'EQ' TO ra_parvw-option.
    MOVE 'SP' TO ra_parvw-low. " ag
    APPEND ra_parvw.
    CLEAR ra_parvw.
    *Range for ship-to and sold-to
    MOVE 'I' TO ra_kunnr-sign.
    MOVE 'EQ' TO ra_kunnr-option.
    MOVE p_kunnr TO ra_kunnr-low.
    APPEND ra_kunnr.
    CLEAR ra_kunnr.
    MOVE 'I' TO ra_kunnr-sign.
    MOVE 'EQ' TO ra_kunnr-option.
    MOVE p_kunwe TO ra_kunnr-low.
    APPEND ra_kunnr.
    CLEAR ra_kunnr.
    ENDFORM. " fr_build_range
    *& Form fr_build_fc
    * text
    * --> p1 text
    * <-- p2 text
    FORM fr_build_fc .
    * sales order number
    afield-fieldname = 'VBELN'.
    afield-seltext_s = 'Sales #'.
    afield-ref_tabname = 'VBAK'.
    APPEND afield TO xfield. CLEAR afield.
    * sales ITEM number
    afield-fieldname = 'POSNR'.
    afield-seltext_s = 'Item #'.
    afield-ref_tabname = 'VBAP'.
    APPEND afield TO xfield. CLEAR afield.
    * Material Number
    afield-fieldname = 'MATNR'.
    afield-seltext_s = 'Material #'.
    afield-ref_tabname = 'VBAP'.
    afield-outputlen = 10.
    APPEND afield TO xfield. CLEAR afield.
    *Vendor Number
    afield-fieldname = 'LIFNR'.
    afield-seltext_s = 'Vendor Num.'.
    afield-ref_tabname = 'EKKO'.
    APPEND afield TO xfield. CLEAR afield.
    * ship-to-party
    afield-fieldname = 'SH'.
    afield-seltext_s = 'Ship-to'.
    afield-ref_tabname = 'VBPA'.
    APPEND afield TO xfield. CLEAR afield.
    * sold-to-party
    afield-fieldname = 'SP'.
    afield-seltext_s = 'Sold-to'.
    afield-ref_tabname = 'VBPA'.
    APPEND afield TO xfield. CLEAR afield.
    *PO number
    afield-fieldname = 'BSTNK'.
    afield-seltext_s = 'PO NUM'.
    afield-ref_tabname = 'EKKO'.
    APPEND afield TO xfield. CLEAR afield.
    *PO status
    * afield-fieldname = 'PO_STAT'.
    * afield-seltext_s = 'Step'.
    * afield-ref_tabname = 'zbacklog_v2'.
    * APPEND afield TO xfield. CLEAR afield.
    *PO step status
    afield-fieldname = 'PO_ST'.
    afield-seltext_s = 'PO.Status'.
    afield-ref_tabname = 'zbacklog_v2'.
    APPEND afield TO xfield. CLEAR afield.
    *Purchase requisition
    afield-fieldname = 'BANFN'.
    afield-seltext_s = 'Pur. Req.'.
    afield-ref_tabname = 'VBEP'.
    APPEND afield TO xfield. CLEAR afield.
    *Item catagory
    afield-fieldname = 'PSTYV'.
    afield-seltext_s = 'Itm. Catg'.
    afield-ref_tabname = 'VBAP'.
    APPEND afield TO xfield. CLEAR afield.
    *Prodcution Order number
    afield-fieldname = 'AUFNR'.
    afield-seltext_m = 'Prod.Order'.
    afield-ref_tabname = 'AFKO'.
    APPEND afield TO xfield. CLEAR afield.
    *PRODCUTION status
    afield-fieldname = 'PRD_STAT'.
    afield-seltext_s = 'Prd. Step'.
    afield-ref_tabname = 'zbacklog_v2'.
    afield-outputlen = 20.
    APPEND afield TO xfield. CLEAR afield.
    *PRODUCTION step status
    * afield-fieldname = 'PRD_ST'.
    * afield-seltext_s = 'Prd. Status'.
    * afield-ref_tabname = 'zbacklog_v2'.
    * APPEND afield TO xfield. CLEAR afield.
    ENDFORM. " fr_build_fc
    *& Form fr_output
    * text
    * --> p1 text
    * <-- p2 text
    FORM fr_output .
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    i_callback_program = sy-repid
    * I_CALLBACK_PF_STATUS_SET = ' '
    * I_CALLBACK_USER_COMMAND = ' '
    * I_STRUCTURE_NAME =
    * IS_LAYOUT =
    it_fieldcat = xfield[]
    i_default = 'X'
    i_save = 'A'
    TABLES
    t_outtab = gt_output
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    ENDFORM. " fr_output
    *& Form fr_get_prd_stat
    * text
    * -->P_WA_PRD_OBJNR text
    FORM fr_get_prd_stat USING p_objnr CHANGING p_prd_stat.
    DATA: lt_status TYPE STANDARD TABLE OF jstat,
    wa_status TYPE jstat,
    lv_status TYPE tj02t-txt04,
    lv_temp2 TYPE char5,
    lv_buff TYPE string.
    CALL FUNCTION 'STATUS_READ'
    EXPORTING
    client = sy-mandt
    objnr = p_objnr
    only_active = 'X'
    TABLES
    status = lt_status
    EXCEPTIONS
    object_not_found = 1
    OTHERS = 2.
    LOOP AT lt_status INTO wa_status.
    IF wa_status-stat(1) EQ 'I'.
    SELECT txt04 FROM tj02t
    INTO lv_status
    WHERE istat EQ wa_status-stat
    AND spras EQ 'E'.
    ENDSELECT.
    lv_temp2 = lv_status.
    CONCATENATE lv_temp2 p_prd_stat INTO p_prd_stat
    SEPARATED BY ','.
    ENDIF.
    CLEAR: wa_status, lv_status, lv_temp2.
    ENDLOOP.
    lv_buff = p_prd_stat.
    *Status of Production Order
    IF lv_buff CS 'CRTD'.
    p_prd_stat = 'Not Active'.
    ENDIF.
    IF lv_buff CS 'REL'.
    IF lv_buff CS 'GMPS'.
    p_prd_stat = 'Printed In Prod'.
    ELSE.
    p_prd_stat = 'Printed'.
    ENDIF.
    ENDIF.
    IF lv_buff CS 'TECO'.
    p_prd_stat = 'Technically Compt.'.
    ENDIF.
    ENDFORM. " fr_get_prd_stat

  • Price Determination in Sales Order - for a Standard product & Custom Produc

    Hi,
    The price information is not displaying at Item Level in Sales Order for my own product 'SalesProduct1' and to my custom Sales order (z-TA). However, for standard products (Ht-1000, HT-1010, HT-1100 etc.) the price information is getting displayed successfully in z-TA.
    Also, in standard sales Order transaction (TA: Sales process). The price information is getting displayed successfully for both Standard products (Ht-1000, HT-1010, HT-1100 etc.) and for my own product (salesproduct1).
    Could you please help me out, how to rectify this problem ie. How can I diplay the price information for salesproduct1 in Z-TA?
    I tried to duplicate all the information that is there in standard products like category, sales Area etc, except PR00 price condition to my custom salesproduct1. However, in the place of PR00, I have added 0PR0 price condition and price information.
    Still the price information is not reflecting in my custom sales order (z-TA) for my salesproduct1.
    I also verifed that the SalesAreas are same for BP, Product org, Product price condition, Sales Order org info.
    I also checked that BP the Customer pricing procedure is Standard and for Doc. pricing procedure in Z-TA, TA is Standard.
    I also confirmed that in price procudere determination there exists a record that mathces with these salesarea, cust pp, doc. pp.

    Hi,
    in order to get closer to the root cause of the issue, you might want to make use of the pricing analysis / price trace. Set the user parameter PRC_TRACE = X via transaction SU3. Create an order in SAP GUI and navigate to the item level conditions tab. You should find the button accesses. In the accesses screen you will find details on condition determination and why it failed / succeeded.
    Best Regards,
    Michael

  • How to review all process order for a month.

    Hi,
    I need advice to review all process order in a month in order to ensure Actual quantity usage for product (BOM) is correct without missing the quantity?
    Thank you.
    Br. Hadi

    Hi Hadi,
    Use report COOISPI with list as Components and input as process order numbers. In the output layout you can see the Requirement qty field which is qty as per process order BOM and Qty withdrawn which is the actual issue qty. From the layout you also select Pegged requirement field which display the components parent material.
    You also check MB24 - Reservation List against the process order number which also display the required qty, issued qty and difference.
    Thanks & Regards,
    Ramagiri

  • Report of all sales orders for a business unit

    I am analyzing revenue, and I would like to run a report that would list all sales orders and the value of those orders in a particular business unit.
    I require the value of each and every sales contract during a certain period. Can I run a report that lists all sales contracts opened during a particular period?

    Hello,
      from the standard SAP menu, under: "Logistics --> Sales and Distribution  --> Sales --> Information System  --> Orders" you can find some transactions reporting sales orders lists, such as VA05 or SDO1, which perhaps could fit your requirements. Otherwise you can create a query to merge the tables containing the information that you need. As of my knowledge there's not an organizational level called "Business unit" in SAP, so you should check if in the transaction mentioned above the field you use to identify the "Business unit" is available.
    Hope to be useful.
    Best regards,
    Andrea

  • XML validation: how to check ALL validation problem for XHTML

    I have a lot of documents in HTML format (not very good) that I would like to convert in XML (XHTML). I know it is not so easy and I would use this strategy in a Java program:
    1. Try to check the well-formness and validation with a XML parser (SAX or Xerces)
    2. If not valid: try to individuate ALL the problems the file has (*and not only the first one that halts the processing process*)
    3. Try to transform the HTML to a validable XHTML with some approach: regular expression or other methods
    So the questions I do to you are the following:
    1. What XML parser do you think is the best for this purposes? SAX or Xerces?
    2. How can I understand what are all the validation problems in the file and not only the first one (If I remember well XML parsers halt the parsing process at the first error...)?
    3. How can I transform the HTML to a valid XHTML? I have only to use RegEx or is there other tools to do this for XHTML and HTML problem?
    Thanks
    r
    Edited by: robertobat on Feb 21, 2009 7:09 PM

    >
    1. Neither of them. (Disregarding the fact that SAX and Xerces aren't in the same category and don't cover all the possibilities.I would say SAX default implementation in JRE and SAX parser in Xerces.
    2. I think you have "valid" and "well-formed" confused. And HTML isn't a dialect of XML so the idea of trying to use an XML parser to handle HTML isn't a good idea.I know very well what is the difference between valid and well-formed but I've used "validation" to represent all the conversion problem. But you are right. I'm convincing myself that using a XML parser as the first step is not a good idea.
    3. Well, this is the real question, isn't it? Those other two were just a waste. Don't screw about with regex, for one thing it doesn't work well for hierarchical structures and for another you won't finish in a finite time. Just use an HTML parser which can produce a DOM, like TagSoup for example. Or run them through HTMLTidy. You could also submit them to one of the internet sites which will validate XHTML for you.I've seen Tidy and its capability to convert an HTML to a XHTML and I think it is better then TagSoup because I have to implement this mechanism in a production environment and I want to use only open source projects that have a very long story and that are strong. But I'll see TagSoup as you say.
    I cannot use an Internet service to convert millions of private documents.

  • Contract determination in service order for PPR items

    Hi Experts,
    Contract data is not being determined for some items in service order. All these items are assigned to product list in service contract using product range or PPR.
    1) PPR is created with the type "sales contract"
    2) In the categories section assigned the relevant category ID's
    3) PPR is assigned to the service contract under product list.
    4) Service order is maintained for contract determination 'D'  - determination both at header and item level
    5) When a service order is created I see that expected items are not showing the contract data.
    Any suggestions - any specific setting I am missing
    I found a SAP note for same problem in previous versions of CRM. (5.0 to 5.1)
    but we are on BBPCRM 6.0
    Thank you
    Ram

    Hi Shalini
                    i am trying to create a service ticket from WEB IC by confirming Account and Ibase and then creating service request and able to save without error. 
                if i end session and open the service request again in change mode and if delete the ibase, then appeas the message
    "You should run a new contract selection for item 0000000010",  going through OSS notes, but found nothing.
               Contract Determination is set to 'E' : Assign at Item leve : Assign immediately if unique for transaction type ZXXX.
    if i open the service ticket in CRMD_ORDER and go in change mode if i click process action button next to error, this will disappear. but it comes when i assing a ibase to the request, so its working only when i create.
    any sort of help will be appreciated.
    Thanks
    Gopi

  • Batch determination in production order for a component

    Hi All,
    Is there any FM or BAPI which can determine batch for a component in production order and save it. I don't want to use call transaction method for CO02 as this determines batches for all components in production order during saving process

    Hi,
    Look at BAPI 'BAPI_MATERIAL_GETBATCHES'. This might help you.....
    Here ia sample code:
    CALL FUNCTION 'BAPI_MATERIAL_GETBATCHES'
    EXPORTING
    material = MATERIAL
    BATCHNUMBER =
    plant = PLANT
    expirydatefrom = DATE
    EXPIRYDATETO = 99991231
    AVAILABLEDATEFROM =
    AVAILABLEDATETO = 99991231
    IMPORTING
    RETURN =
    TABLES
    batches = it_batches.
    Regards,
    Raj.

  • Details for SALES ORDER for qty produced, Qty despatched etc.

    Dear  All ,
                                 pl help that user wants details for a t. code which can give details for produced qty , despatched qty & remaining qty to be despatched against a sales order .
    regards,
    sap11
    Edited by: sap11 on Jul 14, 2008 1:29 PM

    Hi,
    This is a report to be developed in SD.the report is dependend on SD module no need of abaper.
    this can be solved by sales information systems.
    transaction code is MCHI.
    thanks
    Kuntla

  • Schema determination in sales order for external services

    Hi,
    I've created a maintenance order including two services into operation 10
    (control key PM03). The pricing log in the order shows that the system
    uses schema ZS0001. After releasing it, the purchase requisition (class
    ZMS1) is created. When the PO is created (class ZMS2) via requisition
    assignment list (ME58), the schema is changed to RM0000, despite of the
    fact that table T165A contains the following entries:
    Doc cat. Doc Type Procedure
    B ZMS1 ZS0001
    B ZMS2 ZS0001
    F ZMS1 ZS0001
    F ZMS2 ZS0001
    I would need to keep the schema to ZS0001 in the sales order to perform
    the right price determination.
    Any help? Many thanks.

    Hi
    T165A is used for 'Services Pricing'.
    Please note that for Services PO, you will have two pricing schema.
    1) At PO-Item Level : RM0000 (or whatever you define in schema determination in Purchasing ->Conditions IMG and assign in your vendor master)
    2) At service line level : Based on settings in T165A.
    If you check in Services level conditions screen and click on Analysis, you will find that ZS0001 is triggered.
    Best regards
    Ramki

  • Field for actual produced goods in COOIS

    Dear gurus,
    Is it possible to see how many products have been produced by using T-code COOIS? If it is which field should I look at? I have a delivered quantity column that I see, would that be what I'm looking for?
    Pls help
    Tnx in advance
    Edited by: obie villamosa on Jun 25, 2008 11:43 AM

    Hi Obie ,
    T code COOIS :
    Select :
    List : Order headers
    Layout : 000000000002 ( std )
    Select plant and actual dates as needed.
    F8 or execute.
    Click on tab views > List output > Change layout ( tab on new page ).
    Here you can add or remove column fields . here you can add fields like Total scrap (GMEIN), Delivered quantity (GMEIN), Confirmed scrap (GMEIN), Confirmed quantity (GMEIN), Rework qty (GMEIN), Committed qty (GMEIN) etc .
    Total produced qty = delivered qty ( after GR) .
    Hope this helps .
    If satisfied reward and close .
    Neal
    Edited by: Neal Gibson on Jun 25, 2008 9:34 AM

  • Report to show all purchase orders for which invoice tolerence is greater than 3%?

    Hi Experts,
    Recently our company cofigured 3% tolerence limit for invoice.Now, I have got a requirement to create a report to show all the PO's for which the
    invoice tolerence limt is eq 3 %.Kindly anyone advise ,is there any table that stores the inovoice tolerence limit based on PO? How to achieve this requirement.
    Thanks in advance
    Thanks & Regards,
    Anusha.B

    Hi,
    I was wondering don't you have in your company MM consultant who suppose to give you the required tables name .
    Regards.

  • Account Determination in Purchase Order for WBSE "Q" suddenly change

    Hi folks!!
    I am having a starnge problem while creating the PO for account assignment category Q.
    Whenever we create a PO for account assignment category Q, system automatically picks the G/L account, which is a profit and loss account, but suddenly at PO level it has started to pick Balance sheet account for the same material.
    I have check the account determination and found that G/L accounts are there belong to same old profit and loss account.
    What could be the possible reason (other than Automatic Account Determination), how can I rectify this situation, can we drive through WBSE also??
    Please help.

    this was due the WBSE which was picking the ballance sheet g/l has assignment for valuted stock.

  • How do determine the work orders for a sales order?

    I'm forced to calculate our costs by sales order.  So for a given sales order number, how is this linked to the work order that created the items on the sales order?
    Thanks

    Hi,
    Check this:
    Re: Open Production Orders List with a Field from Sales Order
    Thanks,
    Gordon

Maybe you are looking for

  • Why is iPhoto library so big? When I have only 4,000 pics, the size is over 31G!!

    Is there a way to know what is taking so much space in photo library? I have only 4,500 pictures, but Iphoto library is taking 31.5 GB. The most part of it is from a folder called "Masters", I am not sure what's in it. Thanks

  • How do I "save as" in adobe reader?

    Hi everyone, Can anyone demonstrate how to "save as" in adobe reader? By filling a blank form I'd like to save the filled out form with a new name and leave the origenal blank as it was to be used again? Thanks. Jocabus

  • What happened to RSS in Mountain Lion

    Just upgraded to Mountain Lion and see that there are no more RSS feeds-- I used to see Apple Hot News in my mail RSS. Has RSS been discontinud

  • How to ADD NEW music to itouch?

    What is the process of adding additional songs to the itouch without erasing the current songs, movies and photos? Every time I try to sync it say's everything on the itouch will be deleted. The current library has been deleted or removed from my PC

  • Verified by visa does not work

    When trying to use Verified by Visa, it no longer recognizes our password. Instead, it allows you to try to provide the password 3 times. It then locks out and forces us to reset the password. This new password then works for the one transaction bein