Values not getting updated in table mvke

Hi,
I am working on a module pool program.In the o/p screen there are many records.If the user wants to change the field values of a particular record,he clicks on the checkbox besides that record and when he click on the change button,control goes to update screen.In this screen when the user changes the value of one particular field and click on the checkbox beside and then click on the execute button,the changed value of that field should get updated in that particular record in the database table.Here I want to update mvke and marc tables.
I have used FM BAPI_MATERIAL_SAVEDATA to update the database tables.
Only marc table is getting updated with changed values.mvke table is not getting updated.What would be the reason for this.
I am sending a part of my code.Please check it.
form move_mat_data .
*Header
gt_bapi_head-material = gs_output1-matnr.
gt_bapi_head-ind_sector = gs_output1-mbrsh.
gt_bapi_head-matl_type = gs_output1-mtart.
gt_bapi_head-basic_view = 'X'.
gt_bapi_head-purchase_view = 'X'.
gt_bapi_head-account_view = 'X'.
gt_bapi_head-sales_view = 'X'.
*Client
gt_bapi_client-matl_group = gs_output1-matkl.
gt_bapi_client-base_uom = gs_output1-meins.
gt_bapi_clientx-matl_group = 'X'.
gt_bapi_clientx-base_uom = 'X'.
*Plant
gt_bapi_marc1-plant = gs_output1-werks.
gt_bapi_marc1-pur_status = gs_output1-mmsta.
gt_bapi_marc1-mrp_type = gs_output1-dismm.
gt_bapi_marc1-mrp_ctrler = gs_output1-dispo.
gt_bapi_marc1-serv_level = gs_output1-zserclass.
gt_bapi_marc1-availcheck = gs_output1-mtvfp.
gt_bapi_marcx-plant = gs_output1-werks .
gt_bapi_marcx-pur_status = 'X'.
gt_bapi_marcx-mrp_type = 'X'.
gt_bapi_marcx-mrp_ctrler = 'X'.
gt_bapi_marcx-serv_level = 'X'.
gt_bapi_marcx-availcheck = 'X'.
Material Description
REFRESH gt_materialdesc.
gt_materialdesc-langu = gs_output1-spras.
gt_materialdesc-matl_desc = gs_output1-maktx.
append gt_materialdesc.
*Sales
gt_bapi_mvke1-sales_org = gs_output1-vkorg.
gt_bapi_mvke1-distr_chan = gs_output1-vtweg.
gt_bapi_mvke1-sal_status = gs_output1-vmsta.
gt_bapi_mvke1-valid_from = gs_output1-vmstd.
gt_bapi_mvkex-sales_org = 'X'.
gt_bapi_mvkex-distr_chan = 'X'.
gt_bapi_mvkex-sal_status = 'X'.
gt_bapi_mvkex-valid_from = 'X'.
endform. " move_mat_data

Hello Hema,
Find the fields which you need to populate with values:
As an example i'm trying to update DISPO from MARC and VKORG from MVKE.
No need to fill clientdata and clienddatax.
* Header data
      MOVE g_wa_mat_out-s_matnr TO g_r_headdata-material.
      MOVE 'X' TO g_r_headdata-mrp_view.
* Plant data
      MOVE g_wa_mat_out-t_werks TO: g_r_plantdata-plant,
                                    g_r_plantdatax-plant.
          MOVE g_wa_mat_out-t_dispo_new TO g_r_plantdata-mrp_ctrler.
          MOVE 'X' TO g_r_plantdatax-mrp_ctrler.
          MOVE g_wa_mat_out-t_vkorg_new TO g_r_salesdata-sales_org.
          MOVE 'X' TO g_r_salesdatax-sales_org.
Reward If Helpful.
Regards
Sasidhar Reddy Matli.
Edited by: Sasidhar Reddy Matli on Feb 7, 2008 11:49 AM

