Update GrossPrice in Sales Document using XML

Hi, experts:
I want to update SaleOrder via DI Server. The document is based on GrossPrice.  So fileds like Price, UnitPrice, DiscountPercent, LineTotal are not post to DI Server. Here is my Xml:
<?xml version="1.0"?>
<BOM xmlns="http://www.sap.com/SBO/DIS">
  <BO>
    <AdmInfo>
      <Object>oOrders</Object>
    </AdmInfo>
    <QueryParams>
      <DocEntry>3524</DocEntry>
    </QueryParams>
    <Documents>
      <row>
        <DocTotal>1100</DocTotal>
      </row>
    </Documents>
    <Document_Lines>
      <row>
        <LineNum />
        <ItemCode />
        <ItemDescription />
        <Quantity>2</Quantity>
        <ShipDate />
        <Price />
        <PriceAfterVAT>200</PriceAfterVAT>
        <Currency />
      </row>
    </Document_Lines>
    <Document_LinesAdditionalExpenses>...</Document_LinesAdditionalExpenses>
    <WithholdingTaxLines>...</WithholdingTaxLines>
    <SerialNumbers>...</SerialNumbers>
    <BatchNumbers>...</BatchNumbers>
    <DocumentsAdditionalExpenses>...</DocumentsAdditionalExpenses>
    <WithholdingTaxData>...</WithholdingTaxData>
    <Document_SpecialLines>...</Document_SpecialLines>
    <TaxExtension>...</TaxExtension>
  </BO>
</BOM>
Problem happens when I post this Xml to DI server. With the updating of GrossPrice, I got a discount too. The NetPrice failed to Change with the GrossPrice. I am working under 2007B PL10, which is said to have fixed this bug. Something wrong with my Xml? or how can I prepare my Xml?

Verner, thank you. I modified my Xml and only PriceAfVat in document_line was posted to DI server. But the discount in document_line still comes out.  As you can see in the Xml, all other fields not shown here are left blank in the xml :
<BOM xmlns="http://www.sap.com/SBO/DIS">
<BO>
  <AdmInfo>
  <Object>oOrders</Object>
  </AdmInfo>
  <QueryParams>
  <DocEntry>3516</DocEntry>
  </QueryParams>
  <Document_Lines>
  <row>
  <PriceAfterVAT>650</PriceAfterVAT>
Still waiting for the answer...

