IDOC: ORDCHG - ORDERS05 Question

Hi
Can i use ORDCHG messagetype and ORDERS05 for PO Change ?
PO Change means adding new line item, deletion indicator, changes in existing line item.
If yes, Deletion indicator is not there in any segments & Account Assignment segment is also not there in segments.
Could anybody confirm this issues.
Regards,
rams

Hi,
but if we set ELIKZ in PO item, we just generate a ORDCHG with action=002 (change).
But i can't see what was changed in the idoc.
Do you know how we can report to an other system that ELIKZ was set and no more bookings are  allowed using this PO?
Is it possible usinf ORDCHG or do we need an other IDoc-Type?
Thanx
Ralf

Similar Messages

  • IDOCs - IDOC type ORDERS05 with message type MSGCHG

    Hi,
    I'm in my first IDOC project and I'm facing a problem. I need to change sales orders with EDI messages, so I've decided to use message type ORDCHG and IDOC type ORDERS05. I'm filling segments E1EDK01, E1EDP01 and E1EDP19. In header the action is '003' to indicate I'm going to change items, and in item the action is '002' - change. I'm not changing all items of the order, so I only fill item segments for the item I want to change.
    The problem is the F.M. IDOC_INPUT_ORDCHG looks to use batch input technique to update the order and the BDCDATA contents does not look good. And I receive a message saying VBAP-PSTYV is not an input field. I'm not entering the contents of PSTYV in segment E1EDP01.
    Does anyone have any idea of what can be the reason for this problem ? For the error, and for the fact of the contents of BDCDATA do not look good.
    And any idea of how to solve it.
    And does anyone knows if the batch input technique is mandatory, or is there any way to avoid it like forcing the standard to use a BAPI ?
    I'll really apreciate any possible help, because i'm without any idea about how to solve problem.
    Thanks in advance,
    Paulo Sousa

    If you go to SE11 and enter VBAP then finf the field PSTYV, double click on the field and see if the !fixed Value. ex" field is ticked, if it is this means that SAP is trying to get a value for this field from a fixed set of values.
    You could try using WE19 to mess around with the IDOC in error and process the document as a standard inbound IDOB.  See here https://websmp105.sap-ag.de/~sapidb/011000358700002529571998E/default4.htm for some field entry examples
    Hope this helps,
    Conor.

  • ERROR IN CREATING SALES ORDER,USING IDOC TYPE ORDERS05

    I am using exit to write my code for creating sales order of IDOC Type ORDERS05 and order type ZDRX.
    IF I proceess the Idoc in background each time error message comes
    FIELD kuwev-kunnr(ship to party)is not an input field.
    but if i run in foreground in debugging mode,sales order is getting created..
    please suggest something.

    If thats not working..
    try BAPI_SALESORDER_CREATEFROMDAT2
    If BAPI is not working. try creating a bdc for the same if there's not error on trying from VA01

  • Invoke IDOC ORDCHG whenenver credit block of sales order is released.

    Hi All,
    Scenario : In the business process, whenever a sales order is created then a Purchase Order is created. And then an outbound ORDERS03 IDOC gets created. Now if the Sales Order is on credit block then a custom segment is dynamically created and sent through the IDOC. But if the later on the Sales Order credit block is released then I need to again send the IDOC with custom segment IN IDOC ORDCHG. As the change in credit block status in Sales Order does not reflect in the PO, so the IDOC doesnt get created. Please advice how to get the IDOC created even in case of credit block status change.
    Thanks in advance..
    Rahul.

    Hello,
    As you said the customer is over limit, after you release the order and do avialability check again, the order will again get blocked because of credit check. The system is behaving correctly as per standard SAP.
    Check the credit limit of the customer and the credit availed in FD32. If you want to deliver the order, you will need to release the credit block again.
    Prase

  • How to convert Flat file(.txt) data to an Idoc format(ORDERS05)

    Hi,
    How to convert Flat file(.txt) data to an Idoc format(ORDERS05). If any FM does the same work please let me know.
    thanks in advance,
    Chand
    Moderator message : Duplicate post locked. Read forum rules before posting.
    Edited by: Vinod Kumar on Jul 26, 2011 11:11 AM

    Hi,
            For more information, please check this link.
    http://sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
    Have a look at the FM IDOC_XML_FROM_FILE. May be it helps...
    Regards

  • Passing header text into Idoc(Idoc type orders05)

    Hi,
      we have header text, header note etc in text tab(under details) in  PO.
           now i have to pass the data's from the header text into the IDoc(idoc type Orders05),
    In which segment the data's will be populated, How to shall i go.

    Hi,
    if you are using idoc PORDCR102 or PORDCR101, header texts are populated in E1BPMEPOTEXTHEADER and both position & header in E1BPMEPOTEXT.
    Then you are using ORDERS01-05 Idoc types, header texts were filled in E1EDKT1 & E1EDKT2 while texts are filled in E1EDPT1 & E1EDPT2.
    The PO header texts are stored in the segments E1EDKT1 whose child segment is E1EDKT2 in IDoc type ORDERS05.
    The actual text will be found in E1EDKT2 and the text id will be found in E1EDKT1.
    You have to do some config so that The segment gets update
    in the IDoc.
    go to SPRO  MM->Purchasing ->messages->Text for messages->Define texts for PO. Here you can find out on the left side of the window.In  Header texts & supplements text.
    Add the text IDF01( with all  details like your document type, object for PO will be EKKO) in header text .
    Then Add all other to the supplement texts(details).
    It is now the IDoc should update the segments.
    Regards
    Raj.
    Moderator message:
    Warning. Reason: plagiarism, this is a copy-paste answer from:
    PO texts in purchase order idoc*
    Edited by: Csaba Szommer on Nov 8, 2011 2:00 PM

  • Extension Idoc for ORDERS05..

    Hi,
    I want to add one field (VBAK-FAKSK) as an extension idoc to ORDERS05 Basic idoc type.
    My problem is in this Basic type (ORDRES05) under which segment, i have to add this field (VBAK-FAKSK).
    Can one help this problem would be great appreciable.
    Best rgds,
    srihari.V.

    VBAK is the header data table for the Order.
    E1EDK01 is the Main header Segment for ORDERS05 Idoc, so I think it shold go into that segment.
    Refer this link for more help:
    http://help.sap.com/saphelp_erp2005/helpdata/en/dc/6b7d6243d711d1893e0000e8323c4f/frameset.htm
    Regards,
    Ravi

  • ORDCHG.ORDERS05.ZORDERS and ORDERS.ORDERS05 Idocs

    Hi all,
    We have two mappings for the message types ORDCHG and ORDERS.
    I have problem with the ORDCHG occurance.
    ZORDERS  1...1  -
    >Record set 0...unboundedfor both ORDCHG and ORDERS is used..
    When ever ORDCHG message type is used the below error thrown in test tab of message mapping.
    Cannot produce target element /ns0:MT_FILE_MUL/Recordset/Records. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd
    the occurances used for both are same .orders is working fine but ordchg throws the above error if i change the occurance it is sucess but no output seen.(empty payload).What is the problem i am confused.
    Thanks Srinivasa

    > the occurances used for both are same .orders is working fine but ordchg throws the above error if i change the occurance it is sucess but no output seen.(empty payload).What is the problem i am confused.
    This kind of problem comes in mapping when you have not filled any mandatory node or field. So varify them all first. Because that is the reason when you change the occurence then it works.
    Also check if you have mapped all Root nodes. Secondly make sure if you have used any condition on root nodes then they must fulfill the conditions. And lastly make sure you are using the correct data for testing.
    Regards,
    Sarvesh

  • All Line Items need to send  in the PO Change EDI IDoC - ORDCHG

    Hi EDI Experts ,
    We have ECC 6.04.
    We are sending PO Change Message Tyep by using Message Type ORDCHG ( Basic Type ORDERS05)
    If PO Changes system trigger IDoc  and in Std IDoc it displays only that Line Item who had been changed .
    Requierment is that  if there is change in any single item, then  sytem should send entire/whole PO document ( all Line Items) .
    I think we need to write some code in teh routine /requierment ...etc.
    Can anyone suggest what I need to do to acehive the above ?
    Thanks
    NAP

    Hello NAP ,
         I have the same problem that you. I ´m using  the message type ORDCHG  with basic type ORDERS05.    when sending change order through Idoc only show me the updete/delete Item in segnment E1EDP01. 
    What object did you use for the message type ORDCHG ?
    What settings should I consider for this?
    Thanks in advance,
    Luis.-

  • Error in posting IDOC ORDERS.ORDERS05

    hi,
    dear all,
    i am getting error in posting IDOC ORDERS05.
    IDOC has arrived  on system but with status 51,
    <b>it says:
    VKORG, VTWEG, SPART cannot be determined for customer , vendor</b>
    can you please tell me how to map above specified fields.They are under which  segment.
    I am sending XML file with fields thru XI.
    Thanks.

    hey rajeev,
    thanks very much for your patience to deal with this basic questions expected from me  who is just new to XI
    really thanks.
    but RAJEEV, as you said we have to add the same IDOC to inbound to R3 if R3 is receiving that IDOC and in OUTBOUND if  R3 is sending right?
    hi, sorry to interrupt you more :
    take my scenario of IDOC ->XI->FILE.
    i added that IDOC type in receiving LS that is FILE LS in OUTBOUND side,
    and i do not add anything in OUTBOUND parameters of my sending LS that is R3 system.
    i am using we19 to send IDOC.
    Before Sending IDOC i am filling EDIDC segment with these parameters is it right?
    Sender Information:
    Partner number: SAPLS
    Port: Port defined on XI pointing to R3.
    Partner type :LS
    Receiver Information:
    Partner Number : FILELS
    Port: Port defined on R3 pointing to XI.
    SO, Provided that i entered following values in EDIDC segment and i do not add anything IDOC type in outbound parameters in R3(sending system),
    i add that IDOc in outbound parameters under LS defined for File system,it worked.
    You got my point?
    sorry for writing such a long thread? but please resolve it RAJEEV.
    Thanks.

  • Inbound idoc for orders05 to create sales order

    Hi all,
    I am creating a sales order through idoc (ORDERS05). I am getting a flat file, which is being converted into idoc from XI side and i need to add certain things and validate inside the function module IDOC_INPUT_OREDERS. I am using the exit call customer function '002' (EXIT_SAPLVEDA_002)  in it.
    My confusion is regarding the population of control records. If some validation fails, i need to set current status as 51. Which field i need to update in this exit in order to achieve this. What are the other control fields that i need to update for an inbound idoc please specify.
    Also, i have another doubt, what is the use of DXBDCDATA in that exit. Do i need to do any BDC related work in inbound idocs.
    I am new to inbound idoc scenario. But havn't found enough tutorial related to standard idoc generation..
    thanks

    Hi,
    I think, you should fill the validation errors in EXIT_SAPLVEDA_011 (SD EDI Incoming Orders: Final Processing of Internal Error Tables) which subsequently update the status records of IDOC.  Check line NO 56 of function module "IDOC_INPUT_ORDERS".
    Regards
    Vinod

  • ALE IDOC related basic question

    Hi Gurus,
    I am new for SAP please clarify my quary.
    In SAP R/3 we have the one data base server, every one have authorization for access data form data base,they can extract data from data base, that time what is the need to distribute the data form  one client to another client using ALE throug IDOC and some other methods also.
    Hi i have the doubt on this, Please dont feel cilly.. please clarify me clearly.
    Thanks & Regards
    Sri Sairam

    Hi Sai.
        Very good question, first think is data is client dependent. Dont think that all user will have access to all clients of the SAP system. In some projects we can see different clients in the same server (lets take development box), in one client we can develop the program and in another we can do the unit testing. In this case if you want to keep the data in both clients then we need to distribute them. You may have seperate clients based on the application also (like client for FI, seperate one for SD, like that - in dev to do testing).
        But in most of the cases we can see data distribution scenarios in between 2 servers, since master data will be maintained seperately.
    Thanks
    Satya

  • ScheduleLine ID in IDoc (ORDRSP.Orders05)

    Hi All,
    My Senario SAP-XI-flatfile. In my senario I have to create PO where i am using orders.Orders05. I have generated idoc in R3. My problem is I have a flatfile structure in that one field has the name "Po Line Request Schedule Id". I have checked all the fields in the generated idoc. But I havent seen any field related to that.Suggest whether I have write any user exit for that. If yes kindly help me out how to find that particular userexit.My senario is going for XI content Certification.I guess SAP doesnt recommend if i write any ABAP code in SAP backend system.
    Thanks in advance.
    Regards
    Gowri K

    Hi ,
    -Since IDOC are used also to communicate bewteen different partners SAP will normally not put 'SAP internal' fields in those structures as these are of no meaning to a non SAP partner : e.g. relating to schedule lines, the important things to know is requested date and quantity -- not what internal ID this line got in EKET table.
    -If you need this field you will indeed need to extend the IDOC with an extension segment ( at the right level so I guess below standard segment E1EDP20 ) and fill this in a userexit : Use CMOD / Enhancement MM06E001 / exit EXIT_SAPLEINM_002.
    Example code :
    DATA segnam type EDILSEGTYP.
    DATA: wa_Z1EDK002 like Z1EDK002.
    segnam = int_edidd-segnam.
    CASE segnam.
      WHEN 'E1EDK01'.
    Fill customer segment Z1EDK002 under parent E1EDK01
        CLEAR int_edidd. "Clear work area
        int_edidd-segnam = 'Z1EDK002'. "Name of customer segment
        CLEAR WA_Z1EDK002.
      Fill you Z1EDK002 fieds
      Remaining fields from int_edidd      "can be transferred
        int_edidd-sdata = wa_Z1EDK002.
        APPEND int_edidd.
    ENDCASE.
    rgds
    Dirk

  • Inbound IDOC - ORDCHG - Sales Order

    Hi,
    I have to change both header and item of the sales order using IDOC message type - ORDCHG.
    I'm passing Sales Order# to the E1EDK01-BELNR and E1EDK01-ACTION = '002' for orders header.
    when i test using WE19, It's creating a new document instead of changing the existing sales order.
    Am i doing something wrong here? any inputs from you guys?
    Thanks,
    Arun

    What is the process code you are using in the partner profile? What is the FM assigned to that process code?
    For change it should be calling IDOC_INPUT_ORDCHG, while it seems it is callingIDOC_INPUT_ORDERS, check that and you will be fine

  • Problem in mapping fields of idoc type orders05.

    I am passing value from Idoc in segment E1EDK14.and according to it biiling block should be populated.I am writting this in an exit.
    In the debuuger when I am running its showing the value.
    But its not coming in the output.
    I think the values of the fields are getting overwritten in some other fields of the exit which im not responsible for.
    please suggest me how to detect where my fields are getting overwritten and give solutions to avoid this?

    Hi Matias
    Thanks
    This works and has saved my 60% efforts. I got this from Silvia as well.
    I was looking forward for some standard sheet where i do not have to do rework or very less.
    Thanks
    Jagdish

Maybe you are looking for