Similar Messages

  • Open Sales Order values not getting updated after run RVKRED77 & RVKRED88

    Hiiii,
    In Production Server. We run the reports RVKRED77 & RVKRED88. Credit info structure and and Open Sales Order values not getting updated. In FD32, Status - Sales value it showing '0". At the time of creating Sales Order Dynamic Credit check not happening coz of Tables S066 not updating. Please provide me Solution.
    Best Regards,
    Sridhar . P

    Dear Heagal,
    I followed your suggestions and implemented in the Development and moved the changes in to Quality Server. I tested it thoroughly by creating New Customer and maintained Credit Limit. I come to know that Problem is in all Servers. I made 3 changes.
    1. In Pricing Procedure Sub Total A it was not maintained against Net value. I placed it.
    2. Removed Credit groups for Delivery Type.
    3. In OVA8 i maintained Max. Doc Value :99,999,999.00 before it was with 1.00
    I checked the OMO1 Settings it was Asynchronous. As SAP Notes Suggesting to use Synchronous but here it's a client setting. So, It's Can't possible to change. Changes will affect other Company Codes.
    Tested both in DVP and QTY Dynamic Credit Check is working Perfectly and Status in FD33 Sales Value field getting update.
    If i move these changes in to Production, Will i need to run the reports again or not? How it will affect on Old Cusomer Billing and  Credit Limit data. For few of the Customers the Credit Limit data it was exceeded. Please provide me advice. The issue need to be Solved immediately.
    Best Regards,
    Sridhar

  • Consumption values not getting updated on the material mastere

    HI Gurus,
    can anbody please explain me the reason why the consumption values not getting updated on the material master. What kind of movements qualify to get updated on the material master? is it 261, 101, 701 and 702 etc only? or any movement that means issues, receipts etc? I just happened to see a few materials which had some movements occur in the past but they did not get updated on the material master. These materials used to have ND MRP type until recently and these were changed to VM few days agao. could this be a reason? Please throw some ligjht on this. Helpful replies will be appreciated
    Thanks
    Anushga

    Dear ,
    Use tcode - OMJJ and then do the following setting -
    for movement - 261,262, 201 and 202
    Statistically relev. - 2
    Consumption posting - R
    for movement - 701 and 702
    Statistically relev. - 2
    Abhinay
    Edited by: Abhinay Sachan on Sep 10, 2010 1:38 PM

  • Field value not getting updated in R/3

    Hello Experts!!
    I am facing a problem while updating a field value back in R/3.
    The Syncbo is of type U01 and the field has data type char 40.
    The meRepMeta.XML file has following description
    Field name="DESCR1" type="C" length="40" decimalLength="0" signed="false" isKey="false" isIndex="false">
    <Input type="modify">false</Input>
    1) when i test the function module in R/3. The field value is gets updated.
    2) when i create a record for the sync BO from client , i can see the field value being created on the client.
    3) when i synchronize, i dont get any error or warning and get a successful message.
    S        15.07.2008 12:19:09 All updates for one TOP block were successful (seq. no.=65, TOP cntr.=0000000001)
    15.07.2008 12:19:09 Synchronizer UPLOADER completed successfully (mobile ID=0000002646, SyncBO=ZDBMSERORD)
    I am not able to locate where is the problem
    Please suggest!!
    Regards,
    Priya Ghosh

    Hi,
    please check your maping in the create handler in MEREP_SBUILDER. Perhaps the value is created on the client but not mapped to the field of the function module. Furthermore have a look into MEREP_MON and see if the data gets forwarded in there.
    At last I would dump the information received by the function module into a table without any logic. So you can see what data actually is forwarded into the funct module - if brake point i not possible.
    Hope this helps.
    Regards,
    Oliver

  • Data is not getting updated in table using RFC

    Hi Experts,
    In my scenario, I am calling one RFC using RFC receiver channel. After running scenario, channel is showing status that RFC executed successfully. But when I am checking tables in R/3 system, data is not getting updated.
    Moreover , when we tried to execute the RFC manually in R/3 system, that time data uploaded into table successfully.
    Could anybody tell me what would the reason that data not uploading into table when we send it through XI.
    Regards,
    Sari

    HI Sari,
    as you have scenario with RFC receiver.. and as you mentioned that it not updating tables when run through PI but when you execute RFC manually tables got updates.. then following are the options you can check..
    -- if you check RFC communication channel and if everything ok on then.. this means that your RFC is getting triggered successfully..but as you said tables are not updated.. for this you can go to SXMB_MONI and check the log take payload after mapping.. and compare it with the input when you try to execute it manually.. I think the input when you try manually and input to RFC when you try through PI is different and that is causing the Problem.. you will be able to see the difference in input then check.. I think the problem is data and not RFC communication channel..so by using this you will come to know difference
    -- else if possible configure your ID in PI in RFC Receiver and then check and put breakpoint on ABAP side.. so that when PI will hit RFC you will get it in debug mode and able to see what is going wrong..
    Thanks,
    Bhupesh

  • Field KZWI4 is not getting updated in table EKPO

    I have a case where for two scheduling agreements the pricing procedure getting determined is the same, but the field KZWI4 (subtotal 4) in table EKPO is getting updated for one SA and not for the other. The only difference in the two SAs are the tax codes. Do tax codes have any bearing on the field KZWI4 getting updated in table EKPO?
    Regards,
    Pratima.

    Hi Pratima,
    unfortunately i can only write that I am facing the same challenge at the moment. I will update the discussion as soon as I have a solution.
    Best regards
    Bjoern

  • CJ20N-fields are not getting updated in table PROJ

    Hi all,
    I have a requirement where I need to transfer the WBS element data created in one system to another using IDOC.
    The idoc has generated sucessfully and was also sent/processed successfully in the recieving system but fields STSPD and STSPR are not getting poulated in table PROJ.
    In the confic I have assigned FM:IDOC_INPUT_PROJECT to the process code.
    Thanks,
    Gaurav

    Hi,
    Please check with the Customer and Material Statistics group in the Customer and material master respectively.
    Further check with the LIS settings (Sales Area combination with the Update group).
    Reward points if this helps you.
    Regards,
    Harsh

  • Href  value not getting updated in UMS adapter payload

    Hi all,
    I am not getting the Href reference in UMS adapter payload. PFB the payload description.
    In that we can see the From address of the mail but noe the Href values.
    <ReceiveMail_InputVariable>
    <part  name="body">
    <ns0:message>"abc xyz" <[email protected]></ns0:message> 
    </part>
    </ReceiveMail_InputVariable>
    Please help me in this. What could be the reason for this ?
    Thanks in Advance
    Divyanshu Agarwal

    Hi all,
    I am not getting the Href reference in UMS adapter payload. PFB the payload description.
    In that we can see the From address of the mail but noe the Href values.
    <ReceiveMail_InputVariable>
    <part  name="body">
    <ns0:message>"abc xyz" <[email protected]></ns0:message> 
    </part>
    </ReceiveMail_InputVariable>
    Please help me in this. What could be the reason for this ?
    Thanks in Advance
    Divyanshu Agarwal

  • Values not getting updated in Classification tab by BAPI_BATCH_SAVE_REPLICA

    Hello Experts ,
    I am currently facinmg problem with value updation in Classification Tab for Batch Master. To create the classification I have marked BATCHCONTROLFIELDS-DOCLASSIFY = 'X' and to pass values to classification I have done the below coding.
    wa_classvaluationschar-value_char = wa_itab-value1.
    APPEND wa_classvaluationschar TO it_classvaluationschar.
    wa_classvaluationsnum-value_from = wa_itab-value1.
    wa_classvaluationsnum-unit_from  = wa_itab-meins.
    APPEND wa_classvaluationsnum TO it_classvaluationsnum.
    Finally called the FM 'BAPI_BATCH_SAVE_REPLICA'. But , inspite of this I am not able to see values in the created Batch. Please advice on the same.
    Thanks
    -Trishna.

    Hi Trishna,
    You need to update below mentioned fields to udpate that.
    OBJECTKEY = concatenate (Internal Material number & plant & batch number)
    OBJECTTABLE = MCHA
    in both the structures CLASSALLOCATIONS and CLASSVALUATIONSCHAR. It will udpate.
    Cheers,
    Luri

  • Work area field value not getting populated in table control grid.

    Hi all,
    I am currently facing an issue where I have declared a variable and have fetched the workarea field name in it. To be exact, the variable contains the workarea name whose value I am finally populating to the table control. Now although the workarea name when manually copied and pasted in field name in debugging mode exhibits the value of the it, Im unable to fetch the same value in the variable as I have only the work area name in it. I need the value of the workarea-field to be in the variable.Please provide your valuable suggestions for this issue...
    Regards,
    Edited by: Vishwanath Sreedharen on Jan 2, 2012 3:25 PM

    Hi Nabheet,
    Please consider the below example...
    DATA: l_var(30) TYPE C.
    CONCATENATE 'wa' '-' I_FIELD2-NAME INTO l_var.
    The i_field2-name contains the name of a custom table field CP_CUSTOM_GRP. So now the l_var contains wa_cp_custom_grp.
    Now consider the wa_cp_custom_grp has a value 'BA'.
    Now my issue is the l_var contains wa_cp_custom_grp but not its value(too obvious)... Would like to know whether is there a way through which the value of this wa_cp_custom_grp  'BA' could be populated to the variable l_var...

  • Addtional tab CI field not getting updated in table

    Hi all,
    I am using cProjects 4.0 system.
    I had implemented addtional custom tab to display project custom include fields. In CI include of dpr_project table i added custom fields.
    Then created new webdynpro component and in implemented interface tab in had implemented DPR_CUST_EXT_INTF.  In view i displayed the 2 custom fields i added. In cProjects SPRO, i had given my component name for addtional tab. When I run the application it is showing those fields i added in addtional tab. While saving it is not updating custom field. Please let me know what needs to be done.
    Thanks & Regards,
    Karthick S

    Hi,
    For adding custom fields from CI_* includes, I advise you to use available feature in SAP standard 'field groups for customer fields' under : SPRO -> Collaboration Projects -> Global Enhancements to Project Elements.
    This is the easiest way to add custom tabs & fields without webdynpro development. All standard functions are supported: field control, save, BADI...
    BR
    Matthias

  • 1KE0 - plan values not reflection in GLPCT table

    Hello Gurus
    The users are uploading the plan values for profit center through T.code 1KE0. The file is getting uplaoded without issues.The plan values are getting updated in table COSP and for some reason only the first profit center in the upload file is getting updated in table GLPCT. We are currently on ECC 6.0 but still not activated the new GL. Can anyone please advise
    Thanks
    NN

    HI!
    please check the following settings:
    1. trx. 1KEF   > Have you set the online flag?
    2. trx. OKEQ   > Have you set the online flag for the respective version
                     for profit center accounting? Is the version locked?
    3. trx. 0KE5   > Have you activated the elimination of internal business
                     volume?
    please implement first the following notes in your system:
    788557
    995399
    BR
    Werner

  • BDOC status completely processed: data not getting updated

    Hi Experts
       I'm  downloading BP data from R/3 system to CRM system , data is successfully getting into the CRM system when checking the SMW01 it was showing the status fully processed (status green) ,but data is not getting updated in tables.
    Please let us know what could be the possible reason
    Thanks & regards
    Rajasekhar

    1) First check the data in the BDOC. Check if the partners are really cmoing.
    2) Check if there are any dumps created in ST22. If yes Pls analyze them.
    3) Check the flow defintion for bdoc type BUPA_MAIN. You can check this in SMW01. Check if the actual call to upload the data and  create BP is done.

  • KINAK field in Table KONV not getting updated with value W

    Hi,
    I have a PO where I am deleting a line item.
    After I delet line item the field KINAK in table KONV gets updated with value W.
    But I am getting instance where in some cases the field KINAK is not getting updated.
    The result is deleted line item is getting populated in PO output also.
    Regards
    Nandiini

    KINAK is updated only when a Condition is inactive ! So when a item is deleted the condition becomes inactive and gets updated with 'W' which means statistical(not to be counted)
    A     Condition exclusion item
    K     Inactive due to calculation basis/shipping material type
    L     Condition exclusion header or inactive at header level
    M     Inactive due to manual entry
    T     Inactive at header level
    W     The document item is statistical
    X     Inactive via formulae of incorrect
    X     Inactive via formulae of incorrect
    Y     Inactive because of subsequent price

  • Excise table J_1IEXCDTL not getting updated with Excise Base value.

    Hi All,
    The the field EXBAS of table J_1IEXCDTL is not getting updated for ETT (Transaction Type) DLFC.
    For other transaction types, the same is getting populated.
    Is there a setting for controlling the same?
    If yes, can you please guide me.
    Best Regards
    Debaditya Ghosh

    First you should ensure that it is flowing in your billing document.  If so, automatically, it will also flow in your excise invoice and the field EXBAS will be updated accordingly.
    From your comments, it seems, the amount is not flowing in your billing document and excise invoice.  If so, ensure that you have assigned  the correct tax code in FV11 for your ED condition type.
    thanks
    G. Lakshmipathi

Maybe you are looking for