BAPI_SALESORDER_CHANGE - Fields update problem

Hi experts,
I need to update some specific fields (BAPIADDR1-HOME_CITY, BAPIADDR1-HOUSE_NO2) in sales order.
For this I use BAPI above.
Obviously in BAPIADDR1 structure there is also ADDR_NO field filled.
The problem is, that the rest of the fields was deleted (updated). I mean these one, which was not specified ...
How to avoid update those field. ?
Really thanks.
Daniel.

data PARTNERADDRESSES like BAPIADDR1 occurs 0 with header line.
PARTNERADDRESSES-ADDR_NO = '0000000004'.
PARTNERADDRESSES-NAME = 'krupa'.
PARTNERADDRESSES-STREET = 'test'.
PARTNERADDRESSES-NAME_2 = 'Bldg 56'.
PARTNERADDRESSES-CITY = 'ahmedabad'.
*APPEND PARTNERADDRESSES. CLEAR PARTNERADDRESSES*
call function 'BAPI_SALESORDER_CHANGE'
exporting
salesdocument = salesd
ORDER_HEADER_IN = it_BAPISDH1
order_header_inx = it_BAPISDH1X
SIMULATION =
BEHAVE_WHEN_ERROR = ' '
INT_NUMBER_ASSIGNMENT = ' '
LOGIC_SWITCH =
tables
ORDER_ITEM_IN = it_BAPISDITM
ORDER_ITEM_INX = it_BAPISDITMX
PARTNERS = it_BAPIPARNR
return = it_BAPIRET2
PARTNERCHANGES = it_BAPIPARNRC
PARTNERADDRESSES = PARTNERADDRESSES

