Grid value in BAPI_PO_CREATE

Hi friends,
I am testing FM BAPI_PO_CREATE and provided all the values but when i execute it, it says ' ENTER GRID VALUE' i have given this value in last table 'AFS_PO_ITEM_SCHEDULES' of FM. i found only this table which has grid value field. what exactly i am missing if anyone can help..
Thanks.
Sunil

u can follow this example to create the PO
po_item_schedules-po_item = ebelp.
po_item_schedules-quantity = it_boe-issqt.
po_item_schedules-deliv_date = sy-datum.
APPEND po_item_schedules.
po_header-doc_type = wa_lvtv-bsart.
po_header-purch_org = wa_lvtv-ekorg.
po_header-pur_group = '600'.
po_header-co_code = wa_lvtv-bukrs.
po_header-doc_date = sy-datum.
po_header-vendor = st_tvhdr-lifnr.
wa_tech-no_price_from_po = 'X'.
po_items-po_item = ebelp.
po_items-material = it_boe-matnr.
po_items-pur_mat = it_boe-matnr.
po_items-plant = st_tvhdr-werks.
po_items-disp_quan = it_boe-issqt.
po_items-net_price = it_boe-stprs .
po_items-trackingno = it_boe-menge01.
po_items-tax_code = wa_lvtv-mwskz.
APPEND po_items.
CALL FUNCTION 'BAPI_PO_CREATE'
  EXPORTING
    po_header                  = po_header
    header_tech_fields         = wa_tech
  IMPORTING
    purchaseorder              = purchaseorder
  TABLES
    po_items                   = po_items
    po_item_schedules          = po_item_schedule
  return                     = return.

