How to update Table MKPF (MKPF-MBLNR)

Can anyone help me on how can I update table MKPF? I'm trying to change the value of MKPF-MBLNR during GR Creation. (I created PO, then GR, then MIGO). So during GR creation, MKPF-MBLNR should be changed before going to MIGO. I just needed to modify MBLNR to do the offset of years depending on user input. I can not use BDC for this since this is a standard one.
I tried to use this function CALL FUNCTION '/SAPHT/DRM_CALC_DATE' to modify the data of mblnr and created a custom function "CALL FUNCTION 'ZUPDATE_EQUIP_DATE' starting new task 'test'"... where it open a new task once there's an error in updating the value. But this one is limited since SAP only allows the maximum of 6 sessions only.So if the 6th session has been reached, it stops the process.
Does anyone has a better idea regarding this?

Sorry for a vague explanation... Let me rephrase, my requirement is to change the Valid from field in IQ02.
So I create GR in MIGO. So from here, I wanted to manipulate the value of 'VALID FROM' field (MKPF-DATAB) to do some offset or addition based on user input. So during creation, the value that will be saved in MKPF is the one manipulated. So when you go to MIGO, and see the Valid FROM field, it will now show your manipulated data.
Any help/idea is very much appreciated...

Similar Messages

  • How to update table styles in the new Pages?

    Anyone found out how to update table styles in the new Pages? I see it's done in some of the templates that Apple provided, but I can't find it. Also, the Copy table style command is gone, so I can't make my tables look in a uniform way, unless I use one of the built-in styles.
    Thanks.

    I'm having the same trouble. Looks like no way to create an overal 'table' style and I cannot access the table paragraph styles either.

  • How to update table in EJB QL

    Hi friends,
    Anybody tell me how to modify data in the table using EJB QL....
    I am using XDoclet,Weblogic,EJB,MySQL
    I want to update table data using EJB QL,Xdoclet...Anybody help me
    thanks in advance
    priya

    don't double post. You can edit posts you know, or add a reply with the additional information.
    http://forums.sun.com/thread.jspa?threadID=5417462&tstart=0

  • How to update tables T156M and T156S

    Hello,
    In my company, there are a few custom movement types that were created sometime back. There is another custom program which uses the tables T156, T156M, T156S to determine, quantity addition or removal in a particular inventory status depending on the movement types and quantity strings.
    The problem is that these tables do not contain the entries for the new movement types, hence the program cannot interpret whether to add or remove quantity and in which inventory status, for these new movement types.
    Can someone please let me know a standard SAP program which we can run, in order to update these tables, so that these tables contain entries for the new custom movement types. I am not comfortable with maintaining the entries in these tables manually.
    Thanks a lot for any help.

    Hello Mahesh,
    I appreciate your reply, but I have already checked the OSS notes section. I could not find anything which would help me. Hence, I posted the thread. I would appreciate if you can help me here. Thanks.
    The note that you recommended, I had already checked, but that note only mentioned what needs to be maintained in the table, not how to maintain it. I mean, I know I can manually maintain entries, but I don't want to do it, unless it is the only option. Hence, I am looking for a standard SAP program, which when executed, will pull the information from OMJJ and update the tables T156M and T156S.
    Hope you can help further on this. Thank you very much for your help.

  • How to update table in another client / application??

    Hello Expertise,
       i have to synchronize two z table in different client ....... so i am looking for RFC standard function module <b>OR</b> BAPI from which i can do standard table operation (select,insert,update) in another client.....
    its urgent....
    Thanks In advance
    Nishant Bhatt

    Hi
    For the above statements you can use CLIENT SPECIFIED.
    your statement *** CLENT SPECIFIED ***
    MANDT = * clients list *.
    Regards
    Surya.

  • How to update table J_1IPART1,without replacing the old values

    Helllo Friends
    Problem:
    When I capture the  excisable document in T-code J1IEX, the table J_1IPART1 does not  get updated ,but when I do the good receipts by 101,then entry in the above table get updated ,by replacing the  previous entry.
    What should I do so that table J_1IPART2 hold all the captured values without replacing the old values.
    And after what time of interval do I need to update the register, is it on daily bases or on monthly bases

    Try these steps:
    1. Post MIGO without excise entry
    2. J1I5 - Update register for RG23A Part1 with classification ROP.
    3. Post excise Invoice through J1IEX
    You should update the register on daily basis.

  • How to update table which has column name as Oracle keyword?

    Hi All,
    Somebody has created one table which has column name as "OPTION", now i am trying update this table column value and its throwing an error. "Invalid Identifier".
    Could you please help me in this?
    Thanks in advance.
    Regards,
    Ganesh Patil

    check this :
    batch@DOLN1> create table "from" ("select" varchar2(10));
    Table created.
    batch@DOLN1> desc "from";
    Name                                                                                                  Null?    Type
    select                                                                                                         VARCHAR2(10)
    batch@DOLN1> update "from" set "select" = 'hello World';
    0 rows updated.
    batch@DOLN1> insert into "from" values('hello World');
    insert into "from" values('hello World')
    ERROR at line 1:
    ORA-12899: value too large for column "TCM_BATCH"."from"."select" (actual: 11, maximum: 10)
    batch@DOLN1> update "from" set "select" = 'hello';
    0 rows updated.
    batch@DOLN1> insert into "from" values('hello');
    1 row created.
    batch@DOLN1> commit;
    Commit complete.
    batch@DOLN1> update "from" set "select" = 'World' where "select" = 'hello';
    1 row updated.
    batch@DOLN1> select * from "from";
    select
    World

  • To update Table

    How to update table
    i have to update one column in a table
    it has the value 'E' , i have to update that value to 'L'
    it has 300,000 rows.
    what is the syntax for that
    Thanks in advance

    Hello
    If the column just contains a single character, use...
    UPDATE
        table
    SET
        column = 'L'
    WHERE
        column = 'E';

  • Update table MARV

    Hi all.
    I have a issue about update table MARV.
    How to update table MARV ?
    please, Help me
    Thank very much !

    HAI,
      Nghiem,
            if u want to enhace the standard tables like MARV, there are two methods
      Include
    (ii) Append structures
    U can added Append structures as u wish to the SAP standard tables. but, if u want to apply include structures, u required access key for that table.
    Similarly, Other than Enhancements(Append structures)
    u required access key from SAP.
    IF USEFUL, REWARD POINTS.
    Thank you,
    G.V.K.Prasad

  • How to link EKBE and MKPF tables

    HI all
    plz help me,
    how to link EKBE and MKPF tables
    thanks
    ramesh redddy

    HI,
    EKPO-EBELN =  EKKO-EBELN  has Purchase Documnet no.
    MSEG=MBLNR = MKPF-MBLNR  has material document no
    Link MSEG-EBELN =  EKPO-EBELN ( MSEG purchase prder no and EKPO purhcase document no.)
    and you should have to add one  more table MSEG which is provide three table.
    check this link
    EKPO-EBELN = EKKO-EBELN
    MSEG-EBELN =  EKPO-EBELN
    MSEG=MBLNR = MKPF-MBLNR
    regards,
    PK.

  • How to update ADF VO object to refresh the data in ADF Pivot table

    I need to know how to update the View object so that the date in pivot table is refreshed/updated/filtered.
    here are the steps I performed to create ADF pivot table application using VO at design time.
    1) created a collection in a Data Control (ViewObject in an ApplicationModule) that provides the values I wanted to use for row and column labels as well the cell values (Used the SQL query)
    2) Dragged this collection to the page in which wanted to create the pivot table
    3) In the pivot table data binding editor specified the characteristics of the rows (which attribute(s) should be displayed in header), the columns (likewise) and the cells.
    Now, I have a requirement to update/filter the data in pivot table on click of check box and my question is how to I update the View object so that the date in pivot table is refreshed/updated/filtered.
    I have got this solution from one of the contact in which a WHERE clause on an underlying VO is updated based upon input from a Slider control. In essence, the value of the control is sent to a backing bean, and then the backing bean uses this input to call the "filterVO" method on the corresponding AppModule:
    but, I'm getting "operationBinding" object as NULL in following code. Please let me know what's wrong.
    here is the code
    Our slider component will look like
    <af:selectBooleanCheckbox label="Unit" value="#{PivotTableBean.dataValue}"
    autoSubmit="true" />
    The setDataValue() method in the backing bean will get a handle to AM and will execute the "filterVO" method in that, which takes the NumberRange as the input parameter.
    public void setDataValue(boolean value) {
    DataValue = value;
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = (OperationBinding)bindings.getOperationBinding("filterVO");
    Object result = operationBinding.execute();
    The filterVO method in the AMImpl.java will get the true or false and set the where Clause for the VO query to show values.
    public void filterVO(boolean value) {
    if (value != null) {
    ViewObjectImpl ibVO = getVO1();
    ibVO.setWhereClause("PRODUCT_TOTAL_REVENUE(+) where rownum < 10");
    ibVO.executeQuery();
    }

    Did you define a filterVO action in your pagedef.xml file?
    You might want to read on how to access service method from a JSF Web Application in the ADF Developer Guide for 10.1.3 chapter 8.5

  • How to update the table available in BADI method

    Hi Friends,
    I have to implement one badi ME_REQ_POSTED for purchase requistion, in this badi  I have to read first line item and do
    some check...if that check is true i need to update subsequent line item (line 20, 30, 40 or so) with purchase group and MRP controller.
    In this BADI i have method POSTED, in this method parameter IM_EBAN is a table which i need to modify with my different
    values for purchase group and MRP controller.
    Kindly let me know how to update this table, so the changes can be reflected in purchase requistion.
    Since when I tried to directly modify the table in a loop, system throw one error stating IM_EBAN can not be modified.
    kindly help.
    pradeep

    hi
    I have implemented this exit but it does not stop at it while saving Purchase requistion. But my previous BADI stops at it when saving.
    Kindly guide.

  • How to update the table value in the valuechange event?

    I have an input field in the datatable with the valueChangeListener
    <rich:dataTable id="cart" value="#{cart.cartList}" var="item">
    <h:inputText value="#{item.cost}" id="qty" valueChangeListener="#{items.updateCost}" onchange="submit()">
    <h:outputText value="#{item.errorMsg}"> </h:outputText>
    in the backing bean
         Item item = (Item) model.getRowData();
    // do some update, if the cost too larger, change to max_cost
         item.setCost(max_cost);
         item.setErrorMsg("Error Msg");
    After calling the valuechange method, the screen output doesn't update the cost.
    How to update the table value in the valuechange event?

    As you're misusing the valueChangeListener to set another input field, you need to skip the update model values phase. Otherwise the value set in the valueChangeListener will be overridden by the submitted value. You can do this by calling the FacesContext#renderResponse() inside the valueChangeListener method. This will shift the current phase immediately to the render response phase, hereby skipping the update model values and invoke application phases.

  • How to update the table when change list item in classic report

    hi ,
    i worked with apex 4.2 and i create normal classic report with one select list(named loved)Column ,now i want to update table when user change the list with new value ,i can't create dynamic action to do this,i create check box with primary key and loop for check item to update the table but i can't get the value of list item. and for more speed the user want to do this when change the list value.
    my question
    1- how to do this by javascript and get the value from list item and update the table with new value
    2- is i must use API to create list item so i can get the value of item in report or what.
    Thanks
    Ahmed

    I coded the following to give you direction:
    1. In the "Element Attributes" section of the DEPTNO column, I call a javascript function as:
    onchange = "javascript:updateTable(this);"2. I wrote a simple javascript function that shows an alert when the user changes the select list as:
    <script language="JavaScript" type="text/javascript">
    function updateTable(pThis)
        var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
        alert('Row# - '+ vRow + ' has the value - ' + pThis.value);
    </script>Now, you can call a AJAX on-demand process inside the javascript function to update the database value.

  • How to update one table from another table?

    Hi,
    Please go through the case I am mentioning below and if possible try to provide with a solution.
    I am working on a report to generate cash flow forecast, where in one of the fields is "Payroll", in which its being mentioned as:
    In the selection screen: I am entering Project ID, profit Center and Period(in MM/YYYY format).
    Selection of all entries in table COSP for selected cost elements above, value type 1, version , all periods and for all selected WBS elements and all objects underneath.
    From this, update table COFP with information from COSP with value type 62 and same period.
    For updation of various fields the following information is being given.
    How should we update COFP?
    New entries per OBJNR/PERIO and HKONT are required via using the information from COSP:
    COFP-MANDT              =          SY-MANDT
    COFP-KOKRS              =          if COSP-OBJNR begins with ‘PR’
                                                   Check table PRPS with COSP-OBJNR = PRPS-OBJNR and enter PRPS-PKOKR
                                                    If COSP-OBJNR begins with ‘NV’
                                                   Check table AFVC with COSP-OBJNR = AFVC-OBJNR,
    go to Table AFKO with AFVC-AUFPL,
    go to table AUFK with AFKO-AUFNR and enter AUFK-KOKRS
    If COSP-OBJNR begins with ‘OR’
    Check table AUFK with COSP-OBJNR = AUFK-OBJNR
    and enter AUFK-KOKRS
    COFP-BELNR               =          Check table NRIV, CLIENT = SY-MANDT, OBJECT = RK_BELEG,
    SUBOBJECT = COFP-KOKRS, NRRANGENR = ‘05’,
    Add 1 to NRLEVEL and begin with 500000000
    Use same BELNR for one update-run
    COFP-BUZEI                =          ‘1’ + and 1 in next entry but same update-run
    COFP-TWAER              =          COSP-TWAER
    COFP-ZHLDT                =          always last day of month in field COFP-PERIO
    COFP-GJAHR               =          COSP-GJAHR
    COFP-PERIO               =          if entry in field WKG001 à PERIO = 001
                                                   If entry in field WKG006 à PERIO = 006……
    COFP-WRTTP              =          ‘62’
    COFP-VRGNG              =          ‘FIPL’
    COFP-POSIT                =          Check table SKB1 where SAKNR = COSP-KSTAR and use SKB1-FIPOS
                                                   for going to table FMCI-FIPOS and enter FMCI-POSIT
    COFP-OBJNR               =          COSP-OBJNR
    COFP-HKONT              =          COSP-KSTAR
    COFP-WKGBTR           =          WKGXXX
    COFP-WKGBTRO         =          -
    COFP-WTGBTR            =          WTGXXX
    COFP-WTGBTRO         =          -
    COFP-WOGBTR           =          WTGXXX
    COFP-WOGBTRO        =          -
    COFP-BUKRS1            =          -
    COFP-GJAHR1             =          -
    COFP-BELNR1             =          -
    COFP-BUZEI1              =          -
    COFP-BUKRS2            =          -
    COFP-GJAHR2             =          -
    COFP-BELNR2             =          -
    COFP-BUZEI2              =          -
    COFP-EBELN               =          -
    COFP-EBELP               =          -
    COFP-ZEKKN               =          -
    COFP-ETENRM            =          -
    COFP-STUNR               =          -
    COFP-LIFNR                =          -
    COFP-KUNNR              =          -
    COFP-GSBER              =          -
    COFP-BUKRS              =          (nearly same as COFP-KOKRS!)
                                                   if COSP-OBJNR begins with ‘PR’
                                                   Check table PRPS with COSP-OBJNR = PRPS-OBJNR and enter PRPS-PBUKR
                                                    If COSP-OBJNR begins with ‘NV’
                                                   Check table AFVC with COSP-OBJNR = AFVC-OBJNR,
    go to Table AFKO with AFVC-AUFPL,
    go to table AUFK with AFKO-AUFNR and enter AUFK-BUKRS
    If COSP-OBJNR begins with ‘OR’
    Check table AUFK with COSP-OBJNR = AUFK-OBJNR
    and enter AUFK-BUKRS
    COFP-EINDT                =          -
    COFP-SGTXT               =          -
    COFP-GEBER              =          -
    COFP-KURSF              =          -
    COFP-KUFIX                =          -
    COFP-GBETR              =          -
    COFP-KURSR              =          -
    COFP-KURSFIKRS       =          -
    COFP-KZKRS               =          -
    COFP-UMBKZ              =          -
    COFP-KBLNR               =          -
    COFP-KBLPOS            =          -
    COFP-HI FIVOR            =          -
    COFP-LO FIVOR          =          -
    COFP-HI ACCOUNT      =          -
    COFP-LO ACCOUNT     =          -
    COFP-HI LIFNR            =          -
    COFP-LO LIFNR           =          -
    COFP-HI KUNNR          =          -
    COFP-LO KUNNR         =          -
    COFP-XDELETE           =          -
    COFP-HI XOPVW         =          -
    COFP-LO XOPVW        =          -
    COFP-ZAEHK               =          -
    COFP-CHAINBELNR     =          -
    COFP-MWSKZ             =          -
    COFP-LEDNR               =          -
    COFP-BELTP               =          ‘1’
    COFP-VERSN              =          ‘0’
    COFP-OWAER             =          COSP-TWAER
    COFP-CPUDT               =          SY-DATUM
    COFP-CPUTM              =          SY-TIME
    after doing updation, its again saying Selection of all entries in table COFP with value type 51 to 62, selected year, selected cost elements above and for all selected WBS elements and all objects underneath. Summarisation by period.
    Now, can someone help me as how to proceed with the entire thing? An elaborate and illustrative answer would be highly appreciable.
    If you require any other information....then get back to me ..asap.
    Its bit urgent.
    Thanks & Regards,
    Ravi

    Hi
    update <table> from <i_tab>
    for different conditions.
    loop at i_cosp.
    if cosp-mandt eq sy-mandt and  cosp-objnr eq 'PR'.
    Read table i_PRPS with key  i_PRPS-OBJNR = i_COSP-OBJNR.
    if sy-subrc eq 0.
    update PRPS set PKOKR = ? where objnr = i_prpr-objnr.
    endif.
    endif.
    similarly for all the conditions
    Regards
    Message was edited by: Harikishore Sreenivasulu

Maybe you are looking for

  • Where can I get a bona fide Acrobat Pro 7. I have a legal key and don't need the latest versions

    I am a Lightroom and Photshop user. And  sometimes I use Acrobat for simple things. In moving to a new computer I somehow lost my Acrobat Pro 7. I still have a legal key for it and don't need it for much. So I not looking forward to paying € 25, - pe

  • Help required on extracting information from Forum

    Hi All, We have a requirement for a KM initiative to extract below information from Forum 1)User's Q&A Threads from Oracle Forums. 2)User's Tag [From Aria] related threads from Oracle Forums Can some please provide some input/pointers on how data can

  • Loading different banners into html file depending on screen width? (Responsive)

    I have a html file that has my banner in it. I call my banner into the html file with this script in the head section: <script type="text/javascript" charset="utf-8" src="banner_edgePreload.js"></script> I also have a second banner called banner2. So

  • Oracle Service Bus: Monitoring/Tracking Consumer Services?

    Hi, since we have a Oracle Service Bus and a Oracle Service Registry, is there any standard solution for tracking which consumer services/applications are accessing which provider services? What we need is monitoring the applications (consumer) which

  • BI process chain problem

    hi, In BI, we are using process chain for uploading the data from CRM to BI. In process chain, when we are schedulling it at any point of time the job is not getting displayed in sm37 as well as the chain is not getting strarted at scheduled time. Wh