IDoc LOIPRO01 structure

Hello,
I have some questions about the structure of IDoc LOIPRO01.
With transaction WE60 I can access the structure of LOIPRO01.
I have the following (just a part here !!)
•     E1AFKOL : Production order header (AFKO, AUFK)
         Status: Required , min. number : 1 , max. number : 1
          o     E1JSTKL : Production order status for header (JEST)
                 Status: Optional , min. number : 1 , max. number : 9999
          o     E1AFABL : Master Production Order Relationships (AFAB)
                 Status: Optional , min. number : 1 , max. number : 9999
          o     E1AFFLL : Production Order Sequences (AFFL)
                  Status: Optional , min. number : 1 , max. number : 9999
                     *     E1AFVOL : Production order processes (AFVV, AFVC)
                          Status: Optional , min. number : 1 , max. number : 9999
1st question :
If i understand the structure :
-for one production header it is possible to get from 1 to 9999 relationships, from 1 to 9999 status, rom 1 to 9999 production order sequences....
-and for 1 production order sequences it is possible to get from 1 to 9999 production order processes... 
2nd question:
If I have a production order with 5 production processes
How would it be written in the IDoc :
-are all the processes in the same sequence segment ?
or we have one process segment per sequence process ?
I hope that is clear !
thank you

Hi Michael,
Yes, it's my purpose.
But when I added the mapping (in Outgoing of Assignment action) following your direction:
Target XPath:
Load_ProdSched_B2MML.XmlContent{/ns1:ProductionSchedule/ns1:ProductionRequest/ns1:ID}
Expression:
Read_Mesasge_0.MessageDocumentXML{/LOIPRO01/IDOC/E1AFKOL/AUFNR}
And then click on 'Evalute' button, I got the Evaluation result is empty while value of field AUFNR is '60003445'.
In this case, the path of node AUFNR is OK, but we can't get its value.
I think that we can't access to each node of MessageDocumentXML property because this property have XML type, this property don't have POIPRO01 IDOC structure explicitly.
Is it right or I have to choose another solution?
Thanks a lot Michael,
Vinh vo

