Updating NETPR field of table EINE using BAPI

Hello All,
I have a requirement to update info record data in tables EINE, EINA, KONP. The fields to be updated are KSCHL, KBETR and NETPR. I am able to successfully update KBETR and KSCHL fields using bapi BAPI_PRICES_CONDITIONS. But I am unable to find any field in the bapi structures that would update NETPR field.
Request you to please suggest how can I update NETPR successfully in table EINE.
Thanks in advance.
Anand

Hi Anand,
                     Use the Function Module 'ME_DIRECT_INPUT_INFORECORD' to update/change the info record values.
Pass the netpr value in ls_eine structure.
To get better understanding on using this function module, please have a look on this link
Create new inforecord with standard-condition via FM
Regards,
Arun Prasath Kumar.
Edited by: Arun Prasath Kumar on Jan 17, 2011 12:09 PM

Similar Messages

  • Updating Custom field in Table BUT000 using BAPI 'BAPI_ISUPARTNER_CHANGE'.

    Hi,
    I have added a new custom field in table BUT000. Now i want to update that field with 'X' and i have used EXTENSIONIN parameter in the BAPI 'BAPI_ISUPARTNER_CHANGE'. i have populated the field name(Custom field name) and value 'X' to that structure and passed to BAPI. But that field value was not getting updated. So can any one help me how to resolve this issue.
    Thanks,
    Sushma

    Hi Ravi,
    Thanks for your response.
    I have passed the Structure name  in parameter EXTENSIONIN, but still i am facing the same problem.
    Thanks,
    Sushma

  • Update PRODH field from table T179T

    hi,
    i want to update PRODH field from table T179T into table VBRP. for this we
    need to take selection option also.
    selection option will be :
    ·             Sales Organization (field VBRK-VKORG)
    ·       Billing Date Range (VBRK-FKDAT)
    ·       Distribution Channel (Vbrk-vtweg
    while i have done this for one field by using hard code but like:
    TABLES: VBRP.
    CLEAR VBRP.
    UPDATE VBRP SET PRODH = 'PLC01' WHERE VBELN = '0008300051'.
    SELECT SINGLE * FROM VBRP WHERE VBELN = '0008300051'.
    WRITE: VBRP-VBELN,VBRP-PRODH.
    but this is not the right way. please guide me how to solve this.

    TABLES: VBRP.
    CLEAR VBRP.
    UPDATE VBRP SET PRODH = 'PLC01' WHERE VBELN = '0008300051'.
    <b>commit work.</b>
    SELECT SINGLE * FROM VBRP WHERE VBELN = '0008300051'.
    WRITE: VBRP-VBELN,VBRP-PRODH.
    use commit work after update statement.
    But this code would make vbrp-vbeln as plc01 only.
    If you want to get the prodh value from t179t, then write a sleect on t179t and then update.
    TABLES: VBRP.
    CLEAR VBRP.
    select single prodh
      from t179t
    where......
    UPDATE VBRP SET PRODH = t179-prodh WHERE VBELN = '0008300051'.
    commit work.
    SELECT SINGLE * FROM VBRP WHERE VBELN = '0008300051'.
    WRITE: VBRP-VBELN,VBRP-PRODH.

  • How to Update PO(ekko and ekpo) by using Bapi

    Hi Experts,
    I am very new in Abap ,I want to update some fields of Purchase order through Bapi.
    In  Selection screen  i need these things,
    PO Number ,  material, Delivery date
    and i want to update the below fields of  Purchase order(PO)
    1.   Street/House number  ,Postal Code/City  in header level (Give any dummy values for street/house number city  and postal code)
    2.  PO quantity, Delivery date , net price  for all items which has matching material as in selection screen
    and i am not giving data from excel sheet ,,i am giving data directly or through selection screen for the above mentioned fields.
    please give me some solution or sample code so that i can do it.
    Thankx in advance..
    Ritesh

    First declare the header and item structure to pass the values to FM. Now the values that you enter in selection screen are captured in internal table. So you can loop this internal table and pass the values to function module item and header details.
    EX:
    Decleration
    DATA: PO_HEAD TYPE BAPIMEPOHEADER,
               PO_HEADX TYPE BAPIMEPOHEADERX,
               PO_ITEM TYPE BAPIMEPOITEM OCCURS 0 WITH HEADER LINE,
               PO_ITEMX TYPE BAPIMEPOITEMX OCCURS 0 WITH HEADER LINE,
               COUNT TYPE I VALUE 1,
               RETS TYPE BAPIRET2 OCCURS 0 WITH HEADER LINE.
    Pass the values to po_head po_headx po_item po_itemx.
    loop. selection screen internal tables
    append . Append the internal tables
    endloop.
    now call the bapi and pass the values.
    CALL FUNCTION 'BAPI_PO_CHANGE'
       EXPORTING
         PURCHASEORDER                = PO_NUM
    *   POHEADER                     =
    *   POHEADERX                    =
    *   POADDRVENDOR                 =
    *   TESTRUN                      =
    *   MEMORY_UNCOMPLETE            =
    *   MEMORY_COMPLETE              =
    *   POEXPIMPHEADER               =
    *   POEXPIMPHEADERX              =
    *   VERSIONS                     =
    *   NO_MESSAGING                 =
    *   NO_MESSAGE_REQ               =
    *   NO_AUTHORITY                 =
    *   NO_PRICE_FROM_PO             =
    * IMPORTING
    *   EXPHEADER                    =
    *   EXPPOEXPIMPHEADER            =
      TABLES
        RETURN                       =  RETS
        POITEM                       = ITEM
        POITEMX                      = ITEMX
    *   POADDRDELIVERY               =
    *   POSCHEDULE                   =
    *   POSCHEDULEX                  =
    *   POACCOUNT                    =
    *   POACCOUNTPROFITSEGMENT       =
    *   POACCOUNTX                   =
    *   POCONDHEADER                 =
    *   POCONDHEADERX                =
    *   POCOND                       =
    *   POCONDX                      =
    *   POLIMITS                     =
    *   POCONTRACTLIMITS             =
    *   POSERVICES                   =
    *   POSRVACCESSVALUES            =
    *   POSERVICESTEXT               =
    *   EXTENSIONIN                  =
    *   EXTENSIONOUT                 =
    *   POEXPIMPITEM                 =
    *   POEXPIMPITEMX                =
    *   POTEXTHEADER                 =
    *   POTEXTITEM                   =
    *   ALLVERSIONS                  =
    *   POPARTNER                    =
    *   POCOMPONENTS                 =
    *   POCOMPONENTSX                =
    *   POSHIPPING                   =
    *   POSHIPPINGX                  =
    *   POSHIPPINGEXP                =
    *   POHISTORY                    =
    *   POHISTORY_TOTALS             =
    *   POCONFIRMATION               =
       CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    * EXPORTING
    *   WAIT          =
    * IMPORTING
    *   RETURN        =
    Hope it helps.
    Regards,
    K.Srikanth Reddy.

  • Update the table SCMG_T_CASE_ATTR using BAPI

    Hi Experts,
    I have query regarding bapi BAPI_DISPUTE_ATTRIBUTES_CHANGE.
    what are the values to be passed in attribute of tables section.
    I have pass field name as 'closed_by' (of table SCMG_T_CASE_ATTR) in parameter of bapi (ATTR_ID).
    And attr_value field with 'test'.
    Please help me to update a field value like 'closed_by' of SCMG_T_CASE_ATTR using this bapi.
    Thanks in advance,
    Sahil

    Hi Cristobal,
    Thanks for helping me, however the function does not give me any results, the problem is that this document is a linked object, and not an attachment.
    Thanks for your help.
    Best regards,
    Adriana

  • How to update delivery block in delivery(vl02n) using BAPI

    hi all,
    i have to update delivery block of a delivery using a BAPI. can any one suggest which bapi i have to use. and if possible let me know what are the mandatory fields that i have to fill in that bapi.
    thank you all in advance

    HI,
    Use the BAPI BAPI_OUTB_DELIVERY_CHANGE..
    Pass the delivery number DELIV_NUMB in both HEADER_DATA and HEADER_CONTROL..
    In HEADER_DATA-DLV_BLOCK pass the delivery block.
    In HEADER_CONTROL-DLV_BLOCK_FLG pass 'X'
    Thanks
    Naren

  • Updating custom field in table EKKO within user exit when PO is saved

    I am trying to update a custom field in table EKKO when a PO is saved.  I am using FM EXIT_SAPMM06E_013, within enhancement MM06E005.  Since EKKO is not a table that can be updated with this user exit, I am using a technic that I read about on SDN where I assign a field symbol to the calling program variable and then am able to access data within EKKO table.  But when I pass this data back into the field symbol, for some reason this field is not getting saved when the PO is saved.  In debug mode, it looks like this field is getting updated, but when I look in the table after the PO is saved, it is not there.  My code sample is below.  What I am doing wrong?
    data:
      CHAR(50) VALUE '(SAPLMEPO)EKKO-ZHDRCSTCENTER',
      g_zhdrcstcenter like ekko-zhdrcstcenter,
      FIELD-SYMBOLS <F1> type any.
    if i_ekko-ekorg = '5401'.
      ASSIGN (char) to <F1>.
      g_zhdrcstcenter = <F1>.
      move '0000113322' to g_zhdrcstcenter.
      <F1> = g_zhdrcstcenter.
    endif.
    Thanks!
    Sarah Smyth.

    Firstly, have you investigated using EXIT_SAPMM06E_008 to set any custom fields you have added in the EKKO_CI / CI_EKKODB structure?.. that might work more easily.
    In terms of doing an assign back into a calling program's memory, it can work but it's probably worth setting a break point in your code then stepping through watching the values in EKKO - sometimes you can find subsequent code that re-writes an earlier copy of values back into the structure, thereby preventing you doing your change...  SAP does warn this method is for "internal use".  Also check in your debugger that it's SAPLMEPO and not SAPMM06E you need.

  • How to update VBFA while sales order creation using BAPI

    Hi,
    I am trying to create sales orders for each schedule line items while inquiry creation.
    This I have done in the user exit in the VA11 program MV45AFF using BAPI "BAPI_SALESORDER_CREATEFROMDAT2".
    along with the Inquiry, Sales orders are also getting created. But I am facing 2 problems.
    1) BAPI is not returning the sales order number to the program but when checked from SE37 it is returning the sales order   
        number.
    2) It is not updating the VBFA (SD flow) table.
    Regards,
    Krishna.

    Hello,
    1) BAPI is not returning the sales order number to the program but when checked from SE37 it is returning the sales order
    number.
    - are you passing simulation parameter (TESTRUN) as 'X'
    2) It is not updating the VBFA (SD flow) table.
    - Please use BAPI_SALESDOCUMENT_COPY for copying and updating VBFA table
    Thanks
    Krish

  • Adding field to Table Control using screen exit

    Hi Folks,
    I have a requirement of adding a field in Table control of Standard SAP transaction also updating the same in standard SAP database table.
    The field is also not existing in the table, it is also added to the table using Append Structure.
    Will this be possible using some Screen Exit?
    Thanks in Advance.
    Punit

    Hi Punit,
    There are various screen user exits(QQMA0001,QQMA0008,QQMA0010,
    QQMA0011,QQMA0012) available for this transaction but all are related to adding a subscreen.So, I am not very sure whether we can modify a table control for this transaction. So, If possible if u r requirement still can be acheived with creation of a subscreen then it would do only if the exits which were mentioned above belongs to u r main screen..
    Regards,
    Swaroop

  • Insertion / Update of field of type "TIME" using Native SQL

    Hi ABAP gurus,
    We are trying to perform inserts and updates within an ORACLE table where a TIME field exists without suscess. We are trying to code it using Native SQL.
    EXEC SQL.
    INSERT INTO table (field1[name], field2[age], field3[birthday], field4[hour])
    VALUES (:name, :age, TO_DATE(:date_birth), ¿:hour?)
    ENDEXEC.
    EXEC SQL.
    UPDATE table SET field3[birthday] = TO_DATE(:date_birth), field4[hour] = ¿:hour?
    WHERE field1[name] = :name AND field2[age] = :age
    ENDEXEC.
    Which is the right coding sentence in order to achieve our goal?
    Many thanks in advance. Best regards,
       Imanol

    >
    Imanol Beguiristain wrote:
    > Hi all,
    >
    > I am sorry for being unclear.
    >
    > I do want to code both INSERT and UPDATE. That is clear.
    >
    > The problem we are having is that we don't know how to code (using Native SQL) such instructions using in the SQL sentence a field of TIME type.
    >
    > Any helps?
    >
    > Thanks in advance.
    >
    >   Imanol
    I've not heard of an Oracle TIME datatype; we used to use the timestamp which is stored as part of the date or we set up a separate column to hold the time defined as CHAR.  Still, it is possible that they have created such a thing since I last did SQL.  In which case, there would have to be a function like TO_DATE which you would use to convert your time to its time format.
    If you mean TIMESTAMP you can use something like the following to do the data conversion.
    TO_TIMESTAMP(LOCALTIMESTAMP, 'DD-MON-RR HH.MI.SSXFF')

  • Adobe Interactive - Problem Updating Form Fields within tables

    I am working with Interactive forms. My scenario is I download the form, update, upload to the Web and then submit to the backend, I am basically use a blend of the tutorials available. From a Web Dynpro perspective all is working well.
    The problem I am having is in the Form itself.
    I have 10 fields which I want the user to update.  Fields which are bound at Page Level, work fine. e.g.
    <CONTEXT>.<PAGE>.<FIELD>::Change
    Data_Source.Page1.Langu::Change
    However Fields in a table do not seemed to work properly. e.g.
    <CONTEXT>.<PAGE>.<TABLE>.<ROW[x]>.<CELL[y]>.<FIELD>::Change
    Data_Source.Page1.tblCusDetails.Row[0].Cell[1].Name
    If I perform an update in the form Langu works well, Name does not.
    e.g. Page1.Langu.rawValue = "EN"                             This works OK
           Page1.tblCusDetails.Row[0].Cell[1].Name = "Andrew "            This does not work.
    I got round this issue by searching for the attribute at runtime.
    Now (Based on my scenario) I am trying to update my form;
    I download the form to the front end. Update and save. When I open the form again only Langu has saved, Name reverts back to <Emtpy>.
    My workaround would be to remove all the tables, which I will start now, but  I am wondering if I am doing something wrong or if its a bug in the form,?
    Can anyone help?
    Andrew

    Hello Bhavik:
    Thank you, for your quick response.  To be honest, I went through the tutorial from SAP TechEd, "Creating Interactive Forms in Web Dynpro for JAVA, and it is drving me crazy.
    I did create under the Contect actually Value Node:
    DataSource and within that two Value Node for PersonalData and TravelData.  For PersonalData, the following Value Attribute: CostCenter, Department, Name etc etc........
    The properties is already set for the value attributes to string, I tried to change it to init it will not take it? 
    Please call me Amr.  Thank you,

  • Updated a field in table fkkvkp

    Hi Guys
    I am trying to make changes to the address field in table fkkvkp. My program works in development but does not work in QA.
    Can any one explain why this is happenning.The internal table is populated correctly.Please see code below.
    SORT gt_itab BY vkont.
      LOOP AT gt_itab.
        CLEAR: gt_contractaccountdata,
               gt_contractaccountdatax.
        UNPACK gt_itab-adrnb TO gt_contractaccountdata-addr_no.
        APPEND gt_contractaccountdata.
        gt_contractaccountdatax-addr_no = 'X'.
        APPEND gt_contractaccountdatax.
        READ TABLE gt_contractaccountdata INDEX 1.
        READ TABLE gt_contractaccountdatax INDEX 1.
        CALL FUNCTION 'BAPI_ISUACCOUNT_CHANGE'
          EXPORTING
            contractaccount      = gt_itab-vkont
            partner              = gt_itab-gpart
            contractaccountdata  = gt_contractaccountdata
            contractaccountdatax = gt_contractaccountdatax.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
        REFRESH: gt_contractaccountdata,
                 gt_contractaccountdatax.
      ENDLOOP.

    Hi,
    Have you compared versions between the one in development and in QA.
    Also, Check if there are missing transports and the transports imported successfully.
    Also, Try using wait parameter in the transaction commit. Normally, because of volume of data, it may take some time to get updated in the database.
    Title you have provided is not correct
    Hope it helps.
    Sujay
    Edited by: Sujay Venkateswaran Krishnakumar on Sep 6, 2010 3:42 PM

  • Updating eurou field of table dfkkop

    Hi all,
    I need to update the EUROU field of table DFKKOP. Can anyone tell me about a BAPI or function module for the above
    functionality.
    Thank u.
    Sudipta Das

    I think FKK_DOCUMENT_CHANGE will work.

  • Updating Loading Group on plant record using BAPI

    I am using BAPI to extend to a plant
    BAPI_MATERIAL_SAVEDATA
    I am passing                     
      plantdata-loadinggrp   = wa_plantdata-loadinggrp.
      plantdatax-loadinggrp  = 'X'.
      plantdata-plant        = p_p_plant.
      plantdatax-plant       = p_p_plant.
    At the time of the BAPI call the data is in the table
    All other plant data gets created except for this loading group field (Sales/general plant)  and only when I am usign a specific plant.   It works fine for other plants
    Anybody know any config or setting related to this ?

    solved it

  • BADI or User exit  for FB50 to update custom field in table COEP

    Hi all,
    i have added one custom field in table COEP through include CI_COBL .
    when i do posting through sales order(VA02) or purchase order(ME22n) that custom fields in COEP get updated with controlling document
    and through BADI AC_DOCUMENT i m updating that custom field in COEP.
    but when i do manual posting through FB50 controlling document is generated in COEP but i m not able to update that custom field
    because in this case BADI AC_DOCUMENT  is not get triggered.
    is there any BADI or User exit or enhancement spot for FB50 through which i can update that custom field in table COEP

    Hi Sandy,
    Thanks for u r reply,
    RFAVIS01 is not getting triggered through FB50
    and F180A001 ( EXIT_SAPLF048_001) is getting triggered but it doesnt contain COEP field in its parameter
    import - F180A_DOC_HEAD_TAB
                 F180A_DOC_ITEM_TAB
    changing - RELATION_TAB

