Sending reduced IDOC from XI to R/3 with nodata markers

Hi !
I need to update a VERY FEW Vendor fields data in R/3 from XI (FILE-XI-IDOC). I'm using the standard IDOC type CREMAS04 (I need to update fields of the E1LFBWM segment...withholding tax fields).
The problem is, that if I disable the not needed IDOC fields in the XI message mapping, when the IDOC reaches R/3, it blanks all the fields that were empty as result of the mapping...I verified it using XI and using the IDOC test tool (we19). For example, if the vendor had data in fields such as "salutation", "phone number", etc. after the IDOC processing, those fields change to BLANK.
One solution is to send the NODATA marker ("/") in those not needed fields, and that works!!!!...<b>BUT</b>, there are hundreds of IDOC fields.
I made a reduced IDOC type, based on CREMAS, enabling only the segments and fields needed, but tnx-WE19 and XI keep sending blank data in the not needed fields instead of the NODATA marker.
How could I send by default, the NODATA marker ("/") to all the fields NOT mapped or disabled, without having to map each field manually ?!?!?
Should XI send those fields as "/", or the R/3 should detect that the incoming IDOC is a reduced IDOC type, and complete all the not existing fields with NODATA ??
The goal is to update some data, and not overwrite with blanks, those fields that should remain untouched.
Thanks !!
Matias.