Similar Messages

  • Triggering IDoc LOIPRO01 for process orders.

    Hi,
    I have to create an IDOC LOIPRO01 and send to third party, whenever the save of the process order using COR1 and COR2 tcodes based on some conditions like plant US01, Order type ZC01 and released status
    Should I use the user exit EXIT_SAPLCOBT_001 and create an IDOC from there based on condition ?
                                                 (Or)
    Create a custom report based on conditions and call MASTER_IDOC_DISTRIBUTE ? (or) any best approach ?
    Thanks - Vinay.

    Hi,
      Check this link for your query. You need to build some custom tables and structures.
    Check the program and create those structures.
    [http://wiki.sdn.sap.com/wiki/display/ABAP/ProductionOrderIdoc+Program]
    Let me know if you have any issues.
    cheers
    Aveek

  • Convert IDOC XML structure to flat file - and now?

    Hi,
    we are working with input message ORDERS05 and want to convert it to flat file.
    So we used the implementation description from "how to convert an IDOC-XML structure to a flat file....".
    Looks like this is a standard procedure described here fitting for all IDOCs.
    We followed the guide, making XI ready for Abap-Mapping, implemented the Abap class like described, added an interface mapping with source ORDERS05 to a mess.type dummy destination, added with type Abap-class the class implemented from the guide and completed the Int.Dir. implementation.
    For comparism purpose we have two systems as receiver, one with a standard flat file with regular graph.mapping in XI, one with the Abap mapping.
    Result:
    Error description in SXMB_MONI:
    Didn´t expect something like that! The IDOC was delivered successfully to the other simple flat file receiver.
    Any idea what we made wrong (we are on SP17) or if there is a standard mistake you can do when following the guide?
    Best regards
    Dirk

    Hi,
    I've got the same problem. He the solution in my case:
    The problem is:
    My IDOC has no element <STDMES>, but the method IF_MAPPING~EXECUTE from the 'HOW-TO Guide' does not check this situation:
    el_element = idocument->find_from_name('STDMES').
    ls_edidc-stdmes = el_element->get_value().
    thows the exception.
    Solution:
    make shure that the field STDMESis set or change the method to:
    el_element = idocument->find_from_name('STDMES').
    if not el_element is initial.
        ls_edidc-stdmes = el_element->get_value().
    endif.
    Best regards
    Dieter

  • IDOC Creation - structure has no data elements

    Hello,
    I've encounted the following situation when creating a new custom idoc:
    The structure in the data dictionary does not have any components (Data elements) associated with each field. (i.e if you view the structure using se11).  This is causing problems when trying to build ALE conversion rules using BD79 as you cannot tell which field is which for conversions with muliple conditions.
    Does anyone know how to get data elements against the fields in the dictionary structure.  Standard SAP idocs appear to have them - see E1MARCM.
    (we are using version 4.7)
    Any help would be appreciated,
    Thanks!

    Anita,
    I am assuming that although you are creating a custom idoc you are referring to  standard strucutre already existing for your segment.
    I am not very clear here, how did you create the segment. Can you clarify on the same?
    regards,
    Ravi

  • Generating IDoc DDF structures for EDI mapping

    Hello all,
    I am looking for a way to generate IDoc DDF structures to use them in the EDI mapping in Gentran.
    I was able to find one on ERPGenie.com (developed by Kevin Wilson) but it is only available for ECC 4.x. We are on ECC 6 and the program gives me an ABAP dump when I try to run it.
    Does anyone have the fix for this code? Or perhaps another way to accomplish this task?
    Actually, I am only interested in generating the MBGMCR02 IDoc
    Thanks for your help
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Apr 7, 2008 12:36 PM

    It's been a long time since I have done any IDOC processing. 
    Go to SE37 and enter the function module IDOC_INPUT_ORDERS.  Display the source code.  Search for "CALL CUSTOMER".  You should see several "CALL CUSTOMER-FUNCTION" lines.  These are enhancements where you can manipulate the IDOC data.  If you locate the correct one (where the data is read from the IDOC but not yet validated), you should be able to map the partner function value.  Double-clicking on the number in quotes will bring you to an "EXIT_" function module.  A "ZX" INCLUDE program is referenced.  If you haven't used the exit yet, double-clicking on the ZX INCLUDE will create it.  The values passed into the function module are available in the INCLUDE.
    Ideally, you should create a project in transaction CMOD that references the chosen enhancement.  This way you can activate/deactivate without commenting/uncommenting the code in the INCLUDE.

  • UoM Conversion from SAP units to ISO units -- Prod Order IDOC (LOIPRO01)

    Hello,
    We are trying to build interface for Production Order details to pass to a Mfg. system. using IDOC LOIPRO01.
    Looks like the IDOC processing is converting SAP on-screen UoM to ISO UoM for ex.  PC (in SAP Screen) to S2 (IDOC Field Value).
    I would like to know if there is any OSS notes or anyother way to prevent this conversion and just pass the same value what we see in SAP screen to the Mfg. system.
    Appreciate your inputs in thsi regard.
    Best Regards,
    Bharat.

    changes in master data have only effect to NEW data, created after this change .
    SAP never updates automatically already existing data.
    Answer: No there is nothing that can trigger an automatic change.
    changes to ratios between base unit and alternative units are unusual and the changer has to know about the effect. it is not only the existing info record, you have to think as well about open POs which still have the old conversions.

  • Customized IDOC Inbound: Structures differ in SXMB_MONI and receiving R/3

    Hi everybody,
    we post a IDOC to a R/3.
    The IDOC arriving in R/3 has status 56 = IDOC with errors.
    When I compare the payload in SXMB_MONI and in WE19/WE02 the structure differs?
    What could be the reason?
    Regards Mario

    Hi Michal,
    thanks a lot.
    The error was difficult to find:
    A segment had a wrong name, but it was only a <_>  -> so it was difficult to find.
    Regards Mario

  • IDoc Message Structure Missing from Condition Editor - SWCV Dependency

    Hi All,
    I have an issue whereby I am missing the Message Structure in the Condition Editor Dialog while doing Receiver determination. I have seen others posts with the issue but none of the solutions seem to apply to me. My config:
    I have a SWCV called MY_SAP_BASIS, which is defined in the SLD with SAP BASIS as prereq. I import this SWCV into IR and build some objects. I wish to use an IDoc, so I import it into SAP BASIS, and it appears under my SWCV (MY_SAP_BASIS) in the "Basis Objects" section, but not directly under "Imported Objects" - as I would expect because of the relationship created in the SLD.
    My issue comes when I try to create a Rec. Determination. I want to use the condition editor, for multiple receivers, but when I click on the button to bring that up, first I get the error "Message interface does not exist in any software components installed on this business system", then when I try to use the Structure of the IDoc for an XPath, the structure browser is empty.
    I can't see why this would be. If I look in the SLD, and look at the Business System in question, it lists MY_SAP_BASIS and SAP BASIS as being installed.
    Also, when I do a "Where used" in IR on that IDoc, using my own SWCV and SAP BASIS, I get the same list. I have also checked the GUID's between the SLD and IR, and they are identical (except fpr hyphens in the display, which I am assuming don't matter).
    Anyone have any ideas? I assume that if I import the IDocs directly in MY_SAP_ERP, I will be able to solve this. But I would rather the Software Dependency worked!
    Many thanks.

    Jai/Michal,
    Many thanks for your replies. But unfortunately I had already checked this and I don't think it is the issue. My first message probably wan't as clear as it should have been: I have a Product "MY_SAP_BASIS" - this has one SWCV under it, also called "MY_SAP_BASIS". This SWCV has a dependency on "SAP BASIS 4.6c". Now, on the Technical and Business systems involved, the Product "MY_SAP_BASIS" is installed. This, as you would expect from the dependency, brings across the "MY_SAP_BASIS" SWCV and the "SAP BASIS 4.6c" SWCV, so they are both installed on the technical system . So I don't know what else I should be adding? Unless my understanding of Software dependencies is incorrect, I think my config looks right in the SLD. The SWCV under which the IDoc imports are done is "SAP BASIS 4.6c", and this is installed on both the technical and business system. The only difference is that it gets there through a software dependency, and is not added "directly". In IR I can see the imported objects under the "MY_SAP_BASIS" SWCV - in the "Basis Objects" section.
    Is there anything else anyone can suggest?

  • IDOC Mapping Structure

    Dear All,
    We are working on File-PI-IDOC interface in which from file we are creating employee in SAP using IDOC HRMD_A.HRMD_A07.
    I have gone through some blogs on SDN and it suggests that IDOC structure to be filled like as shown below:
    e1plogi
    e1pityp
    e1p0000
    e1pityp
    e1p0001
    e1pityp
    e1p0002
    Whereas the standard IDOC structure is like as follows:
    e1plogi
    e1pityp
    e1p0000
    e1p0001
    e1p0002
    Please suggest how can we get the structure as specified above. My input structure of the file is as below:
    pa0000
    pa0001
    pa0002
    Reg,
    NJ

    If you have any issue for understanding the structure of IDoc, try to fill that structure on Application System in WE19 Mannually.
    you can check these issue there on application system (Test IDoc) WE19.
    create mappiing & make change in mapping after that.

  • Idoc field structure error.

    Hi,
    I have a requirement like i need to add an additional field to the existing IDOC structure from where it is used for  the xslt mapping and do the remaining process.
    The mapping part is one to one but i need to add an another field to the external defintion idoc.
    Source is IDOC and the target structure is the same structuer that is in the external definiton.
    for this i have exported the xsd of the idoc and then i have imported through External Definitions part. but if i need to add an another field to it it is not allowing to do that..
    So please can anyone suggest me how to proceed..
    Thanks,
    Sai

    Hi Sai,
    i need to add an additional field to the existing IDOC structure
    Is there any specific reason for usign IDOC as external definition (are you changing the occurance of IDOC)?
    what is your sender and receiver system?
    Are you expecting the value for this addition field to be populated by sap along with the rest of IDOC data? if yes then ,get a custom IDOC created in SAP with the required field.
    Or if you want to populate this additional field in PI usign any logic (assuming you are sending to any non sap system), then you can create a new ED for the targert , just export
    the ED to desktop , open with any xml editor (xml spy or microsoft  visual studio 2005) and navigate to the portion of xsd which you want to edit add the field -> reimport in PI and  use it as your target strucuture.You cannot edit ED directly in ESR.
    Regards,
    Srinivas

  • IDoc ORDERS05 structure

    Hi all,
    Anybody can tell me where I could find a full description of the structure/segments/fields of IDoc ORDERS05?
    I cannot find the full documentation anywhere.
    Many thanks,
    Aldo

    Thanks guys,
    I already knew about transaction WE60, but unfortunately I don't have access to an SAP system at this moment in time.
    Could you perhaps generate the documentation and send it to me?
    I need ORDERS05, INVOIC01 and DELVRY01.
    Many thanks,
    Aldo

  • User Exit to change idoc control structure

    Hi everybody.
    Does In a inbound idoc process exist any userexit to modify the control structure of the idoc????
    Thanks

    Hi ,
    I dont think you can change the control record of any IDOC .
    If you look at an example Function module MASTERIDOC_CREATE_CREMAS , used to create Vendor IDOCS ,
    the call customer-function has only the idoc data record as tables parameter .

  • Idoc type/structure

    Hi all,
    Is it possible to define our own IDoc structure/type? Or else should it be one of the predefined types. How do we convert the IDoc to the required format while sending it to an external system? Thanks in advance.
    Gajaruban

    Hi Ananda,
    Look into WE30 for standard IDOCs & to make your own IDOC type.
    You can change the format by giving message type in BD53.
    Thanks
    Eswar

  • Test if segment exist in XML IDOC source structure

    Hi,
    I have a one to one mapping of IDOC ORDERS.
    I need to test if the segment E1EDPT1 never exists in the xml instance.
    If it does not i want to create it.
    The problem is it takes context of the superiour node.
    I don't want to add it if it exists in another context.
    Example where it must not add the segments :
    E1EDP01 (item1)
    -E1EDPT1
    --E1EDPT2
    E1EDP01 (item2)
    (segments does not exist)
    E1EDP01 (item3)
    -E1EDPT1
    --E1EDPT2
    Example where it must add the segments :
    E1EDP01 (item1)
    (segments does not exist)
    E1EDP01 (item2)
    (segments does not exist)
    E1EDP01 (item3)
    (segments does not exist)
    I tried with MapWithDefault which is good for the second case but not the first as it adds the segments if it can't find the segments in node E1EDP01.
    Thanks,
    Laurent.

    Check this:
         public static void addValuesToContexts(String[] a, ResultList result,     Container container) {
              boolean found = false;
              for (int k = 0; k < a.length; k++)
                   if (!a[k].equals(ResultList.CC))
                        found = true;
              if (found) {
                   for (int k = 0; k < a.length; k++)
                        result.addValue(a[k]);
              } else {
                   for (int k = 0; k < a.length; k++) {
                        result.addValue("");
                        result.addContextChange();
                   result.addValue("");

  • Idoc LOIPRO01

    Has anybody know how to send an idoc from the transaction CO01(outbound idoc)?.
    Thanks in advance.

    Hi Carl,
    Please use t/code <b>POIT</b> or program <b>RCCLTRAN</b>.
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward point if helpful.

Maybe you are looking for