Item & for schedule line & is in the work area

Hi All,
We added some custom fields on the schedule line tab and also in VBEP table. For thie same we also added code in the PBO module of SAPMV45A/4500 screen#. Since we added the code we are getting the error message# V1357 with description 'Item 000010 for schedule line 000040 is in the work area'.
I did check the forum and found couple of notes with this error and some replies say that it is for the quality issue. I tried going to OQ77. But i am pretty sure it is because of what i codded. Because When i comment my code so error shows up. But I am not sure what is the problem with my code.
Here is the sample of my code that i wrote in my PBO module:
    IF  XVBEP-VBELN IS NOT INITIAL.
        INPUT = MARA-BRGEW * XVBEP-WMENG.
        PERFORM CONVERSION.   "This is the module that i wrote to convert from G to LB.
        XVBEP-ZTOTALWT = OUTPUT.
        xvbep-updkz = 'U'.
        modify xvbep index ivbep-tabix.
    ENDIF.
Please let me know if i am doing wrong anywhere in the code.
Thanks,
Karuna.

Issue: I got the issue resolved. The mistake i made was the local structure was holding last item which has 1 schedule line and the my first item10 was having more than 1 schedule lines and trying to loop all the schedule lines. As the last item has only one schedule line i was getting the problem.
Solution: I reset the structure to that it will loop from the first line item instead of it holding the last item#.
Hope this helps.
Karuna

