VBRP Z fields update by bapi ?

Hi,
i have to update some Z fields in table VBRP. Which bapi can i use to maintain these custom fields ?
with kind regards,
Hans

Ok Hans
I know that, but bill document is an internal document, so usually all fields are from sales order and delivery, so it should be used the copy routines.
A BAPI has the same behavior of transaction so I don't know if it allows to fill z-field.
Try to check the std fm RV_INVOICE_CREATE or try to look for BAPIBILL
Max

Similar Messages

  • Reg: Mandatory fields updation with BAPI

    Hi..
    We are working on BDC using BAPI. In this if flat files contians only 4 fields and the mandatory fields in the application are seven then system needs to through error message. But with BAPI the program is updating the database without throwing error eventhough all mandatory fileds are not filled up with data.. Where exactly we need to do modifications to get error message when mandatory fields are not filled up with input.
    Regards

    Hi Verendra
    Sometimes the function modules/BAPI's used by SAP do a direct update on the database tables. In such scnearios the entries are created in the system even though if the mandatory entries are not filled.
    If the number of mandatory fields are small, then before the BAPI call,  check if all the mandatory fields are filled or not;throw error in case of empty fields & bypass the BAPI call.
    In case the mandatory fields are too high, then in that case, please use BDC recording to update the data.
    Regards
    Chetan
    PS:Reward points if you find this helpful.

  • Issue with Custom Field updation through BAPI FM

    Hi All,
    I am going to update some custom filelds in BUt050. So for these custom fields, I want to fill buffer memory so that I can track the changes through buffer. So I was calling FM BAPI_BUPR_CONTP_CHANGE and passing following parameters.
              businesspartner = < bp number>
              contactperson   = < Contact Number>
              validfromdate   = '00010101'
              validuntildate  = '99991231'
              centraldata     =  blank
              centraldata_x   = blank
    I am keeping central data blank as there is no standard field to update.
    But it is returning me a message that no changes are made.
    can any one has any idea how can I send custom field change in buffer?

    As my goal is to update custom fields in BUt050 from WEB UI, I was planning to fill the memory buffer with the changed values by calling FM  ''BUB_BUPR_MEMORY_FILL'.
    So I have to get memory first. But if I dont call the FM 'BAPI_BUPR_CONTP_CHANGE', then the memory will not be filled.
    That is the reason to call the function module.

  • 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

  • Update SAP BAPI already imported in XI Repository

    Hello all.
    I'm a XI beginner.
    I use a specific R3 bapi in one of my namespaces. So this RFC is already imported in XI repository and the process is today implemented in my customer's production environnement.
    Following a new need, I must add an importing field to this bapi.
    So I do the following :
    - in R3 (Developpment environnement), I added my new param to my bapi,
    In XI, I want to update the rfc structure in order to be able to do the mapping update.
    Must I import again the rfc ? (because I don't manage to change the structure manually)
    What are the actions I must exactly do in both Integration Repository and directory ?
    Thanks very much.

    hi Sylvian,
    yes you must reimport the bapi again
    and it will be: Updated this time
    but first do: where-used on the old bapi
    to see all the mapping programs etc. with which this bapi
    was used - so you can update it after the BAPI structure update
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>

  • Custom field updation in bapi_salesorder_createfromdat2 structures

    hi friends,
    custom field updation in bapi_salesorder_createfromdat2 structures
    i having a problem while creating a salesorder in vao1 tcode
    i unable to find the WWDLC FIELD AND DATA ELEMENT IS
    RKEG_WWDLC (delivery to country) in item data-> account assingment-> profit centre-> delivery to country
    how to enchance the field in bapi structures.
    thanks
    geetha.

    good

  • VBAP-ABDAT field updation in MV45AFZZ.

    Dear Gurus,
    we have a requirement , when we are changing the field VBAP-ABGRU through BAPI_SALESORDER_CHANGE  we should update sy-date in the VBAP-ABDAT.
    i have tried for the ABDAT field in the bapi item structure it is not there.
    i found the exit MV45AFZZ with exit: USEREXIT_MOVE_FIELD_TO_VBAP.
    can guide how insert the sydate in 'ABDAT' field if VBAP-ABGRU is changed is changed or filled with value thorough BAPI_SALESORDER_CHANGE.
    Regards,
    Abdul Rahim

    Hi Abdul,
    could you please check if the value of ABGRU has been changed by comparing VBAP and XVBAP?
    Also, check that you do this only when the sales document changes (t180-trtyp eq 'V').
    You can do this in userexit_move_field_to_vbap
    reg, bob

  • Issue in Workflow- Field Update is not happening

    Hi Friends,
    I am facing an issue to update a check box field Released.
    I have created a task having Advance with Dialog opiton,Background processing to update the Checkbox field.
    The BOR Object type used is BUS1006 and method is CHANGE. Everything looks fine when tested the task as well as the workflow in test mode and it is working fine in both the cases. But some how, this field update is not happening over the CRM 2007 Web UI. We are assuming it is due to user authorizations or some other settings ( like assignment of backend user to the workflow)
    for doing this task. Can some one give us some pointers on this. This will be of great help.
    Thanks,
    Udaya

    Hi Imtiaz,
    I am new to this. Can you please give me some pointers on how to check whether WF-BATCH has the needed authorisations and the process can be executed in background.
    Reply me at your convenient time.
    Thanks a lot for your response.
    Regards,
    Udaya

  • Concept of 'x' fields mapping in BAPI

    Hi Experts,
    Please explain the concept of 'x' fields mapping in BAPI. Why do we need that ?
    Thanks
    ~Sid
    "Max points are guarenteed"

    As the previous answer says, it's a "true / false" flag to say you want the changes applied to a particular field... the BAPI code cannot just say:
      if not some_field_name is initial.
        change value of some_field_name.
      endif.
    because the initial value may be a valid value for "some_field_name" so you wouldn't be able to clear the field out with this logic.. so instead the BAPI logic is more like:
      if some_field_name_flag = 'X'.
        change value of some_field_name.
      endif.

  • When does Date Modified field update in cmc  XI3.1

    In CMC > users and groups
    there is a Date Modified field, When does it update? Is there any document describe that?
    For example
    I have test that when I edit a user's properties the Date Modified fields update.
    When a user log onto CMC, some time the logon times is update as Date Modified
    some times is not? Why does this happen?

    Hello,
      If you update the the properties of the group or the user then the last modified date will change to the current date/time.  What kind of user do you have, Enterprise, Windows NT, Windows Active Directory or LDAP.  Sometimes a user doesn't exist until they actually log on to the CMS then their Last Modified date would change.  Have you consistantly seen this happen with a specific user, if so can you reproduce this on demand.
    Jorge

  • In field updates of the sbRio9606

    I am looking at using an sbRio board in a deployable system however I'm not sure how I could provide updates to systems in the field.
    Is it possible to perform in field updates of the sbRio9606 without having the complete NI environment installed at that site?
    A simple procedure via a tool or via ftp/web page for example would be great.
    many thanks for any suggestions / feedback

    Hi BeeTee,
    I'll try to tack on some details.
    In short, you do not need the full NI development software suite on a PC to update Single-Board RIO units in the field.
    Any PC with network access to the device can update the application image on the device.  One tool I would recommend to this procedure is the NI Replication and Deployment Utility.
    The RAD utility can take compiled system images and distrubute them on networked devices. Using this tool to upgrade images assumes that you have an identical device available in your development system to build, test, and capture the image from.
    With proper software architecture, the Single-Board RIO can also be programmed to recognize when a new application update should be downloaded from a USB key.  This article demonstrates a reference design for creating a Single-Board RIO system that can be updated in the field via USB memory device.
    Finally, compiled applications can also be readily copied onto deployed sytems via the onboard FTP server or securely with WebDAV. 
    Regards,
    Spex
    National Instruments
    To the pessimist, the glass is half empty; to the optimist, the glass is half full; to the engineer, the glass is twice as big as it needs to be...

  • Use REST API to query contacts with a field updated since certain time?

    Hello,
    Using the REST API and trying to figure out how I can query for contacts that have had a field updated since a specified time. I've tried using the "lastUpdatedAt" arg, but to me it seems like I'm getting back contacts that maybe haven't had any data change, but were probably sent an email or something of that sort (so the updated at value was changed)
    Is there a way to query for contacts that have had fields change (Like subscriptions, address, title, etc) but exclude those contacts that only have their updated values changes because they were sent an email?
    Thanks!

    Hi Chris,
    lastUpdatedAt or "Date Modified" fields don't change when the contact is sent an email, but rather, when ANY field is modified on the contact record. You can certainly query for and export contacts that had their data touched in some way since a specified time, but it won't be on a per-field basis. There is effectively no field level change history or tracking. You can work around this with extra logic. First, you can get a snapshot of what the values were in the specific fields you want to track across your entire database.
    The next time you run an export using Date Modified, it will contain more records than you might care about, but you can filter offline for the ones you do care about by comparing their before and after values for the specific 'tracked' fields.
    Regards,
    Bojan

  • How field VBRP-WAVWR is updated?

    Hello experts,
    What logic SAP uses to update the field VBRP-WAVWR? Is it copied from VPRS condition type? What if there are more than one Cost condition (category 'G') on a Pricing procedure?
    Thanks for your time.

    Hi,
    You should put this query in SD forum.
    Regards,
    Gaurav

  • Limitation on Adding custom fields into VBAP (Updating from BAPI )

    I have added some custom fields into BAPI structure BAPE_VBAP and corresponding structure to update the custom fields added into VBAP.
    in my code i am passing the value bapiparex-valuepart1 = bape_vbap0(240). bapiparex-valuepart1 = bape_vbap240(240),
    bapiparex-valuepart1 = bape_vbap480(240) and bapiparex-valuepart1 = bape_vbap720(240)
    But, while activation its informing me that more than 441 character length not allowed for the structure. Where the total length should be allowed upto 960.
    is there any OSS notes which i can apply to extend the limit for adding more custom fields into VBAP .
    Please help

    Dear All,
    Good Morining.
    The User creation and Assigining roles is done by the same preson and As i have mentioned above i am disabling the Manage_User action,And if i give the responsiblity of assigining  roles to an other person then he can also create user (standard functionality) where i cannot add my required features.Thereby leading for inconsistency.Therefore we thought that we will also add this funtionality in Webdynpro application and for the same, we have to provide the search criteria where currently we are able to search the role based on data entry(eg:t* or Ume etc) .But we need to search also based on the DataSource(ie Portal Role ,All DataSource and UME).Please Can you guide me in this.
    Also please let me know if we are going in a right approach and also suggest any better approach to achieve the same.
    Thanks and Regards,
    Nishita Salver

  • Material Master Update through BAPI - Follow up material not updated

    Hi Experts,
    I am updating the material master through a custom transaction using the BAPI  'BAPI_MATERIAL_SAVEDATA'. Rest of the fields are updating correctly except for discontinuation ind., effective out date & follow-up material.
    When I try to update it through MM02 it is working fine. However, when I pass the same data through BAPI it is throwing an error message that 'the material XXXXXX does not exist or is not activated'.
    Please advice.
    Thanks & Regards,
    Ashu Arora

    Some more fields need to be updated along with the discont. indicator. Now working fine.

Maybe you are looking for