Regarding LSMW -- Purchase Order Data

Hi Friends,
I have one requirement i.e purchase order data need to be upload through LSMW via Direct input method.
=============
pls find the belwo flat file structure
old_PO           material            price            qty
P123              M111                  10               1
P123              M222                  10                1
P123              M333                  20               1
===============
Normally if I upload same data into SAP, it will create three purchase orders with different SAP numbers.
I want if old_PO number is matches with the previous record all the materials should be in single transaction and single Purchase order should be created.
Can any body help how to resolve this issue. This is very urgent.
pls explain in detail. I am using LSMW. I don't have no other option.
=====
please don't post any junk amswers.
=====
Thanks in advance

Hi Raghunath,
Don't think that this reply is junk one.I cannot explain you in detail but try like this.
In the fifth step of LSMW,You can find Global data definitions & Processing times.
In any of these you can just fetch the values from database with reference to flat file data like..
select PO from ...where PO = source-PO.
if sy-subrc EQ 0.
skip_transaction. Using this function you can skip this record
endif.
Award points if useful.
Thanks,
Ravee..

Similar Messages

  • Regarding LSMW Purchase Order header and item data

    Hi Friends,
    I have one requirement i.e purchase order data need to be upload through LSMW via Direct input method.
    =============
    pls find the belwo flat file structure
    old_PO           material            price            qty
    P123              M111                  10               1
    P123              M222                  10                1
    P123              M333                  20               1
    ===============
    Normally if I upload same data into SAP, it will create three purchase orders with different SAP numbers.
    I want if old_PO number is matches with the previous record all the materials should be in single transaction and single Purchase order should be created.
    Can any body help how to resolve this issue. This is very urgent.
    pls explain in detail. I am using LSMW. I don't have no other option.
    =====
    please don't post any junk amswers.
    =====
    Thanks in advance

    Hi Raghunath,
    Don't think that this reply is junk one.I cannot explain you in detail but try like this.
    In the fifth step of LSMW,You can find Global data definitions & Processing times.
    In any of these you can just fetch the values from database with reference to flat file data like..
    select PO from ...where PO = source-PO.
    if sy-subrc EQ 0.
    skip_transaction. Using this function you can skip this record
    endif.
    Award points if useful.
    Thanks,
    Ravee..

  • How to upload Purchase Order Data thru LSMW

    Hi All,
    I need to upload Purchase order data thru LSMW. LSMW Provides standard object method which does not suit for split valuation. But in the client place split valuation is maintained. Is there any other of option of uploading the data.
    Regards,
    Srivatsan

    Dear Srivatsan
    For Upload Purchase order Data through LSMW
    Business object BUS2012 - Purchase Order
    Basic type PORDCR04
    Message type PORDCR
    Method CREATEFROMDATA
    With regards
    B.Ravindranath

  • Additional field in the sales order header Purchase Order Data tab

    Hi,
    I want to add an additional field in the below screen:
    VAO1 > Go to > Header > Purchase Order Data >
    Under Sold to party section i want to add an additional field.
    Is this possible through configuration?
    Please let me know.
    Thanks in advance
    Edited by: Kase on Dec 20, 2011 7:06 AM

    Hi Kase,
    Check this below link it might be helpful for your issue
    sales order - Additional data B
    new fields in sales order
    Regards
    Pradeep

  • Updating Purchase Order data in VBKD table

    Hello,
    We are trying to update Purchase order data in VBKD table for Sales Order at Item level. When sales Order is created, VBKD has a default record with VBELN = 'sales order number' and Item = '00000'. We want to update BSTKD_E field with Purchase order number for VBELN= 'sales order number' and Item = '00010'.
    We wrote our logic in USEREXIT_SAVE_DOCUMENT_PREPARE and USEREXIT_MOVE_FIELDS_TO_VBKD in MV50AFZZ to append new entries in XVBKD with VBELN= 'sales order number' and Item = '00010'. But in this case Sales order is not created with UPDATE TERMINATED message. We are not sure if we can append a new record in XVBKD.
            wa_xvbkd = xvbkd.
            wa_xvbkd-posnr = wa_xvbap-posnr.  "00010
            wa_xvbkd-bstkd_e = vbkd-bstkd.   "PO no
            wa_xvbkd-posex_e = wa_xvbap-posnr. "Purch. order item no
            wa_xvbkd-updkz = C_I.
            APPEND wa_xvbkd TO xvbkd.
            CLEAR wa_xvbkd.
    Please advice the suitable way to have a Purchase Order item level data in Sales Order.
    Thanks
    Rohit

    Hi,
    You can try these FM to update info record.
    ME_DB_UPDATE_INFORECORDS
    ME_UPDATE_INFORECORD
    ME_UPDATE_INFORECORD_COND
    ME_UPDATE_INFORECORD_PD
    Check the sample code on BAPI_PO_CHANGE
    http://www.sap-img.com/abap/sample-abap-code-on-bapi-po-change.htm
    Regards,
    Shiva Kumar

  • Purchase Order date vs Invoice date

    Hi to all.
    In our system we run t-code me21n to create purchase order and later on we run t-code MIRO, MIR7 etc. to post incoming invoice. My question is how do I prevent system from letting end users enter invoice date that has earlier date than purchase order? Let's say purchase order was created on December 3-rd, but end users enter as an "invoice date" in the t-code MIRO December 2-nd and system lets it go through, not even warning message. What I want to accomplish is to create "E" message and not let end-users enter invoice date earlier than purchase order date.
    Help is sincerely appreciated.
    Regards,
    Nazim
    Edited by: Nazim Gasimzade on Dec 4, 2008 3:32 PM
    Edited by: Nazim Gasimzade on Dec 4, 2008 3:35 PM

    Thanks for your reply.
    Our R3 system is designed for government funded organizations. The issue is that government funded organizations are not supposed to have PO entered in the system until they are provided with funds which are quite often get delayed because of all the paper work that has to take place. Suppliers know about it and quite often they supply goods to budget organizations even before PO are in place. Once the budget organization receives the funds that they can spend, they enter PO details and invoice details but it turns out that invoice date is earlier than PO date. At very least we would like to have our system give a "W" message.
    Regards,
    Nazim

  • SAP renamed 'Purchase Order Data' tabs but it is not changed in menu bar

    In VA01/VA02/VA03  transactions,  SAP has renamed the "Purchase  Order Data" tabs at header and item level to "Order Data" but the Goto > Header   and    Goto > Item    menu paths still have "Purchase Order Data" as the name.  This is inconsistent.  Is there an SAP fix for it?

    Try wit this report RSLANG20
    Best regards,
    Mirek

  • Regarding Quotation & purchase order

    Dear experts,
    I want to get clear how purchase order play a role in creating a quotation.
    So long i heard of process Enquiry->Quotation->Sale order -> Delivery->Billing->FI posting.
    But i have no idea how purchase order is used to create quotation.
    Plz if anyone can explain me in detail about the quotation part.
    Basically i am an abaper and requirement is to use a BAPI for creating quotation.There is purchase order information also
    given in input.However i have no functinal clarity about purchase order and the way it is linked to quotation.

    Hi there,
    Basically a Purchase order is created to procure goods / items from an external vendor or plant. Those items are called 3rd party items. When a sales order is created, a purchase requisition PR is created 1st basing on the settings in scheduling line catg. A PR will either convert into a production order (for inhouse manufactured goods) or a purchase order (for externally procured goods). PR to PO conversion happens in ME59.
    It is also possible that a PO is raised 1st to procure the goods. This happens for STO items (stock items). Company raises a PO to the vendor or supplier, inbound delivery is created, when the inbound delivery is GR'ed, stock will be available.
    Your understanding is correct that Inquiry --> Quotation --> order --> delivery --> billing.
    Quotation is where we give it to the customer on the terms of sale which has a specific validity period. In some cases, we refer the SO from the quotation. But the quotation cannot directly create a PO. Also if you see the VOV6, schedule line catg BN & BV will not have availability check or transfer of requirements or any entry in order field (for creating a PR).
    So in any case if you receive any purchase order data, it is required to enter in purchase order data screen in quotation. Other than that it has no relevance.
    Regards,
    Sivanand

  • Purchase Order data from archive

    Friends,
    May i ask your expert advise on the best possible and efficient way to extract the archived Purchase Orders data, basically key figures are needed for audit purpose of year 2002 to 2006, i tried using SARA and SARI, but they are really killing huge time and also the system memory.
    Thanks in advance for all your valuable advises.
    Best Regards,
    Ravi

    Hi Ravi,
    If you are talking about the data from a few purchase orders, then displaying using ME23n will be the easiest.
    If you are talking about some key fields from a lot of POs then i feel using infostructures will be the easiest (although it is slow if you are talking of huge volumes of data; but compared to sequential access, this is better).
    If there is a standard infostucture already available which has the fields which you are looking for, then activate and build the info structure. Else, you may have to create a new infostructure which has the fields you require; again for this you can make use of a standard available field catalog or create one on your own. When filling the infostructures, you may have to fill for few archive sessions / files at a time so that it wont take long time and memory.
    There is another way which is possible. If you have BI system in place and if it contains the data you are looking for, then you can extract the data from BI (if it suffices your audit requirements).
    Hope this helps,
    Naveen

  • Tables for sales & purchase order data relating to delivery

    hi all,
    i am writing a report to download all the delivery data after the delivery is created.i have to download the sales order data & purchase order data relating to this delivery also.
    i am using likp & lips table for delivery.which tables i
    should use to get the sales order data & PO data for the same delivery (likp-vbeln). i.e i need the sales & purchase order related tables which has link with delivery tables like likp & lips etc.
    plz advice me. it is very urgent.
    any idea is highly appreaciated.
    Regards
    pabitra

    in Addition to NM ,
    in case of STO there is no Sales Order , Process will be like this
    PO-->Delivery->PGI--->Billing  then u have to
    link
    *getting the History data of the PO
            select ebeln
                   ebelp
                   belnr
                   menge
                   from ekbe
                   into corresponding fields of table  w_ekbe
                   where ebeln eq w_lips-vgbel
                     and ebelp eq w_lips-vgpos
                     and bewtp eq 'L'.
    Regards
    Prabhu

  • Purchase order data for ATP category BH and BI not retrieved

    Hi Experts,
    I have a requirement where I need to extract purchase orders data from the bapi BAPI_POSRVAPS_GETLIST3. I am passing the locations, products and ATP categories AG,EF,BF,BI and BH. However, my bapi works correctly for AG,EF and BF, but it does not retrieve the data for BI and BH categories.
    I have debugged the bapi and found that it is unable to retrieve data from the live cache.
    Can anybody please help me out and let me know the exact reason for this issue? I have checked the return table of the bapi and it does not give any error message as well.
    Looking forward to your reply.
    Thanks in advance.
    --Warm Regards,
    Prajakta K.

    Hi,
    BI (stock transport order) and BH (PreqRel) are demand elements for which there exist corresponding receipt element as BF (Purchase order) and AG (Preq) respectively. BAPI will give data for these categories.Thus you can get data for BI and BH from corresponding BF and AG.
    Similarly EF (Dep:Preq) is receipt element and you will not get data for corresponding demand element which is available in the system as EG (Dep:ConRel).
    I think BAPI is working fine.
    Regards,
    ~Vaibhav

  • Change Purchase Order date as per MRP Run

    Hi SAP Gurus,
    My scenario is like that, MRP for a Material is run last Month and Purchase Requisitions are converted into Purchase Order, but there is no Good receipt for this purchase order. So my requirement is that when i run MRP for current Month. It will change the Date of same Purchase Order. Is this thing is possible through any enhancement /standard SAP scenario. Please give me a solution

    Hi
    MRP will not change the Purchase order dates since it is a firmed receipt element.
    You can achieve your requirement like this,
    1. You run MRP for the current month, if the PO delivery dates are not matching with the required date, system will give exceptional message with rescheduling dates.
    2. You can make a custom program to change the PO delivery date as your rescheduling date or whatever logic you want.
    Regards
    Bala

  • Message alert when Invoice date preceds Purchase order date

    Hi all,
    I want to define message alert, when Invoice date precedes Purchase order date. Is there any standard message type is there, If yes please let me know. Otherwise how can i define this, please.
    Thanks
    CS..

    Hi,
    You can take help of your abbaper and enter the validation in the user exit of MIRO thru which Invoices are booked.
    Hope this helps, if yes, please assign points.
    Regards,
    Harish

  • Regardig purchase order data

    Hi all,
                  I have a requirement to modify the purchase order data in the ekko table and other underlying tables. I want to modify the field Invoicing Party(LIFRE in EKKO).
                is there any BAPI or standard function module to do this.
    Regards,
    Ravi G

    in BAPI: BAPI_PO_CHANGE
    BAPIMEPOHEADER-PO_NUMBER = <PO Number>
    BAPIMEPOHEADER-DIFF_INV = <data>
    BAPIMEPOHEADERX-PO_NUMBER = <PO Number>
    BAPIMEPOHEADERX-DIFF_INV = 'X'.
    Finally DB Commit by BAPI: BAPI_TRANSACTION_COMMIT.
    Message was edited by:
            Murugesh Arcot

  • Purchase order data

    Hi Can anyone tell me how to download purchase order data of material master data? Which table?

    Hi
    The Purchaser Order Text of the Material Master data can be downloaded ans saved to the local file using the 'Save to File' Icon in the Material Master data.
    Goto MM03, for the material and select the Purchase order text view and in the small window where the Text is written, you can see the icon 'Save to File'.
    Regards
    Siva

Maybe you are looking for

  • Iphoto 6 and Panasonic DMC-FX37

    Hi Everyone I wander if you might be able to help me with an issue I have with a new digital camera and iphoto 6. I use iphoto 6.0.6 and I have recently upgraded my digital camera from an Olympus 410uD to a Panasonic DMC-Fx37 and found that the pictu

  • Flat file load changes in key figures

    Hello, I have a weird issue when i try to load some data into a cube(Flat File) with 1900 records only 1668 records gets loaded into the cube and also when i try to validate it the numbers doesnt match.Can you guys suggest me if i am missing anything

  • Applet javascript communication

    hi all, I want my applet to flash the browser window, came to know that can be done using applet javascript communication. ne1 has ne idea how to do that. thx in adv, kiran

  • I cant find my personal hotspot.

    i cant find my personal hotspot in my iphone 5s running ios 8.0.2.

  • Attachment File extension automatic change

    when i am sending mail with attachment jpg file it is automatic attachment file change .dat