Deleting field value using bapi

Hi all,
I want to delete a field VBAP-FIXMG from a report because it is wrong fixed.
but i want to delete it using a bapi.
can any one help me out which bapi to use and how to use it.
thanks.

Hi,
Use the BAPI " BAPI_SALESORDER_CHANGE". U can check the docuemntation of it and also where used list to see if we can use the bapi.
Regards,
Nagaraj

Similar Messages

  • Reading deleted field values using change pointer

    hi
    i am triggering DEBMAS06 using change pointer technique for XD01/02/05/06 transactions.
    now when i delete data(make nulll values) in partner functions the generated IDOC is not showing the complete field itself.when i am deleting the field value and making it null the IDOC must send the fields with null values.but unable to trace out how to do this.
    can anyone let me know how to handle this situation?
    and i have extended DEBMAS06 with customer hierarchy data i.e. KNVH.i have written change pointers.now how can i populate these fields into my extension?

    Hello Moorthy,
    1. This message function in the Idoc is populated as 005 then it should replace the entrire values while posting,
    2. To populate KNVH extension you have to populate this only if you have KNVV data.. so you can either create enhance menti perfrom FILL_SEGMENT_E1KNVVM i(nf Function moduler MASTERIDOC_CREATE_DEBMAS) inclduer LVV01F01. or you can write the logic in BAdi CUSTOMER_ADD_DATA->FILL_ALE_SEGMENTS_OWN_D or in user eixt EXIT_SAPLVV01_001.
    Regards
    Naresh

  • Check list field values using LINQ

    I have to check if the CURRENT USER is already in the list USERS by comparing his AccountName to the list field ACCOUNTNAME.
    If the USER is on the list I have to check if the field IsFollower is YES or NO and change it according to some conditions.
    I think LINQ would be the correct way of doing this but I have no clue how to do that.
    Any ideas pls, thanks

    Hi,
    Yes, you can query the list using LINQ.
    You need to get the SPList Object firstly, and then you can query list item value using LINQ.
    More information about how to check list field value using LINQ:
    http://msdn.microsoft.com/en-us/library/office/ee538250(v=office.14).aspx
    http://www.wolfsys.net/query-sharepoint-lists-with-linq/
    http://geekswithblogs.net/TanviBlog/archive/2013/06/06/linq-in-sharepoint-and-querying-list-items.aspx
    More information about how to use Server Object Model in SharePoint lists:
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splist.aspx
    http://msdn.microsoft.com/en-us/library/office/ms456030(v=office.14).aspx
    Best regards

  • Issue facing : Deletion of Qualified Look up field value : Using Import Map

    Hi All,
    We are having qualified multi-valued look up field in the main table. Using import map for the main table record update, we are trying to delete the qualified look up field value. But it is not working.
    Please guide on how you have achieved this.
    One approach is to supply NULL value, though I am not sure or have tried this.
    Regards,
    Ganga

    Hi Ganga,
    I assume that you are trying to delete the Qualifier values for the Qualified look up table. The only possibility is to pass the Null values to the already Existing records in the Main table. Please note that if you are passing one Null value only one record will get deleted. So you will have to pass the Null values equivalent to the number of values for the Multi Valued Qualified table.
    Kind Regards,
    Thamizharasi N

  • WebDynpro -  How to pass a single field value to BAPI table?

    Hello,
    I have just come from WebDynpro ABAP training and being a novice hit my first issue right away.
    I need to use BAPI - BAPI_CONTRACT_CREATEFROMDATA to create SD contract (I have used this BAPI to create a service call inside Webdynpro). I have two required fields: contract start and end dates. These fields passed in a table called CONTRACT_DATA_IN.
    When I use the fields from the structures or individual fields, all I need to do is just put them on the view, and when I hit my submit button they will be passed to the BAPI. They are a part of COMPONENTCONTROLLER context (I have also mapped them in View context), but tables are obviously different.
    Is there any way to pass data to tables as seamlessly without any code as for structures? Or do I need to write code to get the values from the input fields and then populate the table manually?
    Thanks,
    Alex

    Hi,
    Single customer contract creation use the struture-
    If you want to pass only one record then using the input fields for those 2 fields we can pass them to BAPI and then create the Customer Contract. This will work for only one record of customer contract.
    then we can directly read these input fields and pass to BAPI.
    Creating many customer contracts -
    For example, If you want to provide the group of records at a time and then you want to create the cusotmer contracts for so many records then you fill these fields and pass them to table then pass this table to the tables parameters of that BAPI.
    Here we need not create the Table UI element separate input fields would serve the purpose.
    Now we can create the batch of contracts for N customers.
    these input fields of a customer will be passed to table, then next set of input fields etc.
    For this create the Table UI element and fill all the records and then pass it to the Tables of the BAPI.
    Regards
    Lekha

  • Delete field value with DTW

    Does anyone know how to delete a value in a field with DTW?
    For example:
    I want to use DTW to Update my BPs to delete the the Foreign Name for each BP.
    Any thoughts?

    Suda,
    Thanks for the reply.  That was my assumption, but I was hoping I was missing something.
    On that note, besides going into SQL, are you aware of any solution that can delete large amounts of records at once?
    i.e. Deleting all BP Catalogs?

  • Accessing recordset field values using labview Active X

    dear friends,
    i have opened recordset using labview active X Refenum opening dbengine,workspace ,opendatabase,openrecordset
    i need to access the field value from the record
    but labview doesnot show any propery or methods that r related to fields ,except count.
    in short i am looking for a code statemant in labview which is equivalent to VB
    Recordset.Fields("Name").Value or Recordset.Fields(Index).Value
    can anybody help
    thanks in advance
    regards
    shridhar joshi

    try something like this .
    "shridharjosh" wrote in message
    news:[email protected]..
    > dear Ben Schulte
    > i am using MS Access Database and i opened
    > Acitve X class and necessary database connection parameters
    >
    > thing is Fields is a collection in VB and
    > has a two default properties 1-Count 2-Index
    >
    > I am Able to get count property but un succesfull in accessing index
    > this is important inorder to acces the value of a individual field in
    > a recordset
    > i am attaching data vi with this please ahve a look at it
    >
    > thanks in advance
    [Attachment Fields.PDF, see below]
    Attachments:
    Fields.PDF ‏175 KB

  • How to Set Field value using javascript?

    I have a Field in First Page called 'SO'. I want to populate this field from the field value of SD_ITEMS.DATA.VBELN first row in the each page. Please help me with javascript to set this value.
    Thank you.
    Ranji

    I have a Field in First Page called 'SO'. I want to populate this field from the field value of SD_ITEMS.DATA.VBELN first row in the each page. Please help me with javascript to set this value.
    Thank you.
    Ranji

  • Custom fields update using BAPI: BAPI_SALESORDER_CHANGE

    Hi,
          I have append one field into VBAP Table, and i want to update that filed value by using BAPI_SALESORDER_CHANGE FM. I have done all the coding but still its not updating the table. I have checked with SAP fields like order quantity, its upadating the database but the custom fileds are not upadting.
    steps i have done:  Append field to :           VBAP,BAPE_VBAP,VBAPKOZ
                                   Append Check field to : BAPE_VBAPX,VBAPKOZX
    Here is the code : plz check and add ur comments
      DATA : l_wa_bapiparex        TYPE bapiparex,
             l_wa_ord_header        TYPE bapisdh1x,
             l_itab_bapiparex      TYPE STANDARD TABLE OF bapiparex INITIAL SIZE 0,
             l_itab_return         TYPE STANDARD TABLE OF bapiret2   INITIAL SIZE 0,
             l_wa_item              TYPE bapisditm,
             l_itab_item           TYPE STANDARD TABLE OF bapisditm  INITIAL SIZE 0,
             l_wa_itemx             TYPE bapisditmx,
             l_itab_itemx          TYPE STANDARD TABLE OF bapisditmx INITIAL SIZE 0,
             ORDER_HEADER_IN       LIKE BAPISDH1.
      l_wa_ord_header-updateflag = 'U'.
      ORDER_HEADER_IN-REF_DOC = '0000000244'.
    *Populate Item detail
      l_wa_item-itm_number = '000010'.
      l_wa_item-NET_WEIGHT = '5000'.
      APPEND l_wa_item TO l_itab_item.
    *Populate Item detail checkbox
      l_wa_itemx-itm_number = '000010'.
      l_wa_itemX-NET_WEIGHT = 'X'.
      l_wa_itemx-updateflag = 'U'.
      APPEND l_wa_itemx TO l_itab_itemx.
      l_wa_bapiparex-structure = 'BAPE_VBAP'.
      l_wa_bapiparex-valuepart1+0(10) = '0000000244'.
      l_wa_bapiparex-valuepart1+10(6) = '000010'.
      l_wa_bapiparex-valuepart1+16(15) = 'ABCDEF'.
      APPEND l_wa_bapiparex TO l_itab_bapiparex.
      CLEAR l_wa_bapiparex.
      l_wa_bapiparex-structure = 'BAPE_VBAPX'.
      l_wa_bapiparex-valuepart1+0(10) = '0000000244'.
      l_wa_bapiparex-valuepart1+10(6) = '000010'.
      l_wa_bapiparex-valuepart1+17(1) = 'X'.
      APPEND l_wa_bapiparex TO l_itab_bapiparex.
      clear l_wa_bapiparex.
      CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
        EXPORTING
          salesdocument    = '0000000244'
          order_header_in  = ORDER_HEADER_IN
          order_header_inx = l_wa_ord_header
        TABLES
          return           = return
          order_item_in    = l_itab_item
          order_item_inx   = l_itab_itemx
         schedule_lines   = l_itab_schedule
         schedule_linesx  = l_itab_schedulex
          extensionin      = l_itab_bapiparex.
    IF SY-SUBRC = 0.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          = 'X'
    IMPORTING
      RETURN        =
    ELSE.
       RAISE ERROR.
    ENDIF.
    I HAVE GONE THROUGH DEBUGGING AND FOUND ALL ARE GOING FINE...ITS UPDATING VBKOM AND VBKOMX STRUCTURE BUT AT LAST ITS NOT UPDATING THE CUSTOM FIELDS
    Thanks,
    Baidya

    Sorry guys........this code is correct one.......there is a problem in IDES....i tried in client server its working fine
    If anyone is having this type of requirement then copy this program.
    thanks,
    Baidya

  • Get form field value using an offset

    I have a Form created using Perl that has a table with a row for each invoice in a large table. I display all the rows in a table and allow the user to edit some info for each record:
    for ($item_cntr = 0; $cntr < $record_cnt; ++$item_cntr)
    { print qq(<tr>
    <td><input type="text" name="c_freight_$item_cntr" value="$i_freight[$item_cntr]" onBlur="linetotal($item_cntr)" ></td>
    <td><input type="text" name="c_miscamt_$item_cntr" value="$i_miscamt[$item_cntr]" ></td>
    <td><input type="text" name="c_price_$item_cntr" value="$i_price[$item_cntr]" ></td>
    </tr>);
    I want to create a Function that is called when they change the Freight value and that causes the rows total Price (freight + miscamt = price) to be calculated again (without hitting a Submit button on the Form).
    I created a Function:
    function linetotal(whatline) {
         var fixed_freight = "document.editform.c_freight_" + whatline;
         var fixed_misc = "document.editform.c_miscamt_" + whatline;
    var linetotal = parseFloat(fixed_freight.value) + parseFloat(fixed_misc.value);
    document.editform.c_price_whatline.value = linetotal; } }
    So, if the first row in the table is 0, then the Function is passed "0" and should get the value of the form fields:
    'c_freight_0' and 'c_miscamt_0' and set 'c_price_0' to a new value in the form.
    The fixed_freight is showing that the string it has is correct, but it does not get the value from the form. Any ideas?

    DrClap wrote:
    DrLaszloJamf wrote:
    DrClap wrote:
    Although there are [Java sites|http://www.javaranch.com/] which do have an [HTML and Javascript forum|http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=forum&f=20].
    Don't forget the free hugs forum there, too!
    You must mean [this one|http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=forum&f=44].
    Oh yeah. Are you a JavaRanch regular, Dr.C? I was for a while, but not recently.

  • Set a tabular field value using getElementById().value

    Hi
    I have tried everything and now I hope some of you can help me.!!!
    I have made a tabular report based on a query:
    and I want to copy the value of one field into another field on the same record when clicking on a edit-link field I have made.
    SELECT-statement:
    select rownum ,
    HTMLDB_ITEM.HIDDEN(10, a.itf_tab_col_id ) ||
    htmldb_item.POPUP_FROM_QUERY(11,TRANSFORM_VALUE,
    'SELECT itf_column_name disp,itf_column_name ret
    FROM om_itf_tab_col where itf_table_id=:P73_itf_table' ) TRANSFORM_VALUE,
    HTMLDB_ITEM.TEXT(12,nvl(MAP_ITF_TARGET_ID,-99)) MAP_ITF_TARGET_ID,
    HTMLDB_ITEM.TEXT(13, a.itf_table_id ) itf_table_id,
    HTMLDB_ITEM.TEXT(14, a.itf_column_name ) itf_column_name,
    a.itf_COL_DESCR itf_col_descr,
    HTMLDB_ITEM.TEXT(16,'' ) dummy
    FROM om_itf_tab_col a,
    om_map_itf_target c
    where a.itf_TAB_COL_ID=c.itf_TAB_COL_ID (+)
    I have made this Column-link on the column itf_table_id
    javascript:setValues('#ITF_COLUMN_NAME#','#ROWNUM#');
    function setValues(col, rownum){
    rownum='0002';
    document.getElementById('f16_'+rownum).value = col;
    If I change it like this, It copy the value to the correct field but always to rownumer 1.
    function setValues(col, rownum){
    rownum='0002';
    document.getElementById('f16').value = col;
    }

    Thank you very much for answering me !!!
    I got response but the value always show 'N' even i change it to 'Y'
    I changed the function like this:
    function displayValue(FieldVal)
    alert('Rownum ='+FieldVal+' value=' + document.wwv_flow.f30[FieldVal].value)
    and I get this result when I e.g. changes the value from N to Y on row 3:
    Rownum =3 Value=N
    what do I miss?
    Evelyn

  • Accessing field values using property names

    Hi all,
    I have the following problem:
    I have several hundred simple beans which act as value holders:
    public class MyBean1 {
    private String field1;
    private String field2;
    Getters
    Setters etc.
    Now I have a class which receives the MyBean1 class encapsulated in an Object. I also have access to a list of propertynames i.e. field1, field2 etc.
    Having that info is it possible for me to retrieve the values from the bean without actually instantiating it in my implemantation class.
    I was thinking in the direction of something like a Factory helper class or so but wasn't quite able to figure out how to go about it.
    Any help would be appreciated.
    Regards
    Michael

    >
    Having that info is it possible for me to retrieve the
    values from the bean without actually instantiating it
    in my implemantation class.
    This does not make sense to me. If an object is not instantiated, then it does not exist nor do any of its fields. The operation of obtaining values that do not exist is undefined.
    I think you must mean something else but you need to explain it better.

  • When I get a date field value using the Oracle thin (type 4) JDBC driver...

    ....in 'DD-MMM-YY' format from an Oracle 8i database and pass it in to the java.util.Date() constructor, I get a IllegalArgumentException. This error doesn't occur when I use the type 2 driver, so it is apparently a driver-specific thing. It happens on both Win32 and Linux.
    Has anyone seen this before? Is there a newer version of the Oracle thin (i.e., type 4) driver than is listed here?
    http://web77-02.us.oracle.com/software/tech/java/sqlj_jdbc/content.html
    Thanks,
    Tom
    [email protected]

    Yup, that original post didn't make much sense, did it? Let's try again.
    I've got an EJB app that runs on WebLogic 6.0 (on Solaris in production, on Win2K for development) and accesses an Oracle 8i database. This app currently uses the Oracle type 2 JDBC drivers. All is well.
    So I wanted to see how it would run on Linux. I've got a Redhat 7.1 box handy, so I installed the JDK and WL6.0 and slapped the ear file on there. Problem! Can't deploy because there are no Oracle drivers on this machine!
    Makes sense. So I started looking around, and it seems installing Oracle on a RH 7.1 box involves patching glibc and other such nastiness. So let's just try the type 4 JDBC driver - no glibc patch, no shared object libraries, just good 'ol pure Java talking to Oracle on port 1521.
    Once I had the URLs and whatnot set up, the app connected to the DB just fine, created the connection pool, read some data, etc. But when my app read a date from the DB and instantiates a new java.util.Date object, I got an IllegalArgumentException - i.e., the date can't be parsed.
    "Hmm... that's odd", I thought, so back I went to my trusty Win2K machine, modified my configuration files to use the type 4 driver and - same error! So I switched back to the type 2 driver - and everything works fine, Dates and all. Hmmm.....
    As you correctly state, that Date constructor is deprecated and I should use DateFormats and GregorianCalendars and whatnot instead.
    But has anyone seen this weird behavior before - code that works fine on a type 2 driver starts throwing exceptions when used with a type 4 driver? Anyone have any solutions?
    Thanks much,
    Tom

  • Read selected values from a multi choice field programatically using Microsoft.SharePoint.Client namespace.

    All examples I found refer to classes under Microsoft.SharePoint namespace. However, I have the SharePoint CSOM that only gives me the Microsoft.Sharepoint.Client namespace.
    I need to read the selected values of a multichoice field, but not sure how to do it with classes in the namespace above.
    everthing works, exept the TSQL_x0020_Reference_x0020_Numbe field.
    my code looks like this:
    Webweb = cont.Web;
                cont.Load(web);
                cont.ExecuteQuery();
    Listsstest = web.Lists.GetByTitle("T-SQL
    Code Review Tracking");
    //CamlQuery query = CamlQuery.CreateAllItemsQuery();
    CamlQueryquery =
    newCamlQuery();
                query.ViewXml =
    @"<View>
                               <ViewFields>
                                    <FieldRef Name='Category'/>
                                    <FieldRef Name='Review_x0020_Type'/>
                                    <FieldRef Name='Review_x0020_Start_x0020_Date'/>
                                    <FieldRef Name='Title'/>
                                    <FieldRef Name='Location'/>
                                    <FieldRef Name='Project'/>
                                    <FieldRef Name='Author0'/>
                                    <FieldRef Name='AssignedTo'/>
                                    <FieldRef Name='TSQL_x0020_Reference_x0020_Numbe'/>
                                </ViewFields>
                             </View>"
     ListItemCollectionitems
    = sstest.GetItems(query);
                cont.Load(items);
                cont.ExecuteQuery();
    foreach(ListItemitem
    initems)
                    Output0Buffer.AddRow();
                    Output0Buffer.ReviewStatus = item.FieldValues[
    "Category"] !=
    null? item.FieldValues["Category"].ToString()
    : String.Empty;
                    Output0Buffer.ReviewType = item.FieldValues[
    "Review_x0020_Type"] !=
    null? item.FieldValues["Review_x0020_Type"].ToString()
    : String.Empty;
                    Output0Buffer.ReviewDate =
    DateTime.Parse(item.FieldValues["Review_x0020_Start_x0020_Date"].ToString());
                    Output0Buffer.Module = item.FieldValues[
    "Title"] !=
    null? item.FieldValues["Title"].ToString()
    : String.Empty;
                    Output0Buffer.BranchLocationURL = item.FieldValues[
    "Location"] !=
    null? item.FieldValues["Location"].ToString()
    : String.Empty;
                    Output0Buffer.ProjectName = item.FieldValues[
    "Project"] !=
    null? item.FieldValues["Project"].ToString()
    : String.Empty;
                    Output0Buffer.Author = item.FieldValues[
    "Author0"] !=
    null? item.FieldValues["Author0"].ToString()
    : String.Empty;
    FieldLookupValueflvAssignedTo =
    newFieldUserValue();
                    flvAssignedTo = item.FieldValues[
    "AssignedTo"]
    asFieldLookupValue;
    if(flvAssignedTo !=
    null)
                        Output0Buffer.AssignedTo = flvAssignedTo.LookupValue;
    varv = item.FieldValues["TSQL_x0020_Reference_x0020_Numbe"];
    if(v !=
    null)
                        Output0Buffer.Reason2 = v.ToString();
                 Output0Buffer.SetEndOfRowset();           

    Hi,
    According to your description, my understanding is that you want to read the selected choice field value using Client Object Model.
    In my environment, I create a list with a mutichoice fileld named "choice" and then I used the code snippet below to get the selected value in choice field.
    ClientContext clientContext = new ClientContext("http://sp2013sps/sites/test1");
    Microsoft.SharePoint.Client.List spList = clientContext.Web.Lists.GetByTitle("list1");
    clientContext.Load(spList);
    clientContext.ExecuteQuery();
    if (spList != null && spList.ItemCount > 0)
    Microsoft.SharePoint.Client.CamlQuery camlQuery = new CamlQuery();
    camlQuery.ViewXml =
    @"<View>
    <ViewFields><FieldRef Name='choice' /></ViewFields>
    </View>";
    ListItemCollection listItems = spList.GetItems(camlQuery);
    clientContext.Load(listItems);
    clientContext.ExecuteQuery();
    string value = listItems[0]["choice"].ToString();
    Console.WriteLine(value);
    Console.ReadKey();
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • IS-RETAIL: How to update custom enhancement field using BAPI?

    Hi gurus,
    Like ECC BAPI: BAPI_MATERIAL_SAVEDATA,
    This BAPI(BAPI_MATERIAL_MAINTAINDATA_RT) is specific for IS-RETAIL to create and update material master data.
    But now If I append one custom field "ZFIELD" to end of table MARA, my question is how to update this custom enhancement field(ZFIELD) using BAPI(BAPI_MATERIAL_MAINTAINDATA_RT)
    Thanks in advance!

    Hi DongHai,
    I suggest you create your own BAPI. Just copy the codes in BAPI_MATERIAL_MAINTAINDATA_RT and add your custom fields. If you want to append the data of the custom field in table MARA, first, you have to create a structure table then goto SE11, type MARA and display. Click the APPEND STRUCTURE then choose the structure that you've created. Hope this will help.
    Rewards if useful
    Regards,
    Mark

Maybe you are looking for