Sequencing 2 different idocs

Hi,
PI will receive 2 IDOCS at an instant from MDM. 1) MATMAS
                                                                            2) classification IDOC
PI might receive these idocs in any order. But will have to send the MATMAS IDOC first and then the classification IDOC to the ECC system.
any suggestions please... If i can do it through BPM.. kindly give me some links for it.
Rgds,
Mickz

If you are facing a challenge in the MDM system, you can make the necessary changes in PI to achieve this.
Please do the following, as mentioned earlier.
Write the following code in the PI system.
1. Go to SE38 and create a program ZXX_UPDATE_IDXQUEUE.
REPORT  z_xi_idd0XXX_quereg NO STANDARD PAGE HEADING.
******* Data Declaration ***************************
CONSTANTS: c_queuid   TYPE sxmsqid VALUE 'ZQUE_DIRDEB'.
DATA:  v_sysid        TYPE    syst-sysid,
       v_sysport      TYPE    idx_port,
       v_client       TYPE    edi4mandt,
       v_msgtyp       TYPE    edi4mestyp,
       wa_idxqueue    TYPE    idxqueue,
       v_count        TYPE    int4,
       i_idxqueue     TYPE   STANDARD TABLE OF idxqueue
       INITIAL SIZE 0.
********* End of Data Declaration *******************
********Seleccion Screen Information  *****************************
******* End of Selection screen       *****************************
INITIALIZATION.
  v_sysid = sy-sysid.
START-OF-SELECTION.
  SELECT COUNT(*)
  FROM idxqueue
  INTO v_count
  WHERE mestyp EQ 'PAYEXT' .
  IF v_count = 0.
* Dev system 
    IF v_sysid EQ 'DXX'.
      wa_idxqueue-port = 'SAPXXX'.
      wa_idxqueue-client = '230'.
      wa_idxqueue-mestyp = 'PAYEXT'.
      wa_idxqueue-queueid = c_queuid.
      APPEND wa_idxqueue TO i_idxqueue.
      CLEAR wa_idxqueue.
* QA system
    ELSEIF v_sysid EQ 'QXX'.
      wa_idxqueue-port = 'SAPXXX'.
      wa_idxqueue-client = '400'.
      wa_idxqueue-mestyp = 'DIRDEB'.
      wa_idxqueue-queueid = c_queuid.
      APPEND wa_idxqueue TO i_idxqueue.
      CLEAR wa_idxqueue.
      wa_idxqueue-port = 'SAPXXX'.
      wa_idxqueue-client = '400'.
      wa_idxqueue-mestyp = 'ZSTIDOCM'.
      wa_idxqueue-queueid = c_queuid.
      APPEND wa_idxqueue TO i_idxqueue.
      CLEAR wa_idxqueue.
* Production
    ELSEIF v_sysid EQ 'PXX'.
      wa_idxqueue-port = 'SAPXXX'.
      wa_idxqueue-client = '230'.
      wa_idxqueue-mestyp = 'DIRDEB'.
      wa_idxqueue-queueid = c_queuid.
      APPEND wa_idxqueue TO i_idxqueue.
      CLEAR wa_idxqueue.
      wa_idxqueue-port = 'SAPXXX'.
      wa_idxqueue-client = '230'.
      wa_idxqueue-mestyp = 'ZSTIDOCM'.
      wa_idxqueue-queueid = c_queuid.
      APPEND wa_idxqueue TO i_idxqueue.
      CLEAR wa_idxqueue.
    ENDIF.
  ELSE.
  ENDIF.
  IF i_idxqueue[] IS INITIAL.
    LOOP AT i_idxqueue INTO wa_idxqueue.
      INSERT idxqueue FROM wa_idxqueue.
      CLEAR wa_idxqueue.
    ENDLOOP.
  ENDIF.
END-OF-SELECTION.
  DESCRIBE TABLE i_idxqueue LINES v_count.
  IF sy-subrc EQ 0.
    WRITE: /10 'Total  Entries in Table IDXQUEUE is '(001),
            55 v_count.
  ELSE.
    WRITE: /10 v_count LEFT-JUSTIFIED,
            20 'Total  Entries could not update Table IDXQUEUE. '(003).
  ENDIF.
2. At the end run the program to update the IDXQUEUE table and transport the program to the different landscape. This program should be part of your cutover activity.
Regards,
Indranil

