BAPI_OUTB_DELIVERY_CHANGE to update Z fields from LIKP

Hello,
Im using BAPI_OUTB_DELIVERY_CHANGE bapi to change some fields from LIKP/LIPS table. Now, i have to update also some Z fields from this tables.
I see that the bapi has Extension1 and Extension2 tables but i don't know how to use them. I have been looking for the forum and i have found you have to fill some structures with the Z fields, but i don't find them for deliveries. Also, i have read that you have to do it through an user exit, but i don't know what user exit and what relation it has with Extension tables.
Anybody knows how to do it?
Thx,
Manel

Hi,
For changing the delivery quantity through BAPI_OUTB_DELIVERY_CHANGE you need to pass the following data :
HEADER_DATA : Delivery no.
DELIVERY : Delivery no.
ITEM_DATA : Delivery no,
item no,
DLV_QTY quantity(changed),
FACT_UNIT_NOM ( default to value '1')
FACT_UNIT_DENOM ( default to value '1')
ITEM_CONTROL : Delivey no,
item no,
CHG_DELQTY ( value "X")
The import parameter Extension1 and  Extension2 are available for customer enhancements. Extension1 is an unstructured data container that is available for any use.
Extension2 is a structured data container available for any use.
For more information, see the function module documentation for BAPI_OUTB_DELIVERY_CHANGE.

