PORDCR04 -  IDOC Extention

Hi All,
Is there any field available in Idoc type PORDCR04 for 'Unit of measure' mapped to EKPO-GEWEI (Unit of weight) and 'Total Net Weight' (EKPO-NTGEW * EKPO-MENGE). There is a requirement to add these two field to IDOC.
Seems to me the case of Extension. In the background there is a BAPI 'BAPI_PO_CREATE' creating the PO's. Is there any field already available in the IDoc which can be used for this purpose or it has to be the extension. ?
/Manik

Hi sanjeev,
Thanks for the response.
BAPI (BAPI_PO_CREATE) is already in use with few partners for which this functionality is required and also it have some conditions defined in the user-exit for the same Message Type. It's not a feasible idea to implement a new BAPI all together cause then all the changes need to replicated which will make the whole process complex in practical.
Can you suggest me how to get the value into tables once I am done with the IDOC extension ?. I found out that in FM BAPI_PO_CREATE there is a CALL CUSTOMER-FUNCTION 002 , but as per my findings till now there is no field defined in BAPI_PO_CREATE Function Module for these fields and get them populated at the desired location.
any suggestion / Sample code on this.
/Manik

Similar Messages

  • Query regarding Idoc extention

    hi,
    when we do idoc extenstion , is there any restriction on number fields that the extention can have ?
    I have a problem I have extened and Idoc.
    when I create n inbound idoc for it thrgh test tool in r/3 by passing the fields that i have extened, it does show those fields in the created idoc
    however when i receive inbound idoc from other system (non r/3 system) by passing these newly extended fields it does not populate them in the idoc...
    can any 1 help me with this?

    its no longer required.
    thank you

  • Plz help on  populating  idoc extention invoic02

    I have extenden the invoic02 idoc with the segmenta zfaktura as a child segmet for E1EDKA1
    The name of the extention is ZINVOIC02_EXTENTION
    I want the segment to apear only once based on the condition of partner function
    , but it appears each time the segment  E1EDKA1 which in this case appears 5 times.
    When I try to populate the new fields .
    Any help would do
    Thanks.
    This is the code I am using in the user exit ‘001’. Enhancement LVEDF001.
    TABLES : KNA1 , MARA , EQUI , E1EDK01 , ZFAKTURA.
    CHECK control_record_out-mestyp EQ 'INVOIC'.
    CHECK int_edidd-segnam EQ 'E1EDKA1'.
    LOOP AT int_edidd.
    CASE int_edidd-segnam.
    WHEN ' E1EDKA1'.
    control_record_out-cimtyp = 'ZINVOIC02_EXTENTION'.
    MOVE int_edidd-SDATA TO E1EDKA1.
    If E1EDKA1- PARVW eq ‘RE’
    clear int_edidd.
    Select from equi.
    ZFAKTURA-equnr = equi-equnr.
    ZFAKTURA-eqart = equi-eqart.
    Select from KNA1
    ZFAKTURA-EAN11 = KNA1-EAN11
    int_edidd-segnam = 'ZFAKTURA'.
    int_edidd-sdata = ZFAKTURA.
    append int_edidd.
    CLEAR  E1EDKA1
    Endif.
    ENDCASE.
    ENDLOOP.

    answered

  • Issue:EDI: Syntax error in IDoc (mandatory segment missing):Idoc extention

    Hi all,
    I have extended the the standard IDOC MATMAS05  classification view with structure as below-
    E1MARAM                        Master material general data (MARA)--->Mandatory segment
         Z1KLART                        KLART --->Extended chaild to E1MARAM
             Z1CLASS                        segment for class --->Extended chaild to Z1KLART
             Z1CHARACTERISTIC               CHARACTERISTIC --->Extended chaild to Z1KLART
         E1MARA1                        Additional Fields for E1MARAM
         E1MAKTM                        Master material short texts (MAKT) --->Mandatory segment(Child   to                                                                               
    E1MARAM )
    I am getting an error in IDOC fro material master as:EDI: Syntax error in IDoc (mandatory segment missing ).
    Diagnosys By system is :*The segment E1MAKTM has the attribute 'Mandatory' in the syntax description of the basic type MATMAS05 (customer enhancement ZMATMAS05). However, the segment is missing in the IDoc. The segment number logged in the status record identifies the item before which the segment is missing.
    This error may have been triggered by an unidentifiable segment before the expected mandatory segment.*
    Please help to resolve the issue.
    Thank you.
    Edited by: sanu debu on Apr 30, 2009 11:25 AM
    Edited by: sanu debu on Apr 30, 2009 11:31 AM

    Hi,
       You cannot add an segment in the middle of other segments.
    YOu have to add any segment at the last.
    If you want to add a segment as the child of another segment, it should be added after the last child of the parent segment.
    In you case, you have to add your segment after the E1CUCFG segment.(NOt under that segement)
    Regards,
    Ravi Kanth Talagana

  • Confusion on IDOC types for creation of PO

    Hi,
    Requirement is sending PO from sendin SAP system to receiving system.
    For sending am using-
    Processing code ME10
    On serching forums and tutorials,  i came across IDOC type- ORDERS05 but this idoc type is for both PO and SO.
    PORDCR04 idoc type for creation of PO only.
    Some post says PORDCR04 doesnt create PO header text.On the other hand,For inbound processing of PO idoc ( using ORDERS05 ) processing code is not available.
    I will be thankful if somebody can guide me which of these idoc types is preferable.
    Thanks.
    Edited by: Sanjay_lnt on Jan 8, 2011 3:49 PM

    Hell Sanjay
    Outbound ORDERS (= Purchase Order) and inbound ORDERS (= Sales Orders) are like siblings which reflect the customer / supplier relationship.
    In case of the PORDCR04 IDoc it is somewhat different because does it make sense to have the same purchase order in different system?
    In our case a POS (= point of sales) system is used to create a purchase order (for replenishment) which is then converted (via SAP-PI) into an inbound PORDCR04 IDoc in the ERP system. Out of this purchase order a replenishment delivery (for the shops) is created.
    Regards
      Uwe

  • IDOC segment Data updation problem

    I have done the Idoc extention for ORDERS05.I have written a code to insert data for my z segments in IDOC_INPUT_ORDERS.But when I run the program its not updating data to z segements as well as other segments
    What may be the problem..
    READ TABLE dedidd INTO wa_edidd WITH KEY segnam = c-e1edka1
                                                      sdata(3) = 'AG'.
            IF sy-subrc = 0.
              CLEAR w-index.
              w-index = sy-tabix.
              wa_e1edka1 = wa_edidd-sdata.
              CLEAR : wa_e1edka1-parvw,
                      wa_e1edka1-partn.
              wa_e1edka1-parvw = w-parvw.
              wa_e1edka1-partn = w-inpnr_ag.
              wa_edidd-sdata = wa_e1edka1.
              MODIFY dedidd FROM wa_edidd INDEX w-index TRANSPORTING sdata.
    ENDIF.
    Thanks
    Umesh

    Hi,
    Use Comparing fields addition in MODIFY Statement...
    MODIFY ........ COMPARING <key fields>
    Hope this would help you.
    Regards
    Narin Nandivada.

  • Regarding idoc segments modifcation

    Hi,
          I created a segment zdh_name in we31. Then i released the idoc segment. Also i created a corresponding idoc type and released it and also created a message type .
          When an idoc is created for a Purchase order in me21n the segment e1edp01 in idoc should be replaced by my created segment zdh_name with some value.
         I have tried using enhancement MM06E001 in the function module exit EXIT_SAPLEINM_002 with the following code.
      case int_edidd.
           when 'E1EDP01'.
                int_edidd-segnam = 'ZDH_NAME'.
                int_edidd-sdata = 'DHARUN'.
      endcase.
       Help me to get the solution.
       Thank you.

    Hi Dharun,
    Let us know the exact requirement. As Vinod said, it's not possible to replace a segment in standard idoc/msg type, but you can still add the custom segment by using idoc extention and mentioned exit (by you).
    If you want to use custom idoc type, you should copy the FM IDOC_OUTPUT_ORDERS into Z and change according to ur segments and create new out bound process code and attach it to the z FM.
    Reddy

  • Namespace issue in a B2B scenario

    Hi all,
    I have an iDoc to iDoc  B2B scenario (R/3<->XI<->XI<->R/3),
    My partner has defined an iDoc extention and sent me the xsd.
    Now I have a problem in defining the interface because I don't have the same iDoc definition(different R/3 version) so I cannot import it into the IR, and I cannot define the message type and message interface as an external definition because the MI is in the iDoc reserved namespace.
    How can I solve this conflict ?
    Thanks,
    Elad.

    Hi Elad (or Ofir?),
    my idea was to change temporary connection data for import from SAP system of SWKV. The question is, if you dont have connection to that system, how do you want to connect with XI and how do you want to test?
    2. idea was: instead of imported idoc you just create a dummy interface in repository. The interfaces itselfes (and so the imported idocs) will not be validated by integration engine. Only if you use message mapping you really NEED a correct XSD schema.
    So something like R/3 idoc -> own interface -> any mapping except message mapping -> loaded idoc interface -> other R/3
    Regards,
    Udo

  • Error handling for inbound function module

    Dear all,
    I have written my custom function module for matmas idoc extention.In the begining of function module i have used IDOC_INPUT_MATMAS01  and then have coded my BDC.For handling errors in caese BDC fails i am filling  table  idoc_status. wih status 51.
    But this gives eror as-
    Status records with status 51 after status 53
    Message no. B1357
    Diagnosis
    The application function module controlling the ALE inbound processing has passed several status records to ALE. The status of the last of these was '51'. Before this, a status of '53' was passed.
    Procedure
    If you have written the application function module yourself, you need to change the program.
    Can anybody guide me how to get the exact application errors in Application log.
    Thank you.

    Hi,
    You are using BDC after the FM 'IDOC_INPUT_MATMAS01'. Right??.... The problem is, The function Module IDOC_INPUT_MATMAS01 itself posts the material and set the status '53' i.e. document posted. You can not have any error status '51' after that.
    I don't understand the need of BDC in spite of the FM 'IDOC_INPUT_MATMAS01'. But if whatever the reason, you still want to use the BDC and set the status to 51, After the FM 'IDOC_INPUT_MATMAS01' call, Delete status table where status = '53'. and then proceed for the BDC...

  • File-xi- sap to create a PO

    hi,
    I am having the requirement  file-xi-r3 create po, can any one tell me the necessary steps needed for this. i am new to all this and still learning things, so please help me.
    thank you

    Hey
    you can use PORDCR04 IDOC,and u dont have to use BAPI for this,i guess ur not doing a sync scenario.
    thanx
    ahmad
    Message was edited by:
            Ahmad

  • Reimporting idoc , with extention.

    I have extended the idoc invoic02 with extra fields, which according to requirement I have to use in XI in replacement for the Basic invoic02..
    can I just reimport the new extended Idoc into the ID without problems and what other considerations do i have to think about.
    Do I have to do the mapping again , if other developer  are still using the original basic idoc in thei scenarios,  do they in this case have to change to the extended version.
    many thanks.

    HI Fedel,
                  You can add the new fields for the existing mapping itself and just test the mapping with some values ...........And there itself u can see ......if the mapping is working in the right direction or not ..............
    Reward with points if helpfull
    All the best
    Regards
    Sai Ganesh

  • PO and SO IDoc Type

    Hi,
    I understand that the IDoc type ORDERS05 can be used for Sales Order as well as Purchase Order. My requirement is to receive Order IDoc and create the sales order and send the PO details to a partner. Please let me know whether I can use the IDoc ORDERS05 for both these cases.
    Also I found that IDoc type PORDCR04 is available for PO. Can we use this IDoc type for sending Purchase order details.
    Thanks
    N

    Hello Nanditha,
    Yes you can do that.
    Also go to WE60 and put in PORDCR04 and downloadd to your PC if needed.
    Then search if all the fields you need are in that Idoc type.
    There are no rules as to which Idoc type you have to use, but you should try your best to stick to SAP recommended one's.
    Hope this helps.

  • How to get IDocs list or BAPIs in IR

    Hi Every one / XI Gurus,
    I am learning XI.
    I am an ABAPer for past 4 years.
    I have learnt XI to some extent by using SDN (some docs, links and some weblogs).
    Thank you all.
    I have done File to File and XML to XML (both are almost same) scenario using a weblog mentioned in SDN.
    It was very good and easy for beginners.
    When i am trying to do the scenario IDocs to File or File to IDoc  or
    BAPI/RFC to File or File to BAPI/RFC using the Weblogs available in SDN
    I am facing certain problems.
    I am not sure if i am correctly giving the parameters in SLD.
    But when i import the SLD to IR, i am not able to view IDocs or BAPIs in the IR.
    Can you please help me in setting the SLD and getting the list of IDocs and BAPIs
    in the IR.
    Please do not suggest me any existing weblogs because i have gone through all of them available in SDN.
    Thanks,
    Priyanka.

    Hi,
    In IR you can import the RFC from R/3 system.
    Right Click on the Imported Objects and click the RFC and choose import the RFC.
    Select the Radio Button  Import of RFC/iDoc allowed. After U Create a Namespace
    Save it And Activate
    <b>The Follow the Following Steps To Do</b>
    <b>Steps</b>
    <b>SAP XI</b>
    1) RFC Destination (SM59)
    a) Choose create.
    b) Specify the name of the RFC destination
    c) Select connection type as 3 and save
    d) In the technical settings tab enter the details SAP SID/URL and system number#.
    e) Enter the Gateway host as same details above SID/URL.
    f) Gateway service is 3300+system number#.
    g) In the Logon /Security tab, enter the client user & Password details of Destination system.
    h) Test the connection and remote logon.
    2) Create Port (IDX1)
    a) Select create new button
    b) Enter the port name as SAP+SID (The starting char should be SAP)
    c) Enter the destination client.
    d) Enter the RFC Destination created in SAP R/3 towards other system.
    e) Save
    3) Load Meta Data for IDOC (IDX2)
    a) Create new
    b) IDOC Message Type
    c) Enter port created in IDX1.
    <b>SAP R/3</b>
    1) RFC Destination (SM59)
    a) Choose create.
    b) Specify the name of the RFC destination
    c) Select connection type as 3 and save
    d) In the technical settings tab enter the details SAP SID/URL and system number#.
    e) Enter the Gateway host as same details above SID/URL.
    f) Gateway service is 3300+system number#.
    g) In the Logon /Security tab, enter the client user & Password details of Destination system.
    h) Test the connection and remote logon.
    2) Create Port (We21)
    a) First Select Transactional RFC and then click create button
    b) Enter the destination port name as SAP+SID (The starting char should be SAP)
    c) Enter the destination client.
    d) Enter the RFC Destination created in SAP R/3 towards other system.
    e) Save
    3) Create Partner Profile (WE20)
    a) Create New
    b) Create the Partner no. name as same the logical system name of the destination system.
    c) Select Partner type LS
    d) Enter details for Type: US/USER, Agent, and Lang.
    e) Click on the + button to select the message type.
    f) Select Partner no. and LS which ever create above.
    g) Select Message type
    h) Select Process code related to the Message type.
    I) save.
    <b>In SLD – System Landscape Directory</b>
    TS for R/3 (Logical system):-Assign the client name created in R/3 as Logical system Name.
    Ts for Third Party (Logical system):-
    BS for SAP R/3 (Logical system):- Assign the client name created in R/3 as Logical system Name.
    BS for Third Party (Logical system):-Enter the XI logical system name.
    <b>In Transaction SALE</b>
    Define and Assign the logical system name.
    Regards
    Khanna

  • IDOC to File, variable substitution on outbound message XML tag attributes

    My scenario is IDOC to FILE using XSL mappings.The target format is 2 XML tags (header, line) with the data stored in the attributes of each tag.
    EG. <header attr1=one attr2=two attr3=three><line attr1=one attr2=two /></header>
    The name of the file is dictated by an outbound attribute value in the header tag.
    Can I get access to it the attribute in the target message in the CC_FILE using variable substution. ?
    Currently I am not using content conversion as the XSL produces the file format needed, so I would pefer not to change the outbound message format/structure as this is going to an external party. I would prefer not to change the outbound format as this would need content conversion to strip the unwanted/information/processing node that is used for this purpose (file naming).
    The name is a calculation of fields in the IDOC and is not explicit dictated (business logic is applied in the mapping to get the file name), so I would prefer to use the attribute of the resulting XML to keep the "business logic" in the XSL..
    Things that cannot be changed.... 1. Must use XSL.for mapping. 2. Format cannot be changed of the outbound message. 3. Would prefer not to involved content conversion to keep formatting/node structure in the XSL mapping.
    I have seen some reference to this being possible on the forums but nothing solid from what Ive read.
    Something like var1 = payload:/Header/@attr1 in variable sub to get at the attribute
    Any comments ?
    Thanks in advance.
    One final piece of info. its on a PI 7.1 system.

    I think its best explained by my other thread Link:PI 7.1 Access to Dynamic Configuration through Java Class .
    Thanks for the link I have already implemented based on that link but the one crucial difference is that it is implemented using a static method with no reference to the actual object (payload) for Dynamic configuration. It seems that without the 7.0 API which isnt available in 7.1 by default XSL with java extentions is limited to static methods. If you could read the other thread it certainly is possible I'm mistaken.

  • Is graphical mapping best for a large IDoc mapping to file?

    Hello,
    I have to map an IDoc to a file and 450+ lines are mandatory or needed to go a file output.  A lot of the lines need some value mapping.  Is XSLT or Java mapping better for this task? 
    John Xi

    Hi,
         If you require to do a lot of lookups and for large payloads, it would make sense to go for a Java mapping as in this case it would improve performance to some extent.
    For large messages, please refer the follwong link to improve system performance.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2016a0b1-1780-2b10-97bd-be3ac62214c7?quicklink=index&overridelayout=true
    Regards

