Update MARA WM View Fields Without Wharehouse No.

Hello,
I need to update the following MARA fields for WM View without Warehouse Number.
MARA-HNDLCODE
MARA-WHMATGR
MARA-WHSTC
I have tried some BAPI'S(BAPI_MATERIAL_SAVEREPLICA) FM but no luck. Can anybody suggest me how do i update above MARA Fields ?
Regards,
Deepa

Hello Deepa Rajput.
Try using BAPI_MATERIAL_SAVEDATA.
Regards.

Similar Messages

  • Unable to update MARA table custom field in Material master

    Hi all,
    I have added one custom field in MM01,Basic View 2.
    For that i have apended that field in MARA table and created one subscreen for that.
    This field is visible in MM02/MM01/MM03 in basic data view 2 .
    The issue is that we are not able to save values in MARA table which we entered in this field.
    I cheked earliar in SDN but couldn't get the proper solution.
    i cheked the below available forum discussion link but couldn't get th proper solution.
    In material master How to add a new field on Basic data 1 view
    Regards,
    Amit

    Hi,
    please trye this :
    Please make sure u implemented: methods PUT_DATA_TO_SCREEN and GET_DATA_FROM_SCREEN as they are  required for data transport. These methods are called from within the program of the application at PBO or PAI .
    See below example code:
    PBO:
    MODULE initialize OUTPUT.
    CLEAR: sflight, ok_code.
    IF exit IS INITIAL.
    CALL METHOD cl_exithandler=>get_instance
    CHANGING
    instance = exit.
    ENDIF.
    CALL METHOD cl_exithandler=>set_instance_for_subscreen
    EXPORTING
    instance = exit.
    ENDMODULE.
    The factory method is used to create an instance of the adapter class. You then declare the instance using the public static method SET_INSTANCE_FOR_SUBSCREEN to allow the data for display on the screen to be used in the function group of the user or in the module pool.
    MODULE data_for_subscreen OUTPUT.
    program = sy-repid.
    dynpro = sy-dynnr.
    CALL METHOD cl_exithandler=>get_prog_and_dynp_for_subscr
    EXPORTING
    exit_name = 'BADI_SCREEN'
    calling_program = program
    calling_dynpro = dynpro
    subscreen_area = 'SUB'
    IMPORTING
    called_program = program
    called_dynpro = dynpro.
    CALL METHOD exit->put_data_to_screen
    EXPORTING
    flight = sflight
    EXCEPTIONS
    reserved = 01.
    ENDMODULE.
    PAI:
    MODULE user_command_0200 INPUT.
    CASE save_ok.
    WHEN 'BACK'.
    SET SCREEN 100.
    WHEN 'SAVE'.
    PERFORM save_flights.
    WHEN '+EXT'.
    CALL METHOD exit->get_data_from_screen
    IMPORTING
    flight = sflight
    EXCEPTIONS
    reserved = 01.
    ENDCASE.
    ENDMODULE.
    The method GET_PROG_AND_DYNP_FOR_SUBSCR and the input/output parameters specified above are used to determine the name of the customer program and the name of the subscreen. The method PUT_DATA_TO_SCREEN which is called at PBO as well as the method GET_DATA_FROM_SCREEN which is called at PAI are used to transport the data to be displayed.
    These methods are implemented by the user:
    When you define a screen enhancement, you are strongly recommended to provide sample code for the methods PUT_DATA_TO_SCREEN and GET_DATA_FROM_SCREEN. This code is automatically copied when you create an implementation and can be added to if required. The user of the BAdI definition should not be responsible for the data transport.
    regards,
    ..Pradeep

  • Update a table view field calling a service

    Hi all,
    is there a way in a table view to calculate the value of a field calling a data service, using as calling arguments other fields from the same row?
    For example I have line items of a sales order in a table view. In one field the user enters the quantity in the desired unit of measure. I would like to have the quantity transformed in KGs in the same row.
    Is this possible?
    Points will be awarded for usefull suggestions.
    Regards,
    Panos

    Make a report on the table. Go to the definition of
    the report column and change the "Display As" type to
    text field or select list or whcih ever is
    applicable. Write a process on submit to insert these
    values back to the table. You will have control over
    which columns the user can modify.Thats a good idea and I was able to start on it. But how can my after submit process tell which rows to modify? i.e. what will my after submit process look like?
    for rec in (....)
    loop
    update my_table set
    end loop;
    Help? Thanks

  • Updating MARA

    hi All,
        Is it possible to update the cotent on a field in MARA using an UPDATE statement? thanks for ur help...pl let me know

    well like the dudes above told you, YEAH it is possible.
    BUT possible in this context means NOT ADVISABLE.
    An update statement will be done without any consitency checks.
    With updating and not EXACTLY knowing what you are doing, you probably will get inconsistent records in your database.
    Especially the check for the referential integrity isnt done, so with an update statement you can e.G. fill a value in the address-key for a customer which isnt even know of in the address table.

  • Query and update a table/view

    What is the best & fastest way to do this?
    1) Put up a query input region for users to enter parameters.
    2) Run a query on a table/view using those parameters.
    3) Allow the output in (2) to be modified by user (multiple rows at a time) and then Submit the updates back to update th table/view
    I can do (1) and (2) easily. How can I do (3)?
    Thanks

    Make a report on the table. Go to the definition of
    the report column and change the "Display As" type to
    text field or select list or whcih ever is
    applicable. Write a process on submit to insert these
    values back to the table. You will have control over
    which columns the user can modify.Thats a good idea and I was able to start on it. But how can my after submit process tell which rows to modify? i.e. what will my after submit process look like?
    for rec in (....)
    loop
    update my_table set
    end loop;
    Help? Thanks

  • How to use FM VIEW_MAINTENANCE_NO_DIALOG for updating values in views

    Hi all,
    I got a scenario to update the maintainenace view V_T001S based on the user inputs through a program.
    I'm thinking to use this FM  VIEW_MAINTENANCE_NO_DIALOG , but im getting lot of errors.
    Please let me know if you have any other solutions for this scenario.
    Thanks in Advance.
    Best regards,
    Sekhar.
    Resolved.. thanks
    Edited by: Chandrasekhar Raju on Mar 29, 2011 6:55 AM

    Hi,
    you could use Dynamic SQL /Execute immediate to run DDL from a stored procedure.
    http://download-uk.oracle.com/docs/cd/B10501_01/appdev.920/a96624/11_dynam.htm
    Could you please tell why do you want to create a materialized view in stored procedure ?
    How frequently you will runt this procedure . It would is better to create a MV once and use it.
    thanks

  • IDoc MATMAS05 does not update MARA-AENAM

    Dear colleagues,
    I am using IDoc for maintenance of material master records. It's basic type is standard MATMAS05. When I trigger IDoc that needs to change material master record, this material master record is updated correctly, except AENAM field (Name of accounting clark who changed record). In my IDoc structure I have field which defines AENAM. This field is filled with proper information, but after IDoc running ERP MARA-AENAM is filled with logon user defined in RFC Destination settings and not with value from IDoc's AENAM. 
    Could you help me to solve this issue and have proper data in MARA-AENAM (from IDoc AENAM field)?
    Regards,
    Harry

    the coding is undoubtedly taking the last change date and user from the SY structure:
      IF neuflag = space
       and ( not rmmg2-new_inst is initial or
             not rmmg2-new_inst_v is initial or
             not rmmg2-new_inst_a is initial ).
        mara-laeda = sy-datum.
        IF user IS INITIAL.
          mara-aenam = sy-uname.
        ELSE.
          mara-aenam = user.
        ENDIF.
      ENDIF.
    And this sounds logical to me, as if this would not be the case, then you could change data with an IDOC and let it look as if this change was done by someone else.

  • Calculated Field formula not appearing in Power View Field List panel

    Hi,
    On Power View1 sheet of this
    workbook, the two PowerPivot calculated Field formulas (First Visit and First date of FY) are not appearing in the Power View Fields panel on the right hand side.
    I want to drag client and First Visit (calculated Field) to the Power View.
    Why is this happening?
    Regards, Ashish Mathur Microsoft Excel MVP www.ashishmathur.com

    I found a workaround for it - I was having the same problem as you. I wanted to display the last refresh date of my data, but Power View wouldn't display a date resulting from the [Last Refresh]=MAX(Date[Date]) formula.
    HOWEVER, a Pivot Table can handle that Calculated field just fine. So I renamed my measure "Refreshed Date" and added another tab in the Excel Sheet. I added a Pivot Table from PowerPivot into cell A1 and the only thing I put was that single
    measure (A2). To the right of that, I did =A2 and created an Excel Data Table. The title of that was "Last Refresh". Now, I could add that Data Table to the PowerPivot Model and into Power View. And then I hid that tab.
    The only downside to this method, is that if you're refreshing single tables at a time, you have to remember to refresh the Pivot Table when new data is added AND update the data in the model. I'm only connecting to one database, so I just choose
    "Refresh All" in Excel and it updates everything. It works perfectly! :)
    Well shoot, I even took a screenshot that helped explain everything, but it won't let me post it because my account isn't verified and it won't tell me how. If you have any questions, please let me know and I'll clarify!

  • Scrolling component into view programmatically without using javascript

    Hi,
    Is it possible to scroll an adf component into view programmatically without using javascript?
    I know of <af:scrollComponentIntoViewBehaviour> that can be added to a command component , but is there a way to do that programmatically in a bean?
    Problem with using javascript is its not guaranteed to work in different browsers.
    Regards,
    Rakesh.

    Hi John,
    Thanks for the reply.
    If i use the af:scrollComponentIntoViewBehavior, then i wont be able to achieve my desired functionality.
    In my use case, i want the id, of the component that needs to be scrolled into view, to be determined in the server listener of the button which is not happening.
    Code snippet in jspx page is as follows:
    <af:commandButton id="cb1" immediate="true">
    <af:clientListener method="clickButton" type="click"/>
    <af:serverListener type="customEvent"
    method="#{pageFlowScope.bean.doScroll }"/>
    <af:scrollComponentIntoViewBehavior id="#{pageFlowScope.bean.compId}/>
    </af:commandButton>
    And the java code for method doScroll is something like :
    public void doScroll (ClientEvent clientEvent)
    //logic to determine compId goes here
    compId = "id";
    So, the problem here is "compId" is set to some value when bean is loaded and the id in the af:scrollComponentIntoViewBehavior will be set to that value forever.
    I cant find any way of telling it to re-read the "compId" value, say after clicking the button. I can refresh the button in the server listener to update the compId .
    But the updated compId will come into picture from *next click*. This is because, after the button is clicked, "scroll" action happens first and then serverListener executes.
    Is there a way to change order of this execution like "execute server listener first and then do the scrolling thing" ?
    Regards,
    Rakesh.
    Edited by: 927925 on Jul 27, 2012 2:02 AM

  • Required function module to Update MM-classification view

    Hi Floks,
         i got one object on MM, some material having the classificaton view and some material dont have, but my requirement is i need to update the classification view, Do you know any idea about , what is the function module is required ?
    Thanks
    Siva Prasad
    Sap-Practice

    the trick, when looking for these bapis, is NOT to look with material master bapis, but under cross application->classification->objectclassification... (in tcode BAPI)
    you will se the bapis you need.
    one thing, when you look in transaction bapi, all bapis for classification are shown with a _KEY suffix. the ones you want are WITHOUT the _KEY suffix...
    we use these all of the time.

  • Oracle view fields metadata

    I want to query what fields oracle database view has, which query i should use?
    I don't see the information in those tables:
    SYS.obj$ o, SYS.view$ v
    This query seems to show only table fields:
    select * from DBA_TAB_COLUMNS
    but i like to see a view fields.
    Edited by: CharlesRoos on Mar 30, 2009 8:06 AM
    Oh, sry, the information si stil lthere:
    select * from DBA_TAB_COLUMNS c
    where c.TABLE_NAME = 'ALL_VIEWS'
    This topic can be deleted then i think, i got answer. Sry.
    Edited by: CharlesRoos on Mar 30, 2009 8:08 AM

    You can just simply type:
    SQL> DESC view_name
    when you use SQL*Plus, that is.
    You can also query f.i. USER_TAB_COLUMNS.
    Edited by: hoek on Mar 30, 2009 5:07 PM

  • Mass Updating Opportunity Product Owner field

    We need to change the owner of hundreds of opportunities. We were able to do a batch update on the Owner/Account Manager field for the opportunity, but the opportunity product records still have the old owner.
    Is there a way to mass updates that field without doing an export then reimport with an over-ride?

    This could be done using web services.

  • Any way to update PO document through DTW without using "Doc Entry"

    Dear all,
    Just have a question.
    I need to use DTW to update existing PO document. I realized that I have to have Doc Entry to be entered in the DTW template.
    Is there any way to update PO document through DTW without using that field, "Doc Entry"?
    thanks
    Tony

    Tony,
    A similar situation related to Bank files was resolved with one of my clients on the following way...
    The file from the Vendor can be an any order or format on the Excel.  Till the time it is consistant it should work fine..
    We created a Job in SQL Server to read this Excel file and to use the DocNum to get the DocEntry from SAP PO and output another excel file which is exactly the template format for PO Update.
    This may even not be required in your case.....
    You can get this done through an Excel Macro....which will connect to the database and using the DocNum get the DocEntry and update the Excel....
    This is 100% achievable and a better solution for regular use
    Suda

  • Sharepoint angulr REST API update file item userd field property

    Hi All,
    I'm working on a project using SharePoint with angular to upload files to document library, for now every thins is working fine and good but when updating the related item fields I was using JSOM its work but it increase the version # of the file which is
    not acceptable to the client I found a solution to update the fields using REST without increasing the version # but the problem am facing now updating a user field it does not take the value it go to the success function but the field not set
    here's my code
     $scope.updateMetadataNoVersion=function(fileUrl) {
        var fld=$scope.SelectedFolder.replace(_spPageContextInfo.siteAbsoluteUrl, "");
           var restSource ="";
            if(fld.replace("lists/DepartmentDocuments","")=="")
           restSource = currentWeb.get_url() + "/_api/web/lists/getbytitle('DepartmentDocuments')/rootfolder/files/getbyurl(url='" + fileUrl + "')/listitemallfields/validateupdatelistitem";
    else
           restSource =  currentWeb.get_url() + "/_api/web/getfolderbyserverrelativeurl('"+fld+"')/files/getbyurl(url='" + fileUrl + "')/listitemallfields/validateupdatelistitem";
            var dfd = $.Deferred();
            $.ajax(
                'url': restSource,
                'method': 'POST',
                 'data': JSON.stringify({
                    'formValues': [
                        '__metadata': { 'type': 'SP.ListItemFormUpdateValue' },
                        'FieldName': 'ShareWith',
                        'FieldValue': '24'
                    'bNewDocumentUpdate': true,
                    'checkInComment': ''
                'headers': {
                    'accept': 'application/json;odata=verbose',
                    'content-type': 'application/json;odata=verbose',
                    'X-RequestDigest': $('#__REQUESTDIGEST').val()
                'success': function (data) {
                    var d = data;
                    dfd.resolve(d);
                'error': function (err) {
                    dfd.reject(err);
                    console.log(err);
            return dfd.promise;
    any help please im search about this since 3 days with no success
    Thanx in advance
    khatib7

    Yes, your correct. The validateupdatelistitem method does not work with Lookup values. You will have to use the standard way of updating the list item via REST but it will increment the version. I agree with you that many customers want to upload files and
    set data without creating 2 versions.  This is how SharePoint upload works. However, the only way to do this with REST is to use the validateupdatelistitem method.
    You can make a request for this to be added to SharePoint at User Voice:
    http://officespdev.uservoice.com/
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • Updating Ordered List View

    Hi,
    In our report , we are using updating ordered List View. In this view we specified sort conditions on some fields which does the default sorting when report gets generated.
    Now, the user would like to sort the results by clicking on the column name at run time. How do we achieve this functionality in this view ? If not , is there any alternative view available ?
    Thanks,
    Satish

    I think in the current version - sorting as a enduser-function is not available.

Maybe you are looking for

  • Parameters Group are not saved

    Hi expert! Sometimes happened that when I create a new Level,  function or parameter group (usually copy from other level), and saved them. After when I enter again to the system these parameter group does not exists. Does anybody know why happened t

  • How can i delete my account?

    I created a new account with my secoundary email adress (this account). Now when you search you find my 2 accounts. I would like to delet this account or perhaps merge it with my other account. How do I do that?

  • Fra01 100 percent full/services down

    can someone help in this asmcmd 100 percent deleted all archives still database services are down its urgent pls suggest me to make service up pls

  • Stuttering Songs in iTunes

    I have seen a few posts on this subject in the discussions, but no one really had a resolution for it. So, I thought I would try to share my problem, and see if anyone has some resolutions for it: I just purchased a 24" iMac, 2.8ghz intel, 2 gig ram.

  • Cant get my Apple Mail

    I have been having problems for the last two weeks on getting Mail.  My son in law, the computer guru has had me change my settings to match what SHOULD work (and what did work prior to the last Apple upgrade), and I still can't receive my Mail. I ca