Similar Messages

  • 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.

  • Update Z field from BSIK into BSAK when closing

    Hi,
    I have created Z field in BSIK table using "Append structure" option. I also created identical field via same option in table BSAK. When I clear open item system "delete" that item in table BSIK and create identical item in table BSAK (BSIK - open items; BSAK-closed items), BSIK and BSAK have same structure because of this trensfer of open items from BSIK to BSAK during open item clearing. My problem - when open item is cleared and item is transferd from BSIK to BSAK my Z field is not updated by system. Is it possible to set this in customizing or is there another way to update this Z field in BSAK when someone clear open items - user exit, modification or ???.
    Thanks in advance.
    Sasa

    Hi Andreas,
    than you for your responce.
    I tried to find out suitable event for this in fibf but withouth success. Could you suggest event that will be suitable for this purpuse.
    One more thing - if I reverse clearing (via transaction FBRA) system will transfer closed item from BSAK to BSIK and during that process Z field will not be updated so I also need event to update this field durind reverse clearing.
    Thank you in advance.
    Kind regards,
    Sasa

  • How to update address fields from a different view?

    Hello Everyone,
    I have created a context node(Model Attribute) of standard address fields using BuilAddress in a view that doesn't have it and successfully displayed them. This is contacts view where the original address of the contact is not available. Now our requirement is to update the standard address if needed from the contacts view itself. How can I do this?  The address fields are available for display only, even if I want to update them using code based on some condtions if not manual entry how can I achieve that?
    Did anyone ever use CRM_BP_UIU_SAVE Badi? I see no posts related to this in forum. Can anyone give me a sample code on what can be done in here and what data of BP is accessible in this BADI and how?
    Thanks,
    Sunil

    Hi Murali,
    Are you sure I can update the address fields using BAPI's from WEBUI? I have tried this already and the BAPI or Function just woudn't call, always return with error message.   I was thinking that BAPI's and Functions for updating just wouldn't work from WEBUI.
    To give you more details, I am in the BP_DATA/AccountContactEF view. I added the context node Address and brought in all the fields from BUILADDRESS structure, it generated the get, set methods for me. I want to update a couple of fields like telephone info, street, city etc. In this view I just redefined Create_Contact method and I tried to update the address using BUPA_ADDRESS_CHANGE for the contact person and it never works. I also tried BUPA_ADDRESS_REMOVE to delete and add the new address using BUPA_ADDRESS_ADD, but that wouldn't work either.
    So that is why I am exploring the option of using BADI, which I found out is very similar. I was able to access pretty much everything of BP data and Contact data. but there also the functions or Bapi's wont work.
    Let me know if you did anything similar. Also as you mentioned the GET_I method, Context node creation  Wizard generated it for me and I have the field editable, its just that when I save it , it wont save and the old values are read back and populated. Meaning if I have  'NY' for region and I change it to 'CA' , after save 'NY' comes back.
    Thanks for you help.
    Sunil

  • Updating a field from info from another table

    I am trying to update a field in a table by the data from another lookup table. These tables have to be linked by two columns, not just one. It seems like I have to use a sub query to extract data from the lookup table. I am unable to get a correct syntax for the SQL statements.
    Does anyone has any ideas??

    UPDATE table_B t2 SET t2.col1 = (SELECT t1.col1 FROM table_A t1 WHERE t1.col2 = t2.col2 AND t1.col3 = t2.col3);
    table_B is the table whose col1 needs to be updated with col1 of table_A. The join conditions are two (with col2 and col3)
    Hope this is what you are looking for!!
    Cheers
    r@m@

  • Updating 'SEGMENT' field from transaction FB60 using FAGL_DERIVE_SEGMENT

    In our project we are using BADI FAGL_DERIVE_SEGMENT to automatically determine the field 'SEGMENT' from FB60 transaction.
    This problem only occurs when the field 'Segment' has been updated, because upon creation the value is filled and calculated correctly by the BADI. But it seems that on modification, the BADI is not being called, and therefore the field remains unchanged.
    (This only happens in the table control, because when double-clicking on the line we see that the value is correctly updated)
    Does anyone know any OSS note or any solution (maybe another BADI or configuration) to always have the value updated in the table control?
    Thanks in advance!
    Regards,

    Hi John,
    Through inbound IDOC, if the material already exists then material no will also be passed.
    Use WE19. and give the value for MEINS and check in debug mode.
    Regards
    Arun

  • Correct process for updating CRM Z fields from ERP Z field.

    I currently have an accounts block with a field (Region) which has a drop-down list box containing values, plus another field containing the description/name of the region. Based on other fields within this same block I need to replace the Region and its description with a single value which should be sourced from an ERP Z table, or joined Z tables if I include the description as well.
    I believe that I know how to change the attributes of the Region field using the AET, although I can't see anything which displays or allows me to displable the drop-down list of values, although I'm sure I've seen a video demonstrating the AET being used to create a list of lookup values.
    Anyway, what I need to do is to change the Region field, making it and its description field Read-only, remove the list of values option so there's no drop-down list box against the Region field, and also update this field from an ERP Z field. Can this all be done using either the AET or EEWB, or is there some code required to be manually entered, and if so, what transactions need to be used to do this?.
    Any help would be much appreciated.
    Jason

    MIcha,
    With regards to youe 9 steps that gave.
    I am looking at component BP_ADDR and view BP_ADDR/StandardAddress. However, there are no enhancements shown when I click on the [Enhance Component] button. So I assume that I need to create an enhancement in order to change the code. Does this enhancement create am implementation or does it create replacement code?. The reason for asking this is that the code shown against the View_controller->Content->Content_Nodes->STANDARDADDRESS->Attributes->STRUCT.REGION->GET_V_REGION method is as follows::
    METHOD GET_V_REGION.
      DATA:
        lv_fieldname            TYPE name_komp,
        lt_fieldname_additional TYPE crmt_attr_name_tab.
      lv_fieldname = 'COUNTRY'.                                 "#EC NOTEXT
      INSERT lv_fieldname INTO TABLE lt_fieldname_additional.
      lv_fieldname = 'COUNTRY_TEXT'.                            "#EC NOTEXT
      INSERT lv_fieldname INTO TABLE lt_fieldname_additional.
      lv_fieldname = 'REGION_TEXT'.                             "#EC NOTEXT
      INSERT lv_fieldname INTO TABLE lt_fieldname_additional.
      CALL METHOD cl_crm_uiu_bp_cust_get=>GET_VHELP_FOR_REGION_VATTR
        EXPORTING
          iv_index                = iv_index
          it_fieldname_additional = lt_fieldname_additional
        RECEIVING
          rv_valuehelp_descriptor = rv_valuehelp_descriptor
        EXCEPTIONS
          OTHERS                  = 0.
    ENDMETHOD.
    The above call gets the value helps and if I replace this code how can I also ensure that the value-help pull down icon does not appear next to the Region field, as all I'm attempting to do here is replace the code. In other words where do I update the screen to say that this field is no longer a value help field?. I wondered if this code actuallypoints the pull-down icon next to the Region field, although I suspect all it does is physically display the list of values and allows you to select one.
    So, I need to determine how I can create an enhancement. I've just been trying different things in the BSP_WD_CMPWB tranx but have not found out yet how this is achieved, although I think this is achieved via the creation of a new View set, but am not 100% sure.
    Jason

  • Using delivery type lfart from likp to write out the GL Account Number

    Hi Guys,
    I am writing a report for the bill of lading. Now I have to take in the GL Account Number from the user at input which can be either say 852342 or 853243 for two types of shipments 1. Plant to customer or 2. Intercompany. Now I have been asked to use LFART (NL - Replenishment Goods) field from LIKP to decide after taking in the user input for the GL Account Number what kind of shipment it is and write the GL account number in the report. Can somebody explain how to do it. I can't make out how one type of delivery can decide which kind of shipment it is based on the GL Account Number entered by the user on a selection screen? Can somebody give me some code or example?
    Please help.
    Thanks in advance.
    AM

    I think you missed out the statement
    MOVE 'X' TO wa_exknx-sakto.
    Regards, Vinod

  • How to update download SyncBO from Client

    Hi Experts,
    I am working on MAM3.0 application. I have a requirement that I need to update one field from TOP structure of MAM30_041 and I don't want this field updated in the backend. This complete requirement for the front-end client purpose only.
    I know that MAM30_041 (Measurement Point SyncBO) is the Download SyncBO, and from-front (MI Client) we can't do any modifications.
    Can any body please suggest me any solution for this, or any alternate solution. I just want to set some status to the Measurement Point.
    Your help is highly appreciable.
    Regards,
    Murthy.

    Hi,
    you can enhance the BO with an update handler. This should allow you to enter information in ITEM020 of the BO. In the Backend the coding for the updte handler does pretty much nothing. In that case the information can be stored on the client but will not be safed in the backend.
    If you have no idea how to enhance the BO - have a look into the enhancement guides of xMAM. You can find them in the INSTGUIDES folder for xMAM. There is a complete explanation how to enhance a BO.
    Hope this information helps.
    Regards,
    Oliver

  • Deleting a single field from existing Layout - Update

    Hi,
    We need to amend our custom integrator's layout by removing a field from the layout.
    However, in Desktop Integration - "Define Layout" - we do not have any option to delete a field (options are - Move Up/down, Read only, width,Frozen pane)
    (Making width - 0 is not solving the purpose since only the field is not visible in layout but mappings remain as is)
    Is there any option to remove a single field from integrator layout?
    Thanks much in advance,
    Rgds,
    Sumanth

    Duplicate post - Deleting a single field from existing Layout - Update
    Srini

  • Deleting a single field from existing WebADI Layout (Update)

    Hi,
    We need to amend our custom WebADI integrator's layout by removing a field from the layout.
    However, in Desktop Integration - "Define Layout" - we do not have any option to delete a field (options are - Move Up/down, Read only, width,Frozen pane)
    (Making width - 0 is not solving the purpose since only the field is not visible in layout but mappings remain as is)
    Is there any option to remove a single field from integrator layout?
    Thanks much in advance,
    Rgds,
    Sumanth

    Duplicate post - Deleting a single field from existing Layout - Update
    Srini

  • How to update the field of a Parent enity (field is not visibe on the Form) from a Child Entity in MSCRM 2013

    Hi All,
              I m new to CRM customization. I have requirement like this..
    I have 3 entities.. Entity1 , Entity 2 and Entity3.
    Entity1 is the parent of Entity2 and Entity3. Entity2 is the parent of Entity3 and child of Entity1 ..
    In Entity1 I have a field eg:product1 which acts as lookup for Entity2 field availableproducts.  Now in Entity2 I have a field the quantity of products which acts as lookup for Entity3 as given below.
    In Entity3: fields:;; products==Lookup of Products(Entity1)
                                  quantity == Lookup of Quantity (Entity2)
    Now from Entity3 I need to update the fields of Entity1 like I have field named Price which is not visible on the Entity3 Form  but when I access this field from javascript I m getting null exceptions since the field is not in the context of the Entity
    on which it is defined. How can I update the fields of the Parent Entity1 from child Entity3  and also update the quantity field on Entity2 which are not avialable on the Entity3 Form.
    Any help is appreciated
    Waiting for the reply..
    FayazSyed

    Hi,
    To do it in JS you need to use oData, as wrote above:
    to make this requests easer, i use a XrmSvcToolkit library (https://xrmsvctoolkit.codeplex.com/)
    Your code will be about this:
    /// <reference path="rtb_XrmSvcToolkit.js" />
    XrmSvcToolkit.retrieve({
    entityName: "Entity1",
    id: Xrm.Page.getAttribute("quantity").getValue()[0].id,
    select: ["my_FieldNeedToUpdate"], //Here are the name of your fields, which you want to select.
    expand: [""],
    async: false,
    successCallback: function (result) {
    FieldNeedToUpdate= result.my_FieldNeedToUpdate;
    errorCallback: function (error) {
    Error = error;
    FieldNeedToUpdate = FieldNeedToUpdate + 1; //Doing some work here
    var InputEntity =
    my_FieldNeedToUpdate: FieldNeedToUpdate //here are fields, witch you want to update
    XrmSvcToolkit.updateRecord({
    entityName: "Entity1",
    id: Xrm.Page.getAttribute("quantity").getValue()[0].id,
    entity: InputEntity ,
    async: false
    Here are more samples:
    https://xrmsvctoolkit.codeplex.com/SourceControl/latest#Samples/XrvSvcToolkit.Samples.updateRecord.js

  • Update fields from Adobe Form to Table

    Hello,
    I want to integrate Adobe Form into Webdynpro ABAP Application in which I want to have 2 fields which need to be updated to a DB Table.
    For this first I created an Interface in Transaction SFP , added 2 import parameters of type <Table Type>-<FieldName>. Then I created a Webdynpro Component created a new I Interactive Form UI Element and binded the Context of the Form to the Interface.
    Then I added 2 fields to the form from Data View . Everything is fine but when I run the Webdynpro Application the fields are not available for Input.i.e. They are in the ReadOnly Mode.
    The 'enabled' property of the Interactive Form is checked.
    Please help.
    Any help would be highly appreciated.
    Thanks.
    Edited by: SAPEPDeveloper on Feb 7, 2011 11:45 PM

    Hi,
    The process explained is ok, but I can explain you a better way.
    1) Create the webDynpro Component first.
    2) Create the context nodes as per the requirement.
    3) From the 'integration' panel drag and drop the Interactive form UI element into the view.
    4) Bind dataSource to root context node.
    5) Check enabled property true.
    6) Give a template source name (ZName).
    7) On double clicking the template source, system will prompt you to enter the interface name. Map context node to the interface.
    8) Interface gets created automatically and the lifecycle designer gets opened.
    9) Goto the properties tab and give layout type as 'ZCI Layout'
    10) Drag and drop required fields from the data view to the layout designer.
    11) Insert webdynpro script from the Utilities
    12) Edit -> Form Properties -> Defaults -> XDP Preview Format should be dynamic
    13) Drag and drop 'Submit Button' from Library palette -> Webdynpro native controls
    On clicking the submit button at runtime you will get the control in the webdynpro submit event.
    Above all these you have to check with your basis team, that the 'usage credentials' have been applied while configuring the ADS. Go to SE38 and run the program 'FP_TEST_IA_01' and check whether it is giving an error message or not.
    Hope this Helps.
    Thanks & Regards,
    Sanoosh

  • Want to update field from product to asset using JoinFieldValue function

    I am trying to write a workflow with JoinField Value Function so that I will get the Field Value=Product Quantity from Product(Content Management) in Asset which is the related information under Account.
    In Asset on the basis of Product Name & ProductID, i want to update that field=Product Quantity in Asset.
    JoinFieldValue('<product>','<productid>','<product quantity>')
    i have tried this workflow under Asset record type with Trigger Event as When Modified record Saved.
    I need this to see the product quantity frm product for Available to Promise purpose.
    Pls help me out.
    Regards
    Mangesh

    Tnaks Venky for your Reply.
    I have written the exact workflow.
    I have created the Custom Field as Product Quantity in Product.In Account record type related info I have renamed Asset as Product Purchased & added field Product name & Product Quantity(Custom Field-Number) as read only.I have aslo added the productID Field(renamed from row ID in both product & assest record type).
    Product Name=A ProductID=123 Product Quantity=READ ONLY ---PQ & PID are coming from Product record type.Same way i want the Product Quantity field should come from Product Record type.
    If i require Product A from Product record Type(Inventory) with 10 Quantity in Required Product Quantity as Custom Field then when i save the Information or as a Modified Information,the Product Quantity field shoul be automatically upadted with the Value provided in Product Quantity field in Product Record Type.
    Regards
    Mangesh

  • Updating contract document extension fields from workflow

    I have a multi-step contract document workflow which routes first to an attorney and then through a series of business approvers.  The business approvers might reject the workflow for a number of non-legal related reasons which would not required the legal document to be changed.  I want to flag the document when the attorney approves in case the workflow is ultimately rejected and later restarted, the legal approval step can be skipped if the attorney previously approved and the legal agreement file has not been changed.  I have been unable to update a contract document extension field from within the middle of a workflow.  The system has the contract document locked but I'm not sure if that's what's blocking me and if so, can I unlock the document, make the change, and relock the document from the post-script?

    Jeff,
    Unlocking/Relocking might be the right approach. You also may be experiencing a privilege issue based on the user running the script (but I doubt it if you are able to update other fields based on approvals). Let us know what you find out!
    -Howie Wexler, Crafty Systems Inc
    978 273 3600

Maybe you are looking for