Similar Messages

  • Can anyone explain me the procedure and initial settings to do sto for schedule lines?

    can anyone explain me the procedure and initial settings to do sto for schedule lines?
    Create a STO with new doc type for material M1 to ship from plant 1 to plant 2 with qty as 100. On pressing enter you should be able to see schedule lines in delivery schedule tab. In schedule line you should see the Material availability date, GI date, loading date etc.
    can anyone give the answer for this question..

    Hi Megha,
    Please find below links for Config STO with schedule lines.
    http://dhavalatsap.blogspot.sg/p/configuration-of-plant-to-plant-sto.html
    https://scn.sap.com/thread/1260375
    Thanks,
    Bala.

  • Release strategy for Schedule lines in SD

    Hello All
    Can we create a release strategy for Schedule Lines in Scheduling Agreement? If Yes How?
    I have already maintained a release strategy for Item Level... which I want to put it for Schedule line as well....
    Thanks in advance.

    Hello,
    I think you are in the wrong forum. Please choose the right forum category and post it there.
    Matthias

  • Delivery from sales scheduling agreement with one item per schedule line

    Hi all,
    I have a sales scheduling agreement where the same part number has 3 different JIT schedule lines and I need to create a delivery with 3 item lines: every item line of the delivery has to be referred to one schedule line of the scheduling agreement.
    When I create the delivery with transaction VL10E it has only one item line and its quantity is the sum of the 3 schedule lines of the sales scheduling agreement.
    I've tried to change the customizing of the User Role, choosing the Split Schedule Line = 2 ("One item per schedule line") but the delivery is created again with only one item line.
    How can I solve this issue?
    Thanks in advance for reply

    Dear Alex
    The SAP standard behaviour is that all schedule items with delivery date in the past have to be rescheduled anyway to one date and are combined therefore.
    Partially this behaviour can be influenced in VL10* by 2 parameters in
    the user role : Split per sched.line and Rule (delivery qty).
    Please find below informations about these different parameters
    "Split per sched.line propose you 3 Rule for creating one delivery item
    per schedule line. In a delivery list in item view with multiple
    schedule lines, you can decide for the same document item whether you
    want to generate one delivery item per schedule line or whether you want
    to deliver the cumulated quantity of the last schedule lines selected.
    About rule for delivery quantity, the following rules are currently
    implemented:
    1. No cumulation
    The open schedule line quantity to be delivered is the quantity at which
    the list line is delivered.
    2. Sum of all open schedule line quantities to be delivered that fall
    before the chronologically latest date in the to field (following the
    Deliv. creation date field) of the selection criteria.
    3. Sum of all open schedule line quantities to be delivered whose
    delivery creation date falls within the selection time frame (between
    the dates in the Deliv. creation date and to fields, respectively),
    making the calculation of the quantity to be delivered consistent with
    selection criteria. However, calculationof the quantities delivered with
    the order's schedule line quantities is not affected."
    Hope this helps.
    Regards
    Tonia

  • Delivery item per schedule line

    Hi all,
    Thank you for viewing my posting, I have the requirement as following:
    I have two SD schedule agreements, there are several schedule lines on JIT delivery Scheudle tab for each schedule agreement, these two schedule agreement are for same customer, have different material.
    What I want is:
    When I create delivery for these two schedule agreements in VL10A, these two schedule agreements are combined into one delivery note, but the delivery item per schedule line on the delivery note.
    E.g.
    one schedule agreement has 5 schedule lines
    the other has 4 schedule lines
    After I create delivery for these two delivery notes in VL10A, there should be 9 items on delivery notes, one item per schedule line.
    Do you have idea on this? I do not want to combine several schedule line into one delivery item.
    Thanks!
    Alex Lu

    Dear Alex,
    You try these copy control settings between Scheduling agreement and delivery document.
    Go to VTLA transaction select your document types
    First you go header level settings here you can find the check box field called Copy item number check this then try.
    If it is not full fill your requirement then go in to the item details here you can find the copying Routine maintenace field Item Data Under Data transfer Tab,this field will have 101 item Routine as per the standard,you take ABAPer help you copy this routine then change according to your requirement then assign new routine here.
    I hope this will help you,
    Regards,
    Murali.

  • How to delete confirmed schedule lines, without executing the ATP check?

    Sales and Distribution: Concerning ATP (product allocation)
    Situation:
    Step 1: An order is created with priority low. Quantities are confirmed for line items.
    Step 2: A second order is created with a higher priority. No confirmed quantities.
    Rescheduling program (SDV03V02) is then executed. This selects and sorts the orders in the correct order.
    The confirmed quantities for the first (low priority) order should now be freed up, to be able to allocate those quantities to the second (high priority) order.
    The problem I am facing is that the confirmed quantities are NOT released.
    We cannot use BAPI_SALESORDER_CHANGE or SD_SALESDOCUMENT_CHANGE to delete or modify the schedule lines, because these function modules execute the ATP check again. And when that happens, quantities are again confirmed and assigned.
    How can we get rid of the confirmed schedule lines, without executing the ATP check?
    Thanks,
    Edwin.

    Found a solution to the problem:
    In the Rescheduling program we export a parameter to the memory, to make it possible to delete schedule lines without executing the ATP check.
    Deleting of the schedule lines is done with a BAPI, which will call the ATP check automatically for ATP relevant materials. This we want to stop from happening (only when calling the BAPI).
    After the BAPI has been called we FREE the MEMORY ID.
    The parameter is imported again in Customer-Exit EXIT_SAPLATPC_001.
    Transaction.. SMOD
    Enhancement.. ATP00001
    Component.... EXIT_SAPLATPC_001,
    Include...... ZXATPU01.
    The customer exit is used in function AVAILABILITY_CHECK_CONTROLLER, just before calling function 'AVAILABILITY_CHECK'.
    Simply refreshing the ATP tables in the customer-exit, will prevent the ATP check from being executed (because we removed the list containing the materials for which the ATP check needs to be done). As a result, the function 'AVAILABILITY_CHECK' will not be processed.

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

  • Inbound Delivery for Schedule Lines of future date

    We have a requirement where in we want to disallow inbound creation for scheduling agreements for schedule lines of the future. For example if we have the following schedule line for a scheduling agreement
           Month        Quantity
    M    01.2010     100
    M    02.2010     200
    M    03.2010     150
    Currently the system is allowing inbound delivery creation of quantity = 450 (100 + 200 + 150) in the month of February, 2010.
    But I want that the system should allow inbound delivery creation in February, 2010 for quantity 300 only (100 + 200). Please let me know how we can do so in the system.
    Regards,
    Pratima.

    Hi Rami ,
    Maintain different schedule lines in PO - Item Details - Delviery Schedule tab.
    This would allow only those qty that is due on that date when creating inbound delivery.
    Regards
    Ramesh Ch

  • Open quantity for scheduling lines

    Hi,
    I need calculate open quantity from scheduling lines(based on date) for Scheduling Agreement (similar like VL10I works). I noticed that open quantity is not maintain in VBEP. So could you help me?
    BR,
    Z

    Hi,
    For calculating open quantity for scheduling lines ,u need to query the sales order number in table VBUK and check the field GBSTK , it will be an open order .
    You can look in table VBAKUK for this .
    This is Join of VBAK and VBUK entries. You can eliminate a join if you fetch it from VbakUk
    Now once it is confirmed that it is open then fetch the entries from VBAP.
    Hope it helps you.
    Thanks,
    Sarita Singh

  • Screen size problem for schedule line bdc

    Hi All,
    I created a bdc for schedule line item maintainance of sales order thro' VA02,I did all coding on 20 inch color monitor in which the schedule line screen shows 18 lines using that i did recording for bdc.But when keyuser executes BDC on laptop it is not procceding.
    Please help me out with solution which is applicable on all kind of screens
    Regards
    Gaurav

    When you use BDC, you may have issues with screen size because number of lines displayed in table controls (and step loops) may vary according to the user screen, when the BDC is recorded (depending on recorder screen size), and then executed in A or E mode depending on user's screen size. When it's N mode, a default screen size is used by SAP.
    The only solution is then to both record and execute the BDC by activating the default/standard size checkbox (if you use CALL TRANSACTION: it's DEFSIZE field in CTU_PARAMS structure of the OPTIONS FROM keyword).
    For more information, refer to the documentation and the [BDC wiki|http://wiki.sdn.sap.com/wiki/display/ABAP/BatchInput-+BDC] + separate FAQ

  • GRs created for schedule line of future date

    While making Goods Receipts using MIGO transaction, we are seeing tha GRs can be done for scheduling agreements having schedule line of future dates. Is there some way of restricting the GR upto to current date only. Meaning suppose if I have the following schedule lines:
    category of delivery date         delivery-date           schedule quantity
    M                                               01.2010                   100
    M                                               02.2010                    200
    M                                               03.2010                    150
    Currently the system is allowing to do GRs of quantity = 450 (100 + 200 + 150) in the month of February, 2010.
    But I want that while doing a GR in February, 2010 the system should allow to do GR of quantity 300 only (100 + 200). Please let me know how we can do so in the system.
    Regards,
    Pratima.

    Dear Veer,
    Your answer has helped in the MIGO transaction. Please let me know if something similar is possible for inbound deliveries also. Meaning like in MIGO transaction, I should not be able to make inbound deliveries (in xns VL31N) for schedule lines of future dates / months.
    Regards,
    Pratima.

  • Step wise config data for schedule line agreements

    DEar All,
    I need urgently one the foolowing doc:
    step wise config data for schedule line agreements.
    thanks
    regards,
    s KUMAR

    Hi,
    1) Scheduling Agreement is a long term agreement and PO is normally a one-off. When you have long term relation with supplier you will go with SA.
    2) SA need not have delivery schedules at the time of ordering. It's like a contract with vendor for all basic prices, quantities & terms. You will release schedules as & when required. This method is very popular with manufacturing ind (e.g. automotive) where they negotiate prices but delivery schedules are given periodically based on their actual production/sales demands.
    3) In a PO, you must give schedules in PO itself.
    4) If you know contract & release order (or call-off) concept, then SA is like contract and SA schedule is like release order. PO is release order.
    or
    While using schedule agreement, you will create delivery schedule, when ever you require materials.
    Firm and trade off zone in delivery schedule details will be forwarded to your vendor. you can create daily , weekly , monthly schedule lines
    Example : if you have created a schedule agreement for product " A " for quantity 1000, and you require material of 100 nos in the first month, you can create schedule line for this 100 only and this will be transmitted to vendor( if you are using LPA you have to release schedule line). when ever you require further qty based on your requirement you will create another delivery schedule line, then it will be transmited to vendor.
    In case of PO if you are ordering 1000 qty , you need to specify the delivery date in Purchase order it self, and all the dates are immediately transmited to vendor along with Purchase order.
    For configuration steps please follow
    http://help.sap.com/saphelp_47x200/helpdata/en/93/7439fb546011d1a7020000e829fd11/frameset.htm
    Hope this will help.
    Thanks,
    Raja

  • Shipment for schedule line

    hi,
    For our Scenario., schedule line is generated from scheduling agreement with vendor.
    And, Shipment for schedule line is created successfully, using VSR Optimization.
    and in OLTP Generation of deliveries, I am getting List with my shipment for which the deliveries to be generated in ECC.
    but while executing, I am not getting any error (except application log in /SAPAPO/C3) as well as no delivery created in ECC which stopping me for "check Release of planned shipment. " and move the shipment to ECC
    Could anyone suggest me how to process the shipment for schedule line (based on scheduling agreement)
    Regards
    Maran
    Edited by: DP.Maran on Mar 7, 2010 11:33 AM

    Delivery generation was blocked in ECC, cahnged teh confirmation control key in shceduling agreement (0036)
    this allowed me to generate Delviery in ECC

  • Use of NOSCL(Counter for scheduling lines) in 02LIS_02_SCL

    Hi,
    I want to extract PO value from 02LIS_02_SCL in BW. The value which I get in PSA table is +ve and -ve. I am boserving the sum value for any PO is zero.
    I wanted to know what is the use of NOSCL(Counter for scheduling lines) in 02LIS_02_SCL? I can observe that PO value corresponding to NOSCL =1 is +ve, i.e. I am getting all the +ve value in order for which NOSCL = 1. The positive PO value is as per R3 data.
    Thanks in advance

    Dear SDBI,
    Thanks for reply.
    I checked for rejection indicator. Again for every positive value there is negative value and for every negative value, its marked with rejection status. So when value for any  particular value is summed up, we get result value as zero.
    I need following information:
    1. Is it possible for every every positive PO value, there is negative value?
    2. How to reconcile the data in PSA of 2LIS_02_SCL with R3 tables?
    Thanks again.
    Jaydeep.

  • Production order %00000000001 for schedule line in Sales order

    Hello Experts,
    We have an issue with the production order whih is created from SO
    There is a sales order and have production order for CTO parts. But the Production order is deleted before confirming. Now when we check in the sales order in schedule lins we are getting as "Production order %00000000001 for schedule line" 00010/0001 can no longer be changed.
    Could any one provided the valuable imputs for what resasons this weeor appears
    Thanks in advance...
    Regards
    Madan

    Hello Vivke,
    Please find teh delatis of the issue
    We have an SO created for the CTO parts and to corrsponding to that generally a production order will be created, But in one of the case for SO the production order is showing as %000000001 in the schedule lines in the SO apart normal number ranges for Production orders.
    Now we need to know in what case the production order appears as %000000001 in the schdule lines, are we missing any thing in order to create production orders?
    Note: Initially there was production order is created correctly when scheduled lines are confirmed, but it is deleted for some reasons and again when the schedule lines are confirming we are facing this issue
    Could you please provide any suggestion on this
    Thanks
    Madan

Maybe you are looking for