Safe update of append fields

Hi experts,
I got an append field on the qmel table which I have to update. Of course I can update the field manually, but since the qmel table is a pretty critical one, I wonder if there is a "safe way" to do that, like a SAP FM, BAPI or whatever?
Thanks in advance.
Regards
Tobi

Hi,
Eithr the FM or the BAPI will not do validations.
Manual Validation hs to be done before passing the value to the BAPI or FM.
Thnaks and Regards,
Daz.

Similar Messages

  • Update appended field in a sales order

    Hi, i'm trying to update an appended to VBAP Z field with FM SD_SALESDOCUMENT_CHANGE.
    i'm using pivot structure 'BAPE_VBAP' and 'BAPE_VBAPX' .
    clear ibapiextenin.
          ibapiextenin-structure  = 'BAPE_VBAP'.
          CONCATENATE i_vbeln iitens-itm_number'teste_ItemGP'
          INTO ibapiextenin-valuepart1.
          APPEND ibapiextenin.
          clear ibapiextenin.
          ibapiextenin-structure  = 'BAPE_VBAPX'.
          CONCATENATE i_vbeln iitens-itm_number '  X'
          INTO ibapiextenin-valuepart1.
          APPEND ibapiextenin.
    and then i call fm lije this way:
    CALL FUNCTION 'SD_SALESDOCUMENT_CHANGE'
        EXPORTING
          salesdocument    = i_vbeln
          order_header_in  = ibapisdhd1
          order_header_inx = ibapisdhd1x
          business_object  = 'BUS2032'
        TABLES
          item_in          = ibapisditm
          item_inx         = ibapisditmx
          schedule_in      = ibapischdl
          items_ex         = ibapisdit
          schedule_inx     = ibapischdlx
          extensionin      = ibapiextenin
          EXTENSIONEX      = ibapiextenex
          return           = ibapiret2
        EXCEPTIONS
          error_message    = 1.
    <added code tags>
    but content field doesn't appear updated.
    Can someone help me ?
    Thanks
    Edited by: Suhas Saha on Nov 18, 2011 11:10 AM

    Hi,
    I don't see any appends for ibapiextenex and also no commit for the function.'
    Instead of this
    clear ibapiextenin.
    ibapiextenin-structure = 'BAPE_VBAP'.
    CONCATENATE i_vbeln iitens-itm_number'teste_ItemGP'
    INTO ibapiextenin-valuepart1.
    APPEND ibapiextenin.
    clear ibapiextenin.
    ibapiextenin-structure = 'BAPE_VBAPX'.
    CONCATENATE i_vbeln iitens-itm_number ' X'
    INTO ibapiextenin-valuepart1.
    APPEND ibapiextenin.       "It should be INX here
    pass it using the offset position something like this
    clear ibapiextenin.
    ibapiextenin-structure = 'BAPE_VBAP'.
    ibapiextenin-valuepart1(10) = i_vbeln.
    ibapiextenin-valuepart1+10(4) = i_item.
    APPEND ibapiextenin.
    clear ibapiexteninx.
    ibapiexteninx-structure = 'BAPE_VBAPX'.
    ibapiextenin-valuepart1(10) = i_vbeln.
    ibapiextenin-valuepart1+10(1) = 'X'.
    APPEND ibapiexteninx.
    Kesav

  • How to update a custom field of MARC table using BAPI_MATERIAL_SAVEREPLICA

    Hi,
    I want to update a custom field (Appended field) of MARC table using  BAPI_MATERIAL_SAVEREPLICA. Please help me in this issue. I cannot use BAPI_MATERIAL_SAVEDATA as this updated the MARC table record by record. I have to update bulk records at a time.
    Thanks
    Rahul.

    Hi,
    Use the Documentation given for struture in BAPI docuemntation...
    For loading data into custom fields of MARC use the structure - BAPI_TE_MARC.
    First, structures BAPI_TE_<NAME> (<NAME> = MARA, MARC, MARD, MBEW, MLGN, MLGT, MVKE, MARM, MAKT) and the appropriate check structures BAPI_TE_<NAME> (<NAME> = MARAX, for example) have to be extended by the customer to include the required fields. The structures that are delivered as standard only contain the relevant key fields. When new fields are added to this structure, you should ensure that a field has the same name as the field in the database table. Furthermore, the fields in the structures BAPI_TE_<NAME> can only be CHARACTER fields. Data element BAPIUPDATE is to be used for the fields in the check structure (exception to this: key fields.)
    Parameters EXTENSIONIN and EXTENSIONINX are used for transferring data to the method. Field STRUCTURE contains the name of the structure (for example, BAPI_TE_MARA or BAPI_TE_MARAX). This names is used to identify the work area (for example,  WA_BAPI_TE_MARA or WA_BAPI_TE_MARAX) to which the data is transferred. The remaining fields in parameters EXTENSIONIN or EXTENSIONINX contain data for the key fields (for example, the material number) and the data for customer-specific fields. The number of characters reserved in both parameters for the contents of the customer-specific fields must match the number of characters for the relevant field in the work area. If the number of required characters is less, the remaining characters are left blank. Only when all characters have been filled can the contact for an additional field be transferred. Bear in mind that only data for which an appropriate indicator has been set in the work area can be updated to the database.
    Regards,
    Bhargava

  • Material Master: Update the Z fields using BAPI

    Hi to all,
    My requirement is simple. But I do not have much knowledge on BAPI. I have got some information that we can extend th BAPI and update the Z fields in material master. I have added the z fields in MARA. So when I call the bapi z fields has to get update.
    Which BAPI can i use? I have got one BAPI - BAPI_MATERIAL_SAVEDATA.   plz suggest me to do it.
    1. how do i enhance the BAPI or extend th BAPI.
    2. Is ther any approch to do it.
    thnks
    Yerukala Setty

    Hi,
    Append the z fields to BAPI_TE_MARA and BAPI_TE_MARAX structures using append structures.
    Populate two structures for the fields in BAPI_TE_MARA and BAPI_TE_MARAX.
    To BAPI_MATERIAL_SAVEDATA, under EXTENSIONIN parameters, pass structure name as BAPI_TE_MARA and Value Part1, 2, 3, 4 with the filled structure info.
    Similarly append X structure as well.
    Regards,
    Ganga

  • Update of Z field in marc in ALE/IDOC

    Hi,
    I have an inbound IDOC in which I get the data for all the Z field which is appended in MARC table. When I am calling the FM 'IDOC_INPUT_MATMAS01' it is not updaiting the Z field and the IDOC is successfully created. Do I have to write the updaet code in some user exit of FM 'IDOC_INPUT_MATMAS01' or is there any other method to update the Z field??
    Thanks.......

    Hi J,
    If your custom fields are there on the screen (MM01/02/03) and they are appended in some structure in MARC table, the values should flow from screen-to-table and vice-versa.
    If you want these fields to be populated automatically, you may have to write some code in user-exit or BAPI extension while creating the materials.
    In the user-exit, you may have to write a code like this ..so that these fields remain uneditable while calling MM03 (display only)
    IF T180-TRTYP EQ 'A'.
    LOOP AT SCREEN.
    SCREEN-INPUT = '0'.
    MODIFY SCREEN.
    ENDLOOP.
    EXIT.
    ENDIF.
    Edited by: Rudresh Chand on Jan 26, 2011 9:03 PM
    Edited by: Rudresh Chand on Jan 26, 2011 9:25 PM

  • Lock when trying to update a Z-field in MARD

    Hi,
    I have a Z-field in an append to MARD. In MIGO we create an output idoc (a custom made Z-idoc) and in the function module processing the idoc I want to update my Z-field in MARD. The update in MARD are made with a bapi called BAPI_MATERIAL_SAVEDATA.
    Pseudocoding of the function module which are processing the idoc:
    Get material document into bapi structures
    loop items.
       perform get_some_more stuff
       perform update_mard.
    endloop.
    form update_mard.
        do some stuff
        call method class=>update_mard
        loop at error messages.
             Give a message
       endloop.
        call function BAPI_TRANSACTION_COMMIT.
    endform.
    in the update_mard-method I fill the structures needed to handle the append in mard and call the BAPI_MATERIAL_SAVEDATA
    I hope you are with me so far. From the update_mard I receive some error message handled in the loop that the material couldnt be saved. I assume I have a lock problem. But I cannot get the program to stop when I set a break-point. It simply doesnt stop.
    So two questions:
    1. Can I somehow force my break-points to come in effect?
    2. Can I "postpone" the actual update of MARD until the material document output is processed? If so how? If not, what can I do to avoid my lock problem?
    best regards,
    Glenn

    Hi,
    I have tried to put a break-point just before my error message are created but it still don´t stop. But since I get the error message I know that the flow passes my break-point. It just doesn´t stop. Does it matter if I use break-point or break ?
    I can see lock entries during the processing. I set a wait up to 30 seconds so I have plenty of time to check lock entries, and I see that there are entries.
    My concern is that I want to be able to postpone my processing until the system releases the lock, but preferrably from the function module where I handle my idoc.
    br,
    Glenn

  • Updation of 'Z' field in database table VBAP & AUFK

    Hi,
    In my report I wanted to update/modify value in a "Z" field in VBAP and a "Z" field in AUFK table.
    Could anyone please suggest me how to update/modify this field value using a BAPI or FM?
    Or any other method atleast..
    Thanks in Advance,
    Rohan.

    Hi,
    When you want to change the Zfield in VBAP we can go for the BAPI function module-
    BAPI_SALESORDER_CHANGE for the given Zfield get the header data and append it to BAPI header structure.
    I think we may use the same FM for updating the AUFK also.
    Reward points if useful.
    Regards
    Chandralekha

  • Updation of Custom fields in MBEWH from MBEW

    Hi ABAPpers,
    Can anyone give me any clarity  if I append same structure in both MBEW and MBEWH, then during the update will these custom fields also gets updated? Or do we have any other procedure to do this?
    Edited by: VKUPPILI on Dec 9, 2011 1:17 PM

    Hi,
    The append field will be  the ZFILEDS that you add. Those will not get updated automatically but proper enhancements has be written to pass values to that field. The include where you can start to have a look is LMBMMF20 (FORM MBEW_UPDATE)..
    Hope that Helps
    Anirban M.

  • Cannot see the appended fields on BW side

    Hello all,
    I appended the extract structure of a datasource (added two fields), I can see those field in RSA6 and can see the data in RSA3. Then I replicate it on BW side and am trying to create transformation between that datasource and DSO but I cannot see the added fields in the transformation rules so that I can map it to the infoobjects in DSO. When I see the fields tab of datasource (in datasource tab in RSA1) I can see those two fields but I am not getting now how do I map it with DSO objects.
    Can someone throw some light please.
    Thanks,
    Kiran

    hello all,
    I tried same thing completely by using 3.x method transfer rules and update rules and it works good.
    I finally can see the appended fields. I did the whole process as the 3.x method, transferred the fields in transfer structure, added my infoobjects in communication structure and then did the transfer rules. So now finally I am able to see the fields in datasource and now I am able to map the source fields to the target fields (Z infoobjects) in DSO.
    I can see the data in PSA, so I just went ahead and did a direct assignment so that data will go to the target infoobjects but for some reason still those columns are blank, so basically there is data in PSA but its not getting to DSO.
    Do we have to anything different in this new version like write a routine or something in transformation rules?
    Are these steps right for the new version NW 2004s, or is there any additional step in this new version.
    Thanks,
    Kiran
    Message was edited by: Kiran Mehendale

  • Appended field is not available in BI

    Hi Gurus,
    I have appended a field in the datasource, removed a hidden tick so that it will be available in BI system but after replication of datasource I still could  not get this field in transfer structure. When I was checking I found that in display datasource window under "Fields" tab for that particular field "Transfer" column is uncheck, due to which the field is not available.
    Now my concern is that how should I make this available in BI.
    any Help will be heavily appreciated.
    Thanks,
    Saurabh.

    Hi,
    I am on BI 3.5 system.
    and I didn't mean that my datasource is not in ROOSFIELD table, it is there but what you are saying is not applicable in my case. in ROOSFIELD, for the appended field  the OLPTSrc version is "A" and Field Attribute is "P" which is what the ABAP program stated above will do and I was very well aware of the program.
    My, ROOSFIELD output is,
    2LIS_XX_XXX                      A               ZZXXXX                      P
    This field was not hidden earlier as well, i could get this field for selection in RSA3 and even in infopackage also.
    But, the only concern is what I posted in my 1st question.
    How will I get that checkbox ticked?
    Thanks,
    Saurabh

  • How to update a single field in Word macro

    Hello,
    I am trying to create an AutoOpen() macro that will update the file name and path when user opens in a Word document, but I can't seem to find anything explaining how to update a single field, specifically the {FILENAME \p} field.  There
    are other fields in the document, so I do not want to update all the fields.  Most of the links I found only explain how to update ALL fields. Can somebody please tell me how I can update only the filename and path field using an autoopen macro?
    Thank you

    Stefan's response is correct.
    Here is a macro that should update only filename fields.
    Sub FileNameFieldUpdateAllStory()
    ' Written by Charles Kyle Kenyon 15 November 2001 - modified for filename 10 Sept 2014
    ' repaired by Jezebel
    ' All Story Field Updater - Filename fields
    Dim oField As Field
    Dim oStory As Range
    ' On Error Resume Next
    For Each oStory In ActiveDocument.StoryRanges
    ' This goes into headers and footers as well as the regular document
    Do
    For Each oField In oStory.Fields
    If oField.Type = wdFieldFileName Then
    oField.Update
    End If
    Next oField
    Set oStory = oStory.NextStoryRange
    Loop Until oStory Is Nothing
    Next oStory
    End Sub
    See Installing Macros for help in using this.
    Charles Kenyon Madison, WI

  • Updation of Custom Fields in AFRU table Using Customerexit

    Hi all,
    I added two fields in CO11n Tcode using SCREEN EXIT - CONFPP07 and iam trying to update these two fields in AFRU table
    using CONFPP05.  But iam unable to update these two field .
    see this code in CONFPP05
      LOOP AT afrud_tab.
        afrud_tab-zzshift = wa_afrud-zzshift1 .
        afrud_tab-zzoperator = wa_afrud-zzoperator1 .
        MODIFY afrud_tab.
      ENDLOOP.
    Plz help me regarding this..

    Thanks for reply
    Ya i added two fields in confpp07 .
    see the code :
    *&  Include           ZXCOFTOP
    tables : afrud.
    DATA : WA_AFRUD TYPE AFRUD,
            IT_AFRUD TYPE TABLE OF AFRUD.
    Include           ZXCOFU24
    MOVE afrud-zzshift1 TO wa_afrud-zzshift1.
    MOVE afrud-zzoperator1 TO wa_afrud-zzoperator1.
    Even though it is not updating . except these two fields.
    Regards,
    Srinivas

  • How to update a custom field in declarative workflow with VS 2013

    Hello,
    How to update a custom field in declarative workflow with VS 2013
    any help would be appreciated!!!!!
    Thanks regards, Vignesh.

    Dear all,
    I'm using 4.6C right now, i already implement BADI MEREQ001, but this only valid
    for creating PR via ME51N.
    I found an EXIT_SAPLEBND_001 and tried to implement it,
    but i got another difficulties since how i transfer CEBAN structure to EBAN structure.
    thanks very much.
    Regards,
    Billy

  • "The SPListItem being updated was not retrieved with all taxonomy fields." Exception while updating a taxaonomy field

    Hi All,
    I'm getting this exception "The SPListItem being updated was not retrieved with all taxonomy fields." when i try to programatically update a taxonomy field of a list item. Can any1 pls tell me why this exception occurs ???

    Recently hit this myself, as well.  Turns out it's a central admin setting that throttles the lookup return count, and Taxonomy fields are just lookups under the hood.
    Go into Central Administration, Manage Web Applications, select your web application, and then in the ribbon choose the dropdown under General Settings select Resource Throttling.  Find the setting for "List View Lookup Threshold" and raise
    it from the default 8 (can go up to 1000, but 20 is likely fine depending how many lookup fields you're pulling back in your SPListItem).

  • Problem with update of BLOB field in a table with compound primary key

    Hi,
    I've been developing an application in Application Express 3.1.2.00.02 that includes processing of BLOB data in one of the tables (ZPRAVA). Unfortunately, I've come across a strange behaviour when I tried to update value in a BLOB field for an existing record via a DML form process. Insert of a new record including the BLOB value is OK (the binary file uploads upon submiting the form without any problems). I haven't changed the DML process in any way. The form update process used to work perfectly before I'd included the BLOB field. Since than, I keep on getting this error when trying to update the BLOB field:
    ORA-20505: Error in DML: p_rowid=3, p_alt_rowid=ID, p_rowid2=CZ000001, p_alt_rowid2=PR_ID. ORA-01008: not all variables bound
    Unable to process row of table ZPRAVA.
    OK
    Some time ago, I've already created another application where I used similar form that operated on a BLOB field without problems. The only, but maybe very important, difference between both the cases is that the first sucessfull one is based on a table with a standard one-column primary key whereas the second (problematic one) uses a table with compound (composite) two-column PK (two varchar2 fields: ID, PR_ID).
    In both cases, I've followed this tutorial: [http://www.oracle.com/technology/obe/apex/apex31nf/apex31blob.htm]).
    Can anybody confirm my suspicion that Automatic Row Processing (DML) can be used for updating BLOB fields within tables with only single-column primary keys?
    Thanks in advance.
    Zdenek

    Is there a chance that the bug will be included in the next patch?No, this fix will be in the next full version, 3.2.
    Scott

Maybe you are looking for

  • Flex Application does not work outside of the default dir

    Hi, I have developed a flex application which calls a http service and displays the contents in a text area. This works fine when I execute it from the flex builder or from the directory where the flex builder stores it. If I copy the files to any ot

  • Jdbc url for yahoo finance

    Hey guys, Can anyone please help me find out what is the JDBC url for Yahoo Finance Database that stores the values of the historical stock quotes . I desperately need it for my java application in which I require to access the database in order to g

  • Raw files missing in import direct from canon eos 350D

    Hi, I realise that files missing for import is fairly common, but I still haven't been able to find a reason. I can load jpg and cr2 from a folder no problem, but when I attach the camera, using the latest canon WIA driver on windows xp, the window t

  • Section opens not in a tab

    I have a website in my bookmarks that opens like any other until about three days ago. I was in a hurry to close a few tabs because I had to leave and go somewhere. When I closed them I do not remember what the message box said. I thought it was some

  • Unable to make Windows recovery disk - HP Envy 15 - Windows 8.1

    While Windows is booting well, it seems I have to do a recovery. On booting and pressing F11I get the message Your PC needs to be repaired. A required device isn't connected or can't be accessed. Error code 0xc0000225 On the other side when I try in