BAPI for AFS  Planned Order Change

Dear All,
Can anybody help me out to find the BAPI for PLANNED ORDER
CHANGE in AFS. i m aware that there is a BAPI_PLANNEDORDER_CHANGE for standard SAP, but im not sure of using for the AFS , since the grid value is not handled in this BAPI.Pls give your suggestion too.
Reward points are assured.

Hi Raja ,
Sorry for replying too late ..... But I guess it may be useful for other guys..
Recently I also came accross same problem . But finally I got the solution.
BAPI  'BAPI_PLANNEDORDER_CHANGE'  does support AFS Data .. like Grid Value and Grid Quanity.
Just pass AFS Header Data to Import Parameter AFS_HEADER  & AFS Grid Value along with changed quantity
to AFS_SKU table.  You will get this data from PLAF and J_3ABSSI Table.
( Note : You also need to pass Planned Order Data & Quantity which will be total of all quantities at SKU level. )
Regards ,
Vishal Bhalsing.

Similar Messages

  • BAPI for converting planned order to Production Order(in PP)?

    Hi all,
            Is there any standard BAPI for converting Planned order to Production Order?
    Thanks in advance,
    anjaly

    hi,
    check this..
    BAPI_PRODORD_CREATE_FROM_PLORD BAPI: Convert Planned Order into Production Order
    for more details check this link..
    Create a production order
    <b>reward points if it is helpful..</b>

  • BAPI for Scheduling Planned Order

    Hi,
    Please tell me if there are any BAPIs for Scheduling a Pllaned Order and for Deleting a Planned Oredr.
    Thankes & Regards,
    Rahul

    BAPI_PLANNEDORDER_CHANGE       Change planned order
    BAPI_PLANNEDORDER_CREATE       Create planned order
    BAPI_PLANNEDORDER_DELETE       Delete planned order
    BAPI_PLANNEDORDER_EXIST_CHECK  Planned order existence check
    BAPI_PLANNEDORDER_GET_DETAIL   Get details for planned order
    BAPI_PLANNEDORDER_GET_DET_LIST Get detailed planned order list
    All bapi's related to planned order processing
    BR
    Manthan.

  • Table for PP  Planned order Change Qty

    Hi,
           I am making a report and in that i am also adding PP planned orders of material which are manually generated  for this  if plan   order is manually generated  in the Table PLAF  filed  AUFFX is set to 'X'  but this indicator is also set to 'X'  if system generated palnned orders are chnage  in such case i want to take only change qty  means  if system have generate plan order for 25  and user have makde it 30   then in report as manually generated plan order qty i want to add 5 qty only  ,  so in which table i can get those details.
      regards,
      zafar

    Hi,
    Can u help on this issue.
    regards,
      zafar

  • BAPI for meter reading order (MRO) Reversal

    Hi Experts,
    Please let me know if there is any FM or BAPI for meter reading order reversal, Similar to EL37
    Regards
    Bikas

    Hello Bikas,
    Though this is an old post, thought of replying for the sake of googlers who might look for a solution for your query...the below code works!
    *---Begin Of Code
      TYPES : BEGIN OF ty_meter_orders_data,
               anlage   TYPE eablg-anlage,
               adatsoll TYPE eablg-adatsoll,
               ablesgr  TYPE eablg-ablesgr,
              END OF ty_meter_orders_data.
      DATA : lt_meter_orders_data TYPE STANDARD TABLE OF ty_meter_orders_data,
                  xy_ieabl_delete   TYPE  eabl_tab,
                  xy_ieablg_delete  TYPE  eablg_tab,
                  xy_ietrg_delete   TYPE  etrg_tab,
                  x_anlage type anlage,
                  x_retro_upd_date type adatsoll,
                  y_return type char1.
      DATA : y_obj TYPE  isu17_meterread.
    *--Get the needed data for reversal
      SELECT a~anlage
             a~adatsoll
             a~ablesgr
        FROM eablg AS a
        INNER JOIN eabl AS b ON a~ablbelnr = b~ablbelnr
        INTO TABLE lt_meter_orders_data
        WHERE a~anlage = x_anlage AND
              a~adatsoll >= x_retro_upd_date AND
              b~ablstat = '0'. "MR Order
      IF sy-subrc = 0.
        SORT lt_meter_orders_data BY anlage ablesgr adatsoll.
        DELETE ADJACENT DUPLICATES FROM lt_meter_orders_data COMPARING anlage ablesgr adatsoll.
        SORT lt_meter_orders_data BY adatsoll DESCENDING.
        LOOP AT lt_meter_orders_data ASSIGNING FIELD-SYMBOL(<fs_meter_orders_data>).
          CALL FUNCTION 'ISU_O_METERREAD_OPEN'
            EXPORTING
              x_anlage              = <fs_meter_orders_data>-anlage
              x_adatsoll            = <fs_meter_orders_data>-adatsoll
              x_ablesgr             = <fs_meter_orders_data>-ablesgr
              x_select2             = '5'
              x_wmode               = '6'
            IMPORTING
              y_obj                 = y_obj
            EXCEPTIONS
              not_found             = 1
              foreign_lock          = 2
              internal_error        = 3
              input_error           = 4
              existing              = 5
              number_error          = 6
              general_fault         = 7
              system_error          = 8
              manual_abort          = 9
              gasdat_not_found      = 10
              no_mrrel_registers    = 11
              internal_warning      = 12
              not_authorized        = 13
              not_qualified         = 14
              anpstorno_not_allowed = 15
              already_billed        = 16
              dev_already_prep      = 17
              OTHERS                = 18.
          IF sy-subrc = 0.
            CALL FUNCTION 'ISU_O_METERREAD_ACTION'
              EXPORTING
                x_okcode             = 'PSAV'
              CHANGING
                xy_obj               = y_obj
              EXCEPTIONS
                cancelled            = 1
                failed               = 2
                action_not_supported = 3
                system_error         = 4
                input_error          = 5
                not_customized       = 6
                OTHERS               = 7.
            IF sy-subrc = 0.
              CALL FUNCTION 'ISU_O_METERREAD_ACTION'
                EXPORTING
                  x_okcode             = 'SAVE'
                TABLES
                  yt_eabl_delete       = xy_ieabl_delete[]
                  yt_eablg_delete      = xy_ieablg_delete[]
                  yt_etrg_delete       = xy_ietrg_delete[]
                CHANGING
                  xy_obj               = y_obj
                EXCEPTIONS
                  cancelled            = 1
                   failed               = 2
                  action_not_supported = 3
                  system_error         = 4
                  input_error          = 5
                  not_customized       = 6
                  OTHERS               = 7.
              IF sy-subrc = 0.
                COMMIT WORK.
              ENDIF.
            ENDIF.
            CALL FUNCTION 'ISU_O_METERREAD_CLOSE'
              CHANGING
                xy_obj = y_obj.
    * Implement suitable error handling here
          ELSE.
            y_return = 'E'.
          ENDIF.
        ENDLOOP.
        IF y_return <> 'E'.
          y_return = 'S'.
        ENDIF.
      ELSE
    *    RAISE no_mtr_read_ordrs_found.
      ENDIF.
    *---End of Code
    Thanks.
    Mohammed.

  • BAPI for Open production orders

    Hi All,
    Any BAPI for open production orders?.... Using BAPI i want to upload open production orders informatiomations.... Please help
    Thanks & Regards
    Santhosh

    Hi,
       Please check the following BAPI,
    Goto BAPI tcode, select hierarchical tab
      Production orders,ProductionOrder ,ProdOrdConfirmation , RCVPRORDCF and check the BAPIs

  • Function modules or BAPI for posting plan costs for WBS Element

    Hi all,
    Does anyone know, whether there exists a function module or BAPI for posting plan costs to a WBS Element? K_COSTS_PLAN_PS does not work, because RKP1 is not allowed.
    Greetings

    check
    BAPI_COSTACTPLN_POSTACTINPUT   Activity Input Planning: Posting                
    BAPI_COSTACTPLN_POSTACTOUTPUT  Activity/Price Planning: Posting                
    BAPI_COSTACTPLN_POSTKEYFIGURE  Stat. Key Figure Planning: Postings             
    BAPI_COSTACTPLN_POSTPRIMCOST   Primary Cost Planning: Postings                 
    BAPI_PDTRANSCO_POSTPRIMCOST    Transfer of Planning Data: Post Primary Costs   
    K40C                           CO Actual Postings, Manual                      
    BAPI_ACC_PRIMARY_COSTS_POST    Accounting: Post Primary Costs                  
    BAPI_COPAACTUALS_POSTCOSTDATA  BAPI Operating Concern: Post Costing-Based Actua
    BAPI_PRIM_COST_CHECK_AND_POST  Primary Costs: Formal Parameter Check           
    S@meer

  • BAPI for Mass Purchase Order Confirmation

    Dear All,
    In standard SAP,it is possible to confirm for single line item only by using confirmation tab.
    We want to confirm Mass PO Confirmation.
    Is there any BAPI for Mass Purchase Order Confirmation?
    Regards,
    Ramesh

    Hi Sumant,
    I have tried with TC:MASS.
    By using this TC we can update quantity but not  delivery date & Confirmation Control (Fields available in the confirmation tab of ME22n for Vendor Confirmation).
    Is there any way to updates all these fields which are available in the Confirmation Tab?
    Is there any BAPI which is tranferring confirmation tab details into EKES table?
    Expecting your valuable inputs in this regard.
    Regards,
    Ramesh

  • BAPI for return sales order

    Hi,
    what BAPI that can be used for Return Sales Order? BAPI SALES_ORDER_CREATEFROMDAT2 cant work, I get return message as error : 'Unpermitted combination of business object BUS2032 and sales document type category H'.
    thanks alots.
    Alia

    Hi Alia,
    Go to transaction BAPI, and in the tree go to :
    Sales and Distribution -> Sales -> SalesOrder
    You will have a list of all the BAPI for the Sales Order. If you want a list of Sales Order, maybe you need the GetList BAPI : BAPI_SALESORDER_GETLIST
    Rgd
    Frédéric

  • MRP setting for Purchase (Planned Order ) Requirement date

    Dear Sir,
    During the MRP run , we desire that the genertaed Planned Orders for the Purchase related items , should have requirement date as either the current date or the current date plus procurement lead time defined in the Material Master against the item .
    To achive the abobe requirement , we request you to pl guide us as what setting / parameters are required to be set in the MRP setup .  Or if there is some other alternate approach , pl suggest the same .
    With Thanks and Rgds
    Sonia Agarwal

    Dear
    Generally , during MRP run , system will genarted Planned order for Purcahsed item if it is opening period .
    The opening period for the planned order represents the number of workdays that are subtracted from the order start date in order to determine the order opening date. This period serves as a time float, which is available for the MRP controller when converting a planned order into a purchase requisition.
    You define the opening period for the planned order in Customizing for MRP in the IMG activity Define floats (scheduling margin key) and assign it to the material in the Scheduling margin key field (MRP 2 view) in the material master
    Now if you want to have Planned order for purchased item with requirement date as current date , then maintain Demand date like Sales Order requirement date as curent date in VA01 or PIR date as current date.
    Where as MRP will consider the Planned Order based on planned opening date , lead time , GR processing time from MRP2 view .So for current date requirement , u should keep Lead time and GR processing time as 0.
    Regards
    JH

  • GR quantity for the planned order(MD13)??

    Hi All,
             I have a list of planned orders(MD13) with planned quantities(PLAF table).
    Now I need a Goods receipt quantity for these planned orders, because I need to show
    the comparison between planned quantity and goods receipt quantity in the for the last month.
    I can get material documents by passing material,plant,movement type and date range to MSEG,there I can find the GR quantity. But how can I know that this GR quantity is for that particular planned order ??
    Say for example, I have planned 100units for the material m1 for the month of july.
    But actual GR quantity for this material is only 80units. 100-80 = 20 units is my comparison..
    From where can I get this 80units, hope u understand my question.
    Anyone please help me.
    Helpful answers will be rewarded
    Thanks & Regards,
    V.Raghavendra.

    Hello Raghavendra,
    there are no goods receipts for planned orders. These are converted either into production orders or purchase requisitions and then purchase orders. For production and purchase orders there are goods receipts.
    For production orders you should find the link in MSEG-AUFNR (if you really do have any scenario with GR for planned orders, this should be the same field).
    Easier, if production orders are applicable, should be to look in AFPO-WEMNG (Quantity of goods received for the order item) and compare it to AFPO-PSMNG or AFPO-PGMNG.
    You can also check in AFPO-PLNUM whether this production order is linked to your planned order.
    Regards,
    Kay

  • Capacity Reservation Table for a planned order

    Dear experts,
    When I look at MD13, I can see the capacity requirement for a planned order.  I can also see the requirements build up in my CM01 screen.  We would like to pull the data into our BW system, but we are having issues finding where the capacity reservation information resides.  When I look at table KBEZ, I can only find values that correspond to production orders.  Is there a similar table for planned orders?  Does SAP save the detailed scheduling infromation for planned orders in a table somewhere, or is this calculated at the time MD13 or CM01 is run?
    Thanks,
    Matthew Bruckner

    Have you tried with KBED? I can see with SE16 that you have a field for selection with the planned order number....

  • Using Planned order Change BAPI with out changing date

    Hi
    I have a planned order with start date in future.
    With in a program, I want to call the planned order using the FM BAPI_PLANNEDORDER_CHANGE to re-explode the order BOM.
    I find that only if I change the order start date to system/current date, the planned order BOM gets updated/re-exploded. Else there is no change in the order BOM.
    My requirement is to re-explode the BOM with out changing the order dates. In the function module I am maintaining "X' against BOM_EXP_FIX_IND.
    But when I do it manually using MD12 and explode BOM with out changing the future start date, the order BOM gets updated.
    Please help on this. Or is there any other FM/BAPI for this purpose.

    Dear Pradeep,
    you could try to set DET_SCHEDULE = X with out
    FIRMING_IND  --> No
    BOM_EXP_FIX_IND   --> No
    Let me Know if it modification setting have solved your problem and i have useful for you,
    Daniele

  • BAPI For CREATE SALES ORDER WITH REFERENCE TO ORDER

    Hi ,
    I want to develop a new RFC for 'Creating Sales Order' with reference to another sales order -
    Is there any BAPI available for the same ? (Version 4.7) - I know its available for new create and change
    but couldn't find for create with reference to Order ...
    Thanks in advance ...
    Regards
    Rajesh.

    Hi,
    You can use this FM "/SAPNEA/SMAPI_ORDER_CREATE". I haven;t tried this but you can still give it a try. Mention the Reference Order Type and other data in the header work area and pass it to the FM.
    Reward if it's useful.
    Thanks,
    Anil

  • Regarding Planned Order Changes

    Hi gurus,
    I have a question, it's kind of urgent.
    The scenario is: If i have a demand and ran MRP, it creates planned orders, so as dep.req will be created for components, which are converted to Preq and PO's. At this point if i make changes to my demand i.e. reduce or increase the previodu demand and run MRP again, what happens to the PO's already got created?
    Is there any way to tackle this scenario? i mean, user exits etc.. or any other solutions..
    Thank you and waiting for your valuable responses,,
    Sekhar

    Sekhar,
    What Abhi says is right.
    But if you want an automatic solution then you need to write a program which can be executed after MRP run. You need to read the stock requirements list after the MRp run and get the excess quantity. Then check if any PRs or POs exit. If exist then include a BDC in the program to chencge the qty so that excess is made 0.
    The function module which gives the STock requirements list into an internal table is <b>AUFBAUEN_MDPSX_ANZEIGEN</b>. From this table you could read the indivial line items that make the receipts and issues.
    Regards
    Ram

