IDOC generation to change the Purchase Order

Hello Experts,
I am developing the program for changing the purchase order through IDOC.
We will get the file from legacy sytem with control and header and detail record.
So when ever the there is EOR as last field in the detail record. Im updating the IDOC_DATA and  calling functin IDOC_INBOUND_SINGLE.
SO when ever there is mulitiple line items changes for single PO.
we will get the file like that for last detail record we will get EOR as last field for last line tiem .
So i m grouping in to  one control and one header and one or more detail record and passing to the IDOC_DATA calling functin IDOC_INBOUND_SINGLE.
At this time i m getting error like that header segement is missing
Please help me to solve this issue. Any one worked on similar type of issue please help me.

Cannot see your program of course but check that you populated the header segements.
What does  IDOC_INBOUND_SINGLE expect, does it expect a particular Idoc type? in that case you gotta build that first from your file.
Is IDOC_DATA all that this function requires, what are the other input parameters?
regards

Similar Messages

  • Change of Sales Order  automatically changes the purchase order

    Hi 
       I am working on a scenario where a  as soon as a sales order is created it will also create a purchase order on plant which will supply the item to the plant on which sales order is created.This works fine.
    Now when I change sales order( order qty ,requested delivery date, new item added) . On saving the sales order it should change the purchase order which has already been created by updating the schdule lines in the purchase order with new values from the sales order. It is all in same SAP instance.
    Here are possible ways I can think of:-
    1 Change of SO will create a SO IDOC . The SO IDOC should supply required values to the PO Idoc . The PO IDOC should get posted to SAP to change the existing PO.  Client does not have XI so we cant use XI for conversion.
    2 Changing a SO will trigger workflow.The Workflow executes ABAP program which takes data from SO and calls BAPI to change the purchase order and sends notification that PO has changed.   Which BAPI?
    Any thoughts are welcome. We are on 4.7 and we dont have XI. So please do not suggest XI based solution.
    Prashanta

    Prashanta,
    For your 2nd part of question, you can use 'BAPI_PO_CHANGE' to change the PO.
    Thanks

  • Change the Purchase Order : Item - Conditions value

    Hi,
    How to change the Purchase Order : Item - Conditions value.
    In my PO, Item conditions shows the SKTO - Cash Discount value is 0. I want to change the Discount value 10.
    How can i change it??

    Hi,
    Goto the Transaction code MN05 and give the CONDITION TYPE SKTO and change the value
    MN05 is the Transaction code for Purchase order  condition types.
    Please check and revert back if you need more details.
    regards,
    santosh

  • Release have to be retrigger if any body changes the purchase order

    Hi all,
    Actually my requirement is.....once a PO is released by a purchasing group.....and later any body  have changed the  purchasing group in  the same PO release should be retrigger how to configure this.
    Regards,
    Bhargav...

    Go to SPRO > Materials Management > Purchasing > Purchase Order > Release Procedure for Purchase Orders > Define Release Procedure for Purchase Orders > Release indicator
    Select the release indicator for the final release.
    Once you are there, make "Chgable" = 6 and "% Value change" needs to be "blank".
    Hope this helps.

  • To change the Purchase order header and line item text

    Hi everybody,
    I need to upload the PO Header and item text for the combinaion of PO and a material.
    Please help???

    Hi,
    Try this beloe code
          Length of the PO item text
          If the length > 132 Chars
      BAPI Function module for changing PO item Text
      commiting the bapi change
    SORT t_bapi BY ebeln ebelp.
      LOOP AT t_ebeln INTO wa_ebeln.
        LOOP AT t_bapi INTO wa_bapi WHERE ebeln = wa_ebeln-ebeln.
          REFRESH t_return.
          READ TABLE t_input INTO wa_input
            WITH KEY ref_num = wa_bapi-ref_num
                     item = wa_bapi-ebelp.
          IF sy-subrc EQ 0.
            APPEND wa_input TO t_output.
            w_len = STRLEN( wa_input-text ).
            wa_potextitem-po_number = wa_bapi-ebeln.
            wa_potextitem-po_item = wa_bapi-ebelp.
            wa_potextitem-text_id = 'F01'.
            wa_potextitem-text_form = '*'.
            wa_potextitem-text_line = wa_input-text+0(132).
            APPEND wa_potextitem TO t_potextitem.
            IF w_len > 132.
              wa_potextitem-po_number = wa_bapi-ebeln.
              wa_potextitem-po_item = wa_bapi-ebelp.
              wa_potextitem-text_id = 'F01'.
              wa_potextitem-text_form = '='.
              wa_potextitem-text_line = wa_input-text+132(123).
              APPEND wa_potextitem TO t_potextitem.
            ENDIF.
          ENDIF.
        ENDLOOP.
        CALL FUNCTION 'BAPI_PO_CHANGE'
          EXPORTING
            purchaseorder = wa_bapi-ebeln
          TABLES
            return        = t_return
            potextitem    = t_potextitem.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
          EXPORTING
            wait   = ' '
          IMPORTING
            return = wa_bapiret2.
    Regards
    Krishna

  • Change of  purchase order

    hi can any one tell how to change the Purchase Order Header text and Item Text.
    if possible please provide the code for the same.
    thnks,
    Vaasu

    Hi
    You need to write BDC program, u can not do it through LSMW
    with regards
    Bhargava
    reward if useful

  • Changing the Condition type Text in the Purchase Order

    Hi SAP,
    Hi,
    We have a requirement where by we need to change the Description of the condition type text in the Purchase order.
    The condition type is a entered at item level.
    Normally this description comes from the Condition type Definiton i.e., T685T-VTEXT.
    can any one of you suggest a User exit or a method where by we can change this text at PO.
    Has any one of you came across such situation before. if so please provide me with your inputs.
    Thanks
    Best Regards
    ShitalD
    Edited by: Shital Deshpande on Feb 21, 2010 1:07 PM

    Hi,
    I think it is a config setting..Please check with your functioal consultant regarding the same.. I won't suggest to change the standard SAP table T685T but you can keep it as last option .
    From SPRO you can follow the below path
    Sales and Distribution->Basic Functions -> Pricing > Pricing Control -> Define condition types.
    Regards,
    Nagaraj

  • Reset Release Strategy for any change in the Purchase Order

    Hi,
    Is it possible in SAP standards to reset release strategy for even minor changes in the Purchase Order irrespective of whether it is value change or any change in the text or Purchasing group change or whatever it is?
    If so, where do we need to make the configurations.
    I have seen in some thread about resetting the release strategy for decrease in Purchase Order value.Even that was possible through some BAPI.
    Thanks in Advance.
    S.Raghavan

    hi sandesh,
    sorry, i know it's too late.
    i tried your suggestion, it works blocking the purchase order after release strategies are setted.
    sandesh, raghavan:
    i need to reset the strategies after to make any change in the po. i'll appreciate your help if you can give it.
    regards
    f

  • How I can find the  Delivery address changes in purchase order

    Hi Friends,
    How I can find the  Delivery address changes in purchase order
    item details.And how i can find who did ths changes.

    Hi,
    Go to ME22N, here select the line item and click on menu "Environment > Item Changes" to track the changes.
    For multiple POs, go to ME2N, here enter Selection Parameter as "ALLES" and execute the report to check all the changes.

  • Accomodate the changed BOM in the purchase orders

    Hello,
    I have the 2000 subcontracting purchase orders created with the Old BOM. The BOM was changed in the inbetween. How do I update the purchase orders in a single transaction, I do not want to go in all the Purchase orders and change the PO manually.

    LSMW and SECATT are standard transactions.
    Not everything is possible ot change with MASS transaction.
    It is quite unusual to have 2000 open POs with wrong bill of material.
    How did you create thiose 2000? Manually? how many weeks did it take?

  • Price to be changed in the service activity after saving the purchase order

    Hi Gurus,
    I am doing sap project system implementation in power project. I am creating the service activity and giving unplanned services as 1000 rupees and released the project. The purchase requisition is converted to purchase order and the purchase order no is generated.
    now the price of service activity is 1500 rupees and i want to edit the service activity price and in the project system price is greyed and it is not able to edit.
    So pls help me how can i do edit of the price and change it in the purcahse order.
    regards,
    muralips

    Hi Abdul,
    The above query which i mentioned is of using unplanned services and what ever the price i edit in purchase order is not reflected in the network activity.
    If it updates in tne network activity then my planned cost should change and at present it is not changing in my project.
    so please suggest me how to get the cost updated in the network activity.
    regards,
    muralidhar tallam

  • Creation multiple idocs on creation of a Purchase order

    Hi all,
      I am having a requirement wherein if I create/change any purchase order with multiple Items in one system, I need to create multiple sales orders in the receiving system with each item. That is, the sending system should send multiple ORDERS idocs to the receiving system with each item as one IDoc and need to create a Sales order for each item in the receiving system.
      I am able to configure the systems in such a way that if I create a Purchase order with multiple items, it is sending one ORDERS idoc with multiple and henceforth, creating only one Sales order in the receipient system. But, not able to acheive the scenario I have mentioned above, i.e., creating multiple IDocs with one item each for the same purchase order.
      So, Can anybody know how to handle this scenario? Also, can you please let me know whether is there any standard procedure for handling this scenario?

    Hi Adithya,
    I too facing the same kind of requirement, can u please let me know how you achieved sending multiple idocs.
    Thanks,
    Kashif

  • Changing a Purchase Order with "BAPI_PO_CHANGE"

    Hi Experts,
    I am trying to change the Confirmation data for an existing PO using the BAPI "BAPI_PO_CHANGE".
    I am filling the PO Number in the "PURCHASEORDER" Import parameter.
    I am also filling the "CONF_TYPE", "DELIV_DATE" and "QUANTITY" fields in the "POCONFIRMATION" Table parameter which is specifically the data i need to add to the existing PO under the "Confirmations" tab of the PO.
    I am getting all the input data for the BAPI from a file on the presentation server. The file has details of Material Number, Purchase Order Number, Ship to Address, Delivery Date and Quantity.
    But i am not able to change any data in the Purchase Order when i test the BAPI. I am getting the following messages in the "RETURN" Tables parameter:
    T ID                   NUM MESSAGE
    W ME                   667 Max. line number reached (Please always first enter line number manually)
    E BAPI                 003 Instance 45317399 of object type PurchaseOrder could not be changed
    W ME                   178 Batch SURE not maintained for material 10013537 (please check your input)
    E 06                   218 Net price must be greater than 0
    I am not sure if i am missing to fill any parameter here.
    Kindly help me in resolving this issue.
    Thanks in advance.
    Regards,
    Keerthi

    Hello to all,
    that is just for documentation. SAP answerd the problem in OSS-304243 but this message is not accessable if you don't have powerful OSS-Users.
    This SAP-note might be interesting: 197958
    OSS-Message 652796 8.8.2011
    BAPI_PO_CHANGE
    We can not process confirmations by using the parameter poconfirmation.
    The Baps reports always S 06 022 - no data changed.
    In the SDN there are some hints telling that the BAPI_PO_CHANGE does notsupport processing of confirmations. More detailled infos should be in
    the OSS-Message 0000304243 but this message is not accessable for us.
    Can you confirm that the BAPI_PO_CHANGE does not support adding
    confirmations? We debugged the BAPI and there is no code for updating
    confirmations found.
    Best regards
    Bernhard Lascy
    09.08.2011 - 10:43:07 CET - Antwort von SAP
    Dear Bernhard,
    I regret to inform you that the functionality you request is not
    implemented in the R/3 standard system.
    Unfortunately it is not possible to change/load confirmations with the
    function module BAPI_PO_CREATE/BAPI_PO_CHANGE. Table POCONFIRMATION in
    BAPI interface is relevant for Display/List Vendor Confirmation in BAPI,not for update/insert Vendor confirmation in PO.
    Furthermore, we recommends that you use Idocs for automatically
    entering confirmations. The Message type to use is ORDRSP.
    You may read more about this topic in the online documentation.
    Please see also following attached note for your reference.
    456127 FAQ: Electronic Data Interchange (EDI) in purchasing
    Best regards,
    Pavel Olysar
    Support Consultant
    Global Support - Logistics

  • Error Occurred while saving the purchase order

    Dear Experts,
    While changing PO and Schedule Agreement using T.Code : ME22, ME32 we are facing below error message.
    Problem occurred While altering and saving the purchase order.
    Error message FGV004 - "SYST:date 00.00.0000 is not permitted" is generated
    when modifying an Scheduling Agreement that does not have a Delivery
    Schedule using ME32L.
    Please Kindly help to fix this error as soon as possible.
    Thanks in Advance.
    Prasath Manoharan

    hi,
    In addition to above..
    I also checked for the SAP note...
    It shows only one note regarding MM...
    pls check the sap note 355827..
    As per this note you need to add few corrections...pls take help of basis consultant..
    Regards
    Priyanka.P

  • User Exit / BAdI to update the pricing conditions of the Purchase Order

    Hello SAPients,
    This is my requirement:
    "Copy the Pricing Conditions from the Shipment Cost Document (VI01 / VI02) to the automatically generated Purchase Order".
    I'm using the enhancement V54U0002 (Function Module EXIT_SAPLV54U_002) to EXPORT  the values of the Pricing Conditions to memory and I have used the enhancement MM06E005 ( FM EXIT_SAPMM06E_006, 007, 012, 013, 014, 016, and 017) to IMPORT the values from memory and store them in TKOMV. But, when the PO is generated the values don't stay, they are always changed with the standard PBXX pricing conditions.
    My question is: Does anyone know the User Exit / BAdI that I can use to change the Pricing Conditions of the Purchase Order?
    <<removed_by_moderator>>
    Thanks!
    Edited by: Vijay Babu Dudla on Jan 14, 2009 11:08 PM

    >
    kartik tarla wrote:
    > check this badi
    > ME_PROCESS_PO_CUST
    >
    > and the following user exit
    > Goto-> include RV61AFZA then search for
    > USEREXIT_PRICING_RULE see if its helpful to u.
    Hello Kartik / SAPients,
    I tried with ME_PROCESS_PO_CUST but didn't work. The system doesn't execute that code. Any other idea would be greatly appreciated.
    Thanks.

