How to handle discripency of stock

we are into retail. i want to know how to handle following scenario.
in case of stock transfers between stores and DC through creation of stock transfer request(UB) how to handle the discripency.
for example store A sent 1000 qty of various article to store B. where as store B is complaining that there is some discrepancy of 50 qty for various articles.
how handle this scenario in case of excess stock received and in case of less stock received than mentioned in outbound delivery.
what is the best business practises.

Hi,
You can suggest this way also to your Client if Both DC and Stores are Very Near.
Once you came to know that discrepancy of Stock Exist while receiving goods for STO , you can return the Entire Articles to Suppling Site i.e, don't make any GR at the receiving Site.
Suppling Site can cancel the Entire Goods Issue for the Delivery in VL09 Tcode.
Suppling Site can check and Issue Correct Goods once again for the Delivery Concerned.
Then GR at Receiving Site.
Regards,
Selvakumar. M

Similar Messages

  • How to handle the our stock in logicistic service provide

    Hi,
    I have the scenio and how to config in SAP.Iam placing the PO to vendor, Vendor suply the raw material directly to our logistic service provider when ever we need we pull the stock ( consignment). The stock is in Service provide place.How to design in SAP WM.
    1. I can create the Storage location and assign to WM and create new Storage type ( Service provide area) and store in the Bin
    Pl advice
    Kumar

    closed

  • SBO - How to use two different Stock Account within the same Item Group

    Hi,
    I'm currently stuck within one of my implementation.
    I'm deploying the same solution worldwide which worked pretty well until now. All the items are connected to an item group, with a unique GL account, supposed to book at the same time the good receipt and the good issue (Balance-Sheet Account = 14xxxxx).
    My new unit is willing to use two different GL accounts when performing its stock entry (let say 14xxx10) and another GL account for the good issue, let say 14xxx20.
    Do you have any clue so i can please them and keep using at the same time the item group ?
    Thanking you in advance
    Stephane

    Hi,
    In fact, we use the GL account as the HQ Account (Reporting Account) while the "Export Code" will be used to store the local GL Account (greek account).
    As such, we can, somehow handle two different chart of accounts.
    In my reporting, i'm only using a single GL account for stock movements, while my greek counterparts want to handle two different accounts.
    Threfore, i have only two solution since there is normally a one to one relationship between a HQ account and a local account that are :
    1 - Duplicate the HQ accounts
    In that case, i do respect anytime the one to one relationship. I've got one HQ account for one local account. But how can i put this since i can only handle one single stock account.
    2 - I keep my single stock account like this but i won't be managing the possibility to get two different Export Codes.
    Regards
    Stephane

  • How to handle irregular shaped newspaper clippings?

    Hi,
    I am creating a book to re-construct (and adding and editing) an old scrapbook which contains irregularly spahed newspaperclipping. I have pages on which I would like to place just images clippings (any format .tiff, .jpeg, etc).
    I have discovered that Aperture apparently does not handle transparent backgrounds and am looking for some suggestions on how to handle this. There have been a few posts in the forums about creating a image in Photoshop then using this as a background. This might work in some of the black themes like Stock Book Black (are the pages true black?). If I want to use one of the other themes like Journal or Photo Essay which allows for maps is there any way to match the page color surrounding the clippings to make it flow with the rest of the book? Are the RGB, CMYK, or HSB values that are published for these themes that I could mimic in a photo editor? Whould this work?
    Thanks.
    - Andrew

    Try Gaussian Blur with a radius between 3and 6, or Lens Blur with a radius between 8 and 15 and blade curvature 100%.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children
    If this post or another user's post resolves the original issue, please mark the posts as correct accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.

  • How to loading the opening stock balance into Infocube 0IC_C03

    Dear Expers,
    I have referenced SDN a expert's documentation, but I canu2019t go on at page 10 .
    Check: How Tou2026 [Handle Inventory Management Scenarios in BW|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328]
    (1)original text:
    Loading the opening stock balance (InfoSource 2LIS_03_BX) into InfoCube
    0IC_C03. In the InfoPackage, choose the upload mode u201CCreate opening balanceu201D
    (see screenshot).
    Question:
    How to find option that upload mode u201CCreate opening balanceu201D?
    i'm  use to customize infopackage.  i  can not use default infopackage, when i click the defualt infopackage, will error prompt: Data target '0DF_C07' removed from list of loadable targets; not loadable
    (2) I actived BI Contnet (0IC_C03), I seen that the data flow  as following:
    Datasource(2LIS_03_BX)->transformation->Infosource(2LIS_03_BX_TR)-> transformation->Infocube(0IC_C03)
    Datasource(2LIS_03_BF)->transformation->Infosource(2LIS_03_ BF TR)-> transformation->Infocube(0ICC03)
    Datasource(2LIS_03_UM)->transformation->Infosource(2LIS_03_UM TR)-> transformation->Infocube(0ICC03)
    Quesiton: I donu2019t  know whatu2019s version, neither like BW 7.X nor like BW 3.X,
    Why have infosource in BW 7.X, how to use infosource load data to target?
    Currently, I canu2019t create transfer rule and upate rule for this datasource & infosource.
    Do  I  need to create a  customize ODS?
    Thank you very much , if you will answer me above two questions.
    Best Regards
    Steve

    >
    stevezhuang wrote:
    > Dear Expers,
    >
    > I have referenced SDN a expert's documentation, but I canu2019t go on at page 10 .
    >
    > Check: How Tou2026 [Handle Inventory Management Scenarios in BW|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328]
    >
    > (1)original text:
    > Loading the opening stock balance (InfoSource 2LIS_03_BX) into InfoCube
    > 0IC_C03. In the InfoPackage, choose the upload mode u201CCreate opening balanceu201D
    > (see screenshot).
    >
    > Question:
    > How to find option that upload mode u201CCreate opening balanceu201D?
    >  i'm  use to customize infopackage.  i  can not use default infopackage, when i click the defualt infopackage, will error prompt: Data target '0DF_C07' removed from list of loadable targets; not loadable
    >
    >
    >
    > (2) I actived BI Contnet (0IC_C03), I seen that the data flow  as following:
    > Datasource(2LIS_03_BX)->transformation->Infosource(2LIS_03_BX_TR)-> transformation->Infocube(0IC_C03)
    >
    > Datasource(2LIS_03_BF)->transformation->Infosource(2LIS_03_ BF TR)-> transformation->Infocube(0ICC03)
    >
    > Datasource(2LIS_03_UM)->transformation->Infosource(2LIS_03_UM TR)-> transformation->Infocube(0ICC03)
    >
    > Quesiton: I donu2019t  know whatu2019s version, neither like BW 7.X nor like BW 3.X,
    > Why have infosource in BW 7.X, how to use infosource load data to target?
    > Currently, I canu2019t create transfer rule and upate rule for this datasource & infosource.
    > Do  I  need to create a  customize ODS?
    >
    >
    > Thank you very much , if you will answer me above two questions.
    >
    >
    > Best Regards
    > Steve
    You don't need to worry about 0DF_C07 as it was defence cube not activated during your Business Content Activaiton.
    YOu can create your own infopackage for 2LIS_03_BX and there will be option generate intial status.
    This loading will create your Opening Balance.
    you need to compress this with NO Marker UPDATE option unchecked(as you will have to update hte marker).
    After this load movements 2LIS_03_BF and reval 2LIS_03_UM. Compress this with NO MARKER UPDATE option checked.
    Regards,
    RK

  • Question on "How to Handle Inv management Scenarios in BW" docuemnt.

    Hi all,
    I read the document "How to Handle inventory management scenarios in BW" and I did not understood what a snapshot scenario is?  Can anyone tell me what is the difference between snapshop and non-cumulative scenario's.
    thanks,
    Sabrina.

    In a non-cumulative scenario the current stock of any day (or month) is not stored physically in the cube. Instead the stock values over time is calculated dynamically at query runtime by the BW OLAP engine, which basically derives the stock by summing up the periodic value changes (cumulative inflow and outflow of the non-cumulative key figure), which are stored in the cube (together with a so called stock marker used as the basis of the calclation).
    In the snapshot scenario the current stock of any month is calculated in a snapshot ODS and then loaded to a cube. This means that the the stock value is physically stored in the cube in an ordinary cumulative key figure.
    Since a non-cumulative cube store value changes and not the actual stock this means that performance might be bad if there are many value changes for each characteristic combination in a month (since the stock is calculated at runtime and many records must be processed to derive the stock). So in this case the snapshot scenario is better since no runtime calculations of the stock need to occur  and since only one record, containing the actual stock value will be stored in each month for each characteristic combination having a stock value.
    I think you would be better of with an example, but with this explanation in mind looking at the scenarios in the How to again might clarify things...
    Regards,
    Christian
    / Christian
    Message was edited by: Christian

  • How to handle restocking fee

    Dear guru,
    We cut a PO to vendor and later we decided to cancel the PO.  However the vendor wants to charge a 15% cancellation fee(or restocking fee).  I need your opinion on how to handle this situation:
    1. if this is a stocked/valuated material, can I post the 15% to the material stock(says, currently there are stock on hand available).  How to achive this?
    2. If there is no exisitng stock on hand, how do I post this 15% cancellation fee upon receipt invoice from vendor(no PO issued)? via direct FI?
    Appreciate your input.

    Hi,
    Is there a way that if I need this to be handled via PO process instead of making manual/direct FI entries? 
    Reason being the supplier wants us to issue a PO to them and I need the cost of cancellation goes back into this particular material/stock.(i have stock on hand now).
    Appreciate your further input on this.

  • How to handle sub subcontracting in SAP B1 ?

    Dear all,
    How to handle sub subcontracting in SAP B1 ?
    Let me explain in detail,
    My client doing sub contracting work for parent company,raw material is actually received from parent company
    thru 57F4 challan,raw material sent for further processes in my client company and later converted material
    is sent to a sub contractor for finishing thru 57F4 challan,after finishing material is recieved by client company,
    send it once again to parent company.In this process raw material is received as X and send it to parent company as Y.
    My question is, How to handle sub sub contracting items stock ?
    Expecting u all valuable ideas / suggestions.
    Jeyakanthan

    hai!
    Will u raise any bill for ths. i mean ur child cmpny to parent cmpny.?
    1. Receive the items to your child cmpny through GRPO or GR
    2. Use Production Order cycle to do FG.
    3. Define BOM or use Special Production
    4. Transfer to the Sub- contarct warehouse through Inv.Transfer.
    5. once after processing over, book inv.Transfer to you good down.
    6. Use Goods Return or GR to issue the item out to parent company.
    hope it gvs u a starting..

  • How to handle Supplementary Bills

    Hi all,
    Can any one suggest me how to handle the supplementary bills in indian localization?
    The concept is encountered in cases when companies follow contract agreements in sales and purchase. To provide a breif description of the scenario: A contract prevails with a vendor from a period of 1st april to 30th June for an item A @ Rs. 30. Now all the bills generated within this period is raised at the said rate along with taxations. The contract is liable for renewal from 1st July but the process take time and the new rates are available on 25th July but effective from 1st July @ Rs. 40. Now the bills generated from the period of 1st July to 24th July has been raised at the old rate as new rates were not available. On 25th July, the company raises a supplementary bill for the difference amount i.e. Rs 10 x Qty billed from 1st july to 25th july. Now this will efect the taxation also. In case of a cost raise the tax accounts shall be debited and the stock accounts shall have to be revaluated for the item. In case of a reduction the tax accounts have to be credited and the stock account has to be revaluated for those items. However, though this has an effect on the stock value it does not have any effect in the stock quantity.
    How to map this in SAP Business One? This has been a standard practice in any manufacturing industry now a days and I am seeking for any one who has done it. Please share a solution.
    Regards,
    Raj

    Hello,
    still not get proper answer for this prob.
    It is very complax issue for handing in SAP .
    i think it can handle making nos of AccountAmount reconcialation , inventory tracking(phsical stock tracking) and service invoice .
    and result based on your client Accountant and your clear explaination. 
    You have only one opion make credit note make with respective excise docuemnt  .but whenever you receive bill you have issued qouantiy in production floor.otherwise make all document again..
    Thanks
    Manvendra Singh Niranjan

  • How to handle ok/add/update button

    hi,
       the button ui=1 automatically changes in add/update /ok buttons .but how we handle update and add ivent through database.
    Pandey
    Sai I.S.

    Hi,
    I have made a new company in SAP B1 and I Selected the Use purchase account posting system in company detail Basic Initalization tab.
    so it is post the taxes in stock account.this is not formal and i am getting problem in normal processing. so i want to know what the effects of this purchase account posting system. how it is different from normal. how can i chang this company in narmal company for normal processing .plz tell me process of changing in normal. and if i carry on futher hat will be the efect of it.
    plz give me answar quickly
    I have also a problem when i creating new company .it does not take any user name and when i open that by manager user it gives massege wrong user or passward.
    what the problem is there plz give me solution of all above.
    HP

  • How to Handle Rework Scenario

    Dear Sir,
    We have following scenario :
    We created a Production Order (type PP01) for 1 piece of  Component 'X' . The Order was confirmed using Co11n and subsequently MB31 (GR) was done for the Order .  An Inspection Lot got created after the GR .  During Inspection , it was found that Processed Material need some Rework and Quality Inspector posted the Compopnent under BLOCK Stock during the UD .
    Now we need to start Rework on this Component .  Pl guide us what steps need to be followed for completing the Rework cycle .
    I have gone thru many of posting available in this forum related to REWORK , where it has been suggested to make a PP03 type Order in CO07 .
    But I fail to understand that following issues in this :
    a) How to issue faulty Compponent to Rework Order
    b) How to clear the Stock from earlier BLOCK Stock
    c) How to bring Stock back after Rework Order is confirmed and Inspected .
    I request you to kindly help me pl .
    Rgds
    Sonia Agarwal

    Here is the expalanation..
    THis is how we handle the scenario in our place..
    There are two types.
    1.      Repairing done by external persons or subcontractors..
    2.      Refurbishment done inside the plant.
    The second is done by the production department..
    The Refurbishment process is bit different from other production processes..
    The Defective material is received from different locations to the stores through MIGO.
    Here we will specify from and to locations of the defective Assemblies..
    The TO storage location is RMMS.. Here the valuation tye is SF-DEF..
    The refurbishment order is created in IW81.
    Order type is PM04
    In the Header, Refurbishment tab page is Important..The from to details have to given promptly(from val type defective to val type repaired)..
    Then the other things are like your usual production order..
    The GI is done in MB11,261 movement..(Against the order)
    After the execution is done, in MIGO goods issue is done with movement 531..Receipt of byproduct. the material is now converted from DEF to REP..
    Components issue has to be as followed.In the components tab , the materials to be issued has to given as usual. and the same materials has to be mentioned again as -1.It means you are taking away the defective components and adding the good ones...
    Confirmation is done on IW41..
    Hope the above clarifies..

  • How to handle returned products originally issued out using Transport Order

    Dear Experts
    I transfer a batch containing 10 cartons from production plant NDE1 to sales plant NDE2 within same company code using a stock transport order.
    Each carton is valued at 1dollar each, that is total value of transfered stock is $10
    After two weeks, 3 cartons went bad and needs to be returned to production plant NDE1.
    How do I capture this return process in SAP?
    If it were an outright sales to a customer, a Return Order with reference to the invoive will be created, return delivery done,PGI done which brings the returned stock into inventory, and a credit memo posted against the original billing.
    How do I handle my 3 cartons of returned stock since it was given out using a transport order?
    What will the accounting entries be in the system? i mean which accounts will be credited and debited by the $3 value of th ereturned three cartons?

    It depends how you handle the stock .Your accounting document generated in NDE2  in plant only.
    The first step you transfered the material through sto from NDE1 to NDE2 ,here there is no impact on accounting entries as you are transffering the stock with in company code.
    After you get return stock from customer NDE2 you can directly scrap or after inspecction of the stock if the stock is good then you can keep in Unresticted use for further sales.
    I dont think so you need again one more sto to get return stock from NDE2 to NDE1 as it is damaged stock and un necessary paying transport costs.
    If you scrap the material then the 3 qty of stock 3 doller price hit to scrap account.

  • How to handle exception CX_SY_REF_IS_INITIAL

    hi experts,
    im working on a test scenario for abap mapping in SAP XI im getting this error
    An exception with the type CX_SY_REF_IS_INITIAL occurred, but was neither handled locally, nor declared in a RAISING clause Dereferencing of the NULL reference
    i understand that i need to catch this exception in the abap coding but i'm not familiar with oops concepts
    can any one please suggest me how to handle this exception for the following code...
    method IF_MAPPING~EXECUTE.
      break x1149.
    * initialize iXML
      TYPE-POOLS: ixml.
      class cl_ixml definition load.
    ** Instances & Variable declaration =======================
    * instance main factory
      TYPES: BEGIN OF t_xml_line,
              data(256) TYPE x,
            END OF t_xml_line.
      DATA: l_ixml TYPE REF TO if_ixml,
    * instance input stream factory
       l_streamfactory TYPE REF TO if_ixml_stream_factory,
    * instance input stream
      l_istream  TYPE REF TO if_ixml_istream,
    * instance input document
      l_document TYPE REF TO if_ixml_document,
    * instance parse input document
      l_parser TYPE REF TO if_ixml_parser,
    * instance for elements within the nodes
      node      TYPE REF TO if_ixml_node,
    *instance of nodemap
      nodemap   TYPE REF TO if_ixml_named_node_map,
    * instance for iterator
      iterator  TYPE REF TO if_ixml_node_iterator,
      name      TYPE string,
      value     TYPE string,
    * instance main factory
       o_ixml   TYPE REF TO if_ixml,
    * instance output document
       o_document TYPE REF TO if_ixml_document,
    * instance output stream
      o_istream  TYPE REF TO if_ixml_ostream,
    * instance parse output document
      o_parser  TYPE REF TO if_ixml_parser,
    * instance fot renderer
      renderer type ref to if_ixml_renderer,
      irc type i,
      l_xml_size   TYPE i,
    *ROOT ELEMENT
    l_element_MT_DEMANDTEC_COST TYPE REF TO if_ixml_element,
    *NEXT CHILD ELEMENT FROM THE ABOVE PARENT
    l_element_DT_DEMANDTEC TYPE REF TO if_ixml_element,
    *CHILDREN1 ELEMENT FOR DT_DEMANDTEC
    l_element_DT_WHSE  TYPE REF TO if_ixml_element,
    *CHILDREN2 ELEMENT FOR DT_DEMANDTEC
    l_element_DT_DC    TYPE REF TO if_ixml_element,
    *CHILDREN3 ELEMENT FOR DT_DEMANDTEC
    l_element_DT_PLANT    TYPE REF TO if_ixml_element,
    *CHILDREN4 ELEMENT FOR DT_DEMANDTEC
    l_element_DT_QTY    TYPE REF TO if_ixml_element.
    *saving the xml document
      DATA: l_xml_table       TYPE TABLE OF t_xml_line.
      types: begin of t_source,
              whse(5),
              dc(4) ,
              plant(4),
              qty    type i,
             end of t_source.
      types: tt_source TYPE STANDARD TABLE OF t_source.
      data:  wa_source type t_source.
      data: it_source TYPE  tt_source,
            ivalue type string.
    * Procedures and business logic =======================================
    *   Creating the main iXML factory
      l_ixml = cl_ixml=>create( ).
    *   Creating a stream factory
      l_streamfactory = l_ixml->create_stream_factory( ).
    * create input stream
      l_istream = l_streamfactory->create_istream_xstring( source ).
    *  initialize input document
      l_document = l_ixml->create_document( ).
    *  Create a Parser
      l_parser = l_ixml->create_parser( stream_factory = l_streamfactory
                                          istream        = l_istream
                                          document       = l_document ).
    * parse input document
      l_parser->parse( ).
    *   Validate a document
      l_parser->set_validating( mode = if_ixml_parser=>co_validate ).
    *   Parse the stream
      IF l_parser->parse( ) NE 0.
        IF l_parser->num_errors( ) NE 0.
          DATA: parseerror TYPE REF TO if_ixml_parse_error,
                str        TYPE string,
                i          TYPE i,
                count      TYPE i,
                index      TYPE i.
          count = l_parser->num_errors( ).
          WRITE: count, ' parse errors have occured:'.
          index = 0.
          WHILE index < count.
            parseerror = l_parser->get_error( index = index ).
            i = parseerror->get_line( ).
            WRITE: 'line: ', i.
            i = parseerror->get_column( ).
            WRITE: 'column: ', i.
            str = parseerror->get_reason( ).
            WRITE: str.
            index = index + 1.
          ENDWHILE.
        ENDIF.
      ENDIF.
    *   Process the document
      IF l_parser->is_dom_generating( ) EQ 'X'.
        refresh : it_source.
        node ?= l_document.
        CHECK NOT node IS INITIAL.
    *   create a node iterator
        iterator  = node->create_iterator( ).
    *   get current node
        node = iterator->get_next( ).
    *   loop over all nodes
        WHILE NOT node IS INITIAL.
          CASE node->get_type( ).
            WHEN if_ixml_node=>co_node_element.
    *         element node
              name    = node->get_name( ).
              nodemap = node->get_attributes( ).
            WHEN if_ixml_node=>co_node_text.
    *         text node
              value  = node->get_value( ).
              if name eq 'DT_WHSE'.
                wa_source-whse = value.
              ELSEIF name eq 'DT_DC'.
                wa_source-DC = value.
              ELSEIF name eq 'DT_PLANT'.
                wa_source-PLANT = value.
              ELSEIF name eq 'DT_QTY'.
                wa_source-QTY = value.
                COLLECT wa_source INto it_source.
                CLEAR   wa_source.
              ENDIF.
          endcase.
          node = iterator->get_next( ).
        endwhile.
      ENDIF.
      loop at it_source into wa_source .
        at first.
    *       Creating a ixml factory
          o_ixml = cl_ixml=>create( ).
    *       Creating the dom object model
          o_document = l_ixml->create_document( ).
        endat.
    *       Build and Fill  root node MT_DEMANDTEC_COST
        AT FIRST.
          l_element_MT_DEMANDTEC_COST    =
    O_document->create_simple_element(
                                  name   = 'MT_DEMANDTEC_COST'
                                  parent = o_document ).
        ENDAT.
    *      Build and Fill  Child node DT_DEMANDTEC for parent
    *                                                  MT_DEMANDTEC_COST
        l_element_DT_DEMANDTEC    = O_document->create_simple_element(
                                     name   = 'DT_DEMANDTEC'
                                     parent = l_element_MT_DEMANDTEC_COST ).
    *      Build and Fill  Child node1 DT_WHSE for parent DT_DEMANDTEC
        ivalue              = wa_source-WHSE.
        l_element_DT_WHSE    = O_document->create_simple_element(
                                         name   = 'DT_WHSE'
                                         VALUE  = ivalue
                                         parent = l_element_DT_DEMANDTEC  ).
    *      Build and Fill  Child node2 DT_WHSE for parent DT_DEMANDTEC
        ivalue              = wa_source-DC.
        l_element_DT_DC   = O_document->create_simple_element(
                                             name   = 'DT_DC'
                                              VALUE  = ivalue
                                    parent = l_element_DT_DEMANDTEC ).
    *      Build and Fill  Child node3 DT_WHSE for parent DT_DEMANDTEC
        ivalue              = wa_source-PLANT.
        l_element_DT_PLANT   = O_document->create_simple_element(
                                                 name   = 'DT_PLANT'
                                                  VALUE  = ivalue
                                   parent = l_element_DT_DEMANDTEC  ).
    *      Build and Fill  Child node4 DT_QTY for parent DT_DEMANDTEC
        ivalue              = wa_source-QTY.
        l_element_DT_QTY     = O_document->create_simple_element(
                                                 name   = 'DT_QTY'
                                                  VALUE  = ivalue
                                   parent = l_element_DT_DEMANDTEC  ).
      endloop.
    * render document ======================================================
    * create output stream
      o_istream  = l_streamfactory->create_ostream_xstring( result ).
    *   Connect internal XML table to stream factory
      o_istream  = l_streamfactory->create_ostream_itable( table =
    l_xml_table ).
      renderer = o_ixml->create_renderer( ostream = o_istream
                                              document = o_document ).
      irc = renderer->render( ).
    * how do i catch the exception for type CX_SY_REF_IS_INITIAL ...?
    endmethod.
    full reward points for answers.
    Thanks & Regards,
    Uday Kumar.
    Edited by: UDAY on May 6, 2008 9:32 PM

    Hi Uday,
    Its occurs because you're trying to access a objects with null reference. Or you forgot to create an instance or an error occurs during the instance creation. So You should put all your "Procedures and business logic" inside a Try/catch block. as follow.
    " Define a class exception object to get error message......
    DATA o_exception TYPE REF TO cx_sy_ref_is_initial.
    "// Use the statment Try block to catch the error.
    TRY.
    *   Creating the main iXML factory
      l_ixml = cl_ixml=>create( ).
    *   Creating a stream factory
      l_streamfactory = l_ixml->create_stream_factory( ).
    * create input stream
      l_istream = l_streamfactory->create_istream_xstring( source ).
    *  initialize input document
      l_document = l_ixml->create_document( ).
    *  Create a Parser
      l_parser = l_ixml->create_parser( stream_factory = l_streamfactory
                                          istream        = l_istream
                                          document       = l_document ).
    * parse input document
      l_parser->parse( ).
    *   Validate a document
      l_parser->set_validating( mode = if_ixml_parser=>co_validate ).
    *   Parse the stream
      IF l_parser->parse( ) NE 0.
        IF l_parser->num_errors( ) NE 0.
          DATA: parseerror TYPE REF TO if_ixml_parse_error,
                str        TYPE string,
                i          TYPE i,
                count      TYPE i,
                index      TYPE i.
          count = l_parser->num_errors( ).
          WRITE: count, ' parse errors have occured:'.
          index = 0.
          WHILE index < count.
            parseerror = l_parser->get_error( index = index ).
            i = parseerror->get_line( ).
            WRITE: 'line: ', i.
            i = parseerror->get_column( ).
            WRITE: 'column: ', i.
            str = parseerror->get_reason( ).
            WRITE: str.
            index = index + 1.
          ENDWHILE.
        ENDIF.
      ENDIF.
    *   Process the document
      IF l_parser->is_dom_generating( ) EQ 'X'.
        refresh : it_source.
        node ?= l_document.
        CHECK NOT node IS INITIAL.
    *   create a node iterator
        iterator  = node->create_iterator( ).
    *   get current node
        node = iterator->get_next( ).
    *   loop over all nodes
        WHILE NOT node IS INITIAL.
          CASE node->get_type( ).
            WHEN if_ixml_node=>co_node_element.
    *         element node
              name    = node->get_name( ).
              nodemap = node->get_attributes( ).
            WHEN if_ixml_node=>co_node_text.
    *         text node
              value  = node->get_value( ).
              if name eq 'DT_WHSE'.
                wa_source-whse = value.
              ELSEIF name eq 'DT_DC'.
                wa_source-DC = value.
              ELSEIF name eq 'DT_PLANT'.
                wa_source-PLANT = value.
              ELSEIF name eq 'DT_QTY'.
                wa_source-QTY = value.
                COLLECT wa_source INto it_source.
                CLEAR   wa_source.
              ENDIF.
          endcase.
          node = iterator->get_next( ).
        endwhile.
      ENDIF.
      loop at it_source into wa_source .
        at first.
    *       Creating a ixml factory
          o_ixml = cl_ixml=>create( ).
    *       Creating the dom object model
          o_document = l_ixml->create_document( ).
        endat.
    *       Build and Fill  root node MT_DEMANDTEC_COST
        AT FIRST.
          l_element_MT_DEMANDTEC_COST    =
    O_document->create_simple_element(
                                  name   = 'MT_DEMANDTEC_COST'
                                  parent = o_document ).
        ENDAT.
    *      Build and Fill  Child node DT_DEMANDTEC for parent
    *                                                  MT_DEMANDTEC_COST
        l_element_DT_DEMANDTEC    = O_document->create_simple_element(
                                     name   = 'DT_DEMANDTEC'
                                     parent = l_element_MT_DEMANDTEC_COST ).
    *      Build and Fill  Child node1 DT_WHSE for parent DT_DEMANDTEC
        ivalue              = wa_source-WHSE.
        l_element_DT_WHSE    = O_document->create_simple_element(
                                         name   = 'DT_WHSE'
                                         VALUE  = ivalue
                                         parent = l_element_DT_DEMANDTEC  ).
    *      Build and Fill  Child node2 DT_WHSE for parent DT_DEMANDTEC
        ivalue              = wa_source-DC.
        l_element_DT_DC   = O_document->create_simple_element(
                                             name   = 'DT_DC'
                                              VALUE  = ivalue
                                    parent = l_element_DT_DEMANDTEC ).
    *      Build and Fill  Child node3 DT_WHSE for parent DT_DEMANDTEC
        ivalue              = wa_source-PLANT.
        l_element_DT_PLANT   = O_document->create_simple_element(
                                                 name   = 'DT_PLANT'
                                                  VALUE  = ivalue
                                   parent = l_element_DT_DEMANDTEC  ).
    *      Build and Fill  Child node4 DT_QTY for parent DT_DEMANDTEC
        ivalue              = wa_source-QTY.
        l_element_DT_QTY     = O_document->create_simple_element(
                                                 name   = 'DT_QTY'
                                                  VALUE  = ivalue
                                   parent = l_element_DT_DEMANDTEC  ).
      endloop.
    * render document ======================================================
    * create output stream
      o_istream  = l_streamfactory->create_ostream_xstring( result ).
    *   Connect internal XML table to stream factory
      o_istream  = l_streamfactory->create_ostream_itable( table =
    l_xml_table ).
      renderer = o_ixml->create_renderer( ostream = o_istream
                                              document = o_document ).
      irc = renderer->render( ).
    "   The Statement CATCH define a block that catches the exceptions of the
    "   exception class cx_sy_ref_is_initial
        CATCH cx_sy_ref_is_initial INTO o_exception.
    " If you need to get the error message text do as follow
    DATA errorMsg type string.
    " Get the message text
      errorMsg = o_exception->GET_TEXT( ).
    " Display the error information
      MESSAGE errorMsg TYPE 'I'.
      ENDTRY.
    The TRY block defines a guarded area whose class-based exceptions can be caught in the subsequent CATCH blocks. If no exception occurs in the TRY block and it reaches its end, the system continues the processing after ENDTRY. If a class-based exception occurs in the TRY block, the system searches for an exception handler in the same or an external TRY control structure.
    Font: SAP Help
    You can see a how to create and use an exception in this example [ ABAP Objects - Defining a Class-based exceptions|https://wiki.sdn.sap.com/wiki/x/19w] .
    Best Regards.
    Marcelo Ramos

  • How to handle null values in RTF templates

    Hi - I have two groups in a report for different SQL and two formulas for each group, CF_ELE_CNT and CF_ELE_CNT1. In the template I use the below code to print or not print a section.
    <?if:number(CF_ELE_CNT +CF_ELE_CNT1) >0?>    
    The problem is when there is no data in the second group its not creating the XML tag for CF_ELE_CNT1, though CF_ELE_CNT has 13, it still does not print that partucular section. If I remove CF_ELE_CNT1 from the condition it works fine. I was wondering how to handle this.
    Any help would be appreciated!!
    Thanks,
    Rav

    Hey Rav,
    You can add a check to identify it the element/tag is present or not
    <?if:(CF_ELE_CNT1)?> will give true, if the element is present otherwise falsesince you are adding the two elements, you have to add a or condition.
    <?if:(CF_ELE_CNT and number(CF_ELE_CNT) >0 ) or ( CF_ELE_CNT1 and CF_ELE_CNT1 >0)?>

  • How to handle file on application server without coading?

    HI all,
    can anybody tell me How to handle file on application server without coading? Is there any solution?
    Thanks in advance.

    > can anybody tell me How to handle file on application server without coading? Is there any solution?
    what is that you want to handle. what you do if you don't code ...

Maybe you are looking for

  • Itunes wont open after reinstalling new version

    Any ideas on how I can get itunes to open up after installing new versions of it and quicktime?

  • Parameters in Excel Output

    I am outputting some financial information into an Excel spreadsheet from BIP. Part of the reoprt is to select the data based on the current fiscal period. When I create the template using the Excel Analyzer these parameters appear in the template, a

  • Is getting an iMac AND Macbook Air reasonable?

    Hello I've been a computery guy for some time.  I am going from being a serious gamer that built a custom gaming PC that cost $3,500+ to selling said gaming PC and having no computer at all.  I am giving up gaming to return to school and would like t

  • Toplink error on EJB-QL

    I have no idea where to go next, I figure that it's a problem in my query. My EJB-QL query... select object(o) from Alarm o, AlarmAcknowledges p where o.rowNumber < 500 and o.statusLogFk = p.statusLogFk and p.userId = :userId I get this error from to

  • Keeping a table in place

    I'm using Pages '09, Version 4.1 I've used tables to make a crossword grid. One with letters supplies the solutiuon. The other can be numbered in the top left hand corner. I've sussed all that. Now I need to keep the grid in place and add text boxes