IDoc from XI to ERP

Hi, we need to send IDoc from XI to ERP
1. The record is broken down into DEBMAS and ADRMAS. I am aware that ADRMAS needs to be sent first before DEBMAS. Just wonder how these 2 IDocs are linked with each other to create a single record when they reach ERP? What are the identifier fields to link them?
2. What I need to do to create records in ERP from these IDocs (FM ?)
Thanks

may be u can write a wrapper above BD10 this way
report zaRs message-id b1.
select-options: matsel for marav-matnr matchcode object mat1.
parameters: receiver like tbdlst-logsys no-display.
start-of-selection.
  select * from mara into i_mara where matnr in matsel.
  refresh : matsel.  
  v_no = 0.
  loop at i_mara.
    move i_mara-matnr to matsel-low
* fill up sign option etc.
    append matsel
  do.
   move mara
   if v_no = 200.
    submit rbdsemat  " Program behind BD10
          with logsys eq receiver
          with matsel in matsel
          with mestypat eq 'ARTMAS'
          and return.
          wait 20 seconds
    exit.
    clear v_no.
   endif.
  enddo.  

Similar Messages

  • Inbound Idoc (From DWM to ERP) Batch No. change

    Hi all,
    Our client requrement is changing Batch no. from DWM to ERP inbound process throough IDOC when Inbound delivery is confirmed in DWM.
    I tried SMOD_V50B0001 but Batch no. is changed both DWM and ERP. It doesnt work.
    I just want to change only ERP Inbound delivery.
    Is thre any solution?
    This is DWM inbound delivery.
    Inbound delivery in ERP is also confirmed by IDOC.
    We wanna change only ERP batch no.
    Regards
    Kiichiro

    Hello Kiichiro,
    Please let us know what is the Idoc type and message type which you are using for the confirmation.
    For inbound idoc go to the function module which processes the idoc and find exit in it, then do your changes to update the batch no.
    Also please explain in detail about your requirement like, what is the structure of the idoc you are using and also batch no. is received from Idoc or to be calculated within the system.
    Regards,
    TP

  • How to trace IDOC from POSDM to ERP

    Dear experts,
         I have send a IDOC(WPUTAB) to ERP from POSDM, how do I trace IDOC and get the IDOC number in ERP? because the IDOC number seems changed after send to ERP.
    best regards,
    Evans.

    Hi Evans,
       You can use transaction SNRO/OYSN by using Object EDIDOC wherein the Idoc number ranges can be defined in both POSDM and ECC.
    Standard interval is with "01" 0000000000000001 to 9999999999999999(16 digits)
    However there is no standard way to have message type specific number range settings which you maintain in both POSDM and ECC(as in your case you may need to configure 2 different number ranges one for WPUUMS and another for WPUTAB and there may be many more idocs as well)
    You can use Function module Number_get_next and create a custom table to maintain Message type specific number ranges.
    Alternatively the only other option is to check the EDIDC/EDID4/EDIDS tables both in POSDM and ECC by giving some of the key fields Message type,partner number,created on,created at,idoc status etc and compare it accordingly.
    Also if you are not processing idocs immediately you can check table EDIQO in POSDM(Outbound from POSDM) and EDIQI in ECC(inbound to ECC)
    Hope it helps
    Best Regards,
    Aram.

  • Sending idocs from POS DM to ERP

    Hi all.
    Tell me please. I want to check - correctly i configured the POS DM or not. Therefore i want send idoc WPUUMS from POS DM to ERP and i do not understand how do it. What methods exist for do this? Where usually create this idoc?
    Regards
    Denis.

    Hi Denis,
    In order to send the IDoc from POSDM to ERP, you will need a partner profile in POS DM and ERP with correct communication parameters. The message types WPUUMS and WPUTAB should be added in outbound parameters in POS DM and at the receiving system, maintain them as Inbound parameters (if you are using aggregated IDocs).
    I would suggest to Google for POS DM config guide and follow the step to prepare various tasks and POS DM and using PIPE dispatcher, you can generate the IDocs and send to ERP. You need to assign the tasks which are responsible to generate WPUUMS and WPUTAB IDocs when they are executed in POS DM.
    Once the IDoc is created, as per your partner profile it will be transmitted to ERP, where you need to process these inbound IDocs using BD87 or RWPOS_PARA to post the IDocs.
    I hope this will help you to start with.
    Let us know if you need any help.
    Regards,
    Amit

  • Transfer of data from APO to ERP via IDOC

    Hi,
    I know we can transfer the of transactional data(Planned orders) from APO to R/3 is done via CIF.
    Suppose if I need to transfer the same via IDOC instead of CIF how can I do it?
    Let me know the steps to follow and way to find out how the data got transferred by IDOC?
    For e.g. When I have transfer a planned order from APO to ERP,  the data should be populated in the IDOC LOIPRO01 on the ERP side.
    Cheers,
    Simha.

    Hi,
    For a thouht If you want to use that IDOC data to be transfer to an other system from R/3 then let the data flow through CIF and in INBOUND exit wright code to create IDOC.
    But Iam not sure whether it works.
    Please eloborate requirement.
    Regards,
    Kishore Reddy.

  • Steps to create outbound CREMAS IDOC from ERP

    Hi,
    Can you please share the steps to create outbound IDOC from ERP system?
    Business requirement is that whenever a new vendor is created in the ECC system, SAP should trigger an outbound vendor IDOC CREMAS from ERP system. Also whenever the vendor data is changed then the entire vendor details should be passed to outbound IDOC and not just the delta changes. Change pointer can be configured but to create idoc for full vendor records.
    I guess we can use CREMAS.
    Can anyone please share the steps to configure it in ERP?
    Regards,
    Sandeep

    1. Read the file using OPEN DATASET and read and fill up the segment info and fill the EDIDC header data
    and then call function
    CALL FUNCTION 'INBOUND_IDOC_PROCESS'
        TABLES
          IDOC_CONTROL       =  i_edidc
          IDOC_DATA          =  i_edid4.

  • Error sending IDoc from ERP to PI 7.4 Java Only (stuck in SM58)

    Hi specialists
    I'm trying to send an IDoc to our new PI 7.4 Java Only.
    Because of some authorization issues I changed the RFC Destination <blabla> on PI (nwa) pointing to the ERP system.
    Now the IDoc is stuck in SM58 (tRFC queue) and I get this error message:
    The IDoc Destination <blabla> was changed. Refresh the destination instance with
    Meldungsnr. SR053
    Anyone able to tell me where to do this refresh? I'm new to PI 7.4 Java Only and could not find useful answers on SCN and other internet sources.
    Thanks a lot in advance for any hints.
    Renaud

    Hi Iñaki
    Great document btw... didn't stumble uppon this before. Thanks.
    I carefully went through it but nothing I tried helped.
    The RFC destination (PI -> ERP) is working fine.
    The resource adapter (inboundRA) is configured correctly. I can confirm, that the connection test of the RFC-Destination inside ERP (ERP -> PI) is successful.
    BUT still: sending an IDoc from ERP to PI fails with this message in SM58:
    The IDoc Destination <destinationName> was changed. Refresh the destination instance with
    Meldungsnr. SR053
    This seems to happen every time after one changes some settings in the destination specified in the inboundRA property "destinationName".
    So my question still is: how / where do I refresh this destination instance on a PI 7.4 Java Stack Only??? I mean without having to restart the whole PI instance...
    Best regards
    Renaud

  • Limit send of IDoc from SAP-ERP to SAP-XI or a Non-SAP

    Hi guys,
    I send the following IDocs from SAP-ERP over SAP-XI to Non-SAP for an initialload: Artmas, Bommat, Infrec, Cond_a, Mmaddi, Cremas
    Example: Artmas with TA: BD10.
    Problem: SAP-ERP send all 25'000 IDoc to SAP-XI. The effect is that the qRFC and tRFC in SAP-XI is full, because the Non-SAP is not fast enough to takeover the Idocs. From then other systems can't send out or get in Idocs.
    I tried to limit in WE20, but it didnt work. TA: RSEOUT00 ist not so useful, because of the quantity of the IDocs.
    Is in SAP-ERP a possibility to limit the sending of IDocs to SAP-XI or Non-SAP?
    Example: Automatic sending of 200 Idocs every 2 Minute.
    Thanks

    may be u can write a wrapper above BD10 this way
    report zaRs message-id b1.
    select-options: matsel for marav-matnr matchcode object mat1.
    parameters: receiver like tbdlst-logsys no-display.
    start-of-selection.
      select * from mara into i_mara where matnr in matsel.
      refresh : matsel.  
      v_no = 0.
      loop at i_mara.
        move i_mara-matnr to matsel-low
    * fill up sign option etc.
        append matsel
      do.
       move mara
       if v_no = 200.
        submit rbdsemat  " Program behind BD10
              with logsys eq receiver
              with matsel in matsel
              with mestypat eq 'ARTMAS'
              and return.
              wait 20 seconds
        exit.
        clear v_no.
       endif.
      enddo.  

  • Error sending IDOC from external Java application to Sap ERP system

    Hi Experts!
    When I try to send Idoc from Java application to XI an error occurs : no service for system CLNTJAVA, client in Integration Server.
    My question is: What value the setSenderPort() is excepting?The Java third party business system's logical name or the ERP business system's logical name where the JCO can be found?I tried both of them, but still have the problem.
    Please help. I read all threads about this error, but non of those can help me.
    My relevant java sourcecode:
                doc.setSenderPort("CLNTJAVA");
    The XI documentation says that:In the case of non-SAP senders, the entry in the SNDPOR field is interpreted as a logical system name, and the corresponding business system is searched for in the runtime cache.
    Both case(third party business sytem and erp business system) I have configured the ID    i think correctly. I  made a business systems,I configured the adapter specific identifies,I  made the IDX1 port,I made the RFC destination,I polled the IDOC type with IDX2 transaction, I have made full cache refresh,I configured the INTEGRATION_DIRECTORY_HMI rfc destination,but I do not made any communication channels, receiver determinations, receiver agreement.
    My configurations if it can help for you.
    Hostname:sapsp5
    System name: NE2
    Clients:
    000 ERP
    001 Integration Server
    <b>SLD configurations:</b>
    Third Party Technical system name: Java_sytem
    Business System:CLNTJAVA
    Logical system name: CLNTJAVA
    <b>ID configurations:</b>
    Business System:CLNTJAVA
    adapter-specific identifiers:logical system:CLNTJAVA, <u>the rest is initial</u>,because I cant change it.
    IDX1 port name: CLNTJAVA the client is 001. the rfc destination is client_001.
    I think the IDX1 port and the adapter specific identifiers are wrong. is it?
    my java source if the sender is the JCO
    doc.setSenderPort("INTSERV");
    My configurations if the sender is the JCO.
    <b>SLD configurations:</b>
    Technical system name: NE2
    Business System:INTEGRATION_SERVER_NE2
    Logical system name: INTSERV
    <b>ID configurations:</b>
    Business System:INTEGRATION_SERVER_NE2
    adapter-specific identifiers:logical system:INTSERV,system NE2,client 001.
    IDX1 port name: INTSERV the client is 001. the rfc destination is client_001.
    Could this error be an autorization error?I tired to connect to the xi from the Java, with the user PIISUSER extended with PISUPER roles.
    Thank very much.

    Hi!
    My SNDPOR already set to my source business system's logical name if you check my configurations(JAVACLNT), so there is another problem unfortunately. I set SNDPRN to JAVA, but it still does not work.
    Check this configuration please(posted here:
    No service for system ... in Integration Directory)
    doc.setMessageType("ACC_DOCUMENT");
    doc.setRecipientPort("SAPSE1"); // get stuck in XI mapping if not set
    doc.setRecipientPartnerType("LS");
    doc.setRecipientPartnerNumber("SE1CLNT500");
    <b>doc.setSenderPort("SAP3MA");</b>
    doc.setSenderPartnerType("LS");
    <b>doc.setSenderPartnerNumber("TREMACLNT");</b>
    doc.setClient("100");
    Inside XI configuration integration builder
    <b>Business Service: Service: TREMACLNT</b>
    Under the menu Service - Adapter specific identifiers
    Idoc Adapter Logical system: TAPPMAN (This thing is important when sending idoc XI -> SAP and should match the logical sys in the receiving SAP system)
    IDoc Adapter and RFC adapter R/3 Sysytem ID: 3MA
    Client: 100
    In IDX1 trans
    <b>Port: SAP3MA</b> (Note that the 3MA here is matched against the IDoc Adapter and RFC adapter R/3 Sysytem ID: 3MA)
    (a not so well documented feature)
    Client: 100
    RFC Destination: SE1 (A SAP test system from where IDOC def can be imported, rfc dests are setup in SM59)
    I guess that your idx1 port name is the same as the SNDPOR value. I think it should be, because the XI is whatching the IDOC traffic in the idoc adapter port, so you should send the IDOC from external system to the adapter port. Is it right?
    My idx1 port is the same as my SNDPOR value in Java,but still came the error.

  • Sending IDoc from ERP to PI

    Hi all,
    I am trying to sent IDoc's from the ERP (SAP ECC) side to PI. But the IDocs are not arriving at the PI side. In ECC tc:we05 they seem to be successfully sent.
    The Partner Type in we20 is "LI". I added the IDoc to the Outbound parameters and set the PORT to the Port we use for PI. But unfortunately it is not working.
    Any idea why?

    When sending IDoc from ECC System to PI.
    some settings needed on ECC System & PI System
    On ECC System
    Create Port in WE21 type LS (Logical System) use RFC Destination TYPE ABAP in that port.
    Create Partner Profile using PORT in WE20.
    Add the Idoc as Outbound in that Partner Profile.
    Now on PI System
    PI System does not have structure / matadata of IDoc.
    Create Port in IDX1.
    Import IDoc Matadata in IDX2 use Port created in IDX1.
    Create complete scenario & send IDoc from ECC, it will reach at PI System, if successful at ECC.

  • POR not transfering from SRM to ERP

    Hi Experts,
    We are working with extended classic scenario on SRM 7.0 & ERP EHP4.
    We are creating POR manually in SRM and also recieving POR from SUS system.
    When we accept the POR it is not updating the ERP.
    We have enabled the PI scenario for transfering POR from SRM to ERP by using the Proxy and IDOC(ORDRSP) but the XML is not generated when the POR is accepted.
    Can any one help me how to transfer the POR created in SRM to ERP.
    Is there any way we can generate XML message of POR with status Accepted.
    Regards,
    B.N.Karthikeyan

    Hi,
    I have tried this define event option.
    Still XML not generated for POR.
    Regards,
    B.N.Karthikeyan

  • Sales Order iDoc from SAP SCM 7.0

    Hi Experts
    I have two question fro you guys.
    1. Can we generate VMI sales order idoc from SAP SCM 7.0? I know is can generate xml message. If we can generate idoc for VMI sales order from SAP SCM , please give me some direction or path to explore.
    2. Can I use idoc to to create to VMI sales order in ECC skiping CIF. But the changes in ECC to these order should use the CIF to update the VMI orders in SAP SCM.
    Please share your experience on this.

    Hi,
    Did you set up this scenario? I want something similar, but I want an ERP order to be created. Do you know if that is possible? Do you have som tips?
    regards Camilla

  • Send IDOC from XMII to SAP

    Hi All,
    I want to send an IDOC from xMII to SAP. Can anyone suggest me the steps and how to configure in SAP and xMII.
    thanks
    Manoja

    Hi,
    What ever Dipankar Saha said is correct.
    SAP xMII is used for the purpose of connecting ERP and shop floor.
    Usually from R/3 system, you can get info in the form of idoc.(through other forms also you can get data. I hope that you have got the data through idoc)
    From shop floor, you get data in the form of B2MML.
    If you want some data back to ERP, you can use JCO interface present in the
    business logic editor. Use this, to find correct BAPI which can push some data into ERP.
    Link the data from B2MML field to BAPI field.
    Save this transaction and call this where you want.
    Hope this may help you...
    Regards,
    P.S.Kishore kumar

  • Problem when sending IDOC from ECC to MII 12.0

    Hi all,
       I have followed the document "[How to Send an IDoc from SAP ECC to the SAP MII IDoc Listener|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50775783-6cb1-2b10-90b0-e6bc2c0b8563]" to configure the scenario to send IDOC from SAP ECC 6.0 to MII 12.0.
       But when sending 53 IDOCs by Tcode POIT to MII, I have problem as below:
       - 53 IDOCS were successfully outbounded (list in WE02).
       - 8 IDOCs were successfully sent to MII IDOC listener (these 8 IDOCs messages exist in list of Message Monitor).
       - 45 IDOCS were error with message in SM58: "Bean IDOC_INBOUND_ASYNCHRONOUS not found on host xxx, ProgId=yyy".
       I'm wonder why some IDOCs were successful while some others were error. If the bean  IDOC_INBOUND_ASYNCHRONOUS don't exist in EJB, why some IDOCs successful found this bean?
       I have another wonder: in this scenario document, all IDOC message type (SYNCH, LOIPRO) is configured in outbound parameters of RECEIVER (receiver logical system), why they weren't configured them in outbound parameters of SENDER (sender logical system)?
       If some have the same problem and know how to resolve it, could you please help me?
    Thank a lot in advance,
    Vinh Vo

    Hi Vinh,
    Please read the following document:
    [IDOC Listener|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/bpx-community/manufacturing/how%20to%20send%20an%20idoc%20from%20sap%20ecc%20to%20the%20sap%20mii%20idoc%20listener.pdf]
    If you explicitly defined a Prog ID in NW, then you have done an extra step and are confusing NW with the real destination.  
    In basic terms, you set up an RFC destination (with an assigned ProgID) in ERP, then configure MII to point to it. 
    I suggest that you follow the document completely and do nothing else to set up a new listener. 
    If you are not using ECC 6.0, you may find the paths are different,  but the transactions codes are generally the same.  However, you may want to check with some of the older installation instructions regarding specific modifications.  Look in the Wiki for MII under Connectivity.
    Good luck,
    Mike

  • Sending PO with attachment from SRM to ERP

    Hi Experts,
    My requirement is to Send PO with attachment from SRM to ERP.
    I can get the attachment in the payload as mentioned in https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3509. [original link is broken] [original link is broken] [original link is broken]
    But how to post this attachment into the target ERP system so that it gets saved as an attachment in the Purchase Order.
    Thanks & Regards,
    Shobhit

    Hi Shobhit,
    I asume, the PO is send as an IDOC to ERP?
    In this case, you have no chance to attach the attachment.
    A wortkaoud would be to extract the needed date from the attachment and map the values into correcponding fields of the PO-Idoc.
    Regards Mario

Maybe you are looking for

  • Why are my pictures smaller

    After a recent fire fox up date all the pictures on adds I normally view on Craigslist now just show "tiny pictures" not the large photo I viewed before the "update"....Tried everything on my end to fix the prob....Even "uninstalled" all my 'Players"

  • Credit Card Merchant Security question

    I need to get approved for Payment Card Industry (PCI) Data Security Systems (DSS), which means I need to know if every e-mail I ever opened is saved in the bowels of my G4...just in case somebody was stupid enough to send me a credit card in an e-ma

  • Import multiple folders in one step

    I'm new to PSE and have just installed version 10: is there a way to import multiple folders from my hard disk into Organizer in one step? Selecting each folder and then selecting all the pictures in it is tedious (I have about 50 folders to import i

  • Conver a report in to txt file

    Hi all, I need to convert the report output into txt file .How can i do that?. can any one post some sample codes. Regards, Lisa.

  • Design floor of the N80

    i have read a number of forums about the battery issue, and i ask my self why has nokia designed a phone that uses so much power and then given it a rather low capacity battery? i love the features of the phone, but think the fact that nokia claim 8