Maybe you are looking for

  • Is there change credit card details- URL link in manage my account missing

    someone on this forum that has more brains than the online chat support do? I have been trying for 4 days to get someone to find out why the change credit card details URL link is missing from my manage account area. I keep getting told the same thin

  • Problem starting adminserver with WLST and Nodemanager

    I have a domain with one cluster containing 4 managed servers. Now I want to start the adminserver with WLST using the Nodemanager. (I know there are other/beter ways but in this situation I need to do it with Nodemanager). The problem is that the No

  • Using 5.1 speakers with a macbook

    hi, i have been given some Philips MMS460 5.1 speakers and I wondered if they are compatible with my macbook, i've asked philips, they said ask apple - I checked the sound prefs-output and it says headphones and i've tried all 3 jacks - no sound. I'd

  • Lenovo s650 won't boot, USB doesn't work

    I bought this phone and installed a root app. I may delete some system files with root app. Since that, the phone won't boot. I tried Smart Phone Flash Tool but the Firmware won't be updated as USB doesn't work. What can I do at this point? Please he

  • ACS RDBMS adding NDG with Shared Secret

    I have an ACS 4.2 on a SE 1113 and I am using RDBMS to add Network Device Groups. I am able to create the group, but I would like to set the Shared Secret for the group. I am using the action code 250 to add the group but I can not see a way to set t