Similar Messages

  • Creating a sales document using BAPI in web dynpro by uploading a file

    Hi ALL,
    Can some one help me how to create a sales document using  BAPI by uploading a file as input...Can someone  provide me a sample program....
    Thanks n Regards,
    Praveenn.
    Edited by: praveenn on Aug 23, 2011 12:42 PM

    Hi Sri,
    Thx for the response...
    Here is the code that i followed for creating a BAPI_SALESORDER_CREATE1 by uploading a text file as input.
    Just create a Attribute  in the VIEW CONTEXT of type String.
    method ONACTIONCREATE_SO .
    types : Begin of ty_data,
             sales_org  type vkorg,
             doc_type   type AUART,
             DISTR_CHAN type VTWEG,
             DIVISION   type spart,
             material   type matnr,
             partn_role type PARVW,
             PARTN_NUMB type kunnr,
           end of ty_data.
      DATA  :it_table TYPE  TABLE OF ty_data,
             i_data   TYPE  TABLE OF string,
             l_string TYPE string,
             wa_table TYPE ty_Data,
             l_xstring TYPE xstring,
             fields TYPE string_table,
             lv_field TYPE string.
    DATA: wa_order_header_in TYPE BAPISDHD1,
          it_order_items_in  TYPE TABLE OF BAPISDITM,
          wa_order_items_in  TYPE BAPISDITM,
          it_order_partners  TYPE TABLE OF BAPIPARNR,
          wa_order_partners  TYPE BAPIPARNR,
          it_return TYPE TABLE OF BAPIRET2,
          wa_return TYPE BAPIRET2.
    DATA : sales_doc type bapivbeln-vbeln.
    DATA:
       node_zfinal_node  TYPE REF TO if_wd_context_node,
       elem_zfinal_node  TYPE REF TO if_wd_context_element,
       stru_zfinal_node  TYPE if_main_view=>element_zfinal_node .
    get single attribute
      wd_context->get_attribute(
      EXPORTING
      name =  'DATASOURCE'
      IMPORTING
      value = l_xstring ).
      CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
        EXPORTING
          in_xstring = l_xstring
        IMPORTING
          out_string = l_string.
    SPLIT l_string  AT cl_abap_char_utilities=>newline INTO TABLE i_data.
      LOOP AT i_data INTO l_string.
       SPLIT l_string AT cl_abap_char_utilities=>horizontal_tab INTO TABLE fields.
        READ TABLE fields INTO lv_field INDEX 1.
        wa_table-sales_org = lv_field.
        READ TABLE fields INTO lv_field INDEX 2.
        wa_table-doc_type = lv_field.
        READ TABLE fields INTO lv_field INDEX 3.
        wa_table-DISTR_CHAN = lv_field.
        READ TABLE fields INTO lv_field INDEX 4.
        wa_table-DIVISION = lv_field.
        READ TABLE fields INTO lv_field INDEX 5.
        wa_table-material  = lv_field.
        READ TABLE fields INTO lv_field INDEX 6.
        wa_table-partn_role  = lv_field.
        READ TABLE fields INTO lv_field INDEX 7.
        wa_table-partn_numb  = lv_field.
    APPEND wa_table TO it_table.
      ENDLOOP.
    loop at it_table into wa_table.
    clear : wa_order_header_in.
    wa_order_header_in-sales_org   = wa_table-sales_org.
    wa_order_header_in-doc_type    = wa_table-doc_type.
    wa_order_header_in-distr_chan  = wa_table-distr_chan.
    wa_order_header_in-division    = wa_table-division.
    clear : wa_order_items_in.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        input         = wa_table-material
    IMPORTING
       OUTPUT        = wa_order_items_in-material.
    *wa_order_items_in-req_qty  = wa_table-req_qty.
    append wa_order_items_in to it_order_items_in.
    clear : wa_order_partners.
    wa_order_partners-partn_role = wa_table-partn_role.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        input         = wa_table-partn_numb
    IMPORTING
       OUTPUT        = wa_order_partners-partn_numb
    *wa_order_partners-partn_numb = wa_table-partn_numb.
    append wa_order_partners to it_order_partners.
    endloop.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
      EXPORTING
      SALESDOCUMENTIN               =
        order_header_in               = wa_order_header_in
      ORDER_HEADER_INX              =
      SENDER                        =
      BINARY_RELATIONSHIPTYPE       =
      INT_NUMBER_ASSIGNMENT         =
      BEHAVE_WHEN_ERROR             =
      LOGIC_SWITCH                  =
      TESTRUN                       =
      CONVERT                       = ' '
    IMPORTING
       SALESDOCUMENT                 = sales_doc
      tables
       RETURN                        = it_return
       ORDER_ITEMS_IN                = it_order_items_in
      ORDER_ITEMS_INX               =
        order_partners                = it_order_partners.
      ORDER_SCHEDULES_IN            =
    get message manager
    DATA: l_current_controller TYPE REF TO if_wd_controller,
           l_message_manager    TYPE REF TO if_wd_message_manager.
           l_current_controller ?= wd_this->wd_get_api( ).
    DATA:  v_message_text TYPE string.
    When Sales Order is created commit the data
    IF NOT sales_doc IS INITIAL.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
       EXPORTING wait = 'X'.
      CONCATENATE 'Sales Document' sales_doc 'has been created.' INTO v_message_text SEPARATED BY space.
    Report Success message
      CALL METHOD l_message_manager->report_success
      EXPORTING
      message_text = v_message_text.
      ELSE.
      v_message_text = 'Error Creating Sales Order'.
    Report Error message
    CALL METHOD l_message_manager->report_error_message
    EXPORTING
    message_text = v_message_text.
    ENDIF.
    endmethod.
    Edited by: praveenn on Aug 30, 2011 2:41 PM

  • Update multiple InDesign documents using XML

    I am looking for a solution to update multiple files using XML.
    We have over 100 resumes in indesign and each resume has about a dozen projects (name, size, cost, location)
    I would like to keep all of the projects in a master file "projects.xml" and then basically populate each resume from this file. This would allow me to make one change to a project and have that project update across all the resumes.
    This file would be edited and probably rearanged frequently. I have a basic understanding of XML but am not sure how moving the order of projects within the XML file will effect the resumes.
    My question is what type of issues would I be faced in working this way and how could I tackle them. Any workflow or advice would be very helpful.
    -Justin

    In my understanding, the order of different elements in the XML file wouldn't matter - the order is set by the style sheet (XSLT) file.
    I can't give any real suggestions though, except to consider a third party plugin which would make any XML solution much easier - XMPie, DesignMerge, StudioID etc. You could then reference a database (Access/Excel/csv) containing columns for name, project1, project2... and set the project info to only display if there is a corresponding entry in the database file.

  • Dynamically update swf file in sharepoint using xml data

    Hi,
    I need some help/enlightenment on how to auto-update the swf file in sharepoint using xml data.
    I am encountering an error "Cannot access External Data" and pointing to adobe's Cross-domain policy file extension.
    My questions is:
    1. Where should the cross-domain file be copied? In the sharepoint webserver's root folder?
    Right now, we generate the swf file from xcelsius and manually upload them in the sharepoint. However, we wish to automate the data content of this file.
    Thanks for the help.
    Emerson

    GetFileByServerRelativeUrl.... since you're getting a FILE, you'll need a URL to a FILE (not just a library)... by SERVER relative URL, so you'll need to include the site collection path and such, not just the subsite relative URL.
    Now working fine....
    url: appweburl + "/_api/SP.AppContextSite(@target)/web/ GetFileByServerRelativeUrl('/sites/apps/Shared Documents/test.txt')/CheckOut()?@target='" + hostweburl + "'",
            method: "POST",
            data: metatdata,

  • Update prices at sales document.

    Dear Gurus,
    I would like to know if its possible to update prices to a sales document automatically, is there any standar program?
    Thanks in advance.
    Best regards!
    Juan.

    Dear Juan,
    I noticed you have received some answers from other contributors that probably covers your doubt.
    However, I would like to remember another important exits that I have been using in almost every project to assure that sales order being edited get their price conditions updated.
    MV45AFZB - FORM userexit_new_pricing_vbkd
    MV45AFZB - FORM userexit_new_pricing_vbap
    Suppose you are using some fields from vbkd as your keys for some of the discounts/surcharges, then you had better assure pricing will get updated when user manually changes any of these information. See an example below:
      IF sy-ucomm       NE 'LOES'      AND " Insert or change transaction
         " Any Pricing Relevant Sales Order data was changed?
       ( vbkd-zterm     NE *vbkd-zterm OR  " Payment Term     was changed
         vbkd-konda     NE *vbkd-konda OR  " Prc.Grp.         was changed
         vbkd-kdkg1     NE *vbkd-kdkg1 OR  " Prc.Grp.Cond.1 ;  was changed
         vbkd-pltyp     NE *vbkd-pltyp OR  " Price List       was changed
         vbak-vkgrp     NE *vbak-vkgrp ).  " Sales Group      was changed
        " Then reprice keeping existing manual conditions
        new_pricing = 'C'.
      ENDIF.
    Regards,
    André L L Dantas

  • Getting errors while updating links in Indesign document using javascript

    Hi,
    We are updating the links in InDesign document using javascript. After running the script, we are getting the below errors in Adobe InDesign CC debug.
    When closing the document for first time we are getting the below mentioned errors,
    ASSERT 'fRefCount == 0' in c:\development\citius\source\components\database3\revisioneddatabase\SaLRICache.tpp at line 230 failed.
    Erased item list not empty at block delete time
    blockUID = 10486786 not freed
    Internal error: 904 items were leaked!
    After that we are opening the same document for second time, then we are getting the below mentioned errors,
    ASSERT 'ts_DBPubFile->PlacementUIDIsAvailable(uid)' in c:\development\citius\source\components\database3\revisioneddatabase\SaLRIUtils.tpp at line 195 failed.
    DB failed to create UID!
    ASSERT 'this->FindInIDRangeList(fLastCreatedBlockUID) >= 0' in c:\development\citius\source\components\database3\revisioneddatabase\SaLRICache.tpp at line 476 failed.
    ASSERT 'fLastCreatedBlockUID != kInvalidUID && fLastCreatedItemID != 0' in c:\development\citius\source\components\database3\revisioneddatabase\SaLRICache.tpp at line 467 failed.
    ASSERT '(SaLRIUtils<SnapshotID , SnapshotInfo>::ts_DB)->IsValidUID(itemUID)' in ..\..\..\source\components\database3\revisioneddatabase\SnapshotCache.cpp at line 55 failed.
    Please help us to solve this error in InDesign debug.
    Thanks,
    Vimala L

    You're probably better off raising this in the SDK forum.

  • Updating Items in a form using XML

    Hello all,
    I have a form loaded in SBO. In some conditions I want to disable some items like EditTexts, CheckBoxes, ComboBoxes in the form. Some times I have to enable them.. Since there are more controls in the form I would like to use an XML for doing this.
    But when I tried an XML, it did not work for the Enabled property. But it is working for Visible Property.
    Do anybody know how to update the XML so that it will work fine?
    This is the sample XML used for this purpose.
    <?xml version="1.0" encoding="UTF-16" ?>
    <Application>
    <forms>
      <action type="update">
       <form FormType="MYFORM" uid="MYFORM_1">
        <items>
         <action type="update">
          <item uid="cmbSlsPr" type="113" left="125" enabled="0" visible="1" />
          <item uid="txtCustRef" type="16" left="125" enabled="0" visible="1" />
         </action>
        </items>
       </form>
      </action>
    </forms>
    </Application>
    Thanks in advance.
    Anoop
    Edited by: Anoop Krishnan on Aug 8, 2009 12:43 PM

    Hi Anoop,
    Yes, I update forms using XML.
    <?xml version="1.0" encoding="UTF-16" ?>
    <Application>
         <forms>
              <action type="update">
                   <form FormType="133" uid="">
                        <datasources>
                             <userdatasources>
                                  <action type="add">
                                      <datasource uid="DSItemUID" type="9" size="100"></datasource>
                                       <datasource uid="DSDocNum" type="0"></datasource>
                                  </action>
                             </userdatasources>
                        </datasources>
                        <items>
                             <action type="update">
                            <item uid="FldEDI" type="99" left="384" tab_order="0" width="64" top="98" height="19" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="0">
                                <AutoManagedAttribute></AutoManagedAttribute>
                                <specific caption="EDI" AffectsFormMode="0" val_on="8" val_off="0">
                                    <databind databound="1" table="" alias="SYS_208"></databind>
                                </specific>
                            </item>
                            <item uid="FldOther" type="99" left="448" tab_order="0" width="74" top="98" height="19" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="0">
                                <AutoManagedAttribute></AutoManagedAttribute>
                                <specific caption="Outra Info." AffectsFormMode="0" val_on="2" val_off="0">
                                    <databind databound="1" table="" alias="SYS_208"></databind>
                                </specific>
                            </item>
                                 <item uid="ExportEDI" type="4" left="300" tab_order="0" width="80" top="150" height="20" visible="1" enabled="1" from_pane="8" to_pane="8" disp_desc="0" right_just="0" description="" linkto="rtgEDI" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">
                                       <AutoManagedAttribute></AutoManagedAttribute>
                                       <specific caption="Exportar EDI"></specific>
                                  </item>
    Regards,
    Vítor Vieira

  • How to create a sales document using  BAPI_SALESORDER_CREATEFROMDAT2

    Hai i was un able to create a sales order using the BAPI can you help me out

    Sample Code:
              clear:   l_order_header,
                       l_salesdocument,
                       l_order_partners,
                       l_order_items,
                       l_order_schdl.
              refresh: it_order_items,
                       it_order_partners,
                       it_order_schdl,
                       it_return.
    ???????? get from material ...
            Order header
              l_order_header-doc_type          = 'ZQBV'.
              l_order_header-distr_chan        = '10'.
              l_order_header-division          = '00'.
              if g_qals-werk eq '1100'.
                l_order_header-sales_org         = '1000'.
              else.
                if g_qals-werk eq '3100'.
                  l_order_header-sales_org         = '3000'.
                else.
                  message i001(00) with text-005.
                endif.
              endif.
              l_order_header-purch_no_c        = g_qals-prueflos.  " <= lot
            Partner data
              l_order_partners-partn_role      = 'AG'.
              l_order_partners-partn_numb      = g_qals-kunnr.
              append l_order_partners to it_order_partners.
            Order items => only one
              l_order_items-itm_number         = 10.
              l_order_items-material           = g_qals-matnr.
              l_order_items-target_qty         = 1.
              append l_order_items to it_order_items.
            Schedules for quantity
              l_order_schdl-itm_number         = 10.
              l_order_schdl-req_qty            = 1.        " <=  only 1 !
              append l_order_schdl to it_order_schdl.
            Conditions for value
              l_order_conditions-itm_number    = 10.
              l_order_conditions-cond_type     = 'PR00'.
              l_order_conditions-cond_value    = g_effort_sum.
              l_order_conditions-currency      = g_effort_unit.
              append l_order_conditions to it_order_conditions.
            BAPI to create sales order
              CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
                EXPORTING
               SALESDOCUMENTIN               =
                  ORDER_HEADER_IN               = l_order_header
               ORDER_HEADER_INX              =
               SENDER                        =
               BINARY_RELATIONSHIPTYPE       =
               INT_NUMBER_ASSIGNMENT         =
               BEHAVE_WHEN_ERROR             =
               LOGIC_SWITCH                  =
               TESTRUN                       =
               CONVERT                       = ' '
                IMPORTING
                  SALESDOCUMENT                 = l_salesdocument
                TABLES
                  RETURN                        = it_return
                  ORDER_ITEMS_IN                = it_order_items
               ORDER_ITEMS_INX               =
                  ORDER_PARTNERS                = it_order_partners
                  ORDER_SCHEDULES_IN            = it_order_schdl
               ORDER_SCHEDULES_INX           =
                  ORDER_CONDITIONS_IN           = it_order_conditions
               ORDER_CONDITIONS_INX          =
               ORDER_CFGS_REF                =
               ORDER_CFGS_INST               =
               ORDER_CFGS_PART_OF            =
               ORDER_CFGS_VALUE              =
               ORDER_CFGS_BLOB               =
               ORDER_CFGS_VK                 =
               ORDER_CFGS_REFINST            =
               ORDER_CCARD                   =
               ORDER_TEXT                    =
               ORDER_KEYS                    =
               EXTENSIONIN                   =
               PARTNERADDRESSES              =
              if not l_salesdocument is initial.
              order successfully created
                message i001(00) with text-001 l_salesdocument.
    call function 'BAPI_TRANSACTION_COMMIT'.
              endif.
    Regards,
    Ravi

  • Updating quantity in sales order using api

    Hi all,
    SET SERVEROUTPUT ON;
    DECLARE
    v_api_version_number NUMBER := 1;
    v_return_status VARCHAR2 (2000);
    v_msg_count NUMBER;
    v_msg_data VARCHAR2 (2000);
    -- IN Variables --
    v_header_rec oe_order_pub.header_rec_type;
    v_line_tbl oe_order_pub.line_tbl_type;
    v_action_request_tbl oe_order_pub.request_tbl_type;
    v_line_adj_tbl oe_order_pub.line_adj_tbl_type;
    -- OUT Variables --
    v_header_rec_out oe_order_pub.header_rec_type;
    v_header_val_rec_out oe_order_pub.header_val_rec_type;
    v_header_adj_tbl_out oe_order_pub.header_adj_tbl_type;
    v_header_adj_val_tbl_out oe_order_pub.header_adj_val_tbl_type;
    v_header_price_att_tbl_out oe_order_pub.header_price_att_tbl_type;
    v_header_adj_att_tbl_out oe_order_pub.header_adj_att_tbl_type;
    v_header_adj_assoc_tbl_out oe_order_pub.header_adj_assoc_tbl_type;
    v_header_scredit_tbl_out oe_order_pub.header_scredit_tbl_type;
    v_header_scredit_val_tbl_out oe_order_pub.header_scredit_val_tbl_type;
    v_line_tbl_out oe_order_pub.line_tbl_type;
    v_line_val_tbl_out oe_order_pub.line_val_tbl_type;
    v_line_adj_tbl_out oe_order_pub.line_adj_tbl_type;
    v_line_adj_val_tbl_out oe_order_pub.line_adj_val_tbl_type;
    v_line_price_att_tbl_out oe_order_pub.line_price_att_tbl_type;
    v_line_adj_att_tbl_out oe_order_pub.line_adj_att_tbl_type;
    v_line_adj_assoc_tbl_out oe_order_pub.line_adj_assoc_tbl_type;
    v_line_scredit_tbl_out oe_order_pub.line_scredit_tbl_type;
    v_line_scredit_val_tbl_out oe_order_pub.line_scredit_val_tbl_type;
    v_lot_serial_tbl_out oe_order_pub.lot_serial_tbl_type;
    v_lot_serial_val_tbl_out oe_order_pub.lot_serial_val_tbl_type;
    v_action_request_tbl_out oe_order_pub.request_tbl_type;
    v_msg_index NUMBER;
    v_data VARCHAR2 (2000);
    v_loop_count NUMBER;
    v_debug_file VARCHAR2 (200);
    b_return_status VARCHAR2 (200);
    b_msg_count NUMBER;
    b_msg_data VARCHAR2 (2000);
    BEGIN
    DBMS_OUTPUT.PUT_LINE('Starting of script');
    -- Setting the Enviroment --
    mo_global.init('ONT');
    fnd_global.apps_initialize ( user_id => 1153,resp_id => 50602,resp_appl_id => 7000);
    mo_global.set_policy_context('S',85);
    -- Header Record --
    --v_header_rec                        := oe_order_pub.g_miss_header_rec;
    --v_header_rec.operation              := OE_GLOBALS.G_OPR_UPDATE;
    v_header_rec.request_date           := SYSDATE + 1; Updating the Request Date
    v_header_rec.header_id              := 6006; Existing order header id
    v_action_request_tbl (1) := oe_order_pub.g_miss_request_rec;
    -- Line Record --
    v_line_tbl (1) := oe_order_pub.g_miss_line_rec;
    --v_line_tbl (1).operation            := oe_globals.g_opr_create;
    v_line_tbl (1).header_id := 1087; -- Existing order header id
    --v_line_tbl (1).inventory_item_id    := 9;
    v_line_tbl (1).ordered_quantity := 1;
    v_line_tbl(1).invoice_to_org_id := 1060;
    v_line_tbl(1).line_id := 1046;
    v_line_tbl(1).change_reason := 'Not provided';
    --v_line_tbl (1).unit_selling_price   := 10;
    --v_line_tbl (1).unit_list_price   := 10;
    --v_line_tbl (1).calculate_price_flag := 'Y';
    v_line_tbl(1).operation := OE_GLOBALS.G_OPR_UPDATE;
    DBMS_OUTPUT.PUT_LINE('Starting of API');
    -- Calling the API to update the header details of an existing Order --
    OE_ORDER_PUB.PROCESS_ORDER (
    p_api_version_number => v_api_version_number,
    p_header_rec => v_header_rec,
    p_line_tbl => v_line_tbl,
    p_action_request_tbl => v_action_request_tbl,
    p_line_adj_tbl => v_line_adj_tbl, -- OUT variables,
    x_header_rec => v_header_rec_out,
    x_header_val_rec => v_header_val_rec_out,
    x_header_adj_tbl => v_header_adj_tbl_out,
    x_header_adj_val_tbl => v_header_adj_val_tbl_out,
    x_header_price_att_tbl => v_header_price_att_tbl_out,
    x_header_adj_att_tbl => v_header_adj_att_tbl_out,
    x_header_adj_assoc_tbl => v_header_adj_assoc_tbl_out,
    x_header_scredit_tbl => v_header_scredit_tbl_out,
    x_header_scredit_val_tbl => v_header_scredit_val_tbl_out,
    x_line_tbl => v_line_tbl_out,
    x_line_val_tbl => v_line_val_tbl_out,
    x_line_adj_tbl => v_line_adj_tbl_out,
    x_line_adj_val_tbl => v_line_adj_val_tbl_out,
    x_line_price_att_tbl => v_line_price_att_tbl_out,
    x_line_adj_att_tbl => v_line_adj_att_tbl_out,
    x_line_adj_assoc_tbl => v_line_adj_assoc_tbl_out,
    x_line_scredit_tbl => v_line_scredit_tbl_out,
    x_line_scredit_val_tbl => v_line_scredit_val_tbl_out,
    x_lot_serial_tbl => v_lot_serial_tbl_out,
    x_lot_serial_val_tbl => v_lot_serial_val_tbl_out,
    x_action_request_tbl => v_action_request_tbl_out,
    x_return_status => v_return_status,
    x_msg_count => v_msg_count,
    x_msg_data => v_msg_data);
    DBMS_OUTPUT.PUT_LINE('Completion of API');
    IF v_return_status = fnd_api.g_ret_sts_success THEN
    COMMIT;
    DBMS_OUTPUT.put_line ('Order Header Updation Success : '||v_header_rec_out.header_id);
    ELSE DBMS_OUTPUT.put_line ('Order Header Updation failed:'||v_msg_data);
    ROLLBACK;
    FOR i IN 1 .. v_msg_count
    LOOP v_msg_data := oe_msg_pub.get( p_msg_index => i, p_encoded => 'F');
    dbms_output.put_line( i|| ') '|| v_msg_data);
    END LOOP;
    END IF;
    END;
    im getting errors pls send me a solution
    rgds,
    sandy

    if you just want to change qty , then comment v_line_tbl(1).invoice_to_org_id := 1060; and try to run again
    Regards
    eoracleapps.blogspot.com

  • Validation of XML within InDesign CS5 document using schema (xsd)

    Hi,
    Can any one suggest me how to validate the XML within the InDesign document using xml schema (.xsd) file.
    Can this validation be done within the Indesign like DTD validation.
    Thanks,
    Gopal

    I personally don't work with XML in InDesign too much.
    This link should help you :- http://help.adobe.com/en_US/indesign/cs/using/WS372C59DB-BD13-4806-A399-794E754FF37Aa.html
    look under About DTD file section.

  • Change partners (CR/SP) in Sales Document

    Hi All,
             I have a requirement where I need to change the partner (forwarding agent CR/SP) in sales order if the shipping condition is manually changed in the order. Which is the best possible way to accomplish this task? I am using USEREXIT_SAVE_DOCUMENT_PREPARE in MV45AFZZ. The code is as follows.
    IF SY-TCODE = ‘VA02’
    SELECT SINGLE PARTNER INTO V_PARTNER FROM ZCARRIER
      WHERE LAND1 = V_LAND1
      AND   LZONE = V_LZONE
      AND   VSBED = V_VSBED
      AND   TRAGR = V_TRAGR.
      IF SY-SUBRC = 0.
        SELECT SINGLE * FROM LFA1 INTO WA_LFA1
        WHERE LIFNR = V_PARTNER.
        LOOP AT XVBPA WHERE PARVW = 'SP'.
            XVBPA-LIFNR = V_PARTNER.
            XVBPA-ADRNR = WA_LFA1-ADRNR.
            XVBPA-NAME1 = WA_LFA1-NAME1.
            XVBPA-UPDKZ = 'X'.
            MODIFY XVBPA.
        ENDLOOP.
      ENDIF.
    ENDIF.
    The code above does not accomplish the task completely. I am able to see the updated Partner on the screen of partners tab of the sales order but it doesn’t update the VBPA (Sales Document: Partner) table. I guess I am missing some thing else.  Any help is appreciated.
    Thanks,
    Giri..

    Hello Seshu,
    Could you be more specific?
    I have to do a similar job. I have to make VA01 to choose forwarder from a list of possible forwarders, and I got to the point that in the partners list ALV from va01, I complete the partner number, but i can't make it take the complete dates about that number, for the rest of the columns in Partner list(Name, street,...).
    I tried in debbuger to find ADRC table but it does not exist in INCLUDE MV45AFZZ.
    Many thanks,
    Elena

  • Campaign redetermination excisting sales documents

    Hi,
    When we activate Campaigns in CRM, in SAP their are Sales documents which must be involved.
    Now only the new  entered sales documents are part of the campaign.
    What can we do to reprice or something like that, to get the information needed in the "old" sales documents?
    I have found BADi's beginning with CMPD...  but don't now the functionality.
    Who can help me with information to update these "old sales documents" .
    Regards.

    You CAN cancel the invoice which will (as long as the new cancellation procedure is used) reverse the billing document sent to FI.
    This is what I would suggest you do. When items have been partially billed, the condition control of the conditions (KSTEU) gets set to 'F' meaning fixed.  The KSTEU = 'F' is only set if you go to the original document and acess the condition screen after invoicing. This happens in LV61AA03 # FIXIEREN_KOPFKONDITION_
    POSITION and only in the order for conditions which have KSTEU = 'A' originally.
    Once you cancel the invoice, the condition control is no longer "fixed" and you will then be able to make your changes.
    I hope this is helpful!

  • User-Exit for changing Sales Document Number - Urgent

    Hi Experts ,
                     Please suggest me the <b>User Exit for changing Sales Document Number.</b>
    thanks,
    Jayesh<b></b>

    hi jayesh,
    chech this exit-----EXIT_SAPFV45S_002.
    this exit's description says " Change Sales Document Using Configuration".
    Other available exits are
    SDAPO001            Activating Sourcing Subitem Quantity Propagation
    SDTRM001            Reschedule schedule lines without a new ATP check
    V45A0001            Determine alternative materials for product selection
    V45A0002            Predefine sold-to party in sales document
    V45A0003            Collector for customer function modulpool MV45A
    V45A0004            Copy packing proposal
    V45E0001            Update the purchase order from the sales order
    V45E0002            Data transfer in procurement elements (PRreq., assembly)
    V45L0001            SD component supplier processing (customer enhancements)
    V45P0001            SD customer function for cross-company code sales
    V45S0001            Update sales document from configuration
    V45S0003            MRP-relevance for incomplete configuration
    V45S0004            Effectivity type in sales order
    V45W0001            SD Service Management: Forward Contract Data to Item
    V46H0001            SD Customer functions for resource-related billing
    V60F0001            SD Billing plan (customer enhancement) diff. to billing plan
    Enter these exits name in SMOD transaction and select components. u can find all the user exits available for this exit name.
    Reward me if useful..........
    Harimanjesh AN

  • While Creating Maintenance Plan ip41- Sales Document tab is deactive

    Hi,
    while Creating Maintenance Plan IP41- Sales Document is deactive.
    Unable to fill the Sales Number.
    Can anybody tell what is the procedure to active the Sales Document tab,since i have to entry sales number in it.
    Thanks in advance.
    Mohit

    hi
    can you explain in detail ,you can create the maintenance plan for sales document using T code IP50 .kindly check
    regards
    thyagarajan

  • Complaints in sales documents

    Hi Guru's,
    Can any 1 tell me what is debit memo request, credit memo request & returns  in sales documents ???
    Thanks,
    Danish

    Hi
    help.sap.com
    DEBIT MEMO
    A debit memo request is a sales document used in complaints processing to request debit for a customer.
    You can create a debit memo request if the prices calculated for the customer were too low (for example, if the wrong scale prices were calculated). The debit memo request can be automatically blocked for checking. Once it has been approved, you can remove the block.
    The system uses the debit memo request to create a debit memo.
    CREDIT MEMO
    credit memo request is a sales document used in complaints processing to request credit for a customer.
    If the price calculated for the customer was too high (for example, with the wrong scaled prices or because a discount was forgotten), you can create a credit memo request. The credit memo request can be automatically blocked for checking. Once it has been approved, you can remove the block.
    The system uses the credit memo request to create a credit memo.
    RETURNS
    A return is a sales document used in complaints processing for when a customer sends goods back.
    if the customer returns damaged goods, or goods that had been delivered for sale on approval.
    The return causes the system to:
    Register the receipt of goods using a returns delivery, and post the goods to stock (for example, blocked stock).
    Create a credit memo, once you have checked the goods and approved the complaint.
    regards
    Prashanth

