Problem with FM MB_CREATE_GOODS_MOVEMENT while creating GRI .

Hi All,
I am facing an issue with FM MB_CREATE_GOODS_MOVEMENT. I am using FM MB_CREATE_GOODS_MOVEMENT to create
material document (Doing GRI) with ref to a delivery document . FM sucessfully creating Material doc but it is not updating delivery document status(from open to completed).
Regards
Rahul

    READ TABLE git_header_temp INTO gwa_header WITH KEY vbeln = gwa_final1-vbeln.
    LOOP AT  git_item INTO gwa_item WHERE vbeln = gwa_final1-vbeln.
      READ TABLE git_detail INTO gwa_detail WITH KEY vbeln = gwa_item-vbeln
                                                     matnr = gwa_item-matnr.
  IF sy-subrc EQ 0.
        MOVE : gwa_detail-vbeln TO lwa_item-deliv_numb,
               gwa_detail-posnr TO lwa_item-deliv_item,
               gwa_detail-vbeln TO lwa_icontrol-deliv_numb,
                gwa_detail-posnr TO lwa_icontrol-deliv_item,
               gwa_detail-vbeln TO lwa_ispecial-deliv_numb,
               gwa_detail-posnr TO lwa_ispecial-deliv_item.
      ENDIF.
READ TABLE git_mchb INTO lwa_mchb WITH KEY matnr = gwa_item-matnr
                                                 charg = gwa_item-charg.
      IF sy-subrc EQ 0.
        lv_gross_weight = lwa_mchb-ptare + lwa_mchb-clabs.
IF sy-subrc EQ 0.
        lv_gross_weight = lwa_mchb-ptare + lwa_mchb-clabs.
        MOVE : lwa_mchb-matnr   TO lwa_item-material,
               lwa_mchb-charg   TO lwa_item-batch,
               lwa_mchb-clabs   TO lwa_item-dlv_qty,
               lv_gross_weight  TO lwa_item-gross_wt,
               lwa_mchb-clabs   TO lwa_item-net_weight,
               gwa_detail-gewei TO lwa_item-unit_of_wt,
               gwa_detail-umrev TO lwa_item-conv_fact,
               gwa_detail-umvkz TO lwa_item-fact_unit_nom,
               gwa_detail-umvkn TO lwa_item-fact_unit_denom,
               lwa_mchb-clabs   TO lwa_item-del_qty_flo.
        APPEND lwa_item  TO lit_item.
MOVE : lwa_mchb-lgort TO lwa_ispecial-stge_loc.
        APPEND lwa_ispecial TO lit_idataspl.
        lwa_icontrol-chg_delqty = gc_x.
        lwa_icontrol-net_wt_flg = gc_x.
        lwa_icontrol-gross_wt_flg = gc_x.
        APPEND lwa_icontrol TO lit_icontrol.
        MOVE : gv_mandt        TO lwa_idetail-mandt,
               gwa_item-charg  TO lwa_idetail-charg,
               gwa_item-zpicid TO lwa_idetail-zpicid,
               gwa_item-matnr  TO lwa_idetail-matnr,
               gwa_item-zldno  TO lwa_idetail-zldno,
               gwa_item-tknum  TO lwa_idetail-tknum.
        lwa_idetail-zstats = 'PICKED'.
        APPEND lwa_idetail TO lit_idetail.
      ENDIF.
      CLEAR : lwa_idetail,
              lwa_vbpok,
              lv_gross_weight,
              lwa_item.
    ENDLOOP.

