Quantity updation in G/L

Dear Friends.
I want to update the quantity in my sales G/l.
G/l Derives from VKOA setting.
I have tried quantiyt feild optional as well as required but no use.
Please tell me how can I update quantity in G/L.
Thanks & Regards.
Reva

.

Similar Messages

  • Query on material and quantity updation

    I updated material and quantity updation for a particular material type and plant combination in development server. Before transpoting in transport request, when I View Cluster Maintenance: Data, I am able to see that in table T143M is also updated for some other plant and material types which I had not done in customising. Also note that for the entries in transport for all plant and material type combination other than intended one, there are no qunatity and value updating which had been activated. Can someone throw light as to whether is it a functional or techinal issue which is causing this?

    Hi,
    whenever your copping new material type from existing one it  will copy all the setting ie screen reference , attributes and even quantity / value update also . so it will display like that .

  • Prevent quantity updating during Goods Receipt

    Hi,
    We have a particular requirement for a type of subcontracting process (not the standard SAP subcontracting) as mentioned below.
    We create a Purchase Order for a material (without a standard cost) and giving an account assignment category in the PO. The Net price mentioned in the PO is the processing charges for the vendor (service charges). It does not indicate price for the material.
    When we receive the finished material from the vendor, we perform a Goods receipt. The stock gets updated and accounting documents are created.
    Our requirement is to stop this quantity updating during Goods Receipt. But, at the same time, we would like the accounting documents to be created as we need to pay the vendor.
    Is there any way of achieving this?
    Pl let me know. Any inputs would be appreciated.

    Hi,
    Thanks for the response!
    I understand that in the standard process, the parent item inforecord takes care of the processing charges. But this is process that has been customized differently as the client has SAP as well as legacy systems talking to each other.
    Turning off the qty updating at the material type level will turn it off for all purchase orders created for the material at that particular plant which is something we would like to avoid.
    We would basically like to turn it off for particular purchase order type. The reason for turning it off is that after the GR is done, there is a separate process that comes from the legacy system and updates the same quantity of finished product and also posts the consumption of components.
    So, our basic requirement is , is it possible to turn off qty updating for the GR of a particular purchase order document type and yet create accounting document. Material is not a valuated material and has a standard cost zero.
    Any inputs in this regard will be helpful.
    Regards

  • Quantity updates in return order from referenced Invoice

    Dear Gurus,
    I have set  the return sales order creation with the reference of a Invoice document. Therefore when i make the return order i enter the invoice number into the reference and then make the changes with quantity as per the requirement. suppose in invoice I have 5 quantity and in the return order I make it 2 so return of 2 will take place, then i will do PGR for quantity 2 with the reference of return order and then the credit for return upto  this its working fine. But now if I want make the second return order with reference of same Invoice system will give me pop up saying that the return anf credit of quantity 2 has already done for so and so item. Then if I enter in the return sales order in the order quantity I should see 3 quantity only as the return and credit of 2 quantity already took place but here the quantity in sales order is not getting change and it is appearing 5.
    I dont know where the mistake? I check the copy control also for ZTAN (invoice) to ZREN (Return) it is as follows.
    Copying Reqt - 303
    DataT - 153
    DataT - 104
    DataT - 004
    Pricing type - D
    Update Doc Flow - X
    and remaining all fields are blank
    Copy Control at header level ZIF2 to ZIRE
    Copying Reqt - 021
    DataT - 052
    DataT - 103
    DataT - 003
    Copy Item Number - Checked
    Complete reference  - Unchecked
    Please help me how this quantity update will happen automatically?
    Regards,
    Sanjay

    Hello Dear Sanjay;
    I completely understand your requirement, but this is how the SAP system works. I had already this needs and actually the system doesn't have control like this. Is this a bug ? Maybe....
    We were forced to development a Z program or new routine to treat this control.
    The system send a simple message including quantities, but internally the function module allow to do a return orders, for instance, how many times as you want.....
    I hope you can understand the limitation.
    Regards
    Ruy Castro

  • Inbound delivery putaway quantity update

    Dear experts
    It is regarding the putaway quantity update in inbound delivery with WM transfer order.
    I found the putaway quantity updated immediately once TO created.
    I have confusion that the putaway quantity should be updated once TO confirmed not created.
    Could you please let me know your  comment? thanks!
    Zhixian

    That is standard SAP behavior however at the time of PGR system check the whether delivery quantity is matching with putaway qty or not, if it match then only it allows to perform PGR
    also one more setting is helpful in this regard (this help to update the quantity in delivery)
    LE ----WM---Interface---Shipping ---Define Shipping Control at the Movement Type Level

  • Quantity update of material type

    Hi all,
    I have a question with regards to material type.
    Letu2019s say if I can a new material type with both purchasing and sales view, and unchecked the u201CQuantity Updatingu201D checkbox, and checked the u201CValue Updatingu201D checkbox in the material type configuration.
    1 - May I know what does it means?
    Does it meant:
    2 u2013 When I did a goods receipt into the system, there will no stock quantity update in display in the MMBE, MB52 (i.e. not inventorized)?
    3 u2013 Does it means the tmaterial create will be inventorized?
    4 u2013 the stock quantity will not be capture in the system but only the value will show in the book?
    This a bit confuse topic.
    Thanks.

    hi
    quantity and value update is ticked for the materials which being inventerised generally in the plant
    now if u dont tick for the quantity update then the material will required the account assignment as it will not stocked in SL
    if u untick for value update and tick for quantity then the material can be stored in the SL ,means we can do the GR but the there will be    no accounting documents
    better we explain you why dont you try it yourself
    regards
    kunal

  • CRM Channel Managment - released quantity update in contract

    In the channel management , the claims are created throught the transaction cms_rtcm.
    Which should finally update the released quantity in the contract.?
    Now in this process I see only CMS table CMSD_CNT_PRD_XT getting updated.And I donot find any means by which the CRM table CRMD_CUMULATED_I is updated,
    from which the released quantity is obtained.
    Can anybody tell me how is the released quantity updated in this scenario?
    Thanks in advance
    Chitra.P

    Try modifying the qty thru FM CRM_SCHEDLIN_PUT_OB.
    This should solve the issue.
    ~Kiran

  • GR for non valuated material/ no quantity update

    Good Morning, I wonder if someone can clarify if SAP is performing as expected in the following scenario:
    I have one company code.
    Valuation level is set to plant.
    There are two plants attached to the company code.
    I have a non valuated material that is set to quantity update in one plant but not in the other.
    I have created a PO with account assignment for the non valuated material in the plant where quanity updating is switched off.
    When I try carry out a GR in MIGO or MB01 it is forcing a storage location even though the material in that plant is set to no quantity update.
    This is not what I expected but does anyone know if this is working correclty and why?
    Thanks in advance.
    Andy Rushforth

    Hi,
    If Company B raises the PO to Vendor but the material is delivered to Company A.
    Here in this case you need to do the GR in MIGO for the non valuated material to Company B using the PO. But stock will not available in the stores as it will directly post to the consumption to cost centres. Then you have to do 202 mvt type in MB1A for the same cost centre to update the stock in Company B.
    Then you need to create the STO inter company then you need to transfer the stock from Company B to Company A. This is actually a long process and involves correct monitoring to stream line process.
    Why don't you raise the PO in Company A to Supplier instead of Company B.
    rgds
    Chidanand

  • OMS2 - quantity update vs. value update

    Hello MM experts,
    Could anyone please explain the difference between quantity update vs. value update - which is selected in what scenario.
    We have a new material with 3050 val. class and VERP as item category group. When we created PO, it gave us error as to  'Account Assignment Mandatory'. So I selected quantity update in OMS2 for VERP material type. However, it still gave the error. So, I selected the 'value update'. Now the PO was created successfully. I did not select value initially, since it wasn't selected for any other material type/plant.
    Please explain the reason.
    Thank you.

    Hi Munair,
    from accounting perspective any material can be purchased for either  STOCK or for CONSUMPTION
    - STOCK implies that material will be kept in inventory and will be managed on Qty and Value basis ( you can see stock qty and value in material master accounting view and in reports like MB52) and subsequent issue will generate an account posting
    -  CONSUMPTION means that material's purchase value will be consumed at the time of purchase.
    for items which we always want to be consumed at the time of purchase e.g. factory consumable or small items like stationary etc. where we don't want to track them on value basis in accounting  we need to put VALUE update as ' blank'
    this will ensure that material can't be brought in to inventory and hence will always ask for account assignment because system wants to know that if its for consumption than against what it will be consumed e.g. cost centre / internal order
    it will allow to progress of you use an account assignment and put a cost centre against it.
    In your case some companies wants to track packaging on a value basis ( so require value update as X in OMS2)
    for others if packaging is too small in terms of value than they prefer not to track this is accounting and somark value update as 'blank' in OMS2)
    Hope this clears
    Regards
    Dheeraj

  • Free goods determination (Quantity Update)

    Hi Experts,
    Need your help in below scenario
    Company wants if a customer buys 100 tons of cement in a month, 2 tons of cement is given to him free
    Kindly suggest how to map this scenario in SAP
    I have thought of free goods but donu2019t know how to update the quantity
    For example if a customer buys 100 tons of cement in 10 days
    10 tons of cement each day on 10th day he should get 2 tons of cement free automatically.
    It means if he places the order for 10 tons of cement on 10th day he should get 12 tons of cement
    As customer has completed the target of 100 tons of cement and we are giving 2 tons of cement free
    Thanks in Advance for your help
    Krushnakumar Rathi

    hi,
    create a schedule agreement to the same. say 100 bags of cement for 10 days = 10 bags per day and at the last day
    basing on the quantity it has to pickup 10+ 20 bags as free.
    In exclusive free goods access sequence there is a requriment field in which you can assign your own routine for your requriment.
    logic:
    create a Z table with maintaince view and the fields there inside maintaince view is:
    1. line items, order quantity, order date, last day of the sales order creation for eg.
    and make it to compare to the order quantity or according to no of line items split.  here you need to consider some parameters & give logic to the system that when is the last date of your delivery. for that you need to take last line item or order quantity ends into consideration in that routine.
    when ever the scheduling agreement is getting triggered from there only system understands that this is the last day and it will trigger the free goods as expected
    then only the exclusive goods that is 10+20 bags has to trigger automatically.
    please check teh same in teh system and confirm the fourm
    regards,
    balajia.

  • Quantity update into sales order using BAPI_SALESORDER_CREATEFROMDAT2

    Hi All,
    I am able to create a sales order using the BAPI "BAPI_SALESORDER_CREATEFROMDAT2".
    But even after assinging the Target_quntity and the Target_quantity_units, the values are not getting updated into the Sales order, but the sales order gets created .
    Did anyone of you had a similare problem, how was it solved.
    cold some one please help me out on this.
    Regards

    Hi
    I had used below code (using <b>BAPI_SALESORDER_CREATEFROMDAT1</b>)..but never faced any problem.. you can try the same...
    Regards,
    Raj
    REPORT  z_sd_salesorder_create
            NO STANDARD PAGE HEADING
            LINE-SIZE 150
            MESSAGE-ID zz.
                  S T R U C T U R E  D E C L A R A T I O N S             *
    TYPES: BEGIN OF x_ppl,
            ppl_order(18),   " ppl Orderno
            auart(4),         " Sales Doc Type
            vkorg(4),         " Sales Organization
            vtweg(2),         " Distribution Channel
            spart(2),         " Division
            div(3),           " Division
            kunnr(10),        " Sold-to Party
            date(10),         " Doc Dt
            matnr(18),        " Item Matnr#
            uom(3),           " UOM
            qty(15),          " Qty
           kschl(4),         " Pricing condiiton type
           kbetr(11),        " Rate
           END OF x_ppl.
    TYPES: BEGIN OF x_file,
            loc(30),          " Location
            div(3),           " Division
            ppl_order(18),   " ppl Orderno
            kunnr(10),        " Sold-to Party
            date(10),         " Doc Dt
            matnr(20),        " Item Matnr#
            qty(15),          " Qty
            uom(3),           " UOM
           kbetr(11),        " Rate
           discount(5),      " Discount
           END OF x_file.
    TYPES: BEGIN OF x_output,
            ppl_order(18),       " ppl Orderno
            mesg(130),            " Mesg Success/Error
           END OF x_output.
    TYPES: BEGIN OF x_werks,
            name2(30),                " Location
            werks TYPE werks_ext,     " Plant
           END OF x_werks.
    TYPES: BEGIN OF x_info,
            vkorg TYPE vkorg ,   " Sales org
            vtweg TYPE vtweg,    " Dist channel
            werks TYPE werks_ext," Plant
            spart TYPE spart,    " Storage Loc
           END OF x_info.
    TYPES: BEGIN OF x_material,
            ppl_prdid(20),      " ppl Prd id
            matnr TYPE matnr,    " Material (SAP)
           END OF x_material.
           I N T E R N A L    T A B L E    D E C L A R A T I O N S       *
    DATA: it_file  TYPE STANDARD TABLE OF x_file  WITH HEADER LINE." File Data
    DATA: it_data  TYPE STANDARD TABLE OF x_ppl  WITH HEADER LINE." ppl File
    DATA: it_out TYPE STANDARD TABLE OF x_output WITH HEADER LINE. " Outcome
    DATA: it_werks TYPE STANDARD TABLE OF x_werks WITH HEADER LINE.    " Plant
    DATA: it_info TYPE STANDARD TABLE OF x_info WITH HEADER LINE.      " Othr Info
    DATA: it_matnr TYPE STANDARD TABLE OF x_material WITH HEADER LINE. " Material Info
    DATA: it_item TYPE STANDARD TABLE OF bapiitemin WITH HEADER LINE.  "Order Itm data
    DATA: it_partner TYPE STANDARD TABLE OF bapipartnr WITH HEADER LINE. "Order Partner data
               V A R I A B L E S      D E C L A R A T I O N S            *
    DATA  : v_correct  TYPE i,
            v_error    TYPE i,
            v_total    TYPE i,
            v_return   LIKE bapireturn1,
            v_index    LIKE sy-tabix.
    *- Return values
    DATA: it_orderh TYPE bapisdhead, "Order Hdr data
          order TYPE bapivbeln-vbeln,
          soldto TYPE bapisoldto,
          shipto TYPE bapishipto,
          return TYPE bapireturn1.
    DATA: hdate   TYPE sy-datum.
                    U S E R   I N P U T S   S C R E E N                  *
    SELECTION-SCREEN: BEGIN OF BLOCK blk01 WITH FRAME TITLE text-t01.
    PARAMETERS: p_file TYPE rlgrap-filename OBLIGATORY. " File name
    SELECTION-SCREEN END OF BLOCK blk01.
                      S E L E C T I O N    S C R E E N                   *
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      PERFORM get_file.
                    S t a r t    o f    S e l e c t i o n                *
    START-OF-SELECTION.
      PERFORM get_upload.
      PERFORM validate_data.        " Validate the data
      PERFORM data_swap.            " Prepare the data for processing
      IF NOT it_data[] IS INITIAL.
        PERFORM get_update.           " Create SalesOrders
      ELSE.
        MESSAGE i001(zz) WITH text-001.
        STOP.
      ENDIF.
                    E n d    o f    S e l e c t i o n                    *
    END-OF-SELECTION.
      IF NOT it_data[] IS INITIAL.
        PERFORM get_write.
      ENDIF.
    *&      Form  get_file
          Get File name
    FORM get_file .
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
        EXPORTING
          program_name  = syst-repid
          mask          = '*'
        CHANGING
          file_name     = p_file
        EXCEPTIONS
          mask_too_long = 1
          OTHERS        = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " get_file
    *&      Form  get_upload
          to upload the file
    FORM get_upload .
      DATA l_file TYPE string.
      CLEAR: it_file, it_file[].
      l_file = p_file.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                = l_file
          filetype                = 'ASC'
          has_field_separator     = 'X'
        TABLES
          data_tab                = it_file
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          OTHERS                  = 17.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ELSEIF sy-subrc = 0.
        SORT it_file BY loc ppl_order.
      ENDIF.
    ENDFORM.                    " get_upload
    *&      Form  get_update
          Creating mapping Data in Z table
    FORM get_update .
      DATA: l_itemno(2) TYPE n,
            l_partner TYPE parvw,
            l_kunnr TYPE kunnr,
            l_matnr TYPE matnr,
            l_mesg TYPE string,
            l_kbetr TYPE p DECIMALS 2.
      DATA: l_in_qty LIKE vbap-zmeng,
            l_meins LIKE mara-meins,
            l_qty   LIKE vbap-zmeng.
      CLEAR: v_correct, v_error, v_total.
      SORT it_data BY ppl_order.
      LOOP AT it_data.
        CLEAR v_index.
        v_index = sy-tabix.
    *- New SalesOrder
        AT NEW ppl_order.
          READ TABLE it_data INDEX v_index.
          CLEAR: it_orderh, it_item, it_partner,
                 order, soldto, shipto, return,
                 it_item[], it_partner[].
          v_total = v_total + 1.  "Increment Total SalesOrders counter
          CLEAR l_itemno.
          l_itemno = '10'.
    *- Covert date fields into Internal format
          CALL FUNCTION 'CONVERT_DATE_TO_INTERN_FORMAT'
            EXPORTING
              datum = it_data-date
              dtype = 'DATS'
            IMPORTING
              idate = it_data-date.
    *- Populate SalesOrder header data.
          CALL FUNCTION 'CONVERSION_EXIT_AUART_INPUT'
            EXPORTING
              input  = it_data-auart
            IMPORTING
              output = it_data-auart.
          it_orderh-doc_type   = it_data-auart.
          it_orderh-sales_org  = it_data-vkorg.
          it_orderh-distr_chan = it_data-vtweg.
          it_orderh-division   = it_data-spart.
          it_orderh-purch_no   = 'DEPOT'.
          it_orderh-price_date = it_data-date.      "Doc Dt
          it_orderh-req_date_h = it_data-date.      "Del.Dt
          it_orderh-purch_no_s = it_data-ppl_order.
    *- Partner data
          CLEAR: l_partner, l_kunnr.
    *- Convert Partner type into internal format
          l_partner = 'SP'.  "SoldTo Party
          CALL FUNCTION 'CONVERSION_EXIT_PARVW_INPUT'
            EXPORTING
              input  = l_partner
            IMPORTING
              output = l_partner.
    *- Convert Customer into internal format
          l_kunnr = it_data-kunnr.
          CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
            EXPORTING
              input  = l_kunnr
            IMPORTING
              output = l_kunnr.
          it_partner-partn_role = l_partner.
          it_partner-partn_numb = l_kunnr.
          APPEND it_partner.
          CLEAR it_partner.
        ENDAT.
    *- Item data
        it_item-itm_number = l_itemno.
    *- Convert material number into internal format
        CLEAR l_matnr.
        l_matnr = it_data-matnr.
        CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
          EXPORTING
            input        = l_matnr
          IMPORTING
            output       = l_matnr
          EXCEPTIONS
            length_error = 1
            OTHERS       = 2.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        it_item-material  = l_matnr.
    *- Call FM to get new qty based on SAP UOM
        CLEAR: l_meins, l_qty, l_in_qty.
        l_in_qty = it_data-qty.
        CALL FUNCTION 'Z_GET_QTY_FROM_UOM'
          EXPORTING
            matnr     = it_item-material
            in_meins  = it_data-uom
            in_qty    = l_in_qty
          IMPORTING
            out_meins = l_meins
            quantity  = l_qty.
        IF sy-subrc = 0.
          it_data-qty = l_qty.
          it_data-uom = l_meins.
        ENDIF.
        it_data-qty = it_data-qty * 1000.
        it_item-req_qty = it_data-qty.
        it_item-sales_unit = it_data-uom.
        it_item-req_date   = it_data-date.
    *- Pricing data
       it_item-cond_type = it_data-kschl.  "Pricing condition
       CLEAR l_kbetr.
       l_kbetr = it_data-kbetr / 10. "Price (Rate)
       it_item-cond_value = l_kbetr.
        APPEND it_item.
        CLEAR  it_item.
    *- Increment Item counter.
        l_itemno = l_itemno + 10.
    *- At end of SalesOrder
        AT END OF ppl_order.
          READ TABLE it_data INDEX v_index.
    *- Call the BAPI for SalesOrder creation
          CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT1'
            EXPORTING
              order_header_in = it_orderh
            IMPORTING
              salesdocument   = order
              sold_to_party   = soldto
              ship_to_party   = shipto
              return          = return
            TABLES
              order_items_in  = it_item
              order_partners  = it_partner.
          IF sy-subrc = 0.
            COMMIT WORK.
          ENDIF.
          v_return = return+0(1).
          IF v_return = 'E'.
            v_error = v_error + 1.
            CLEAR l_mesg.
            l_mesg = return.
            CONDENSE l_mesg.
          ELSE.
            v_correct = v_correct + 1.
            CLEAR l_mesg.
            CONCATENATE 'Salesorder'(007) order 'successfully created.'(008)
            INTO l_mesg SEPARATED BY space.
            CONDENSE l_mesg.
          ENDIF.
    *- Populate the output table
          CLEAR it_out.
          it_out-ppl_order = it_data-ppl_order.
          it_out-mesg = l_mesg.
          APPEND it_out.
          CLEAR it_out.
        ENDAT.
      ENDLOOP.
    ENDFORM.                    " get_update
    *&      Form  get_write
          Write the results
    FORM get_write .
      WRITE:/ 'Total Number of Records :'(002), v_total COLOR 1.
      WRITE:/ 'Total Correct Records   :'(003), v_correct COLOR 3.
      WRITE:/ 'Total Error Records     :'(004), v_error COLOR 6.
      SKIP 3.
      IF NOT it_out[] IS INITIAL.
        WRITE:/5 'ppl Order #'(005),
              28 'Message'(006).
      ENDIF.
      SKIP 1.
      LOOP AT it_out.
        WRITE:/5  it_out-ppl_order,
               28 it_out-mesg.
      ENDLOOP.
    ENDFORM.                    " get_write
    *&      Form  validate_data
          Validate the data
    FORM validate_data .
      DATA: l_bstkde TYPE bstkd_e.
      LOOP AT it_file.
        SELECT bstkd_e INTO l_bstkde
         UP TO 1 ROWS
         FROM vbkd
         WHERE bstkd_e = it_file-ppl_order.
        ENDSELECT.
        IF sy-subrc = 0.  " This ppl Order is already been created in SAP, so delete record
          DELETE it_file.
        ENDIF.
      ENDLOOP.
      SORT it_file BY ppl_order.
    ENDFORM.                    " validate_data
    *&      Form  data_swap
          Prepare the data for processing
    FORM data_swap .
      CLEAR: it_werks, it_info, it_matnr, it_data,
             it_werks[], it_info[], it_matnr[], it_data[].
      IF NOT it_file[] IS INITIAL.
    *- Get the plant from location
        SELECT name2
               werks
          INTO CORRESPONDING FIELDS OF TABLE it_werks
        FROM t001w FOR ALL ENTRIES IN it_file
        WHERE name2 = it_file-loc.
        IF sy-subrc = 0.
          SORT it_werks BY name2 werks.
    *- Get the Sales Org, Division and Distribution Channel
          IF NOT it_werks[] IS INITIAL.
            SELECT vkorg
                   vtweg
                   werks
            INTO CORRESPONDING FIELDS OF TABLE it_info
            FROM tvkwz FOR ALL ENTRIES IN it_werks
            WHERE werks = it_werks-werks.
            IF sy-subrc =  0.
              LOOP AT it_info.
                it_info-spart = '99'.
                MODIFY it_info INDEX sy-tabix.
              ENDLOOP.
              SORT it_info BY vkorg vtweg werks.
            ENDIF.
          ENDIF.
        ENDIF.
    *- Get material from ppl material
        SELECT ppl_prdid
               matnr
          FROM zppl_master
          INTO TABLE it_matnr FOR ALL ENTRIES IN it_file
          WHERE ppl_prdid = it_file-matnr.
        IF sy-subrc = 0.
          SORT it_matnr BY ppl_prdid matnr.
        ENDIF.
      ENDIF.
    *- Update the data in it_data
      LOOP AT it_file.
        CLEAR it_data.
       it_data-auart = 'OR'.
        it_data-auart = 'OR'.  " CHANGED BY Jo ON 3103005
        READ TABLE it_werks WITH KEY name2 = it_file-loc BINARY SEARCH.
        IF sy-subrc = 0.
          READ TABLE it_info WITH KEY werks = it_werks-werks BINARY SEARCH.
          IF sy-subrc = 0.
            it_data-vkorg = it_info-vkorg.
            it_data-vtweg = it_info-vtweg.
          ENDIF.
        ENDIF.
    *- Material
        READ TABLE it_matnr WITH KEY ppl_prdid = it_file-matnr BINARY SEARCH.
        IF sy-subrc = 0.
          it_data-matnr = it_matnr-matnr.
        ENDIF.
        it_data-ppl_order = it_file-ppl_order.
        it_data-date  = it_file-date.
        CONCATENATE it_file-kunnr it_file-loc+1(2) INTO it_data-kunnr.
        it_data-qty   = it_file-qty.
        it_data-uom   = it_file-uom.
       it_data-kbetr = it_file-kbetr.
    *- Pricing condition
       it_data-kschl = 'PR00'.
        CASE it_file-div.
          WHEN 'BRN'.
            it_data-div = '04'.
          WHEN 'GEN'.
            it_data-div = '03'.
          WHEN 'IVF'.
            it_data-div = '02'.
          WHEN 'OPH'.
            it_data-div = '01'.
        ENDCASE.
        it_data-spart = it_data-div.
        APPEND it_data.
        CLEAR  it_data.
      ENDLOOP.
    ENDFORM.                    " data_swap

  • BAPI for Ordered Quantity updation for PO after PO line item cancellation

    Dear Experts,
            I am trying to cancel a line item in ME22N for a particular Purchase Order. When I cancel an item, the ordered quantity is updated in the Status Tab for Header Details. I want to know how is this quantity getting updated and which BAPI is triggered for cancellation. Is it simply adding up the quantities for all line items?

    Header values are addition of line items at run time. I doubt any BAPI specifically calculates it at the header

  • Quantity updation of return material from Qty Contracts

    I have a contact, for which i created a release order,
    delivery, goods issue and invoice.
    Now if I do a return transaction how the quantity
    contract will be up dated  and my requirement is again to replace the
    original quantity in quantity contract.
    Regards
    Gautam

    Hi Gautham,
    I am not getting why u want to update contract as u can create delivery against return order .
    No need to update contract as u have already did PGI and Invoice .
    Correct me if i am wrong.
    Thanks

  • Actual quantity updation in COPA report

    Hi Experts,
    How to update the actual quantity in copa reports. At present we are getting the plan quality in copa reports. Any settings are missing or what could be the reason for this updation.
    Can any one please clarify this issue
    Regards,
    Ram

    Hi
    If you are in MTO, follow the steps below to update sales Qty in COPA
    1. Go to your PA Trf Str in KEi1
    2. Add an assignment line to it, say, 100....
    3. TICK the QTY BILLED/DELIVERED for this assignment line
    4. DO NOT assign any cost element in SOURCE
    5. Assign a COPA Qty Field for this assignment line
    6. Execute VA88
    Br, Ajay M

  • Open quantity update in quotation

    Hello,
    How we can deal with Return orders where in we need to have quotations automatically updated with the returned quantity? What settings are required in the copy control?
    The order is created with reference to quotation and the return order is created with reference to order.
    Open quantity in quotation is decreased when an order is created with reference to quotation. Open quantity in quotation is increased when reducing quantity in order.
    The issue is - return order created with reference to an order doesnu2019t increase the open quantity in the quotation
    Regards
    Viju Nandakumar

    Hi Viju,
    I have never seen this done in the system, normally this is controled by a business process, when the returns order is completed and there is a requirement to replenish the returned material normally the orignal sales order Qty is increased or there is another line added to the sales order and not called from the Quotation. This will keep the called off quantity in balance.

  • Quantity Updation on quantity contract

    hi friends,
    I want to know the settings required for updating the quantity after release order in quantity contract. This is apart from seeing in the details in status overview screen.
    Regards
    Suman

    updating the quantity ?...couldnt get exactly what is required...but from contract to sales order with quantity point of view..check following setting
    1. in VTAA copy control...
    field Pos./neg. quantity  as + => if ur contract qty is 10 and u copy contract to sales order with qty 8 then ur contract will show 2 qty as open
    field Copy quantity as  blank=>Automatic quantity determination while copying
    field Update document flow as checked
    2. in VOV7 , ur contract item category...see that ur field completion rule is having option C meaning Item is completed after the target qty is fully referenced
    Regards
    Jagdish

Maybe you are looking for

  • Doku for pdf printing ends in a dead link

    Hi everyone, I want to setup pdf printing in APEX. The most important installation doku is http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html Since there is APEX 4.0 it results in 404 page not found. B

  • Validations not happening

    hi , Im having a adf read only table and an adf form on separate jsf fragments on a same jspx file. I am setting a partial target on the selection listener on read only table such that i will get the values in form on selection of row in the table. B

  • Data migration  and SEPA direct debit structure B2B

    Hi Gurus we are starting SAP roll-out at the company that already has SEPA direct debit B2B process with their customers. This is a recurring B2B process. In their existing Erp system the customers have already  SEPA mandate Reference. We migrated th

  • Need help with a Chart

    Hi, I apologize if this is the wrong area to enter this question but I really need to find a solution.  Please let me know where I should be posting this if it is in the wrong location.  I have a report that has a bar chart that will show me gps usag

  • Saving/publishing site fails - Error in saving image files

    A friend has created a simple portfolio site for his artwork (about 80 jpegs) but when he goes to save (or publish) iWeb says it can't save some of the images and shows a list of the ones it can't save and stops. I believe that the problem is related