Matias
Is ur intention /equirement to send the NODATA for the rest of the IDOC elements or just send the reduced IDOC for the required sender elements..
if it is only for sender file elements, as sravya said Note 709400 describes
The integration repository provides a new function: "export reduced XSD" to reduce the XML schema of an IDoc.
To use this function in the mapping tool, proceed as follows:
1) Open the relevant IDoc in the object editor of the XI Repository.
2) In the menu "Tools", select the menu option "Export reduced XSD".
3) Assign a file name in the subsequent dialog box and save the data on the hard disk of your local PC.
4) Use this exported file in the message mapping instead of the IDoc by using the function "Import XML or XSD" in the mapping tool to select the source or target message. So you must use this function to import the reduced XML schema stored under
3) of the IDoc in question, and use this XML schema instead of the complete IDoc.
Note: The XML schema generated using the function "export reduced XSD" does not contain the full information in the repository on the IDoc and should only be used for the mapping.
option2: if you want to send the NO DATA, you got to develop UDF in Java or XSLT..
Here is a sample Java code:
obj = inputModuleData.getPrincipalData();
msg = (Message)obj;
XMLPayload xmlpayload = msg.getDocument();
DocumentBuilderFactory factory;
factory =DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
// parse the XML Payload
Document document = builder.parse((InputStream)
xmlpayload.getInputStream());
var x=document.getElementsByTagName("<rootnode>");
for(i=0;i<x.length;i++)
//the attlist variable will hold a NamedNodeMap
var attlist=x.item(i).attributes;
if (attllist.getvalue.equals("") {  //pseudo
attlist.setvalue("/"); //pseudo
document.write(att.value + "<br />");
Good luck
Thanks-Gopal
Message was edited by:
        gopal srinivasan

Similar Messages

  • Error to send a IDOC from ECC to SUS

    Hi,
    I am trying to connect to SAP SUS System using HTTP adapter using PI 7.0.The scenario is
    ECC ->PI->SAP SRM. I have configured HTTP adapter as the receiver with addressing type as HTTP Destination. I have created a RFC destination of type H pointing to SAP SUS on PI. I have encountered the following error after executing the scenario.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIAdapter</SAP:Category>
      <SAP:Code area="PLAINHTTP_ADAPTER">ATTRIBUTE_SERVER</SAP:Code>
      <SAP:P1>500</SAP:P1>
      <SAP:P2>Internal Server Error</SAP:P2>
      <SAP:P3>Error during parsing of SOAP header</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>HTTP server code 500 reason Internal Server Error explanation Error during parsing of SOAP header</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    I have configured HTTP receiver with Addressing type HTTP Destination and configured the HTTP destination field with RFC destination(Connection Type H) created on PI. Here my source and target structures are same i.e DELVRY03. I have triggered DELVRY03 idoc from ECC and i am expecting same xml to be sent to SAP SUS but stuck up with the above mentioned error.
    Someone know how fix this problem?
    Tks,
    Erik

    HI,
    As per my understanding to your scenario, You want to send one IDoc from ECC to SAP SUS system using SAP PI.
    So i hope you must have configured on all the steps required to Send one IDoc to PI syste, Secondly, are you using any Standard interface in PI to send data to SAP SUS system? If yes, you need to create an HTTP Destination for that system and then you have to create XI Receiver Adapter with that HTTP destination to post incoming message to SAP SUS system.
    Your error suggests you are using Plain HTTP adapter to post data to SAP SUS, which is in my understanding is incorrect.
    Regards
    Aashish Sinha
    Edited by: Aashish Sinha on Feb 21, 2011 9:15 AM

  • Urgent: Sending order05 IDOC from R/3 to ICH (SAP SCM) through SAP XI

    Hi All
    I have requirement where I have to send Order05 IDOC from SAP R/3 (ECC 6) to ICH (SAP SCM 5) through SAP XI (PI 7).
    I came to know that there is one standard scenario in SAP SCM Basis content in integration repository.
    I never done any XI development, please guide me with the useful links or whole step by step process. I will be very thankful for your inputs.
    Please reply asap.
    Regards,
    Amol

    Hi !
    Check this note:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_xi/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d383336323030%7d
    Regards,
    Matias.

  • How to send an iDoc from XI to flat file

    hi,
    I have send an IDoc from R/3 to XI.The iDoc is being received by XI.Now,I need to send this iDoc to Flat file.
    For this,What i need to do?
    can any body help me step by step in this regard..........
    Thanx in advance..
    Sridhar Raju Mahali

    Hi Sridhar,
    Hope you are clear with the XI portion.
    Now for sending the data from IDOC to XI follow these steps...
    1.create an RFC destination pointing to <i>XI server</i> in the Business System where IDOC is present, using transaction sm59
    2.create a tRFC port in the same Business System using transaction we21
    3.create a logical system name using transaction bd54
    4.then create a partner profile  using transaction we20
    5.Now log on to the Business System where IDOC is created.
    6.go to we19..execute the idoc and give standard outbound processing on
    7.on the values given click and give the sender and recipeint port and partner name and type..
    Hope this will help you...
    Regards
    Suraj

  • Unable to send an idoc from SAP R/3 to XI

    Hi,
    We are trying to send Z_CREMAS_SUSMM.CREMAS03 idoc from R/3 system to XI using IDOC adapter.
    We have done the following steps.
    On  SAP R/3 system:
    1.created a RFc Destination which points to the XI system using transaction SM59
    2.created a port in which we have selected  this RFC Destination   using tansaction WE21
    3.logical system for R/3  with transacion BD54
    4.In WE20 transaction,we have configured the PartnerProfile by adding the IDOC message type to the outbound Parameters of XI Logical system.
    On XI Sytem:
    1.Created RFC destination
    2.Created a Port
    3.Loaded metadata
    While trying to Post IDOc from SAP R/3,it is throwing an error"External segment name E2LFA1M001 cannot be interpreted"
    and "Basic type CREMAS03 does not exist" on XI side.
    Can anyone please provide a solution to this?

    HI Jagruthi,
    Have you loaded the metadata into the XI system by using IDX2?
    If it is done then try to delete once and do once again.
    And also delete the IDoc from IR and reimport the IDoc and activate it once again.
    Regards
    Goli Sridhar

  • 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.  

  • How to send multiple idocs from WE19?

    How to send 100 IDocs at  a time using We19?
    in other words, can we generate 100 IDocs from a single Idoc using We19
    Thanks,
    Ven

    Hi Venkat,
    Check program RSEOUT00.
    Hope this helps.
    Regards
    Lakshman

  • Send orders idoc from sender

    Experts 
    tell me which tcode is used to send the sales order data from sender to receiver.
    Example  : we use the following tcode to send the master data idocs like
    SEND MATERIAL MASTER: BD10
    SEND VENDOR MASTER:   BD12
    1)is there any tcode to send the sales order data also like this.
    2)if tcode not there then tell me which function module is used in the sender system to fill the segments of order01 idoc.
    3) I want to fill the sales order data in the segments , the following data i need to fill
    sales area , document type , customer numeber , payment terms , material , net price , quantity , order data , po number.
    tell me which segments are used for this.
    4)where to see the segments of the idoc and its fields.
    5) if any one having sample code to fill the orders idoc , please give me the link

    prabhu
    send data through Message control ? means how to send .
    My requirement is to fill the idoc segments and then to post.
    Which tcode is used to see the segment fileds  both header and item other than we60 , we61.
    For orders01 idoc how to identify which segment fields are used for sales area , customer , payment term etc  becasue po fields are also there, so confusing

  • How to send PO IDOC from SRM server

    Hi All,
    How to send IDOC, after successful creation of the PO in SRM ?
    Please tell me how to configure the SRM system ?
    Regards

    Hi,
    See the foll related useful link:
    Re: Intercompany process u0096 MM u0096 SD
    BR,
    Disha.
    Pls reward points for useful answers.

  • HT3529 Is it possible to send a message from my iPad to others with out all responses  coming to my phone?

    HOw do I send messages using my iPad mini without it looking like the messages are coming from my cell phone? And all the responses are sent to my phone as well as my iPad?

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Troubleshooting iMessage Issues: Some Useful Tips You Should Try
    http://www.igeeksblog.com/troubleshooting-imessage-issues/
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    How to Block Someone on FaceTime
    http://www.ehow.com/how_10033185_block-someone-facetime.html
    My Facetime Doesn't Ring
    https://discussions.apple.com/message/19087457
    For non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
     Cheers, Tom

  • How to send the idoc to 12 status, without processing with RSEOUT00 and RBD

    Hi All,
    How can I change the status of IDoc to 12 without processing with the programs RSEOUT00 and RBDMOIND programs, only with using the partner profiles.  Help needed ASAP.
    Thanks,
    sreenivas.

    Then you need to use fm
      call function 'MASTER_IDOC_DISTRIBUTE'
        exporting
          master_idoc_control            = wa_edidc
        tables
          communication_idoc_control     = i_edidc
          master_idoc_data               = i_edidd
        exceptions
          error_in_idoc_control          = 1
          error_writing_idoc_status      = 2
          error_in_idoc_data             = 3
          sending_logical_system_unknown = 4
          others                         = 5.
    then you want to change status
    try to submit the above said program

  • How do I export from Compressor 4 to iDVD with chapter markers?

    I get that Final Cut Pro X does not create chapter markers.
    I send it to Compressor 4 to do this.
    Ok, so far, so good.
    How do I export this so that I can then author the DVD to include a menu page, etc?
    Do I do this in iDVD?  If so, what format, as I see that iDVD does not import MPEG-2.

    Don't use the DVD preset in Compressor. Use an MPEG4 format or maybe even AppleTV preset.
    This Apple Support Article might help a little.

  • 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

  • Error sending IDOC from JCO Client to PI AEX 7.3.1

    Hi All
    We have a requirement to send an IDOC from a non SAP System to our ECC via PI AEX :
    JCO.Client --> PI AEX --> SAP ECC
    At this time, we are testing this scenario with a JAVA Client with JCO Library (3.0.10).
    Destination to PI is OK
    Destination to our SAP ECC (for IDocRepository) is OK
    But by sending the IDOC to PI we are getting the following error, Exception is raised on the PI System and sent back to the JCO Client :
    com.sap.conn.jco.JCoException: (104) JCO_ERROR_SYSTEM_FAILURE: while trying to invoke the method java.lang.Object.hashCode() of an object loaded from local variable 'key' (raised by system <extern>|PiSystem)
        at com.sap.conn.jco.rt.MiddlewareJavaRfc.generateJCoException(MiddlewareJavaRfc.java:670)
        at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.execute(MiddlewareJavaRfc.java:1881)
        at com.sap.conn.jco.rt.ClientConnection.execute(ClientConnection.java:1120)
        at com.sap.conn.jco.rt.ClientConnection.execute(ClientConnection.java:953)
        at com.sap.conn.jco.rt.RfcDestination.execute(RfcDestination.java:1465)
        at com.sap.conn.jco.rt.AbapFunction.execute(AbapFunction.java:319)
        at com.sap.conn.idoc.jco.JCoIDoc.send(JCoIDoc.java:323)
        at com.sap.conn.idoc.jco.JCoIDoc.send(JCoIDoc.java:353)
        at sap_connector_examples.IDocClientExampleToJavaPO_pbs.main(IDocClientExampleToJavaPO_pbs.java:97)
    Caused by: RfcException: [<extern>|PiSystem]
        message: while trying to invoke the method java.lang.Object.hashCode() of an object loaded from local variable 'key'
        Return code: RFC_SYS_EXCEPTION(3)
        error group: 104
        key: RFC_ERROR_SYSTEM_FAILURE
    Exception raised by <extern>|PiSystem
    PI Destination:
    jco.destination.repository_destination=ABAP_AS_WITHOUT_POOL
    jco.client.gwhost=PiSystem
    jco.client.gwserv=sapgw01
    jco.client.tpname=XI_IDOC_DEFAULT_PID
    jco.client.type=E
    ECC Destination: (ABAP_AS_WITHOUT_POOL)
    jco.client.lang=en
    jco.client.client=100
    jco.client.passwd=****
    jco.client.user=User
    jco.client.sysnr=00
    jco.client.ashost=ECCSystem
    We have already set the PI VM System parameter  jco.allow_non_abap_partner to 1
    ECC User has S_RFC Rolle
    I will be thankful for any advise.
    Thank You
    Regards
    Stéphane

    Hi
    InboundRA (Resource Adapter) is green (Fully available).
    What do you mean by maintaining JCO RFC Destination in PI ?
    We have set the inboundRA Properties has follow :
    ProgramID : XI_IDOC_DEFAULT_PID
    DestinationName : XI_IDOC_DEFAULT_DESTINATION
    Local: true
    mutliRepository : ED1=XI_IDOC_DEFAULT_DESTINATION_ED1;ES4=XI_IDOC_DEFAULT_DESTINATION_ES4;MD1=XI_IDOC_DEFAULT_DESTINATION_MD1;ES1=XI_IDOC_DEFAULT_DESTINATION_ES1;PD1=XI_IDOC_DEFAULT_DESTINATION_PD1;
    GatewayServer and Service are pointing to our PI System
    BindingKey : PI_AAE_IDOC
    And for each Repository we created a destination in NWA pointing to the corresponding ECC System.
    (target host pointing to the ECC System and the Gateway host  pointing to the PI System)
    Our Installation isn't new but it is the first time we are configuring the System for this scenario:
    JCO.client --> PI AEX
    Regards
    Stéphane

  • Send IDOC from SAP system to IX but can't see any message in SXI_MONITOR

    Hi all,
    I have built up an XI system and configured an IDOC to IDOC scenario between two SAP Systems. After completed all configuration necessary:
    1. Configuration on Source Side (SAP System that send IDOC) and on Target Side (SAP System that receive IDOC) is OK.
    2. SLD is OK: Technical System and Business System are correct for these two SAP System.
    3. Integration Repository: all designed Object is OK.
    4. Integration Directory: all configuration is OK. "Test Configuration" Function is OK.
    5. Runtime WorkBench: is OK. "Test Message"  Function of "Integration Server" is OK.
    In general, it is all OK.
    But when i send an IDOC from SAP System Sour Side (Outbound IDOC from Source Side is OK), on the XI server i can't see any message in Tcode SXI_MONITOR. In this case, my XI server didn't receive any IDOC Message from  this Source Side, and so that my XI server can't process and exchange any IDOC sent from Source Side.
    Anyone can please help me to explain this problem: why my XI server can't receive any IDOC message from SAP System Source Side when all configuration is OK? Do anyone see the same case as this case?
    Thanks a lot for all in advance,
    Best regards,
    Vinh vo

    Hi,
    Possible checks
    At R/3 side
    1) Check in SMQ1 and SM58
    At XI Side
    1) Check in SMQ2 and IDX5
    Check this
    http://help.sap.com/saphelp_nw04/helpdata/en/6a/e6194119d8f323e10000000a155106/frameset.htm
    Regards
    Seshagiri

Maybe you are looking for

  • Report Generation Toolkit Error

    I  have an application that generates multiple excel spreadsheets each containing a table and four graphs.  This has been working fine for three months but I am now getting error when generating the reports.  The source of the error is in the Excel_c

  • Java Concurrent Program Errors out

    Hi All, Request you to help me in this issue as this is on high priority. we have registered a Java Concurrent Program Named Genus Merge Two P45 Pdf's which gives the output in pdf format. The concurrent program errors out showing the log as follows

  • CUCM 7.0 license expiration

    Hello All, Do the evaluation licenses (150) expire after certain time in CUCM 7.0 ? Anyone ? Thanks

  • "Get info" not work

    I recently bought a laptop and installed my Creative Media source for my two Creative MP3 players -- Zen Extra and Muvo. I've installed it before on my old computer and our current computer with no problem. This time, however, when I hit "get info" I

  • Disk Thrashing Brand New Macbook Pro

    Hello. I got my macbook pro 17 inch last Wednesday and everything seemed fine. Today I have noticed that while it is idle there is a distinct noise of something accessing the harddisk. This was not audible before as I checked after I got it and would