Similar Messages

  • Create a sequencial serial number for different Idoc Types

    Hi,
    we've got a legacy system which requires a serial number in a flat file for different Idoc types.  The target filename for the three different Idoc types is exactly the same, lets say: InboundFile_nnnnn.xml (where nnnnn is the sequence number)
    In the header of the file we will specify what type of file it is according to the Idoc that was received, but regardless of the idoc type, the sequence numbers for all three idoc types must be sequential.  The files are placed on the target server using a receiver ftp adapter on the central adapter engine.
    I would like to know if there is any way to store\maintain this sequence number in XI and use it accross different message mappings?
    Your response is appreciated.
    Thanks
    Rudi
    (and a merry christmas to you all

    You can create a number range object in SNRO transaction abap stack in SAP XI and use that in the mapping by connecting through JCO in XI.RFC enable Number_Get_next.
    check this for more info
    /people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i

  • Sending 2 different idoc

    Hi All,
    I have a scenario with BPM where i need to receive two different idoc.  In this when I trigger from SAP one by one IDOC1 and IDOC2 it is executing properly but in case if I use transaction WE14 it is getting stucked in the loop step in BPM and it is not coming out.  Actually the condition of the loop is infinite but designed a block in such a way this it receive IDOC2 we need to receive IDOC1.  I used the same way in standard pattern in software component SAP BASIS in which http://sap.com/xi/XI/System/Patterns in that Integration process BpmPatternCollectMessage.
      Please help me out how to solve this problem
    Regards,
    Dhil

    Hi jai,
      I am triggering the IDOC by using WE14 by giving multiple idocs.  Here if totally there 10 idocs, the 10th idoc will be IDOC2 and the rest are IDOC1. Yes i am using the option trigger immediately only.. please comment
    Regards,
    Senthil.

  • BPM could be trigger for two different IDocs

    Hi Gurus!!
    Can I configure a BPM to be triggered by one of two different IDocs? I explain my scenario to clarify the question.
    I have a requirement to do several actions with the IDoc Types MATMAS05 (Material) and CLFMAS02 (Material Characteristics).
    To do these actions I use BPM, but I have several scenarios: receive MATMAS05 and CLFMAS02, receive only MATMAS05 or receive only CLFMAS02.
    I need to configure the BPM to be triggered by MATMAS05 or CLFMAS02, somebody could guide me, please?
    I have read something about a receiver determination step on the BPM.
    Thanks and regards,
    Manuel.

    Hi All,
    I am also facing same problem. I want to create material using IDOC and characteristics value. Don't know how to proceed.
    Can any body explain in detail if possible with example code.
    Thanks and full points in advance.

  • IDoc Split to different IDocs!!!!!!!!URJENT

    Hi
    Is there any possibility to split the IDoc ?
    We have a scenario like - Header without any data - Segments with the data - trailer segment with the details of the segment count and parent idoc details.
    We received one Inbound IDoc with 20000 segments.
    While processing the IDoc, because of the huge data it is going to dump with low memory issue.
    Is there any possiblity to split the segments into seperate idocs...in WE19 we can cut down the segments and create seperate idoc but count is very high we are not able to identify the numbers count.
    Is there any other way we can process the IDoc splitting into different IDocs.
    VVR
    FICO Consultant

    Hi Vuppala,
    CAn you please help how u split the IDOC.
    I have ARTMAS IDOC and as there is huge data i need to split it.
    Can you please help
    Thanks,
    Akriti

  • Same message type and two different IDOCS need to be triggered

    Hi,
    I have two idocs with same message type,the partner profile is same.
    Please tell if there is any way to handle this situation without changing the message type.
    Please do the needful.
    Thanks,
    Nivedita

    Hi
    We can have same message type for different idoc types.
    ex:MATMAS.MATMAS01
        MATMAS.MATMAS02
        MATMAS.MATMAS03
    In the above example MATMAS is the same message type for different idoc types.
    Thanks

  • Creating Multiple different IDocs without BPM

    Hi all,
    I have a scenario in where I have a input structure and have to create multiple different  IDocs (the types of the IDocs are also different)
    For example,
    Input XML will create 5 IDocs of type A, 3 IDocs of type B, 1 IDocs of type C, no IDocs for type D and 10 IDocs for type E.
    Is this possible without BPM? This will be a complex Mapping. In BPM I am sure for every type to create one send step would be easy. But would it be more efficient?
    Thanks.

    >
    Chris027 wrote:
    > This looks promising, i'll try it.
    something from the blog might be useful for you:
    Messages that result from the split in a mapping-based message split are sent using one AE. So only adapters running on
    the AE are supported. In particular, this means that target IDOC message splits are not supported since the IDOC adapter is not
    part of the AE.

  • One message type different IDoc Types

    Hi All,
    Can we use one message type and different data types based on the requirement in PI mapping.Basically  I want to select mappings based on IDoc ...My requirement is to use different IDoc types for one message type in mapping ...will it work ?
    Thanks ,
    Vinay.

    If you will be wanting to have 1 message producing different IDOCS types  (to be meaning that not just multiple IDOCS of the same type) then this must be done via a BPM as the IDOC adapter will not be able to handle it by itself.  Have a receiver determination step in the BPM for each IDOC type - you'll then be sending each via foreach block.

  • One Java Mapping - two Different IDOCs

    Hi,
    is it possible to create 2 different IDOCs(IDOCTYP or MESSTYP different) with one Java mapping?
    thx

    Or what is more interested, when mapping is done only for first message, in my case IDOC, it is ok, if ther isn't any second message. What is also confusing, when I run whole proces, system dumps for all cases, even for one IDOC message. Trace:
    <Trace level="2" type="T">com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:44)(:main:, row=1, col=44) -> com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:44)</Trace>
      <Trace level="1" type="T">*** END APPLICATION TRACE ***</Trace>
    Error:
    xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="MAPPING" />
      <SAP:P1>unexpected end-of-file</SAP:P1>
      <SAP:P2 />
      <SAP:P3>1</SAP:P3>
      <SAP:P4>1</SAP:P4>
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>Exception CX_XMS_SYSERR_MAPPING occurred (program: CL_XMS_MAIN===================CP, include: CL_XMS_MAIN===================CM00A, line: 604).</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>

  • Different Idoc processing techniques

    Hi All,
    I am new to ALE idocs.I want to know different idoc processing techniques.
    Also what type of coding work will be there and in what coding work is required.
    Thanks
    Avi

    Moderator message - Please search before asking - post locked
    Rob

  • JMS - Different IDOC's

    Hi,
    I'm new to XI and I'm trying to integrate an existing application with an R/3 backend system.
    The applications puts messages on an MQSeries Queue in XML format.  These messages should be mapped to IDOC-structures.
    What I've done so far :
    I succesfully created a JMS connection and got a perticular message mapped to an IDOC and even got it into R/3.
    The problem :
    There are different types of messages that get onto the queue and the other messages fail because of the mapping of course.
    I hear you thinking "why not give every type of message it's own queue ?" ... The thing is that the order of the messages is important, so I really should be able to process the messages in sequence.
    Is there a way to determine the Sender Agreement at runtime ?  Based on the message content ?  Or even let te Sender Agreement be filled in by the application ?
    Tx in advance
    Tom

    hi,
    have a look at this approach:
    /people/sravya.talanki2/blog/2006/01/10/re-usable-frame-work-in-xi
    in one of my projects we did the same
    JMS with many messages by creating a java proxy
    and we did the routing based on a web page
    configuration for all of those messages
    so once they reached the XI they where with
    good namespaces etc. - it was also a generic approach
    as now every new message can be added very easily
    Regards,
    michal

  • Mapping issue: Two different IDOC P19 segment to one flat file line

    Hello,
    Scenario: For each P01 segment (without uepos) in an order idoc I want to create one line in a plain text file.
    Problem: One P01 segment has two P19 segement with different qualifiers. I want to map both P19.IDNTR (with different qualifiers) fields to the same record in my plain text file.
    How can I do this?
    My "if statement" does noet work. I check the qualifier in the P19 segment. But when one field in the record of the plain text is filled with an P19.IDTNR the second P19.IDTNR field is empty.
    Please advice.
    Best Regards,
    Erik van Lisdonk

    Erik,
    you should get both values if you change the Context of your INPUT-Fields one level higher (for the IDTNR and for the Qualifier that is checked in the IF-statement).
    The Context needs to be set to P01 for all fields and I assume it is set to P19.
    Greetings
    Stefan Hilpp

  • How to send two different IDocs to SAP without BPM

    Hi Experts,
    I am working on jms to IDoc scneario,my requirement is to convert one JMS messge in to 2 IDocs(DELVRY,MATMAS) to ECC , i searched in SDN to achieve this requirement without BPM, i found one blog,but its saying its not possible to use multi mapping scenarios with out BPM in IDoc
    what is the best approch to achieve my requirement without BPM.
    Regards,
    James

    is it true that multi mapping not going to support IDoc scenarios??
    Yes it is true that IDOC does not support multi-mapping....this can be proved if you look into the help section which shows the list of adapters supporting multimapping....IDOC is missing from that list....do not get confused between Idoc Multimapping and IDOC Bundling.....IDOC bundling means bundling IDOCs of same type...however you are looking for IDOCs of different types.
    Regards,
    Abhishek.

  • Different IDOCs

    Hi All,
    I am getting a file from Legacy. I want to send this to SAP. So I have imported my IDOC into XI. Now in my IDOC I have three segements. In the second segment I have three fields. This three fields are mapped from File. Now if any one of the fields in this three changes then I have to post it is a new IDOC. Can anybody tell me how to proceed for this?
    korobee

    Korobee,
    If I understand this correctly you want to create multiple IDocs of the same type when the file contains different values in a specific field.
    First of all you need to enable the mapping of multiple IDocs in you message. In order to do so, get the dtd/xsd for the IDoc (from transactio we60 in SAP R/3 or http://ifr.sap.com) and change the maxoccurs attribute of the IDOC node to unbounded. Import this dtd/xsd in the Repository and use this in the message mapping. Leave the interface mapping as it is. Note that the IDoc adapter does support multiple IDOC segments, it's just the imported IDoc that doesn't show it.
    In your message mapping you can now create multiple IDocs by mapping the IDOC node as follows, where ff1 is the field from the flat file with the changing value:
    ff1 (Context 'root') -> SplitByValue (On Changed value) -> CollapseContext -> IDOC.
    Hope this helps,
    Koen

  • Posting multiple idocs of different IDOC/message type

    Hi! ALL
    It would be very helpful if you please provide your valuable suggestions...
    I have 4 different file to IDOC mappings and i am trying to post all the 4 using the same interface determination....out of the 4 ....2 IDOC are of the same message type...this is throwing out an error...
    <SAP:Code area="IF_DETERMINATION">CX_ID_PLSRV</SAP:Code>
      <SAP:P1>Inbound interface was found more than once (for same sender and receiver) for outbound interface http://ck.com/xi_com/Ship.MI_SHIP</SAP:P1>
      <SAP:P2 />
    I am trying to use 3 File IDOC mappings in the same Interface determination, for example has the following inbound receivers in the interface determination:
    DESADV
    WMMBXY
    DESADV.........I am using DESADV twice as the Message Mapping is different for each of the inbound DESADV idoc
    Please, let me know...if you were able to post similar message type IDOC in the same inteface determination.
    Your help is greatly appreciated....
    Thank you,
    Patrick
    Thank you

    Hi! Bill
    I am using 3 message interface(in 1 interface determination) and i am able to post 3 idocs....the problem only arises when the 4th idoc is of the same message type as any of the first 3.
    I am trying to exclude the 4th mapping.....b'cos the issue with similar message/idoc's type issue.....but incase u have a solution let me know...here is an example
    Eg:
    DESADV
    WMMBXY
    SHIP...is posting fine!!
    But...problem with..posting...
    DESADV
    WMMBXY
    SHIP
    DESADV(4th same as first)
    And again as mentioned...each have there own message mapping(MI) and interface mapping(IM)....and are in the same interface determination...as outbound interface and BS is the same for and in the inbound as u know is IDOC..R3.
    Thank you for your response....
    Patrick

Maybe you are looking for

  • Trouble with Drawing Markups in Acrobat Pro XI

    Hello all and thank you for any help that comes out of this. I use Acrobat XI for several forms for work.  They are timesheets.  I created these forms from another PDF that was given to me.  Part of the use of these forms involves adding Drawing Mark

  • How many maximum records can be stored in One IDoc

    Hi experts!!                    Please let me know what is the maximum capacity of an IDoc. i.e., How many maximum records can be stored in an IDoc? ex: abc,9807,bangalore       xyz,8976,mysore....... here two records are thr...if u have one lack rec

  • Videos glitch - videos look weird, don't play

    I can't seem to properly play videos on my iPhone. These are videos which I've synced from iTunes. Every time I play a video, whether it be an episode of The Office or an SNL skit, there is this weird bar of color that blinks across the screen, and t

  • Generate build_config.xml / configuration equivalent to Flash Builder

    I develop an AIR app where we code/debug within Flash Builder but when we generate publicly downloadable builds, it is done via command-line scripts. I'm currently seeing a bug which shows up in the command-line builds but that I cannot reproduce ins

  • [solved]Cannot detect SD card after update

    Hello all, I frequently mount an SD card using: $ sudo mount -t vfat -o uid=me,gid=users /dev/sdd1 /media/SD However, after my latest pacman -Syu, my SD card isn't being detected by fdisk -l. I tried hooking up an external USB SD card reader, but the