Inbound Purchase order to IDOC

Hi
I need to generate the inbound PO from  a source data
Source                  Target   
Header 1:1                                                            idoc
General 0..10                                                        E1EDk02    0..10
          Release Number 0..1                                             QUALF 0..1
                                                                                      BELNR  0...1
                                                                                       POSNR  0..1
map constant 011 >QUALF
map releasenumber >BELNR
I need to map POSNR value as below based no of times node General repeating
for 0 fist loop)  instance of  General-  POSNR will be mapped to  10
     1  second loop                                                                    20
     3                                                                                         30
     8                                                                                          90
     9                                                                                          100
Thanks for your help

Hi Mahesh,
Map POSNR field like below.
ReleaseNumber--> Index[10,10]--> SplitbyValue-->POSNR.
Based on output change the context for ReleaseNumber.
Take Index from Statistic with Initial Value as 10 and      Incremental Value as 10.
Thanks
Jayaram

Similar Messages

  • Need to create sales out of purchase order using idocs

    Hi All,
    I have a requirement to create sales order based on purchase order with in the same sap system and same client(using orders04 idoc type).I have some doubts below could you please some body clarify?
    I know the basic steps in ALE(theritical knowlege)but I need clarifications for below questions.
    1)Which tehnology I should use here ALE or EDI?
    2)With in the same client how can I create 2 logical systems.
    3)How the idoc will go the recevier I mean what all are the ways to trigger outbound idoc from sender side.
    4)Inbound side how the sales order will create based on the inbound idoc?Is it automatic from inbound settings or we have to do anyting for this?
    5)I need to check some conditions with the inbound purchase order data before creating sales order.I think this one we can do in the user exit of inbound function module .Can I control the type of document that it has to create(ex sales order based on some condition or quotation based on some other condition).
    Best regards
    Mahesh

    Hi Mahesh,
                     My suggetion is that develope program to do your scenario... Use BAPI to create Sales order. First confirm with the Functional team for the input for sales order about sales area, company code, conditions type to be used while creation a sales order against Purchaser order... If the details is same then. First get the details of the Purchase order from BAPI " 'BAPI_PO_GETDETAIL' or you can get details by select queries on EKKO & EKPO for header and details....
                    Then pass data to BAPI of sales order creation 'BAPI_PO_CREATE' . to create sales order and handle error with parameter         RETURN                           = IT_BAPIRETURN
    by giving loop on that....and display in the output.....
    This is the simplest way of doing your process...
    If any other help please let me know.....
    reward points..
    Cheers,
    Sagun Desai....

  • Create Sales order from Internal Purchase Order using IDOC

    Hello Friends,
    I have requirement to create Sales Order from Internal Purchase Order Using IDOC.
    Backgorund, we have already configured IDOC orders05 to create Sales Order from external Purchase order from Inbound IDOC, and it is working fine.
    Now we have new requirement to create Sales Order from our own Purchase order, i.e. When PO is created in one plant corresponidng sales order automatically must needs to create in another Plant with respect PO.
    I m trying to design a solution for above problem as follows,
    1.create an Inbound Idoc from PO, by creatiing one new message type on PO save.
    2.Process that Inbound  IDOC same as it is from external PO.
    3.Once processed Sales order will create.
    Please help me in step 1. to create Inbound IDOC from PO.
    If you want any further clarification please write me.
    Thanks,
    Mahesh

    I had done a similar scenario before and we achieved it through SAP XI. The problem is with the control record. When we create a ORDERS IDOC from a PO the control record will be for outbound transmission. We sent the file to XI and XI resent it back with some data parsing and a new inbound control record. This way it went neat outbound and inbound.
    I'm not sure what kind of architecture you have. If you have to do it within your ECC/R/3, then you could create the outbound IDOC to a new port and write a fresh RFC to pick it up from the same folder and create a new control record for inbound processing.
    I haven't tried this; but there is a "processing w. trigger (inbound)" option on the outbound process code. May be you can explore into that a bit more.
    I'm sure there could be better approaches to handle this within ECC so if you stumble on any, do write back. I would like to know to update my knowledge .

  • How sales order is created from inbound purchase order from customer by EDI

    Hi experts,
    My doubt is how a sales order is created when a customer sends a purchase order through EDI.
    My doubt really starts here.. (how the Idoc is posted).
    Case 1 : Just the process code is checked and corresponding function module is called and in background a sales order is created. (Or the below process)
    Case 2 : The process code will point to a workflow where an authorized person will enter some more additional data's and save the document.
    And also how pricing procedure, material determination, material substitution will take place/ works if we want to post a inbound purchase order into sales order..
    can u people clearly explain how the process takes place in real time ...
    with regards,
    James..
    Valuable answers will be rewarded..

    hi,
    the first option is the right one. the FM invoked makes a direct input, so all the functionalities in S.O. are the standard one in the same way as if you are making it manually.
    Also you can have some exits in the Idoc FM, so you can manipulate data there before loading the sales order.
    pls. reward if helpful
    regards
    Roberto

  • How sales order is created from inbound purchase order?

    Hi experts,
    My doubt is how a sales order is created when a customer sends a purchase order through EDI.
    My doubt really starts here.. (how the Idoc is posted).
    Case 1 : Just the process code is checked and corresponding function module is called and in background a sales order is created. (Or the below process)
    Case 2 : The process code will point to a workflow where an authorized person will enter some more additional data's and save the document.
    And also how pricing procedure, material determination, material substitution will take place/ works if we post a inbound purchase order into sales order since we need a human intervention for selecting the material in material determination etc..
    can u people clearly explain how the process takes place in real time ...
    with regards,
    James..
    Valuable answers will be rewarded..

    Hi James;
    Let me try to explain with an example...Let us say u r placing an Order (Purchase order) online in a website. So you will fill in the necessary details in terms of your address, you would choose a product and etc...
    Now, this is converted into a file and sent to SAP. SAP will inturn convert this file into an Idoc based on the input, the FM is called and the data is filled. At this point in time the status of the idoc would be 50. Now an validation happens and the idoc is pushed to status 64. Now there is a progrma RBDAPP01 is the which will do the actual processing, meaning converting the Idoc into an Order. If the idoc fails to convert then a workflow is created.
    When the Idoc is processed it will actually go through VA01 txn and it would typically do everything that we do when we enter a order manually. Automation is the only difference.
    Idoc is just data and this data as and when entered is processed and the necessary information is obtained. Meaning, when the Material is fed, the MM aspect of SAP kicks in and provides the necessary data, similarly the Pricing procedure is determined based on the parameters.
    In effect all the information is stored in SAP and are kicked in as and when they are called for.
    Hope you get an overview of this.
    Regards,
    Mani.

  • Do we not send Purchase order acknowledgement IDoc for order cancellation?

    Hi all,
    Is there a way to NOT send a Purchase order acknowledgement IDoc (POA) when we process an IDoc to cancel the order (or cancel all items)? The system now sends POA whenever there is a order create or order change (including cancellation) IDoc coming in but my customer wants not to receive POA in case of order cancellation.
    Thanks,
    Charles.

    Hi,
    Please give me your opinion and if we do not send the order response in case of order cancellation then please tell me how should I configure for that.
    Thanks,
    Charles.

  • Purchase order change IDOC

    Hi Gurus,
    Good day.
    Please help on below.
    We have this scenario. whenever purchase order is changed, it must generate IDOC. how can we configure this? thanks in advance..

    hi
    check following
    http://sapmm.wordpress.com/2009/02/19/automatic-idoc-generation-whenever-a-po-is-createdchanged-2/
    Inbound Idoc Create/Change Purchase Order

  • Creating Sales order then purchase order through IDocs using XI

    I have a scenario where I have to create the Sales Order and purchase order. Important thing is after successful creation of Sales Order then only purchase order needs to be created.
    Is it possible to achieve the above thing in XI using Idocs..Should I need to go for BAPI's.
    Waiting for the solution

    > I have a scenario where I have to create the Sales Order and purchase order. Important thing is after successful creation of Sales Order then only purchase order needs to be created.
    You have to use BPM for this.
    > Is it possible to achieve the above thing in XI using Idocs..Should I need to go for BAPI's.
    If you know the BAPI's then you can avoide BPM because in that case you can go for inbound proxy and inside the proxy code you can make sure the creation of SO & PO in desired order. You can also do the error handling very efficiently in R3 in comparison to XI.
    Regards,
    Sarvesh

  • Purchase order and IDOC

    Hi gurus,
    can anyone send all the configuration steps involved when i save an Purchase Order then an idoc has to be generated
    and send to PRD .
    Pls help me.
    Thanks and regards,
    Rajeshwar.

    thanks

  • Create Sales order from a Purchase order through IDOCs in the same system

    Hi,
    I have been trying to create Sales ordes in the same SAP system, through the Purchase order generated.
    The Purchase order generated, passes the information through an outbound I DOC to a SO inbound I doc, I am getting the following error
    Partner number A2815 for customer 2815 , partner function WE does not exist.
    Message no. VG140
    but in my case the ship to party (partner function WE) is the same as Sold to party (partner function AG)
    can any body please help how to map it
    Sreeram P

    Hello Sreeram ,
    See note 1339290, which corrects the parameters of error message VG140.
    Also, the sold to party (SP) is determined in several ways:
    1. If the sender partner in the control record is a logical system (LS), an E1EDKA1 segment with the SP must be sent.
               E1EDKA1-PARVW = AG
               E1EDKA1-PARTN = valid partner in the receiving system
    Otherwise the system takes the partner number from the control record into the field E1EDKA1-PARTN and this is not a valid partner.
    2. If the sender partner in the control record is a SP, we take this SP from the sender partner into the sold-to party number. Excepted another SP was sent in the segment E1EDKA1-PARNR, then the SP from the control record has no effect.
    The E1EDKA1 segment for the SP should be sent always before the E1EDKA1 segment of the ship-to party (SH).
    Regards,

  • Purchase order to IDOC

    Hi all,
    My Requirement is like this.
    I Have to modify the purchase order quantity for the given purchase order and the details of that PO has to be displayed, in that list i have to show batch no, goods receipts for each PO it means each item may contain more than one goods receipt,Quantity,plant e.t.c and later when the user checks the purchase order and clicks the create IDOC button An IDOC is to prepared for this PO and it is to be sent to External System. can any one sugest me the process of this
    Thanks In Advance
    Suresh

    Hi Suresh,
    You have change the your respective items in ME22N , but u have to do this at the 5th step that i have mentioned earlier.
    here is the clear desc..
    1)BD61->Select Check box,
    2)bd50->select Messagetype & save it.
    3)bd51->select corresponding Fm(try IDOC_OUTPUT_ORDERS)
    4)bd52->message type
    Keep the Items which ever you need to change in the partner system
    5)ME22N <b>(change required fields)</b>
    6)se38-> execute RBDMIDOC giving respective  message type
    7) <b>Changed records will be stored in CDHDR</b>
    Thanks,
    Kiran

  • Create purchase order form idoc

    Hi everyone,
    I would be very grateful if someone could explain me whether it is possible to generate a purchase order directly from an incoming ORDERS05 IDOC and specially how to do it.
    I am receiving an ORDERS05 IDOC from an external system but I do not know how to generate the purchase order I need using the information in the IDOC.
    Thanks in advance and best regards.
    Ben.

    Hi,
    Here is very basic overview on your requirement.
    1) you need Logical System and Partner Profile.
    2) Need to find Message type for Idoc Type ORDERS05 (Tranx: WE82)
    3) With Message Type A function module is attached. This will create PO.
    Regards

  • Purchase Order Outbound Idoc issue. Message Type ORDER

    Hi Experts,
    I am having issue with outbound IDoc generated from Purchase Order.(Message Type ORDER and Basic Type ORDERS05)
    Issue is when i create PO idoc Segment  E1EDP01 and field ACTION populates as 001 this works fine.
    Now when made any changes to the purchase order.* PO trigers one more EDI - Idoc. but the ACTION field is stil as 002.*
    Could any tell me how to fix this.
    Cheers...Gopinath.

    Hi,
    Thank you.
    I have found the issue and fixed.
    Below three setting was missing same has been done in Partner Profile now ok.
    Message type u2013 ORDCHG, Processing Code u2013 ME11 and Change flag On.
    Cheers..Gopinath
    Edited by: Gopinath A.R on Oct 8, 2009 3:14 PM

  • ME59 Purchase order outbound idoc header text missing in segment

    Hi All,
    When Purchase Order created via ME59 for third party vendor Outbound Idoc is created but Header Text of PO not copied into IDOC Segment.This Problem occurs when PO has sales order assignment.
    Please Advice..
    Thanks,
    Vinod.

    Hi Ankur,
    I am not an expert in this area but I'm looking on an ORDERS05 iDoc where I have the following data for E1EDK14:
    <u>E1EDK14 014:</u>
    QUALF: 014
    ORGID: [Purchasing organization ID]
    <u>E1EDK14 009:</u>
    QUALF: 009
    ORGID: [Purchasing Group ID]
    <u>E1EDK14 013:</u>
    QUALF: 013
    ORGID: [Purchase Order type, e.g. EC]
    <u>E1EDK14 011:</u>
    QUALF: 011
    ORGID: [Company Code]
    Hope this helps!
    Regards,
    Kristoffer

  • Item text purchase order in IDOC - delete

    Hello,
    I want to send out an Idoc (ORDERS05) from a purchase order. I do not want to sent the item text or material purchase text.
    Can someone help me?

    Please check for user exits in FM IDOC_OUTPUT_ORDERS. There are plenty of them that you can use to delete text segments at both header and item level.
    Please let me know in case of any issues.
    Thanks
    Ganesh.S