Similar Messages

  • LOV driven field updation problem.

    A form containing a field from a table, associated with 'List Of Values' on an independent table is loaded with values from a table and an attempt is made to alter the through LOV. But the code associated with the choiced description is not reflected in the field meant for interactive updation.
    Kindly help solve the problem.
    Ananta

    Thanks for reply.
    I am able to autopopulate in the entry-only screen, where the data is inserted successfully into the database.
    To update the already inserted row, as above, I need to retrieve it into the displayable form and then should be able to modify the contents in the EDIT session. While doing so, in respect of the fields where they are autopopulated based on LOV fields, is not working.
    Entry time autopopulation is successful but the same is not working while in EDIT mode. However, I able to modify fields, not connected in this way, successfully.
    Ananta.

  • BAPI_SALESORDER_CHANGE field REF_DOC (VGBEL) not updated

    Hi,
    I use BAPI BAPI_SALESORDER_CHANGE to update link between sales order and contract. It means updated field VGBEL (for VBAK and VBAP)
    It works fine for sales order header : VBAK-VGBEL is updated.
    But it doesn't work for VBAP-VGBEL.
    I have tried to update other fields on vbap with the BAPI and it works fine.
    I copy bellow source code used (it is a test program)
    Do you have any ideas why VGBEL is not updated?
    thanks in advance for your help.
    Luc
    source code:
    REPORT ZLM01 .
    tables vbak.
    Tables and structures used in BAPI
    DATA : wt_order_header_in  LIKE bapisdh1,      " Order Header Fields
           wt_order_header_inx LIKE bapisdh1x.   " Order Header checkbox
    DATA : t_bapiret            LIKE bapiret2   OCCURS 0 WITH HEADER LINE.
    DATA : t_bapiret2           LIKE bapiret2   OCCURS 0 WITH HEADER LINE.
    DATA : s_bapiret2           LIKE bapiret2   OCCURS 0 WITH HEADER LINE.
    DATA : wt_order_item_in    LIKE bapisditm  OCCURS 0 WITH HEADER LINE.
    DATA : wt_order_item_inx   LIKE bapisditmx OCCURS 0 WITH HEADER LINE.
    DATA : wt_partnerchange    LIKE bapiparnrc OCCURS 0 WITH HEADER LINE.
    DATA : wt_schedule_in      LIKE bapischdl  OCCURS 0 WITH HEADER LINE.
    DATA : wt_schedule_inx     LIKE bapischdlx OCCURS 0 WITH HEADER LINE.
    DATA : wt_sales_text       LIKE bapisdtext OCCURS 0 WITH HEADER LINE.
    clear : wt_order_header_in , wt_order_header_inx, t_bapiret2.
    Header
    wt_order_header_inx-updateflag = 'U'.
    wt_order_header_in-refdoc_cat  = 'G'.
    wt_order_header_inx-refdoc_cat = 'X'.
    wt_order_header_in-ref_doc     = '0040001508'.
    wt_order_header_inx-ref_doc    = 'X'.
    *ligne 1
    wt_order_item_in-itm_number  = '000010'.
    wt_order_item_inx-itm_number = '000010'.
    wt_order_item_inx-updateflag = 'U'.
    wt_order_item_in-ref_doc     = '0040001508'.
    wt_order_item_inx-ref_doc    = 'X'.
    wt_order_item_in-ref_doc_it     = '000010'.
    wt_order_item_inx-ref_doc_it    = 'X'.
    append wt_order_item_in.
    append wt_order_item_inx.
    call function 'BAPI_SALESORDER_CHANGE'
         EXPORTING
              salesdocument    = '0000025246'
              order_header_in  = wt_order_header_in
              order_header_inx = wt_order_header_inx
         TABLES
              order_item_in   = wt_order_item_in
              order_item_inx  = wt_order_item_inx
              return           = t_bapiret2.
    loop at t_bapiret2.
    write :/ t_bapiret2.
    endloop.
    call function 'BAPI_TRANSACTION_COMMIT'
         EXPORTING
              wait   = 'X'
         IMPORTING
              return = s_bapiret2.
    move-corresponding s_bapiret2 to t_bapiret.
    append t_bapiret. clear t_bapiret.

    i give one example :
    pass SCHEDULE_LINES .
    REPORT  ZSALESORDER_CHANGE MESSAGE-ID 38.
    Selection Screen Definitions *
    PARAMETERS: p_vbeln TYPE vbap-vbeln OBLIGATORY, "Order Number
    p_posnr TYPE vbap-posnr OBLIGATORY, "Order Item
    p_etenr TYPE vbep-etenr OBLIGATORY, "Schedule Line
    p_reqqty TYPE bapischdl-req_qty OBLIGATORY. " Order Qty
    Internal Tables/Structures/Variables for calling BAPI. *
    DATA: i_hdr TYPE bapisdh1,
    i_hdrx TYPE bapisdh1x,
    i_ret TYPE bapiret2 OCCURS 0 WITH HEADER LINE,
    wa_ret TYPE bapiret2.
    DATA: BEGIN OF i_sched OCCURS 10.
    INCLUDE STRUCTURE bapischdl.
    DATA: END OF i_sched.
    DATA: BEGIN OF i_schedx OCCURS 10.
    INCLUDE STRUCTURE bapischdlx.
    DATA: END OF i_schedx.
    START-OF-SELECTION Event *
    START-OF-SELECTION.
    *" Initialize internal tables.
    REFRESH: i_sched, i_schedx, i_ret.
    CLEAR: i_sched, i_schedx, i_ret.
    *" Fill required ORDER_HEADER_IN data.
    i_hdrx-updateflag = 'U'.
    *" Fill required SCHEDULE_LINES data.
    i_sched-itm_number = p_posnr.
    i_sched-sched_line = p_etenr.
    i_sched-req_qty = p_reqqty.
    i_schedx-updateflag = 'U'.
    i_schedx-itm_number = p_posnr.
    i_schedx-sched_line = p_etenr.
    i_schedx-req_qty = 'X'.
    APPEND i_sched.
    APPEND i_schedx.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
    EXPORTING
    salesdocument = p_vbeln
    order_header_in = i_hdr
    order_header_inx = i_hdrx
    TABLES
    return = i_ret
    schedule_lines = i_sched
    schedule_linesx = i_schedx.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    LOOP AT i_ret.
    WRITE / i_ret-message.
    ENDLOOP.

  • 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

  • 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

  • Update problem - VBDATA table

    Dear All,
    We have update problems in our Quality systems, and also in every R/3 system that we create from a Production system copy.
    Sometime the UPD and UP2 work processes hung without apparent reason.
    In the SM50 I can see one or more of my update processes running for a lot of time (many hours) on the table VBDATA without perform any action.
    In the tcode SM12 I donu2019t see any kind of lock, and I donu2019t understand why only sometime this problem happens.
    Of course, from the SM13 I can see that during this problem the system is not able to perform any kind of update.
    As I told in the beginning of the message, I have the same problem in other two R/3 systems, both created with a system copy from the production system.
    The Production and the Developer systems seem not affected by this problem.
    Have you got any idea about the reason of the problem?
    Even if the Production systems is not directly affected, all the IT department is not able to work on the Quality system (or any other Test system), and the only workaround is to kill the UPD (or UP2) WPs affected.
    Thanks in advance,
    Federico Biavati
    My R/3 System is a 4.7 on SLES9 and Oracle 10.2.0.2

    Hello Siva,
    This is what I did:
    > Check how many entries do you have in VBDATA currently.
    More than 1.000 in every SAP systems that Iu2019m creating from Production
    > You might want to run the reorganize updates program to clear the old updates
    > that are pending/in error
    Good point!!
    After the reorganization (ST14 u2013 Reorganize update requests) the table VBDATA is empty.
    Iu2019ll check and Iu2019ll let you know if the problem is definitively solved.
    Thanks for you help,
    Federico

  • Chart x scale update problem

    LabVIEW  8.5.1
    Sweep Chart Problem
    The x scale values do not update until after the 2nd sweep.  The red line cursor gets to the end of the sweep and starts the next, but the scale numbers do not update until the next sweep starts.
    It appears to be a problem with the chart, since it happens with any vi with a sweep chart.  I've used versions 6 through 7 for years and never seen this.  I've only recently moved to a new job with a new machine and version 8.5.1., so I'm not sure what to try.
    I've included a simple example.
    Thanks much,
    JSC321
    Attachments:
    Chart Sweep Scale Update Problem.vi ‏32 KB

    You have a typical race condition!
    There is no data dependency between the property node and the while loop, so in your case the loop starts executing first and the property node starts slightly later, immediately erasing the first point. Execution order is not defined.
    All you need to do is add a data dependency, e.g. as with the error cluster in the image. This forces the property node to complete before the loop is allowed to start.
    (Execution order is enforced even if the wire value is not even used inside the loop )
    Try it!
    Message Edited by altenbach on 12-23-2008 11:08 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    HistoryRace.png ‏10 KB

  • Updating problem...I have a update that starts out going through but then does not finish just keep running

    also with the update problem it says software update and below the running bar it says connecting to the server

    Please do the following:<br><br>
    #Go to [http://www.mozilla.com/en-US/firefox/fx/?ref=logo Download Firefox 4.0.1] and download a fresh installation file to the desktop.<br><br>
    #Then go to Add/Remove Programs, scroll down to "Mozilla Firefox" and remove it, choosing to keep your bookmarks, customizations etc., (''don't checkmark the box'').<br><br>
    #Then reboot and delete the folder called "Mozilla Firefox" at this location: C:\Program Files\Mozilla Firefox<br><br>
    #Finally run the installation file you downloaded to the desktop earlier.<br>
    Your bookmarks, customizations etc., are maintained in a different location and will become available to you again once you complete the installation.

  • BTCUSTOMERH fields in Problem (SM 7.1 SP10)

    Hello experts!
    I have SM 7.1 SP10. I created Z fields in BTCUSTOMERH of Incident using AET.
    I want to add created BTCUSTOMERH fields in Problem document, but this BTCUSTOMERH fields are not present in Context:
    How to add BTCUSTOMERH to AIC_PROBLEM_H?

    Hello Dmitry,
    Go to BSP_WD_CMPWB transaction, on field Component write "AIC_IM_REQ_H" and select display.
    Once the next screen is open, on the left side you can see a tree with all reference object related to that component, search and open "Views" -> "AIC_IM_REQ_H/IncidentOV" .
    on the right side you can see      3 tabs, "View Structure" / "RT Rep Details of View" / "Configuration"
    On "Configuration" Tab you can see the current configuration for your view, using an Enhacement I think that you can edit that view as your need.
    I never edit that view so i don't kno how to delete "title 2" block as you need, but maybe if you ask some developer he can do it for you using some code Enhacement .
    Regards,
    Luis

  • Field order problem I think

    I just burned through 10 dvds and they all look terrible. There are all these wavy lines. Is this a field order problem? If so, how do I correct it. I have missed my deadline and I am in big trouble. Please help.
    Thanks

    I just burned through 10 dvds and they all look
    terrible. There are all these wavy lines. Is this a
    field order problem? If so, how do I correct it. I
    have missed my deadline and I am in big trouble.
    DV formats ALWAYS use field 1 dominance -- LOWER FIELD FIRST!
    Since your content was created in a graphics program and not a DV camcorder, be sure to read through: http://www.greatdv.com/video/fields.htm
    BTW, It's ALWAYS the best idea to create a disk image out of iDVD (an option under FILE). Verify the image plays correctly with Apple's Disk Utility and then make the actual burns to writable media with Apple's Disk Utility or Roxio's Toast. Use quality DVD-R media (Verbatim or Maxell) and burn at 4x speed or lower.
    F Shippey

  • 10.5.7 update problems

    After installing the 10.5.7 update, Mail, iTunes and iPhoto will not run anymore. Anyone else having this problem?

    jjtopspin wrote:
    Before I came to these apple discussions re: update problems with 10.5.7, I tried to update this version yesterday and at the end of the download this message came up, the update "Mac OS X update" can't be saved. The digital signature for this package is incorrect. The package may have been tampered with or corrupted since being signed to Apple.
    I got the same message. The downloaded file that generated the message was only about 560 KB, indicating it was an incomplete download. I moved it to the trash & tried again. The second download attempt succeeded. I had a minor if nerve-wracking issue with the update (the blue looping screen reported in another topic in this forum) but after a forced shutdown & restart the update was completed successfully.
    I have since updated my two other Macs so all those listed in my profile are now running 10.5.7. All do so without any problems & in fact work better & more stably than ever before.
    I doubt that I'm unusual in this respect. Some users will have problems but I believe most won't, & for those that do most problems will turn out to be caused by something other than the update itself. So it has been for every previous Leopard update; I see no reason to think this one will be any different.

  • 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

  • Cache update problem in Integration Directory

    Hi all,
    We have a cache update problem in our PI development server.
    If we try to edit, save and activate any of the ID objects, under Cache notifications>Central Adapter Engine> all these objects are displayed as gray items.
    We have tried:
    1. Clearing the SLD Data Cache.
    2. Did SXI_CACHE complete refresh.
    3. Did CPA cache refresh.
    4. Did a complete cache refresh of the server.
    5. Restarted the server.
    But still the problem has not bee resolved. Could you pls provide your inputs and resolution points.
    Thank you very much.
    regards,
    Jack Nuson

    HI Jack ,
    first try to manually update the cache from ID select on your cache notifiaction and click on delta cache refresh button and refresh button .IF it does not yied any result then
    Perform a full cache refresh using the URL
    http://<host>:<port>/CPACache/refresh?mode=full . If the cache refresh happens properly then your problem will get resolved other wise you have to see the cache log to view why it failed there it will show you the exact reason . You might need to restart your java server also if the problem persist .
    Regards,
    Saurabh

  • Twitter Update Problem

    Seems I have a Twitter Update problem. 1. I have no pirated software on my computer either from the App Store or anywhere else. 2. I did buy a set off templates for iWork through the App Store with my Bosses Apple ID (it's for work). Is that really the problem. That's ridiculous.  The apple ID is mine, as is much of the software, but it's a computer use for work. If this is true it makes the App Store a lot less useful.

    my apologies I was so annoyed. I didn't bother to state my issue. The issue is: Twitter is constantly asking to be updated. Even after it's updated. Even if it's deleted. I looked at the forums for a solution and found that people were having this problem who installed pirated app store apps.
    I am logged into the app store on my account. All but one of the apps on my machine that come from the app store are on my account. However there is one piece of software on my account that I purchased, by logging out and logging in with her ID, purchasing it, installing and logging out, and again logging in as myself. I don't have an issue with that app. However Twitter, which was installed under my username, constantly says it needs to be updated. Hope that makes it clearer.

  • HT4623 Update problem

    Hello
    How do i solve problem when i'am doing my update from 5.1 to 6.1.2 the massage (3194) occured. Please help me to solve this update problem.
    I'am using iphone 4

    See this support document http://support.apple.com/kb/ts4451

Maybe you are looking for

  • Certain podcasts won't download err=3259

    itunes 8, now 8.01 refuses to download certain larger podcasts. There is no firewall enabled, no norton/antivirus software, and yes, i have checked all of the other relevant information on the discussion boards and tried those that seemed applicable.

  • Multiple .flv files out of syc after first video

    On a PC with W7, office 2010 and CP6. When embedding multiple .flv files in CP6, and running the published html5 presentation off my local drive, only first .flv file is in sync after publishing in html5. The 2nd .flv video is out of sync. I'm runnin

  • How to make use of *progress bar*?

    I have a progress bar requirement in my swings project, i.e on clicking a button, some task should be executed and in parallel to this progress should run on progress bar in the same frame and soon after this task gets completed the progress on progr

  • Can the J2ME access through the SIM toolkit application?

    im a new to this.. can that be possible? im about to develop an application that would access the program on the SIM. would that be possible with java? tnx...

  • "Connection Failed"

    Previously, I had been having trouble setting up file sharing between my old Mac Pro (snow leopard) and my "new" MacBook Pro (Yosemite). I finally got it set to work somewhat. Until this morning, I was able to connect on the MacBook as a guest, altho