Maybe you are looking for

  • How do I get rid of the useless grey keyboard on my mini?

    I have been using a bluetooth keyboard and have had no trouble with the touch keyboard when the BT is off.  This week though a darker grey keyboard appeared that does not go away when the BT is off AND it does not function.  How do I get back to the

  • How to import external jars in a CAF project?

    Hello Experts! Could you help me find out the way to import external jars in a CAF project. I have tried to import the jars in ejbmodule using "java build path--->libraries". But while trying to build the project it's displaying error and all the imp

  • Regular Expression and PL/SQL help

    I am using Oracle 9i, does 9i support regular expression? What functions are there? My problem is the birth_date column in my database comes from teleform ( a scan program that reads what people wrote on paper), so the format is all jacked up.... 50%

  • Step input, chord mode not working?

    Hello Gurus! I'm using Logic with a midi Keyboard and the Step Input Windows and I have a small but significant difference between the two: When I use Step Input Windows with chord mode selected the playhead correctly doesn't move if I hit more note

  • Agent installation

    OS: AIX 5.2 Oracle DB Version: 10.1.0.4.0 CD Pack: Oracle EM 10g Grid Control Release 1 Hello All, Our Oracle DB 10.1.0.4.0 is running on AIX 5.2. Now I have request to install AGENT on this box from Oracle EM 10g Grid Control Release 1 cd pack. Is t