Maybe you are looking for

  • Page number problem with document imported from MS Word.

    I am a new Mac/Pages user and imported a Word document to use as a template to help me learn the Pages formatting nuances. This has worked well except for one problem. I have page numbers in the footer, but only the first digit of the page number sho

  • Can any one out there tell me how to insert a zoom tool into my slide show in dreamweaver CS5.5

    Hi there Can any one out there tell me how to insert a zoom tool into my slide show in dreamweaver CS5.5 My slide show consists of lots of thumb nails of paintings under a large painting. When the small painting thumb nail is clicked the large painti

  • Foreign Languages in Labview

    Hi, Looking at producing a localizable (to three or four different languages) user interface in Labview. Has anyone tried any of the following, or know whether they are possible? a) Having a resource file with user interface labels, etc. in non-Engli

  • Local currency in DP

    Hi All. What is the best way to deal with local currency in demand planning? In my scenario, the client requires to adjust demand plan based on a forecast valuation versus budget in <u></u>local currency<u></u>. i.e., Sweden in SEK, UK in GBP Thanks

  • Select distinct value

    HI all DESC CLAIMS CLAIM_NUMBER NUMBER(10) VERSION          NUMBER(2) STATUS          NUMBER(1) to every claim_number can be 3 statuses 0/9/1 there must be at least 1 status Select CLAIM_NUMBER   ,STATUS  from claims order by CLAIM_NUMBER,STATUS CLAI