Maybe you are looking for

  • Maximum amount of DDR400 mem on MS-6728 board

    I was wondering if my MSI 865Pe Neo2-LS board is able to work with four modules of 1Gb DDR400 memory in dual channel mode without reducing the speed automatically to DDR333 (some websites indicate this). In "Test Results" on the support page of my ma

  • Goods receipt for import material

    Dear all, The excise tab does not appear during goods receipt of imported material. But when are doing the goods receipt for domestic material the tab does appear. Even after posting goods receipt and while trying to capture excise details in J1IEX i

  • I-Tunes upgrade failed and has given me errors.

    Yesterday I attempted to upgrade I-tunes when prompted however the upgrade was unsuccessful and has caused errors.  Today when I booted up my computer I got runtime errors and was unable to open I-tunes as a .dll file was missing.  The error message

  • One ssid to multiples vlan without hreap, flex connect

    Hi my name is Ivan I have a question about a wireless solution I have one cisco wlc 2112 with ios 7.0.230.0 with license to support 12 access points. My access points are nine (9) lap1231ag  and one (1) lap1310 I just have one wlan (ssid). My scenari

  • How to set InDesign CS5 as the default in the system having InDesign CS4 has the default ?

    How to set InDesign CS5 as the default .indd application when you have InDesign CS4 and CS5 installed and InDesign CS4 is the current default (InDesign CS4 was installed after CS5 installation)