Schedule line is missing in table YVBEP

Hi All,
We added a new custom field in schedule line tab. For which we added code in PAI and user exit MV45AFZZ. When we are adding a schedule line we are getting the following error message:
Schedule line 000010 0004 is missing in table YVBEP
Message no. V1506
The schedule line 0004 for the item# 000010 is having only 'confirmed qty' and 'rounded qty and order quantity' are both 0's. This schedule line was generated as there was no stock for the schedule line entered by user .
Please let me know what has to be done to resolve this issue.
Thanks,
Karuna.

Hi
See SAP Note 178328 - Problems due to incorrect user exits in SD.
This note says:
The Y tables play a role only for the change mode of document
processing. They contain the original status of those table entries
that have been changed during the current transaction. Therefore,
the entries in the Y table reflect the previous status of the
document in the database.
and
You add a table entry. There is only one entry in the X table
that has the update indicator I. There is no entry in the Y
table.
so, check in XVBEP that the field UPDKZ has the value 'I'.
Read carefully this note
Regards
Eduardo

Similar Messages

  • Open Quantities / relation between Sales Schedule LInes and Doc flow tables

    Hi Experts,
    I got a requirement, in which I hv to develop a report for the Open quantities for sales order items. fine.
    I ssue is that, in the report I hv to show at Schedule line level i.e. VBEP.
    So, by pulling the records from VBEP depending on the seldction criteria, I hv to pull the MATCHING record from VBFA for Post Goods Issue.
    Then, I hv to implememnt the follwoing formula,
    Open Quantity = VBEP, say Schedule line 1 quantity -(mnus) first saved corresponding Order, Item Quantitity-RFMNG in VBFA for PGI type
    As we know, VBEP is at Schedule line lvel, where as VBFA is ITEM level!!
    So, pls. let me know that,
    1 - Is really, we can develop the MATCH btwn VBEP and VBFA tbls, I mean, always, the data will be correctly pulled?
    2 - If so, Is the folllwoing statement is OK?
    LOOP AT IT_VBFA WHERE VBELV = IT_VBEP-VBELN and POSNV = IT_VBEP-POSNR and ERDAT LE IT_VBEP-MBDAT
    3 - Any other good statement for my requirement?
    Looks like, functional guy is also NOT much idea, here.
    Thanx

    no reply

  • Schedule line delivery date Source table

    Hi,
    I want to know from which table in R/3 system does data gets popped in to field  0SCH_DELDAT i.e EINDT in data source 2LIS_02_SCL
    Thanks in Advance,
    Rgds,
    Gaurav

    Hi Gaurav,
    The format shown in the PSA is the internal format by which System stores.
    So, as per standard BI the system stores as YYYYMMDD for the date. So, the same format is shown in PSA.
    PSA is the RAW table. where you can see RAW data without any formatted type.
    when you can load the data into cube/ods then you can see the data in the normal format like DD.MM.YYYY.
    hope you understood. ..
    Regards,
    Ravi Kanth

  • Show Order Qty, Shipped out Qty, Open Qty for each SCHEDULE line of Orders?

    HI Experts,
    I need to show the
    Order Qty
    Shipped Qty
    OPEN quantities(Un Shipped quantities)
    at each SCHEDULE line level for all Sales orders.
    So, am pulling the date like,
    Order qty from VBEP-WMENG and
    Open Qta from VBBE-OMENG
    Then am calculating like,
    Shipped Qty =  VBEP-WMENG - VBBE-OMENG
    But, still some SCHEDULE lines r missing in VBBE table!!
    so, pls. let me know that,
    1) Is there any other alternative ideas for my requirement?
    2) Why some SCHEDULE lines r missing in VBBE table?
    thanq

    Try this function module:
      CALL FUNCTION 'RV_SHIPMENT_VIEW'
        EXPORTING
          shipment_number       = tknum
          option_tvtk           = 'X'
          option_ttds           = 'X'
          language              = sy-langu
          option_items          = 'X'
          option_stawn_read     = 'X'
          option_segments       = 'X'
          option_partners       = 'X'
          option_messages       = 'X'
          option_package_dialog = 'X'
          option_flow           = 'X'
          activity              = 'V'
        IMPORTING
          f_vttkvb              = vttkvb
          f_tvtk                = tvtk
          f_tvtkt               = tvtkt
          f_ttds                = ttds
          f_ttdst               = ttdst
        TABLES
          f_vttp                = i_vttpvb
          f_trlk                = i_vtrlk
          f_trlp                = i_vtrlp
          f_vtts                = i_vttsvb
          f_vtsp                = i_vtspvb
        EXCEPTIONS
          not_found             = 1
          delivery_missing      = 3
          OTHERS                = 99.

  • Delivery date in PO schedule lines not equal to delivery date in PO confirm

    Hello expert.,
    I use PO with account assignment E for sales order purchasing coming from a TAB sales order category.  In the PO I have schedule lines define according to the lead time from the materila masetr of the info records.  The schedule lines in the PO update automatically the schedule lnes in the sales order and therefore the planning on the sales and delivery side is done according to the delivery date indiacte in the schedule lines of the PO (table EKET).
    I use also inbound deliveries to indicate when the goods arrive.  At that time, I can realize that the lead time / the quantity delivered by the vendor does not correspond to what was palnned in the schedule lines of the PO.  When I save the inbound delivery, the confirmation is indicated in the PO in the PO confirmation tab with the delivery date equal to today (table EKES).
    The issue I have is that the schedule lines of the PO is not in line with what is in the confirmation tab for both the quantity and the date.  Therefore, even though I have goods arrived that could be delivered to the final customer earlier, the system doesn't recognize it because the schedule lines in the PO remain with the original planned date and quantity and as a consequence also in the sales order schedule line.
    Does anybody can give me a way, a trick or a mechanism to align the delivery date and the qauntity in the PO between the schedules lines tab and the confirmation tab?
    Thanks a lot for your support.
    ALJ
    Edited by: Andre Louis Jadot on Nov 26, 2010 8:15 AM

    Dear,
    This is very intersting.
    Delivery date is come in purchase order from plant delivery time (MRP2) in material master.
    Exa:
    If you enter plant delevery time as 10 days in MRP2 of material master.
    So system calculate delivery date as under.
    Plant delivery time : 10 days.
    PO creation date : 08.05.08.
    System consider delivery date 21.05.08
    System add 3 days in your plant delivery time.
    So 3+10 = 13, Delivery data:- 08.05.08 + 13 = 21.05.08.
    Please check it in your quality client, If it is useful for you please revert back with points.
    Regards,
    Mahesh Wagh.

  • What is the direct link between Schedule Line item and Delivery line item?

    Hi SAP SD Gurus,
    The question is simple.  I would like to calculate the Open order quantity for a particular month based on the Schedule Line Date.
    I am taking all the Schedule lines falling below the running date of the month and sum up that and look for the deliveries happened for that Schedule lines.
    I am unable to link that Schedule line with that Delivery line item.
    The only link is Schedule Line Number in VBEP table which is not available in LIPS.  I would like sum up the Schdule line Quantities and Subtract the sum of the Delivery quantities which will give me the Open orders for the particular day of the month.
    Can anyone help me to link this VBEP table to LIPS table to connect the Schedule line number with the Delivery line item?
    Thanks in advance for your help..
    Augustine

    Anuj,
    I am aware of the Functional Modules. 
    I wanted to know for this Schedule Line, this is Delivery document created.
    Where in SAP through Tables it is linked?  Because, I need to source the Tables to calulate the open orders by way of external report through Business Object.
    The table link from VBEP to LIPS is not directly linked.  It is linked from Sales order line item level.  Because we are capturing all the Sales order Line tiems through the Delivery Status which is not equalled to C. But if there are partial deliveries against the Scheuld Line item level, we need to identify.  The only common joint should be Scheldule line number which is not available in LIPS.
    If we are developing report inside SAP, we can use the said Functional Modules to capture through Structures VBEPD.  Since it is a external reporting , we need to give correct tables and the joints.  Hence I am looking for any other way to solve this.
    Thanks
    Augustine Ponraj

  • Delivery is not possible as per Schedule line dates

    Hi Gurus,
    The schedule lines insales order are for eaxample---
    01.12.2008  -   10 pieces (quantity)
    15.12.2008  -   10
    10.01.2009  -   10
    25.01.2009  -   10
    Tried to deliver the quantity 10 dated 15.12.2008 in the last after all the materials pertaining to other dates are delivered, but system is throwing error as no schedule lines for dated 15.12.2008. But when i checked, delivery is not done for 15.12.2008 and the rest are completed.
    But system allows to deliver the balance 10 quantity either on 25.01.2009 or on a future date but not on 15.12.2008 on which delivery was not done.
    What could be the reason????
    Thanks for your help
    MM

    Hi
    When I see the schedule line in the sales order where in the qty in the delivered qty column (second column from the confirmed qty column) is updated item wise irrrespective of the delivery done as per scheduleline date.
    It means though the delivery and PGI is not done for the date 15.12.2008, but the qty in the delivery qty column is updated and the balace to to be delivered shows for the last date.
    So here iam able to deliver only on the last date i.e. 25.01.2009 or at a later date for the schedule line date missing in between and not on the specific date.
    Is this how SAP standard works - I was wondering why i cannot deliver any schedule line qty and date later after delivering quantities of the subsequant schedule lines.

  • Need BAPI Name for updation of Subcontracting scheduling line agreement

    Hi All,
            Can anybody please tell me BAPI Name for updation of Subcontracting scheduling line agreement from EKET table?
    Note: BAPI_PO_CHANGE is not useful for me.
    Thanks and Regards,
    Atul.

    Hi Muralidhara,
    Can you please give some more details for this BAPI..
    I tried using it , but getting an error "No instance of object type PurchSchedAgreement has been created. External reference:"
    and "Enter G/L Account" (Infact I did specify G/L account in account assignment table)
    with regards,
    Kirti

  • Changing the quantity of Schedule line for an product runtime

    Hi CRM friends,
    When I am saving the Order after changing the quantity (say from <b>5 to 10</b>); Now base on some conditions, quantity must be reverted back to the original quantity (i.e to 5). This has to be done while saving the order in a Call back function module. I have the following parameters:
    1. Item Guid
    2. Old Value (i.e 5)
    3. Header Guid
    I have tried using FM “CRM_SCHEDLIN_I_MAINTAIN_OW” using the following code:
    DATA: LS_FIELDS TYPE CRMT_INPUT_FIELD,
    LT_FIELDS TYPE CRMT_INPUT_FIELD_TAB,
    LS_QTY TYPE CRMT_SCHEDLIN_EXTD,
    LS_SCHEDLIN TYPE CRMT_SCHEDLIN_I_COM,
    LT_SCHEDLIN TYPE CRMT_SCHEDLIN_I_COMT.
    LS_FIELD_NAMES-FIELDNAME = 'QUANTITY'.
    LS_FIELD_NAMES-CHANGEABLE = 'X'.
    INSERT LS_FIELD_NAMES INTO TABLE LS_FIELDS-FIELD_NAMES.
    LS_FIELDS-REF_HANDLE = 1.
    LS_FIELDS-REF_GUID = IV_OBJECT_GUID.” A88DE289D91D464C81052646DB6856BB
    LS_FIELDS-REF_KIND = 'B'.
    LS_FIELDS-OBJECTNAME = 'SCHEDLIN_I'.
    INSERT LS_FIELDS INTO TABLE LT_FIELDS.
    LS_QTY-GUID = ls_schedlin_i_new-GUID. “A88DE289D91D464C81052646DB6856BB / 1D72D133BF86FC4F81BC8F0F88438136(From table CRMD_SCHEDLIN passing the item guid )
    LS_QTY-ITEM_GUID =  IV_OBJECT_GUID. “A88DE289D91D464C81052646DB6856BB
    LS_QTY-QUANTITY = lV_OLD_ORDER_QTY.
    LS_QTY-MODE = 'B'.
    LS_QTY-EVENT_TYPE_APPL = 'CRMS'.
    LS_QTY-EVENT_TYPE = 'ORDER'.
    LS_QTY-SCHED_NO_EXT = '0001'.
    LS_SCHEDLIN-REF_GUID = IV_OBJECT_GUID.
    LS_SCHEDLIN-REF_HANDLE = 1.
    LS_SCHEDLIN-MODE = 'B'.
    INSERT LS_QTY INTO TABLE LS_SCHEDLIN-SCHEDLINES.
    CALL FUNCTION 'CRM_SCHEDLIN_I_MAINTAIN_OW'
    CHANGING
    CS_SCHEDLIN_I_COM = LS_SCHEDLIN
    CT_INPUT_FIELDS = LT_FIELDS.
    The code is executing fine, but the quantity changes to new one (i.e. <b>10</b>) Please tell me whether there is a mistake in passing the parameters. For LS_QTY-guid I have tried passing with item guid as well as schedule line guid from the table CRMD_SCHEDLIN.
    Also tell me there is any other way.
    Regards
    Naveen.

    hi use this code in
    order_save-prepare method
    The refrence code is from FM 'CRM_COMP_PROD_INS_AS_SUBITEMS' and include LCRM_COMP_PROD_UIF13
    It does work. I am copying the main line item in sub line item and changing the quantity.
    regards
    M
      cs_schedlin_i-ref_handle        = iv_handle.
    fill input_field
      ls_input_field-ref_handle       = iv_handle.
      ls_input_field-ref_kind         = gc_object_ref_kind-orderadm_i.
      ls_input_field-objectname       = gc_object_name-schedlin.
      get handle
        CALL FUNCTION 'CRM_INTLAY_GET_HANDLE'
          IMPORTING
            ev_handle = ls_schedlines-handle.
        ls_schedlines-mode             = gc_mode-create.
        ls_schedlines-parent_sdln_guid = iv_own_item_guid.
        ls_schedlines-logical_key      = ls_schedlines-handle.
        ls_schedlines-quantity         = 1.
        INSERT ls_schedlines INTO TABLE cs_schedlin_i-schedlines.
        ls_input_field_names-fieldname  = gc_fld_schedlin-handle.
        INSERT ls_input_field_names INTO
                                    TABLE ls_input_field-field_names.
        ls_input_field_names-fieldname  = gc_fld_schedlin-parent_sdln_guid.
        INSERT ls_input_field_names INTO
                                    TABLE ls_input_field-field_names.
        ls_input_field_names-fieldname  = gc_fld_schedlin-logical_key.
        INSERT ls_input_field_names INTO
                                    TABLE ls_input_field-field_names.
        ls_input_field_names-fieldname  = gc_fld_schedlin-quantity.
        INSERT ls_input_field_names INTO
                                    TABLE ls_input_field-field_names.
        ls_input_field-logical_key = ls_schedlines-handle.
        INSERT ls_input_field INTO TABLE ct_input_field.

  • GATP scenario and Rescheduling Schedule line dates

    Hi All,
    Can anybody tell me where and how can I reschedule the Schedule line dates available from a GATP check. My requirement is as follows:
    For a GATP material, after the GATP check, I need to push the Goods Issue date AHEAD based on the DAY and TIME maintained in the Route Schedule id (VL51, VL52, VL53) for the Route, Transportation Group, Customer, Shipping Point and Shipping conditions.
    I have presently coded my development in the Enhancement option after the FM RV_AVAILABILITY_CHECK in the include FV45VFMV_MVERF_PRUEFEN. Here I have called the FM APO_SCHEDULING to get the new set of Schedule line dates by passing the Goods Issue date that I calculate based on teh Route Schedule id.
    But the problem here is that the Schedule line dates that I get here have different time intervals from the Schedule line dates that I get normally in a GATP process in a standard process. Logically I feel, these time intervals should be the same while the Enhancement is in place or not.
    Please provide me inputs if anybody had faced this issue...
    Thanks in advance,
    Susanth Kumar

    Hi
    When I see the schedule line in the sales order where in the qty in the delivered qty column (second column from the confirmed qty column) is updated item wise irrrespective of the delivery done as per scheduleline date.
    It means though the delivery and PGI is not done for the date 15.12.2008, but the qty in the delivery qty column is updated and the balace to to be delivered shows for the last date.
    So here iam able to deliver only on the last date i.e. 25.01.2009 or at a later date for the schedule line date missing in between and not on the specific date.
    Is this how SAP standard works - I was wondering why i cannot deliver any schedule line qty and date later after delivering quantities of the subsequant schedule lines.

  • How to use customer extension table for schedule line for shopping cart ?

    Dear Experts,
    One of our client wants to have schedule lines in shopping cart item. I am thinking of using customer extension table at item level for shopping cart. Could you please help me on  how I should proceed with the appending the structures so that the end user can fill the shopping cart schedule line details?
    Which fields should I consider in such cases?
    Thanks and regards,
    Ranjan

    Hi.
    I guess you use SRM 7.0. Please go to IMG.
    SRM -> SRM Server -> Cross-Application Basic Settings -> Extensions and Field Control (Personalization) -> Create Table Extensions and Supply with Data
    Regards,
    Masa

  • Open Sales Order  table with multiple schedule line....

    YUSUF BHORI wrote:
    Hi Experts,
    In Sales Order there are multiple schedule line for single item.
    Where and in which table i can find open qty for order ,material, item and schedule line items.
    I Want open items for each schedule line. For One vbeln, posnr there multiple etenr.
    Urgent,
    Yusuf.

    Hai,
    Join VBAK & VBAP and store data in an internal table GT_VBAP to get Sales order numbers, items, materials.
    Get Open Sales order items from VBUP into GT_VBUP  where VBUP-GBSTA  NE  'C'.
    LOOP at GT_VBAP.
    Read table GT_VBUP with key vbeln & posnr.
    If sy-subrc <> 0.
      delete GT_VBAP.
    endif.
    ****Fill your Final Report Internal table with required field values **Append into that internal table
    ENDLOOP.
    Now Select WMENG BMENG from VBEP into GT_VBEP for all entries in GT_VBAP.
    LOOP AT  GT_VBEP.
    *******Again Modify your Final Report internal table with these values
    ***VBEP-WMENG is Ordered Qty
    ***VBEP-BMENG is Confirmed Qty
    ************Open Qty     = Ordered Qty      = Confirmed Qty***
    ************Open Qty     = VBEP-WMENG = VBEP-BMENG.***
    ENDLOOP.
    Edited by: Eswara Rao Aakula on Dec 24, 2007 9:56 AM
    Edited by: Eswara Rao Aakula on Dec 24, 2007 9:57 AM

  • Schedule Line Item 100001 delivery date is missing

    Hello Sirs,
    After created a sales order in ECC and transferred to TM via XI, the queue remains with STOP status. Entering in transaction /SAPPO/PPO2 I’m facing the error “Schedule Line Item 100001 delivery date is missing”. The delivery date is filled in ECC side.
    Is there something that I need to check in TM regarding delivery date?
    Thanks.

    Please try to edit the PO[Change date] and process it again. This issue happens when we use a conversion program to create PO instead of creating it from UI.

  • [SD] table for Schedule line date

    If we display a sales order through Va03 and Go to tab Item overview. There is a excel sheet kind of display showing
    all items. The 12th col is 'First Date' and the f1 help says its 'Schedule line date'.
    I need to display this date in my report.
    <i>F1 Help Says :</i>
    <b>Schedule line date</b>
    The delivery date for the schedule line. The delivery date can be the
    Date requested by the customer, or (if the requested date cannot be met)
    Earliest date proposed by the system after automatic availability checks and delivery scheduling
    <b>Use</b>
    The system uses the delivery date for each schedule line together with predefined time estimates for delivery activities (such as picking and packing) to determine the
    Material availability date
    Loading date
    Goods issue date
    Transportation planning date
    <b>Dependencies</b>
    If you want the system to automatically determine the above dates, the Delivery scheduling and Transportation scheduling fields must be active in the sales document definition ( Tools --> Customizing, Sales and Distribution --> Basic Functions --> Delivery scheduling and transportation scheduling --> Define scheduling by sales document type).
    <b>Note</b>
    If there is more than one schedule line for the item, the system displays the earliest delivery date in the item and overview screens.

    Hi flora
    You can get he details of the schedule line data in the VBEP table.
    EDATU is the schedule line date
    regards
    kishore

  • BAPI FOR Deleting a Schedule Line Item from EKES and EKET tables

    Dear All,
    I would like to for deleting one of the line item from EKES (Po Confirmation ) and the respective line item from the EKET(PO Schedule Line Item Table).
    Assume that am allowing the user to select the lineitem from zprogram screen and collecting the PO and Its LIne Item details in an internal table.
    Can i Use
    <b>BAPI_PO_Change</b> , if so , can anybody tell me the steps to follow to use this bapi for deleting the PO lineItems, since i m going to try BAPI for First time.
    pls help me out
    Message was edited by: Raja K.P

    Hi raja ,
    loop at iekko1.
        w_index = sy-tabix.
        item-po_item   = itemx-po_item   = iekko1-ebelp.
        item-quantity  = iekko1-mng01.
        itemx-quantity = iekko1-mng01.
        if iekko1-wamng = iekko1-wemng.
        itemx-no_more_gr = item-no_more_gr = 'X'.
        else.
        itemx-no_more_gr = item-no_more_gr = ''.
        endif.
        append item.
        append itemx.
          clear return[].
          call function 'BAPI_PO_CHANGE'
               exporting
                    purchaseorder = iekko1-ebeln
               tables
                    return        = return
                    poitem        = item
                    poitemx       = itemx.
          if return[] is initial.
          commit work and wait.
          call function 'DEQUEUE_ALL'.
    search for deletion fields which u have to mark 'X'.
    before calling  this BAPi u have to lock the PO by using ENQUEUE.
    <b>
    FU BAPI_PO_CHANGE
    Text
    Change purchase order
    Functionality
    Function module BAPI_PO_CHANGE enables you to change purchase orders. The Change method uses the technology behind the online transaction ME22N.
    Alternatively, the IDoc type PORDCH1 is available. The data from this IDoc populates the interface parameters of the function module BAPI_PO_CHANGE.
    Functionality in Detail
    Authorization
    When you create (activity 02) an Enjoy purchase order, the following authorization objects are checked:
    M_BEST_BSA (document type in PO)
    M_BEST_EKG (purchasing group in PO)
    M_BEST_EKO (purchasing organization in PO)
    M_BEST_WRK (plant in PO)
    Controlling adoption of field values via X bar
    For most tables, you can use your own parameters in the associated X bar (e.g. PoItemX) to determine whether fields are to be set initial, values inserted via the interface, or default values adopted from Customizing or master records, etc. (for example, it is not mandatory to adopt the material group from an underlying requisition - you can change it with the BAPI).
    Transfer
    Purchase order number
    The PurchaseOrder field uniquely identifies a purchase order. This field must be populated in order to carry out the Change method.
    Header data
    The header data of the Enjoy purchase order is transferred in table PoHeader.
    Item data
    The item data of the Enjoy purchase order is stored in the tables PoItem (general item data). Changes regarding quantity and delivery date are to be made in the table PoSchedule.
    Use the table PoAccount to change the account assignment information.
    Services and limits
    Changes to existing items cannot be carried out with the Change method. It is only possible to create new items.
    Conditions
    Conditions are transferred in the table PoCond; header conditions in the table PoCondHeader. A new price determination process can be initiated via the parameter CALCTYPE in the table PoItem.
    Vendor and delivery address
    The vendor address in the table PoAddrVendor and the delivery address in the table PoAddrDelivery can only be replaced by another address number that already exists in the system (table ADRC). Changes to address details can only be made using the method BAPI_ADDRESSORG_CHANGE.
    Partner roles
    You can change all partners except the partner role "vendor" via the table PoPartner.
    Export/import data
    Export/import data can be specified per item in the table PoExpImpItem. Foreign trade data can only be transferred as default data for new items. Changes to the export/import data of existing items are not possible.
    Texts
    Header and item texts can be transferred in the tables PoTextHeader and PoTextItem. Texts for services are imported in the table PoServicesText. Texts can only be replaced completely.
    Version Management
    You can make use of the Version Management facility via the table AllVersions.
    Return
    If the PO was changed successfully, the header and item tables are populated with the information from the PO.
    Return messages
    Messages are returned in the parameter Return. This also contains information as to whether interface data has been wrongly or probably wrongly (heuristical interface check) populated. If a PO has been successfully created, the PO number is also placed in the return table with the appropriate message.
    Restrictions
    With this function module, it is not possible to:
    Create subcontracting components (you can only use existing ones)
    Create configurations (you can only use existing ones)
    Change message records (table NAST) and additional message data (this data can only be determined via the message determination facility (Customizing))
    Attach documents to the purchase order
    Change foreign trade data
    Change service data
    Change or reexplode BOMs
    A firewall prevents the manipulation of data that is not changeable in Purchasing according to the business logic of the purchase order (e.g. PO number, vendor, etc.).
    PO items with an invoicing plan cannot be created or changed using the BAPIs
    In this connection, please refer to current information in Note 197958.
    To change addresses with numbers from Business Address Services (cantral address management), please use the function module BAPI_ADDRESSORG_CHANGE.
    To change variant configurations, please use the function module BAPI_UI_CHANGE. More information is available in the BAPI Explorer under the Logistics General node.
    In the case of changes that are to be made via the BAPI_PO_CHANGE, a firewall first checks whether the relevant fields are changeable. This approach follows that of the online transaction. Here it is not possible to change the vendor or the document type, for example.
    Example
    Example of changes made to a purchase order with:
    1. Change in header data
    2. Change in item
    3. Change in delivery schedule
    4. Change in account assignment
    5. Change in conditions
    6. Change in partners
    Parameter: PURCHASEORDER 4500049596
    Parameter: POHEADER
    PMNTTRMS = 0002
    PUR_GROUP = 002
    Parameter: POHEADERX
    PMNTTRMS = X
    PUR_GROUP = X
    Parameter: POITEM
    PO_ITEM = 00001
    CONF_CTRL = 0001
    Parameter: POITEMX
    PO_ITEM = 00001
    PO_ITEMX = X
    CONF_CTRL =  X
    Parameter: POSCHEDULE
    PO_ITEM = 00001
    SCHED_LINE = 0001
    QUANTITY = 10.000
    PO_ITEM = 00001
    SCHED_LINE = 0003
    DELETE_IND =  X
    Parameter: POSCHEDULEX
    PO_ITEM =  00001
    SCHED_LINE =  0001
    PO_ITEMX =  X
    SCHED_LINEX =  X
    QUANTITY =  X
    PO_ITEM =  00001
    SCHED_LINE =  0003
    PO_ITEMX =  X
    SCHED_LINEX =  X
    DELETE_IND = X
    Parameter: POACCOUNT
    PO_ITEM = 00001
    SERIAL_NO = 01
    GL_ACCOUNT = 0000400020
    Parameter: POACCOUNTX
    PO_ITEM = 00001
    SERIAL_NO = 01
    PO_ITEMX = X
    SERIAL_NOX = X
    GL_ACCOUNT = X
    Parameter: POCOND
    ITM_NUMBER = 000001
    COND_TYPE = RA02
    COND_VALUE = 2.110000000
    CURRENCY = %
    CHANGE_ID = U
    Parameter: POCONDX
    ITM_NUMBER = 000001
    COND_ST_NO = 001
    ITM_NUMBERX = X
    COND_ST_NOX = X
    COND_TYPE = X
    COND_VALUE = X
    CURRENCY = X
    CHANGE_ID = X
    Parameter: POPARTNER
    PARTNERDESC =  GS
    LANGU =  EN
    BUSPARTNO = 0000001000
    Help in the Case of Problems
    1. Note 197958 lists answers to frequently asked questions (FAQs). (Note 499626 contains answers to FAQs relating to External Services Management.)
    2. If you have detected an error in the function of a BAPI, kindly create a reproducible example in the test data directory in the Function Builder (transaction code SE37). Note 375886 tells you how to do this.
    3. If the problem persists, please create a Customer Problem Message for the componente MM-PUR-PO-BAPI, and document the reproducible example where necessary.
    Customer Enhancements
    The following user exits (function modules) are available for the BAPI BAPI_PO_CREATE1:
    EXIT_SAPL2012_001 (at start of BAPI)
    EXIT_SAPL2012_003 (at end of BAPI)
    The following user exits (function modules) are available for the BAPI BAPI BAPI_PO_CHANGE:
    EXIT_SAPL2012_002 (at start of BAPI)
    EXIT_SAPL2012_004 (at end of BAPI)
    These exits belong to the enhancement SAPL2012 (see also transaction codes SMOD and CMOD).
    There is also the option of populating customer-specific fields for header, item, or account assignment data via the parameter EXTENSIONIN.
    Further Information
    1. Note 197958 contains up-to-date information on the purchase order BAPIs.
    2. If you test the BAPIs BAPI_PO_CREATE1 or BAPI_PO_CHANGE in the Function Builder (transaction code SE37), no database updates will be carried out. If you need this function, please take a look at Note 420646.
    3. The BAPI BAPI_PO_GETDETAIL serves to read the details of a purchase order. The BAPI cannot read all details (e.g. conditions). However, you can use the BAPI BAPI_PO_CHANGE for this purpose if only the document number is populated and the initiator has change authorizations for purchase orders.
    4. Frequently used BAPIs for purchase orders are BAPI_PO_CREATE, BAPI_PO_CREATE1, BAPI_PO_CHANGE, BAPI_PO_GETDETAIL, BAPI_PO_GETITEMS, BAPI_PO_GETITEMSREL, and BAPI_PO_GETRELINFO.
    5. For more information on purchase orders, refer to the SAP library (under MM Purchasing -> Purchase Orders) or the Help for the Enjoy Purchase Order, or choose the path Tools -> ABAP Workbench -> Overview -> BAPI Explorer from the SAP menu.
    Parameters
    PURCHASEORDER
    POHEADER
    POHEADERX
    POADDRVENDOR
    TESTRUN
    MEMORY_UNCOMPLETE
    MEMORY_COMPLETE
    POEXPIMPHEADER
    POEXPIMPHEADERX
    VERSIONS
    NO_MESSAGING
    NO_MESSAGE_REQ
    NO_AUTHORITY
    NO_PRICE_FROM_PO
    EXPHEADER
    EXPPOEXPIMPHEADER
    RETURN
    POITEM
    POITEMX
    POADDRDELIVERY
    POSCHEDULE
    POSCHEDULEX
    POACCOUNT
    POACCOUNTPROFITSEGMENT
    POACCOUNTX
    POCONDHEADER
    POCONDHEADERX
    POCOND
    POCONDX
    POLIMITS
    POCONTRACTLIMITS
    POSERVICES
    POSRVACCESSVALUES
    POSERVICESTEXT
    EXTENSIONIN
    EXTENSIONOUT
    POEXPIMPITEM
    POEXPIMPITEMX
    POTEXTHEADER
    POTEXTITEM
    ALLVERSIONS
    POPARTNER
    Exceptions
    Function Group
    2012
    </b>
    regards
    prabhu
    Message was edited by: Prabhu Peram

Maybe you are looking for

  • How to change e-mail address in iCloud IMAP

    how to change e-mail address in iCloud IMAP. i have to change it to another e-mail address. please help please find in image.

  • How to use 2 apple ids?

    My computers have two apple ids. One for music, and one for everything else. Can I use one apple id in iTunes to share music, and a different apple id for everything else on the computer?

  • User Registration Process: Task Assingment for a Self-Request User

    Hi guys, Doubt: In the User Registration Process Can I configure the Target User's Manager as the Assignee of the Awaiting Approval Data? I understood that I can do that because the user has not been created yet. Does it make sense? I need to send th

  • How can I read content in Gujarati language from website?

    I unable to read content in Gujarati language in any website. website like WWW.ojas. guj. nic. in

  • Misbehaving Ap 2.1 all of a sudden

    Hi After extolling 2.1's usefulness even on my modest setup, I've found it has begun to play up, after a couple of months of stable (not lightning fast but ok) usage, every day, no problems or crashes whatsoever. It crashed yesterday. It was the only