Maybe you are looking for

  • Installing HP LaserJet 1018 HOW LONG on line?

    Have an HP LaserJet 1018 and a new computer that has Windows 7 on it. The old ones had MicrosoftXP. I love my printer but it wouldn't load. Tried the web site to install the driver, but it has been installing for 2 hrs. now. Should I stop and try aga

  • Issue for creation date of Billing document in third party ???

    Hello SAP Folks, This issue is related to third party scenario. The basic requirement is to create to a billing document with a creation date same as Good issue date of Sales Order. For your information, with the help of enhacement we have passed on

  • SYNCING ITUNES

    Good morning Is my mac turning into a PC I have two ipod touches one ipad 2, an iMac and a mac book pro I am sncing with mobile me, I was synced with itunes before. Why do my itunes not match? My calendar, notes, email bookmarks all are the same with

  • Jstcpd daemon doesnt start

    Hello, we have problems on our sles10.3+oes2sp3 2-node cluster with the jstcpd (daemon?). After a reboot of node2 (no software updates) the jstcpd doesnt start anymore. Can someone tell me where the problem might be and what the implications of jstcp

  • T1i F00 and Autofocus Not Working

    My camera has been fully functional since buying it when the T1i came out. About 3 days ago, I decided that my lens REALLY needed a cleaning.Like my glasses, solutions were just smearing the oils around, so I took my lens to the sink with soap. I was