Similar Messages

  • AFS grid value/valuation type not picked in sales order cost estimate

    Hi Experts,
    We have different valuation types in the material master. This is part of the AFS, where each grid value is a valuation type. While making a sales order cost estimate and in one sales order item, we have 3 grid values (valuation types), system is costing only for one grid value and that too for the entire quantity. This way the costing is wrong as different grid values have different BOMs and routings.
    Is there any specific setting to have the grid value to be picked up in the sales order cost estimate? Or am i missing some setting? in general product costing settings or AFS product costing settings?
    Best Regards
    Vimal

    Hi,
    Do you mean "sales order costing", please  if so then please ref. the link:
    http://help.sap.com/saphelp_46c/helpdata/en/90/ba6da4446711d189420000e829fbbd/content.htm
    Regards
    DSR
    Edited by: D.Srinivasa Rao on Nov 25, 2011 8:19 AM

  • COOIS- Report  Grid Value not displaying

    Hi Experts,
                   In COOIS report Prd Order item details , the grid values and stock category are not displaying values. we created the production order with AFS grid but while seeing report of item details the grid values and stock category are showing null values.
    initial screen,
    Report
    but production order contains grid values.
    any one guide me to resolve it.
    Regards,
      Thangam.P
    Message was edited by: Thangam Perumal

    Hi ,
         my requirement is need to show the grid value and stock category of AFS production order based on item details. i think that alv reports is working based on view. it is possible to add  custom view for that report? . if possible mean to any one guide me to fix the problem.
    Regards,
      Thangam.P

  • Module Pool for displaying the Grid values in Matrix format

    Hi Experts,
    I have one requirement which as follows,
    In Module pool program i need to display the Grid Values in Matrix format i.e,
    Row = Color
    Column = Size
    Like what we can see in Sales order or Purchase Order if you click Grid Entries Button.
    Can you Please Help me out.
    Thanks n Advance.
    Logu

    Hi
    the sources ate the function groups WMMB and WMMA.
    In a new release you should find the function module MGW_UTILITIES_MATRIX_SHELL_RA
    the report RWRFMATCHARVAL is a good example
    Regards
    Björn

  • AFS Grid value problem

    Hello,
            After i create a sales order in va01, and want to change the quantity in va02 tcode. I select AFS ITEM and edit the quanity, after i save it and again enter using va02, in the grid value i.e., matrix entry all the items i entered is missing. And most of the times the quanitiy is doubling. i.e., if 500 units of shirts were entered in va01, here automatically it doubles. My client is facing this problem. Is there a SAP PATCH error??
      Thanks in Advance.

    Hello,
    What's your AFS release ?
    That's pretty strange, I know almost all AFS releases and never faced such an issue. I would recommend first to check whether a malicious user exit could be the cause of the error. If that's not the case, note that there is no available AFS features that deletes entered schedule line/grid value. Only reason for rejection can be automatically populated in sales order due to wrong grid value, ATP check...etc...
    The last option will be to raise a customer note.
    Best regards,
    Mehdi

  • Grid Value in Delivery Schedule isn't populating with BAPI_PO_CREATE1

    Hi Gurus, hope you are doing well.
    I have a problem on my end.
    I am trying to create a Purchase Order using BAPI_PO_CREATE1. The special thing here is that I am using AFS Data.
    Everything is working fine, but the problem is that in Delivery Schedule tab in ME23N, there is a field called Grid Value. This field is not populating with the value that I specified into the ABAP code.
    Does any of you guys had this problem before?, Could you help me to solve it?
    Hope you gays can help me.
    Regards
    Jesus Martinez
    Mexico

    This is the ABAP Code that I am using for testing:
    REPORT  zme51n.
    DATA : t_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE .
    DATA: it_po_header LIKE bapimepoheader OCCURS 0 WITH HEADER LINE,
          it_po_headerx LIKE bapimepoheaderx OCCURS 0 WITH HEADER LINE,
          it_po_items LIKE bapimepoitem OCCURS 0 WITH HEADER LINE,
          it_po_itemsx LIKE bapimepoitemx OCCURS 0 WITH HEADER LINE,
          it_po_item_schedules LIKE bapimeposchedule OCCURS 0 WITH HEADER LINE,
          it_po_item_schedulesx LIKE bapimeposchedulx OCCURS 0 WITH HEADER LINE,
          it_afs_po_items LIKE /afs/bapimepoitem OCCURS 0 WITH HEADER LINE,
          it_afs_po_itemsx LIKE /afs/bapimepoitemx OCCURS 0 WITH HEADER LINE,
          it_afs_po_item_schedules LIKE /afs/bapimeposchedule OCCURS 0 WITH HEADER LINE,
          it_afs_po_item_schedulesx LIKE /afs/bapimeposchedulx OCCURS 0 WITH HEADER LINE.
    CLEAR it_po_header.
    it_po_header-doc_type = 'ZNB'.
    it_po_header-vendor = '0000001093'.
    it_po_header-doc_date = '20110221'.
    it_po_header-purch_org = '0201'.
    it_po_header-pur_group = '010'.
    it_po_header-comp_code = '0020'.
    it_po_header-suppl_plnt = ''.
    APPEND it_po_header.
    CLEAR it_po_headerx.
    it_po_headerx-doc_type = 'X'.
    it_po_headerx-vendor = 'X'.
    it_po_headerx-doc_date = 'X'.
    it_po_headerx-purch_org = 'X'.
    it_po_headerx-pur_group = 'X'.
    it_po_headerx-comp_code = 'X'.
    it_po_headerx-suppl_plnt = 'X'.
    APPEND it_po_headerx.
    CLEAR it_po_items.
    it_po_items-po_item = 10.
    it_po_items-material = '000000109206000052'.
    it_po_items-net_price = '212'.
    it_po_items-plant = '0220'.
    it_po_items-stge_loc = '0201'.
    it_po_items-trackingno = ''.
    it_po_items-item_cat = ''.
    it_po_items-preq_name =  'JMARTINEZ'.
    APPEND it_po_items.
    CLEAR it_po_itemsx.
    it_po_itemsx-po_item = 10.
    it_po_itemsx-material = 'X'.
    it_po_itemsx-net_price = 'X'.
    it_po_itemsx-plant = 'X'.
    it_po_itemsx-stge_loc = 'X'.
    it_po_itemsx-trackingno = 'X'.
    it_po_itemsx-item_cat = 'X'.
    it_po_itemsx-preq_name =  'X'.
    APPEND it_po_itemsx.
    CLEAR it_po_item_schedules.
    it_po_item_schedules-po_item = 10.
    it_po_item_schedules-sched_line = 1.
    it_po_item_schedules-del_datcat_ext = '1'.
    it_po_item_schedules-delivery_date = '20110221'.
    it_po_item_schedules-quantity = '636'.
    APPEND it_po_item_schedules.
    CLEAR it_po_item_schedulesx.
    it_po_item_schedulesx-po_item = 10.
    it_po_item_schedulesx-sched_line = 1.
    it_po_item_schedulesx-del_datcat_ext = 'X'.
    it_po_item_schedulesx-delivery_date = 'X'.
    it_po_item_schedulesx-quantity = 'X'.
    APPEND it_po_item_schedulesx.
    CLEAR it_afs_po_items.
    it_afs_po_items-po_item = 10.
    it_afs_po_items-afs_flag = 'X'.
    APPEND it_afs_po_items.
    CLEAR it_afs_po_itemsx.
    it_afs_po_itemsx-po_item = 10.
    it_afs_po_itemsx-po_itemx = 'X'.
    APPEND it_afs_po_itemsx.
    CLEAR it_afs_po_item_schedules.
    it_afs_po_item_schedules-po_item = 10.
    it_afs_po_item_schedules-sched_line = 1.
    it_afs_po_item_schedules-sch_size = '00W9'.
    it_afs_po_item_schedules-ordered_qty = '636'.
    it_afs_po_item_schedules-quantity_s = '636'.
    APPEND it_afs_po_item_schedules.
    CLEAR it_afs_po_item_schedulesx.
    it_afs_po_item_schedulesx-po_item = 10.
    it_afs_po_item_schedulesx-sched_line = 1.
    it_afs_po_item_schedulesx-sch_size = 'X'.
    it_afs_po_item_schedulesx-po_itemx = 'X'.
    it_afs_po_item_schedulesx-sched_linex = 'X'.
    it_afs_po_item_schedulesx-quantity_s = 'X'.
    APPEND it_afs_po_item_schedulesx.
    CALL FUNCTION 'BAPI_PO_CREATE1'
      EXPORTING
        poheader                     = it_po_header
        poheaderx                    = it_po_headerx
    TABLES
       return                       = t_return
       poitem                       = it_po_items
       poitemx                      = it_po_itemsx
       poschedule                   = it_po_item_schedules
       poschedulex                  = it_po_item_schedulesx
      POCONDHEADER                 =
      POCONDHEADERX                =
      POCOND                       =
      POCONDX                      =
       afs_poitem                   = it_afs_po_items
       afs_poitemx                  = it_afs_po_itemsx
       afs_poschedule               = it_afs_po_item_schedules
       afs_poschedulex              = it_afs_po_item_schedulesx
      AFS_POCOND                   =
      AFS_POCONDX                  =
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      EXPORTING
        wait = 'X'.
    LOOP AT t_return.
      WRITE t_return-message.
    ENDLOOP.

  • Grid value is differrent between SO  and DN

    Hi Expert,
    After dilivery was created by job( program:RVV50R10C) for a SO which was creatd with 2 EA material AAAA (grid value MD), we found the material AAAA in DN was spit to 1 EA MD(batch 50985) and 1EA SM(batch 50984). Actually, there were enough stock for MD(batch 50985).
    Why the Grid value is different between SO  and DN? Thank you!
    Regards,
    Jenny
    Edited by: lhzlhz on Jul 13, 2010 8:39 AM
    Edited by: lhzlhz on Jul 13, 2010 8:58 AM

    If I were doing this as a production application, I would not use your approach.  It would take a bit of thought, but I would probably have a table resembing this:
    roomid
    date
    booked
    Then, if I were looking for rooms between date1 and date2, I could do something like
    select somefields
    from sometables
    where roomid in (select roomid from mytable where date between date1 and date2 and booked = 'N'
    except select roomid from mytable where date between date1 and date2 and booked = 'Y' )
    etc

  • Grid value probelm in PR or PO

    Dear All my Guru,
    I am using AFS MM
    I have 2 userid:
    ACTMM01
    ACTMM03
    Terms:
    Purchase requisition /  Purchase order
    Item details: Delivery Schedule>Grid Value
    In this above I am creating one PR by userId "ACTMM03" .
    In delivery schedule > Grid value - I can not see any grid value there.
    It is showing "No values found" Message no. DH801
    But other hand by "ACTMM01" it is fine. I can see the all grid value there.
    I believe this is the user id problem. But I did not found any authorization problem in SU53 for the user ACTMM03.
    Can any body advice me is there any other problem in userid?
    Thanks and B/R
    Bishnu
    04/12/2010

    HI ,
    Thanks for the Elaborated answer.
    What  i did  is
    PR number range in the backend as external and same i created in SRM as Internal.
    PO number range in ECC i maintain as internal and in SRM as external because of classic scenario.
    Apart from number ranges i went to
    Define backend system for Product category in Technical settings.
        source and target system as BAckend logical system name
    In Cross Application basic setting-- >Define object in backend system
    Pgrp as * and Cat. ID as * Source sys "BAckend System"  ....Always external procurement and PO if item data is complete otherwise PR.
    Now my question is with these settings am i able to create a PR when my Shopping cart is approved and other thing is Do i need to implement any Badi for this ? i mean to create aPR do i need to implement any BAdi , SAme for PO. ?
    Appricate your help in advacne.
    Smriti
    Edited by: Smriti arora on Apr 27, 2010 3:12 PM

  • Grid value( Field J_3ASIZE ) in the report MB5T in SAP-AFS

    Hi
    How can i bring the Grid value ( Field J_3ASIZE ) in the report MB5T for particular STO in SAP-AFS industry solution.
    I tried in the layout but there are no such fields to bring in !!
    Help me out swiftly.
    cheers
    Maruthi
    Edited by: MARUTHI RAM on Apr 15, 2009 1:53 AM

    Dear Maruthi,
    MB5T will not give grid details but ME2W will give grid details. Please enable AFS details for the scope of list in customizing  for ME2W scope of lost
    MM --> ME2W
    You can create consolidated report using the 2 reports MB5T and Me2W. MB5T give PO with in transit stock and ME2W will give PO with grid details.
    I hope this clarifies.
    Regards,
    Rakesh

  • Grid value description in AFS module.

    Hello Experts,
    I am using AFS module.
    In my Z report, I am having Purchase order no. from that I want to display Grid value description.
    How should I find Grid Value description.
    Please help.

    Hi
    I don't believe there's a description for the grid value
    The grid available for a material are in J_3APGEN (see trx J3AB)
    Max

  • Grid Values

    Materials are currently counted in our warehouse using SKU numbers and Grid Values (colors) within SAP (non-warehouse managed). 
    If we were to implement the warehouse management module of SAP, how would I organize a material (with one material number) with several grid values in one storage bin?  So let's say I have a Bin with 10 of the same material but they're all different colors (grid values).  How would I go about storing and managing these within Warehouse Management?
    I'm not looking for a very in-depth answer, but just a basic idea to know if it's possible and how it would work in general.
    Edited by: Cameron on Aug 5, 2009 4:15 PM

    We run the AFS (apparel and footware solution) version of SAP.  Say for example we sell 10 different types of hats.  Each hat counts as a material number in SAP.  For each different type of hat we sell, we carry them in 50 different colors.  Each color is a "grid value".
    Material Number = XXXXXXX
    Grid Value = XXX
    So lets say I have a storage bin carrying 20 hats.  Each of the 20 hats is the same type of hat (one material number) but each of the 20 hats is a different color (20 grid values).  So I have 1 Bin filled with 20 SKUs, 1 material number and 20 grid values. Generally speaking, how would one go about organizing this within WM?

  • Quality Operation confirmation only for specific grid Values

    Hello,
    When I am doing in process inspection for a specific routing for say the 0040th operation, upon confirmation I would like to confirm only part quatities for a specific grid value alone. But there are certain issues as follows:
    1. When I am specifying the grid values, the same is not automatically copied to the yield quantitites field for confirmation. Moreover the system does not even propose what is the quantity to be confirmed. so the user has to remember and feed in the quantities.
    2. When I am trying to save the partial quantites as per the grid system is automatically raising a partial lot. Why is system doing so? I am not able to figure out why?
    Any suggestions on this is greatly appreciated.
    Sincerely,
    Aji Kurian Mani

    Hi Aji Kurian Mani,
    I am not so sure which transaction code you are using for confirmation. If at all you are willing to perform this through QA32 its feasible.
    1.     All you need to do is maintain inspection point at header level in routing
    2.     At operation level double click on control key. Scroll down up to quality management view.
    3.     There in confirmation menu choose valuation and confirmation.
    4.     You may try using different combinations there as a result of which when you valuate the results for inspection point, system throws a window to input yield and scrap.
    Regards,
    Anand Rao
    Edited by: Anand Rao on Aug 31, 2011 11:49 PM

  • No grid values for PO 4500000002 00010; goods receipt not possible

    Dear Experts
    I have been configuring AFS, 1st I create Charactreristic for Size and Colour, 2nd assigned it in MM01. And create PR and PO. When I Goods receipt the following error occured.
    "" No grid values for PO 4500000002 00010; goods receipt not possible
    Message no. 8J658 ""
    But I can see the grid like the below mentioned in MIGO screen "Grid Value " field
    I have mentioned One size and three colours
    Grids like
             Size
    Grn       S
    Blu       S
    Yell      S
    Pls help me.
    Thanks
    Rajakumar.K

    In PO item level go to Delivery shcdule tab and over there you have to select the grid value
    Hope u clear

  • DATA GRID VALUE

    Hi all,
    How can I retrieve the Data Grid Value.?
    Regards,
    Aditya

    hi try this code
    Dim oGrid As SAPbouiCOM.Grid
    dim x as string
    oGrid = oForm.Items.Item("4").Specific
    x = x + oGrid.DataTable.Columns.Item(6).Cells.Item(i).Value
    Regards,
    Avijit

  • How to load grid values in to bi

    Hi Guru's,
    I am new to IS-AFS.now i am implimenting the IS-AFS.i am having some doughts those are how to maintain grid values in AFS and how to load these values in to SAP BI...

    Hi
    Normally we used AFS Grid value filed J_3apgnr-->Mat.grid no , we will assign this object to 0af_grid in BI side .
    Check Afs sales order cube and 2lis_11_vascl datasource .
    Hope it helps
    Praveen Yagnamurthy

Maybe you are looking for