Creation of a line item in the existing PO by inbound idoc (ORDERS05)

Hi friends,
   I have the following requirement.This is for the  inbound idoc ( orders05).
If there is an extra item line in the confirmation idoc, for which no corresponding purchase order line is found, check if the extra line's NOB-number is found in the new NOB-number check -table.
Fetch NOB-number check table with database keys:
E1EDP19-IDTNR (when E1EDP19-QUALF = ZNO) = NOB-number in the table
EKPO-WERKS (from 1st purchase order item line) = site number in the table.
If the NOB-number + WERKS is found in the control table, create a new item line in the purchase order.
If the NOB-number + WERKS is not found in the control table, put the idoc into error.
Can you please tell me that how to create a new item line in the purchase order.
Waiting for your help.
With Regards,
Ajit Prasad.

You like to add new line item in existing purchase order or new po.
Thanks,
Narayan

Similar Messages

  • Bapi to copy the PO line item below the existing PO line item

    Hi All,
    I am new to work on BAPI, Can any one help me out,
    Requirement is to copy the PO line item below the existing PO line item (Replicate the line item for returns purpose) . So is there any bapi to do this task.
    Thanks in Advance
    Pallavi
    Moderator Message: Please employ the SAP procedures to identify the right BADIs and Exits and help yourself.
    Edited by: kishan P on Nov 16, 2010 1:56 PM

    Hi,
    What i think is you should use two BAPI one is BAPI_PO_GET_DETAIL to fetch existing details of line items and then BAPI_PO_CHANGE to create s second one.
    Nabheet

  • Delivery doc creation for a selected line item of the Sales order

    Hi folks,
        Can any one help me in how to create a delivery order for a selected line item of the Sales order.My requirement is the request comes from the web browser where a sales document and details of the items are shown the user select one line item and request for delivery create of that particular SO doc.I have used couple of FM to create delivery but the delivery create is depend on the schedule line dates so iam unable to figure out where exactly i can distinguish between the line items.
    Example:
    SO:- 11193645
    Line item -1 has 2 schedule line 06/11
                                     06/13
    Line iteam-2 has 1 schedule line 06/12
    so if i try to create Delivery doc for date 06/12
    it creates partially for line 1 and line 2.
    but my requirement is i wanted to create SO for only line item 1 as i wanted to process Del Doc for only line item 1.
    If you have any idea please help me.

    hi ,
    You can develop a customised FM to process the Idoc data .
    1. Read the Idoc data into internal table for the line items which need to be delivered .
    2. Run BDC for transaction 'VL01N' ( delivery creation ) through which  eliminate the line items which are not in internal table and save the delivery document
    Note : Because in VL01N , you specify the sales document with respect to which you want to perform delivery hence automatically all items are copied to the delivery document .
    During BDC recording , select items by " MOVING TO TOP"
    and then deleting the selected item
    If you face problem in BDC recording , i can help u that too .

  • Same material can exist on multiple line items for the same order.

    Hi
    Is there any specific customising setting or web shop setting through which we can restrict user to add same material on multiple line items for the same order ?
    Regards

    No.
    But if this is a must requirement, you can do an elaborate check during order save in ORDER_SAVE BAdI and return error. So, it will be only during order save.
    Eawar Ram
    http://www.parxlns.com

  • 1 line item in the sales order ship to different shipping address

    Hi,
    Our customer A have 3 different branches (meaning 3 different shipping address).
    During the creation of the sales order for 1 material A, I want to ship 50pc to this customer A:
    10pc to address A1
    20pc to address A2
    20pc to address A3
    In my sales order, is there a way I just create 1 line item with the order qty 50pc for this material A, but split into 3 schedule line with 3 different ship to address?
    I know there is alternate way where I create 3 different line item (with order qty 10, 20 and 20) and change the ship to address in the Item -> Partner tab. But using this method, I have to create 3 times of the same material in 1 sales order, just with the different shipping address.
    I want to know is there a way I just need to create 1 line item?
    Kindly please advise. Thank you.

    Hi there,
    When you have 3 different ship-to address, system will anyway create 3 different deliveries. This is coz if the header data in shipping (ship-to) is different, system will split the deliveries. Routes are different to 3 ship-to addresses & they cannot be combined in the same delivery.
    So as mentioned in above thread, create 3 different line items or create different sales orders all together for different ship-to parties.
    Regards,
    Sivanand

  • Copy service line items to new line items in the same contract (ME32K)?

    Hello friends,
    Requirement: There are many contracts (account assignment K) has service line items  (type 9). I need to copy a contract line item along with its service line items (1 or more) into a new line item in the same contract. I tried bapi_po_change but it says Contracts can't be processed with it, as only in this bapi we have a structure for ESLL services. BAPI_CONTRACT_CHANGE or create don't have structure for ESLL..how to achieve this through a bapi or a fm?
    So, in what way I could accomplish this? I came across some threads, which was helpful, but is not solving the purpose
    Any guidance here would be of great help.
    Thanks in advance.
    Mayank

    Use BAPI_AGREEMENT_MAINTAIN
    This BAPI can be used to create new service items in the contract but won't change existing lines. You can query the contract lines that you want to copy and later call the BAPI to recreate them

  • Automatic Service Order creation and OBD line item creation - Repair Order

    Hi ALL,
    I tried to run the Repair process based on the help document of SAP:
    Configs Followed:
    1) In Material master MRP3 view, strategy group is assigned as 84 (service orders). By default this str.grp is linked with Requirement type SERA and Requirement class 203.
    2 ) Requirement class is assigned with appropriate Service order type.
    SPRO>Sales and Distribution>Basic Functions>Availability Check and Transfer of Requirements>Transfer of Requirements-->Define Requirements Classes (OVZG)
    Actual Assignment:
    Reqt. Class Service Order Type
    039 SM01
    203 SM01
    3) Task list is assigned to your Service material - Service product - OISD
    Actual Assignment:
    Service Pdt Work Centre Plant B Area Gen TL Group Counter Task List Type
    R-1001 PC-SERV 1200 8000 62 1 A
    4) Check the Requirement class setting indicator for configuration (cnfg)
    Actual Assignment:
    = mandatory
    5) SPRO>Sales and Distribution>Basic Functions>Availability Check and Transfer of Requirements>Transfer of Requirements-->Define Requirements Classes --> Determination Of Requirement Types Using Transaction
    Actual Assignment:
    Item Category Reqt class Reqt. Type
    IRRS 039 SE
    IRRE 203 SERP
    IRRP 203 SERP
    IRAL 040 KE
    6) Sales and Distribution>Sales>Sales Document Item-->Assign Item Categories for determining the item category based on usage
    Actual Assignment:
    Sal. Doc. Type Item Cat. Group Item Usage H. L . Item Cat Item Category
    RAS NORM IRRS
    RAS NORM R101 IRRS IRRE
    RAS NORM R102 IRRS IRRP
    RAS NORM R103 IRRS IRAL
    Errors Faced:
    1. Service Order is not getting created automatically.
    Error in SAP - IDES :"A service order has not been found for action 'Repairs'"
    2. Also im not getting the automatic creation of the 4th line item(Item Category - IRAL) in the repair order, which in turn stops me from creating the Outbound delivery.
    Please HELP !
    Regards

    Hi PeteA,
    Sorry, here it is...
    Let me explain the process that has been followed:
    1) Initially to start with Service Notification was created with IW51 T-code.
        In that, Sold to party and material # were entered. Then from there directly i go for Create Repair Order from the Action Box.
        Order type for repair order - RAS, and when i save both Service Notification and the Repair gets saved.
        Now, in the repair order, two line items were getting created automatically and the requirement Types for those line items are:
        Line Item I : SE
        Line Item II: SERP
    2) After that i take the material in with the help of t-code VRRE.
    3) Then, i do the acceptance of the stock ( Technical Check) with t-code QA11.
        Once i do that, i get the Third line item in the Repair Order and the requirement Type for that line item is:
        Line Item III: SERP
    Now my query is, Once i do the QA11 transaction i need to get a Service Order automatically but thats not happening.
    Also if i create a Service Order manually, and do the repair and do the technically completion of the service order, then i need to get a third line item (IRAL) in the repair order automatically and thats also not happening.
    Regards

  • Create ecatt script for one sales order creation with multiple line items

    Hi ,
    I want to create a ecatt script for one sales order creation with multiple line items. Preferably SAP GUI.
    This selection of data will be from an external file/ variants which will have only one row of data in it.
    Firstly: I have to sort the external file having same PO Numbers in an order.Group them together.
    Second: I have to create sales order for those many line items having same PO Number.
    Best Regard
    Taranum

    Hi Micky
    Firstl you should upload the Line items for a particular sales Order in an Internal table
    and then pass that internal table to your BAPI during your coding corresponding to a particu;lar sales order
    In case of any issues pls revert back
    Reward points if helpful
    Regards
    Hitesh

  • Replication of line items in the PO through ME59N

    Hello everyone,
    I am trying to replicate( duplication of each line item  into 3 line items) the line items in the PR through ME59N. I tried to change the Build_ITEM perform and added the new line items to it. However, during validation of line items, the program fails to replicate. I could not add the line items after creation of the PO in the program. Please help!!
    Thanks,
    Kanch

    You can use this exit to restrict number of line items in PO.
    EXIT_SAPMM06E_012

  • Custom table Not deleting the line items on the order.

    Hi All
    I have an issue, In SAP  we have created a custom table which is related to ship to party, as and when we delete any line items in the order(VBAP)  it should update /delete the custom table but it is not deleting, while when we create any line items in the order (VBAP) it is updating  the entries in the custom table which is suppose to happen.
    Please let me know your inputs.
    Thanks,
    Ram

    UPDKZ is not a field name. it is the processing status of a line or order.
    If UPDKZ is I , its initial, like adding a new line
    If UPDKZ is U, its update. Like changing or modifying an existing line
    ....so on...
    Regards
    Sai

  • BADI: PO creation : ME_PROCESS_PO_CUST : check line item matnr

    Hi all,
    I am using a BADI for PO creation definition is ME_PROCESS_PO_CUST and method PROCESS_ITEM
    if material number in the Line item is blank, create a material number(BDC or BAPI) and fill it in the line item.
    I am not very conversant in Objects...
    i seek help on the correctness of the method iam referring to for this purpose and also how to pass values to field matnr in the line item of the PO.
    i have used Get_Data for getting all the values and am using set_Data for changing the value of matnr if it is blank. but if i set the value of matnr it doesnt seem to change and am not able to figure out where i am wrong.
    Thanks in advance,
    Harish Ramakrishnan.

    Hi Harish!
    Then you are aware of the comment of SAP to process_item:
    "Under no circumstances make any changes to the database within this method. On no account use Commits."
    But also method post is commented like this: "On no account use Commits in this method."
    And you need a commit before you can use any created data in your PO.
    Nevertheless, you tried to change a value in process_item. I guess, you use method set_data of the interface, which is import parameter of this method. I had a look into the method set_item: there is just a update to an internal (hashed) table. So technically it should be changed. But if further checks will prohibit changes of special fields - who knows.
    I'm not surprised, that line checks can't change the matnr any longer, but at least online it's possible to change the material.
    Maybe you can debug, what happens when doing you changes. It might be already after a view steps, where the changes get lost.
    Regards,
    Christian
    P.S.: Do you also use method set_datax - or I'm in a totally wrong area?
    Message was edited by: Christian Wohlfahrt

  • IDoc message Document or line item does not exist for invoice reference

    Hello,
    We activated IDoc message type FIDCC2. When cancelling documents which were created before the activation date the cancellation documents aren't posted in the receiving system. Message 'Document or line item does not exist for invoice reference' appears. How can I process these items (the reference document can't exist in the receiving system so the only option is to remove it from the IDoc?)?
    Regards, Jan

    This is just a guide.  Adapt it to your situation.  I get this kind of error message where in the case, someone has marked for deletion a line item in the purchase order.  In this regard, the IDoc errors out because the line item number being referenced is marked for deletion.
    You can either delete the IDoc or have the deletion flag taken off the line item number in the PO or document number to enable you reprocess the IDoc number in question.
    Elias

  • Issue in creation of new line item in repair order-Reg

    Hi all,
    I have a query in Service Management Module of SAP while working in standard IDES System.
    I followed the procedure given in the IDES material.
    As per the standard system the fourth line item in the repair order should be automatically created, once the service order is technically confirmed and completed. In my case iam able to get the first three (Item Categories - IRRS,IRRE,IRRP) line items but even after completing the service order technically iam not gettin the fourth line item (IRAL). Only based on the Fourth line item we can create the Outbound delivery for the repaired item. After that the billing process need to be processed. My query is how to get the fourth line item automatically in the repair order after i technically complete the Service Order. 
    To brief you on the entire process that i have followed:
    1. The QM Check need to be activated for the material.
    2. Creating the Service Notification and the repair request.
    3. Posting the GR of a piece of equipment to be repaired.
    4. Processing the technical check.
    5. Displaying the repair request and the service order.
    6. Editing the Service Order.
    7. Processing and Confirming the Service Order.
    8. Technically Completing the Service Order.
    9. Delivering the Repaired Piece of Equipment.
    Then Comes the BILLING.....
    In the above, after the eighth Step the Fourth Line item will be created automatically created but it DOESNT....
    regards
    Venu

    Hi ,
    Review your repair procedure and copy controls defined for this stage...mya be some thing is missing over there causing this behaviour.
    As you told completion of Service order will determine the last item and enable us to delivery the item to customer...
    Thanks,
    sudhi

  • PERNR - Personnel Number on vendor line item of the FI document Posting

    After posting a time sheet (PR05, PRFI, PRRW), the FI document created (display via FB03) has the personnel number on each of the GL line items, but the field is blank on the vendor line item.  Does anyone know how to get this to be populated with the same data as being populated on the GL line items (it's the same field BSEG-PERNR)?  I've made the field optional on the vendor reconciliation account as well as on the posting key, but no success yet.  thanks.

    Thanks all for responding. 
    The vendor master was populated.  The strange thing is that the GL line item gets populated but not the vendor line item in BKPF/BSEG.  We talked to SAP and to get the vendor line item to populate we would have to do an SAP coding change.
    I created a quickview (SQVI) between the appropriate tables to get the report out that we needed (a bit easier than an ABAP) - but nontheless it worked.
    thanks again.

  • General Ledger Accounting (New): Line Items of the Leading Ledger

    Hello Guys,
    We are planning to implement
    General Ledger Accounting (New): Line Items of the Leading Ledger
    0FI_GL_14
    We are in ECC6 sap_appl 6.00 and BI 7.0 SP 14, BI Content 7.3 level 4.0
    The new GL line item is available
    Financial Accounting: General Ledger Accounting (FI-GL)
    Available as of Release - SAP Enhancement Package 3 for SAP ERP 6.0
    Shipment - SAP NetWeaver 7.0 BI Content Add-On 3 Support Package 08
    Content Versions- 1.0; 703
    Just we have  to install SAP NetWeaver 7.0 BI Content Add-On 3 Support Package 08  and on ECC side SAP Enhancement package 3 for ERP 6.0 --. Financial accounting - SAP APPL 603.
    Is it correct. Can you please confirm.
    Thanks
    Senthil

    Hello Senthil,
    Yes, thats engough, since SAP is recommending the same for that datasource 0FI_GL_14. I think you are already in that version.
    See this SAP help document
    [DataSource Transactional Data: 0FI_GL_14|http://help.sap.com/saphelp_nw04s/helpdata/en/45/4f8e8bbf3f4f63a5dd197ef7d53fa2/content.htm]
    Thanks
    Chandran

Maybe you are looking for

  • ODBC not working in WEB FORM(Dev6i)!!!

    Hi : I found ODBC are not working in Dev6i Web Forms , my reports all based on excel though ODBC . Can anyone help me to solve this problem ? Help me !!!! Thanks in advenace !!!

  • Magic Bullet Denoiser II Plugin Not Showing Up in Effects Panel on CS5.5

    Very bizarre. I have Looks working, as well as a trial of Neat Video. I have tried holding down SHIFT to reload the plugin cache. I have tried reinstalling Denoiser II , including older versions of it. Of note: Reviewing the Plugin Loading Log shows

  • Reading in a text file

    For my next project I'm supposed to read in a text file and then compute the legibility index. How do I go about reading in a text file?

  • VL01N user exit to copy pricing conditions from sales order

    Does anyone know which user exit could be used to copy sales order line item conditions to delivery note conditions screen. The sales order screen is SAPLV69A field KOMV-KSCHL The delivery note screen is SAPLV69A field KOMV-KSCHL Thanks

  • Insert excel worksheet in web interface builder

    Dear all, I want to insert my planning package inside my web interface, and I don't know how to fill the planning level fields ? With F1 I got the following information                                                        The planning level of a se