Similar Messages

  • Problem with BOM Quant while creating Sales order with reference using BAPI

    Dear All,
    I am facing problem with creating a slaes order with reference to other sales order by using BAPI_SALESORDER_CREATEFROMDAT2 .
    Sales order is getting created but
    1. It exploding the BOM means the line items which are not there in the reference SO also coming in the new SO ( all BOM items are coming )
    2. Schedule line for BOM header item is getting copied to all sub items of BOM.
    Can any one help me out to prevent the above deviations in creating Sales order with reference by using BAPI_SALESORDER_CREATEFROMDAT2.
    Note: while passing the parameters to BAPI_SALESORDER_CREATEFROMDAT2
    all the data related to items is exactly the same as in the original Sales Order.
    Thanks in advnace.
    Regards,
    John

    Hi All,
    Can any one help me !!!!!!!!!!
    please

  • Problem with Account Group while creating a Customer

    Dear Friends,
    I am trying to create a customer with a specific Account Group. But when I try to save this customer I get an error message
    Acct group XXX uses internal no.assignment; leave blank.
    I have copied my account group (XXX)  from 001 Sold-to-Party.
    Request you to please guide me why this error is and what is the resolution for the same.
    Regards,
    Lalit Kabra
    PS : Pardon me for basic question as I am  trying to learn SD.

    Hi,
       This error means this Account group has the number range which is internal(Sold to party has the Internal assignment only). This means system gives the number automatically. If you want to use your own numbers ,them you change the assigned number range, go to "OVT0" and select the number range which is external. This should solve your problem.
    Regards
    Ram Pedarla

  • Problem with Billing date while creating Billing Document

    According to the factory calendar maintained at the client side every Saturday is a holiday. Due to  this, the billing date for every Billing Document (vf01)  created on Saturdays gets pushed to Monday's date..  I tried using VOFM routine 011 to default the billing date (vbrk-fkdat) to system date.I have assigned the same in copy control.. But this does not work. Any suggestions?

    hello,
    This is a standard flow and if you want to tamper that, need to change in standard SAP...which I would not recommend you...
    Please use a separate factory calender for that particluar site...
    Thanks..

  • Problem With OAM10g URL while Creating Policy

    we are trying to protect a resource in OAM 10g for this we have created policy in that resource tab. we are not getting the URL which we mentioned in Host Identifier. Instead of the URL mentioned in Host Identifier we are getting the following URL.
    our URL is appearing ---- dc%3d%testdc%2d%com...
    Edited by: Arii on Aug 24, 2012 8:15 AM

    URL prefix appearing under resource tab, is not because of Host identifiers. It is because of configuration you done during Policy Manager setup (after installing Policy Manager). During configuration, it asks for policy domain URI prefix and by default its value is /
    Refer your installation and verify.

  • Problem with Progress DB while using to connect using JDBC Adapter

    Hi,
      I am facing Problem with Progress DB while using to connect using JDBC Adapter. I am getting the following error in auditlog file like,
    Error during database connection to the database URL  jdbc:JdbcProgress:T:156.5.31.65:2545:/mfgprodev/devbadb 
    /devsche/i_apoext.db using the  JDBC driver "com.progress.sql.jdbc.JdbcProgressDriver" : com.sap.aii.adapter.jdbc.sql.DriverManagerException: Unable to locate a suitable JDBC driver to establish a connection to URL " jdbc:JdbcProgress:T:156.5.31.65:2545:/mfgprodev/devbadb 
    /devsche/i_apoext.db "
    I tried using the following all URLs,
    1. jdbc:JdbcProgress:T:156.5.31.65:2545:i_apoext.       
    2. jdbc:JdbcProgress:T:156.5.31.65:2545:i_apoext.db     
    3.                                                      
    jdbc:JdbcProgress:T:156.5.31.65:2545:/mfgprodev/devbadb 
    /devsche/i_apoext.                                      
    4.                                                      
    jdbc:JdbcProgress:T:156.5.31.65:2545:/mfgprodev/devbadb 
    /devsche/i_apoext.db.                                  
    Can anyone please help me out in solving this issue.
    May be the cause for this is :
    1) The Wrong URL  format
    2) CLASSPATH is not setted properly..
    Can you look more into this stuff.
    Thanks,
    Soorya.

    Hi,
    To access any database fromm XI, using the JDBC adapter, the corresponding drivers have to be installed on the XI server.
    Just check this note 831162.
    Also, check this PDF to install Drivers in XI,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10

  • Problem with two monitors while using Photoshop, windows move from 2nd screen to 1st screen.

    Problem with two monitors while using Photoshop, windows move from 2nd screen to 1st screen.
    I saved a new workspace and it did not help.
    No problem before I went to Maverick.

    I found the fix, go to System Preferences and open Mission Control and uncheck the box to keep monitors as they were (When switching to an application...........)

  • Hi i'm using iphone 4 and i have problem with viber apps while i'm installing

    hi i'm using iphone 4 and i have problem with viber apps while i'm installing & registration process its says error on system mainternance. can you please help me out?
    thank you.

    OK, let's try again. Wind is NOT a supported carrier. In order to use tethering, it must be supported and activated by your carrier for the iPhone. This usually involves an additional fee.  You will have to ask your carrier if they can enable it. Odds are, since they are not a supported carrier, they can not. If you want to use tethering, you will most likely have to switch to a supported carrier that offers this feature on the iPhone.
    A list of supported carriers can be found here: http://support.apple.com/kb/ht1937

  • Problems with Firefox - unable to create a workset in the portal

    Problems with Firefox - unable to create a workset in the portal.

    Guys,
    I am running mozilla firefoz 5.0 and the only option that is coming to me is to create folder in CA.
    even though SAP recommands IE and allows portal from Mozilla, the later seems to have serious issues with Portal.
    I remember working with several versions of mozilla, sometimes you right click, all option will come but you will be unable to choose options coz when u bring cursor to them they will skid here and there..
    I hope no SAP note elobrates this as of now.
    Ankur

  • Problem with the agent console created in the ESSO-Logon Manager 64 bits

    Friends,
    When I use the installer that I created in the console ESSO-Logon Manager for 32-bit, this I install it on the client side and when I synchronize with the console-Logon Manager ESSO brings me and I can see the agent all the templates I configured.
    I have a problem with the agent console created in the Logon Manager ESSO-64bit.
    When I use this installer on the client stations and then by the agent does not envision the applications that I have configured in the console.
    This causes you can not do single sign on to applications that I have configured in the client stations
    To generate this installer use the source name: ESSO-LMx64.msi
    Can someone please help me with this problem, this only happens when I use the msi installer on 64-bit client stations.
    Thanks.

    Jackson_Bill wrote:
    What IDE are you using and what platform?Read first.
    Moh Bob wrote:
    I'm using J2ME platform SDK 3.0
    db

  • ORA-24344: success with compilation error While creating workspace

    Hi,
    We had an instance with db 9.2.0.5 and HTML DB 1.56.
    First we upgraded database to to 10.1.0.4.Then we upgraded HTML DB to 1.6.1(Upgraded html db 1.5 to 1.6, Then applied patch 1.6.1 patch - 4173133)
    Logged to the HTML DB as an administrator for creating application developer's workspace. I have got the error "ORA-24344: success with compilation error" while creating the workspace.
    We are able to create the workspace successfully on HTML DB 1.5.
    Any help is highly appreciated.
    Thanks, Venkanna

    Venkanna - Do you think the workspace creation was at least partly successful? I mean, can you login to it, can you see anything about it in the admin app, etc.? It would be useful to get a list of invalid objects in the new workspace's schema. If there are none, then get a list of invalid objects in FLOWS_010600.
    Scott

  • Problem in refurbishment processing while creating GR.

    Dear experts,
    I'm working on refurbishment processing. I have done all the steps as below:
    I have a material for equipment for which I have 3 valuation types:
    C1 - New items
    C2 - Repaired Items
    C3 - Damaged Items.
    1. Equipment creation with serial number allocating the valuation type C1 installed at a F/L
    2. I have 2 no.s of the same in stock with the valuation type C1.
    Now I got a problem with equipment which is installed and needs to send it to the vendor for repair. I have changed the valuation type to C3 of the equipment in serial number data, and dismantled using t code IE4N with movement type 202. After that I have issued one material (equipment) from stock to the same cost center and then went to change mode of the equipment (IE02) in structure tab I have mentioned the F/L.
    Now I have created a Refurbishment order for the damaged equipment, mentioning from valuation C3 to valuation C2 in the order. I have mentioned the Service number, qyt and price in the External screen of the Operations tab. Released the order. I got PR. (I have mentioned only services for the PR, no materials). I have created the PO w.r.t the PR from the refurbishment order.
    After that the vendor has completed the services and returned the material (equipment), for that I'm following the GR w.r.t refurbishment order i.e, IW8W. I have entered the Order number then enter. There in the new screen it shows,
    Change charge / valuation type+Post GR. this is having tick by defualt.
    Posting date: 28.05.2009
    Document date28.05.2009
    Valuation type C2 in gray mode
    Plant 1250 in gray mode
    stor. location 1040 optional entry
    Then I have ticked the box for Deliv. Compl
    Here I am not finding the material number or serial number.
    In the bottom of the screen it shows the header
    Serial number   Material number     Materail doc number     Batch/Valuation Type
    The headers are showing but no data under the header. While saving the document it gives error message as below:
    Select serial numbers
    Message no. CMFU106
    But there is no data of serial number to select. I have tried the same in IDES, there it is showing only Material numbe no serial number, but allowing to save the document. (the screen is bit different that of Devl. server, in IDES the header as I mentioned above is not appearing, just below the order number the Material number is displaying.)
    Please help me in solving this issue.
    Rgrds,
    Praveen

    Pithan,
    I dont understand why new serial number is created while creating RO? That equipment is already having aserail number and was in use. Now that equipment is damaged and sending for repair to vendor.
    While creating RO it takes the serail number of that equipment (here I have one serial number to one equipment and one material with several serail numbers).
    If that is the case then how it has accepted the GR through MIGO?
    In the document itself SAP mentioned the you need to choose the serial number of the damaged equiupment while creating the RO. It will not be created while creating RO.
    When I try to create and release RO it gives error message as below:
    Automatic serial number assignment for refurbishment is not advisable
    Message no. IW832
    Diagnosis
    The material 700000236 is assigned to the serial number profile. For the serialization operation affected here, automatic serialization is configured in Customizing (value 04)
    System Response
    The setting is not supported in the refurbishment.
    Procedure
    Maintain the serial numbers manually.
    Regards,
    Praveen

  • Problem with Program RMCX0013 while executing  transaction : VL01N

    Hi All,
    We have a problem while creating a delivery and also while Posting the Goods issue. A dump occurs while creation of delivery. The delivery gets created but it creates a dump.
    PFA the dump details:
    <b>Runtime Error          PERFORM_PARAMETER_MISSING
    Except.                CX_SY_DYN_CALL_PARAM_MISSING
    Date and Time          25.06.2007 15:51:26
    ShrtText
         Missing parameter with PERFORM.
    What happened?
         A routine call specifies fewer parameters than the number
         given when defining the routine.
         Error in ABAP application program.
         The current ABAP program "SAPLMCS5" had to be terminated because one of    the     statements could not be executed.
         This is probably due to an error in the ABAP program.</b>
    The problem is the Subroutine F0002_UPDATE in the program RMCX0013 requires 13 input whereas only 9 inputs are passed.Please find the details from the dump.
    But the program RMCX0013 seems to be a standard program and the version comparision shows some change between this system and another system.
    Any inputs regarding this dump would be helpful.Thanks in advance.
    Regards,
    Raj

    Hi,
      check the note 99507.
    with regards,
    Vamsi

  • Problem in getting data while creating public template shopping cart(urgen)

    Hi Gurus,
    I am technical guy...Could you please suggest me how to populate the purchase organisation details(be_pur_org) which is of type bbps_sc_app_item.
    The problem is while creating normal shopping cart template it is displaying the vendor and inforecord details..when I use the same data for creating the public shopping cart it is not displaying the values (vendor and inforecord details) this is due to the missing of purchase organisation field value which is populated in the field be_pur_org which is of type bbps_sc_app_item.
    Is there any badi's to populate the purchase organisation details...?
    awaiting for all your replies..points will be rewarded with lots of appreciation
    Thanks & Regards,
    Ravi Ganji

    Hi
    <u>You can use either of the BADIs depending on your requirement.</u>
    BAdI Definition Name Description                                                                               
    BBP_PGRP_ASSIGN_BADI EBP Purchasing Documents: Assign Purchasing Group(s)       
    BBP_PGRP_FIND        Shopping Cart: Determine Responsible Purchasing Group(s)                                                                               
    BBP_DOC_CHANGE_BADI
    BAdI for Changing EBP Purchasing Documents
    <b>Please read the Standard documetation available with them using SE18 transaction in SRM system.</b>
    Which SRM version you are using ?
    Hope this will help.
    Please reward suitable points.
    Regards
    - Atul

  • Problems with Multi-Polygon and creating index on it

    I have a multipolygon that was created from a SDO_AGGR_UNION and I'm trying to create an index on the geometry. It is failing with...
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13249: internal error in Spatial index: [mdidxrbd]
    ORA-13249: Error in Spatial index: index build failed
    ORA-13249: Error in spatial index: [mdrcrtxfergm]
    ORA-13249: Error in spatial index: [mdpridxtxfergm]
    ORA-13200: internal error [ROWID:AAAW8+AAxAAAWdqAAA] in spatial indexing.
    ORA-13206: internal error [] while creating the spatial index
    ORA-13033: Invalid data in the SDO_ELEM_INFO_ARRAY in SDO_GEOMETRY object
    ORA-06512: at "MDSYS
    I'm beginning to think it's an issue with Oracle 9.2.0.1 which is the version of database we are using. Just want to check to see if others have had problems with this.
    Here is the geometry of the object.
    mdsys.sdo_geometry(2007, 900001, NULL, mdsys.sdo_elem_info_array(1, 1003, 1, 125, 1003, 1, 489, 1003, 1, 739, 1003, 1, 825, 1003, 1, 941, 1003, 1, 1209, 1003, 1, 1237, 1003, 1, 1369, 1003, 1, 1511, 1003, 1, 1551, 1003, 1, 1727, 1003, 1, 2445, 1003, 1, 2547, 1003, 1, 3829, 1003, 1, 3937, 1003, 1, 4085, 1003, 1, 4095, 1003, 1, 4583, 1003, 1, 6149, 1003, 1, 6379, 1003, 1, 6433, 1003, 1, 6465, 1003, 1, 6485, 1003, 1, 6559, 1003, 1, 6577, 1003, 1, 6607, 1003, 1, 6773, 1003, 1, 6793, 1003, 1, 6807, 1003, 1, 6825, 1003, 1, 6833, 1003, 1, 6855, 1003, 1, 6885), mdsys.sdo_ordinate_array(235180.1, 1269688.5, 235179.9, 1269684.4, 235180.6, 1269680.3, 235182.1, 1269676.7, 235184.2, 1269673.3, 235187, 1269670.4, 235190.3, 1269668.1, 235194, 1269666.5, 235197.8, 1269665.6, 235200.8, 1269665.5, 235205.5, 1269666.8, 235230.8, 1269673.6, 235242.3, 1269676.5, 235261.8, 1269681.2, 235270.1, 1269683.2, 235281, 1269685.6, 235296.1, 1269689, 235335.7, 1269696.8, 235368.9, 1269702.5, 235372.8, 1269703.5, 235376.4, 1269705.4, 235379.5, 1269707.8, 235382.2, 1269710.9, 235384.1, 1269714.5, 235385.3, 1269718.3, 235385.7, 1269722.6, 235385.4, 1269726.3, 235384.2, 1269730.2, 235382.3, 1269733.7, 235379.9, 1269736.7, 235370.9, 1269745.9, 235357.1, 1269760.7, 235342.1, 1269778.7, 235332.3, 1269791.1, 235323.8, 1269802.8, 235320.4, 1269807.5, 235313.4, 1269818, 235309.4, 1269824, 235307.2, 1269827.6, 235304.5, 1269830.5, 235301.3, 1269832.8, 235297.7, 1269834.3, 235293.9, 1269835.2, 235289.8, 1269835.2, 235286.1, 1269834.4, 235282.4, 1269832.9, 235279.1, 1269830.6, 235278.1, 1269829.8, 235276.2, 1269825.5, 235274, 1269820.9))

    The elem_info_array for the multi-polygon is obviosuly wrong:
    mdsys.sdo_elem_info_array(1, 1003, 1, 125, 1003, 1, 489, 1003, 1, 739, 1003, 1, 825, 1003, 1, 941, 1003, 1, 1209, 1003, 1, 1237, 1003, 1, 1369, 1003, 1, 1511, 1003, 1, 1551, 1003, 1, 1727, 1003, 1, 2445, 1003, 1, 2547, 1003, 1, 3829, 1003, 1, 3937, 1003, 1, 4085, 1003, 1, 4095, 1003, 1, 4583, 1003, 1, 6149, 1003, 1, 6379, 1003, 1, 6433, 1003, 1, 6465, 1003, 1, 6485, 1003, 1, 6559, 1003, 1, 6577, 1003, 1, 6607, 1003, 1, 6773, 1003, 1, 6793, 1003, 1, 6807, 1003, 1, 6825, 1003, 1, 6833, 1003, 1, 6855, 1003, 1, 6885)
    The last entry should be something like: 6885,1003,1; instead it is just 6885.
    So the problem might be with sdo_aggr_union as it seems to be creating an invalid geometry.
    Can you post the data you used in generating this geometry with sdo_aggr_union ?
    siva

Maybe you are looking for