Maybe you are looking for

  • Problem with Virtual PC and Network Connection - VPC gets disconnected

    Hi, I've been having a few problems with a virtual computer and its network connection.  I've set up a few computers the same way over the years and they all work fine except this one.  We use the Virtual PC and XP mode to access our data from an old

  • Limit on replacing phones for warranty issues?

    Is there a limit on replacing iPhones due to warranty issues? I've returned one phone already because the silent switch stopped working, and now on the new phone the camera is in the "infared" mode that's been discussed on the camera forum. I'm hesit

  • Crystal and delphi 2007

    I have been using crystal on and off throughout the years, using the VCL.  In my current position, I am once again called to use crystal in the application. To my surprise and dismay, it seems that there is no longer support for the delphi vcl.  Whil

  • REgarding view selection  in mm02 while using bdc

    hi, i m using function module 'MATERIAL_BTCI_SELECTION_NEW'' for selecting the single view automatically in bdc,its working fine..but for another scenario i have to select the multiple views so for this what sud i do i how cud i pass multiple views i

  • Can't install KB3036437 on two Windows 2003 servers

    I am trying to install System Center Endpoind Protection 2012 Client 4.7.205.0 (KB3036437) and it will not install on two Windows 2003 Servers. It is giving me the following error: Installation Failure: Windows failed to install the following update