Find the IDOC occurences?

Hi,
   i have a problem to find the second the occurences of IDOC value.
Ex: E1BPE1MATHEAD[01]-field.
     E1BPE1MATHEAD[02]-field.
i need to pass from source to target only a Second OCCURENCE.E1BPE1MATHEAD[02]-field in mapping. 
       so please tell me how to find second occurences of idoc in message mapping and how to map it?

Hi Suresh,
Create a java function with Cache Type "Context".
with One Argument(say a) and a Result(sau result).
Inside the function use ResultList functions
result.addSuppress(); (this will supress the occurence)
and
result.addValue(a[0]); (this will add the occurence)
to add or supress the occurences of the incoming string array(E1BPE1MATHEAD in this case).
in this case when you need 2nd instance, you need to
do result.addSuppress() only once in your code
and to add the occurance do result.addValue(a[0]).
do the following mapping
E1BPE1MATHEAD -> your Function name -> Target
E1BPE1MATHEAD-field -> Target-field
for additional help go to the link below
http://help.sap.com/saphelp_nw04/helpdata/en/f8/2857cbc374da48993c8eb7d3c8c87a/frameset.htm
Regards,
Vijay

Similar Messages

  • How can we find the Idoc number which posts the material document in SAP

    Hi All,
    How can we find the Idoc number which posts the material document in SAP. We could not able to find the IDOC number from the material document which was posted by Idoc.
    Thanks
    Chandru

    Hi,
    In MIGO you can go to service of object(Just above show overview) and check 5th option workflow you will find the idoc number.
    regards
    suresh

  • How to find the IDOC for the archived message in integration engine

    Hello experts
                              In my outbound scenario (Idoc to file), I have a message id got processed from integration engine (SXMB_MONI) but failed in adapter engine (RWB) on 1week back, The same message archive in SXMB_MONI but i found same message in adapter engine.
    My question is how to find the archive message IDOC num
    We can't find in adapter engine it will show only (sender service, receiver service and interface date and time as well and receiver structure in message content tab) but not idoc no,
    Kindly provide the solution for the issue, Is there any alternative to find the idoc?
    I can search with partner in sap side but i can get lot of idoc's
    Thanks & Regards
    Rajashekar

    > We can't find in adapter engine it will show only (sender service, receiver service and interface date and time as well and receiver structure in message content tab) but not idoc no,
    >
    > I can search with partner in sap side but i can get lot of idoc's
    Hi,
    If solution given by experts in above replies doesn't work then you can try below method.
    What you can do is, take some unique values from message content tab (which came in some specific segment from IDOC)
    Now in R3 use tcode WE09 and set the dates when this was processed. Set other filter criteria as much as possible e.g. direction, idoc basic type, port, partner etc and at the bottom you can "Fast search mode" their you give the segment name and it's value.
    This will help you get you IDOC.
    Regards,
    Sarvesh

  • Unable to find the IDOC number in WE02

    HI All,
    I have executed an outbound program from SM37 and i can see that job got finished in the log.
    but when i check the spool, it doesnt contain any list and also i am unable to find the Idoc number in WE02.
    I am not clear in this. Please expalin me in detail.

    Hi there,
    Go to Sales order screen, In the main screen below the command line, one button will be there " Services for object" Click that...... It will open one tool bar.... on that tool bar one icon will be there with thee arrow ..... Click on that,,,,, and here you can see the idoc number....
    Thanks,
    Raja

  • To find the IDOC number with SOBID information

    Hi Experts,
      I have an employee information like VARYF, SEQNR, AEDTM, UNAME, ITXNR, SCLAS, SOBID and PROZT.
    Some outbound IDOC number has stopped its process to the SRM system.
    I want to know thw IDOC number.
    Please help me in finding out the transaction to find the IDOC number with the SOBID or OBJECTID information.
    Thanks in Advance.
    Ramya Sekar

    Look at transaction WE09.
    Other IDOC information can be found through WEDI.

  • How  can i find the IDoc's with errors

    Hi gurus,
    How to find the errors in Idocs and How to solve it?How can i rectify the errors?
    Thanks in advance.
    kumar.

    Hi Kumar,
    You can goto WE02 T'code and give the IDOC number (check date range).  Click on Status Records.  It shows the exact error. 
    If IDOC fails it is gives your the status 51 otherwise it gives you the status 53.
    Assign points if useful
    ~Rajesh

  • Finding the IDOC

    HI Experts,
    I have IDOC number which is generated in ECC system and its 03 status in the same.
    I am also checked the queues there is no struck up any where.
    Based on the IDOC number how we know the message id in PI system?
    I checked in IDX5 with the IIDOC number but it showing "no messages are passed".
    Help me to find the MESSAGE ID for that particular IDOC.
    Thanks & Records
    Dileep Kumar P

    Hi Dileep,
    The first check point should always be SM58 of ECC System, you can enter the RFC destination name and wide range for date selection to check any stuck entries.
    If nothing is found in the ECC System then in PI System goto IDX5 enter the Idoc number along with the Date range you should get the Message ID.
    NOTE: Important point to check here is, even if you enter the IDOC number in the IDX5 you need to mention the date-time range correctly (i.e. it should include the sent time of IDOC) otherwise you will not get the results.
    Also check your retention period of successful messages in PI System, if messages is older than your retention period then also you won't get any result in IDX5.
    Regards
    Vj

  • Finding the idoc number for material document

    Hi,
    I have a material document which was created by an idoc. How do I know the idoc number that has created this material doc?
    We have lots of idocs coming from external systems which do GI, GR, transfer postings etc. With the material document , not able to trace which idoc created it.
    Regards

    Hi Ramees,
    "Refer the Tables MKPF / MSEG inorder to get the IDOC no's for Material Docs. "
    But how can it be found for Transfer posting documents where no PO history exist !!
    Alex.

  • Find the idoc segment link with Sap Table

    Dear Abaers,
    I am new to Idoc. i have one Idoc (Orders01) for creating sales order.
    I had seen the t-codes WE 30 and WE 60 to know the field description.
    The fielddescription shows names like name1 name2 ort01 etc.
    i want to know what are the db tables involved for that particular idoc segment.
    Thanks in Advance,
    Arati

    Hi Arati,
    to get the description name:
    WE30 transaction and check the segments name available.
    With the segment name, go to WE31 and check the fields used and column 'Data element'.
    Double-click in data element (or inform in se11), you have the description value of the field.
    About the tables involved:
    Click in 'Where use list' os this data element.

  • Finding out Idoc number of the Invoice List

    Hi!
    how to find out Idoc numberr if I have number of Invoice List?
    For example, I have number of Invoice List for checking it in tcode VF22, but how to get Idoc number of the Invoice List in order to check it in WE02?
    Will reward,
    Mindaugas

    Hi,
         Use NAST with the invoice to get the latest record for that output type..
    use the table CMFP to get the IDOC number..The combination is
    NAST-CMFPNR = CMFP-NR..
    Then in the column CMFP-MSGV1 you can find the idoc number
    <b>Reward points</b>
    Regards

  • How to find out the Idoc number triggered for any material transfer frm SAP

    Hi Folks,
    Can any body let me know How to find out the Idoc number triggered for any material transfer frm SAP?
    Do we have any navigation for that in MM03?
    Thanks,
    SPMD.

    Hi Shabbirmdpasha,
    If you know the user name then you can find the idoc numbers created by that user. But the problem here is it not only gives the material it gives all the idocs created by that user. Go to SE16 --> table name EDIDS --> here you can fill the approximate date and in UNAME give the userid and execute. This will give all the idocs created by that user. I know it is only a partial solution.
    Also would suggest to post the same in abap forums for more answers:
    ABAP Development
    Regards,
    ---Satish

  • How to find out the IDOC number(urgent)

    hello every one,
    i had recived all the data to BW from R/3 but the request is still running in the system
    for this <b>i need to manually release the IDOC for BD87</b>
    can any one please help me <b>How to find out the Idoc Number in R/3 and In BW for the particular load</b>
    Regards
    Sandy

    hi Siva,
    thanks for ur valuable answer,
    it is showing IDoc num for the succeeded one....
    my present error is Data pack 1 got error and Datapack 2 was success,
    their 3IDocs are their in detail tab all are success
    as per my knowledge it will for the Data pack 2 and it is showing 3different
    how can i find the Idoc which was struck .....
    that need to process manually in BD87..
    please suggest if i am wrong
    Regards
    Sandy

  • Unable not find the monitoring object(idoc monitoring ) in BPmon

    Hello Guys,
         As part configuration  of IDOC monitoring in BPmon configuration ,while i am creating monitoring object for IDOC monitoring (solman_workcenter->Business process operations ->setup Business process monitoring  -->selected  the solution --> business scenarios -->
    As mentioned above i could not able to find the IDOC monitoring template  in the droup down list
    Components level on manage system:-
    ST-PI       2008_1_710 SP 08
    ST-A/PI   01Q_731 SP2
    I have done the load monitoring definition by selecting respective local component and clicked on load monitoring definitions 
    Please help me on resolving the issue.
    Regards,
    Pavan

    Hello Calvin van der Walt,
    Please upgrade ST-PI & ST-A/PI component to latest level.I resolved my issue by doing ST-PI & ST-A/PI component upgarde.
    I had raised an OSS message eith SAP on this isssue and SAP has asked us for ST-PI & ST-A/PI component upgarde.
    So please go with ST-PI & ST-A/PI component upgarde it will resolve your issue.
    Regards,
    Pavan

  • Trying to determine the last occurence of a number within a word string.

    Hi All,
    I am trying to find the last occurence of a number within a string. I have had a quick look at the Java Tutorial and know about lastIndexOf and substring. The thing is I have to test for the existance of the numbers 0-9 within a product code that typically looks like this:
    s1_14G12B
    s1_17G1BA
    s2_24GD
    The only part of the above strings that I am interested in is the letter(s) that follow the very last number, so in the case of those codes presented above, I would like to extract the following:
    B
    BA
    D
    I have written some code that performs a similar operation:
    public class FindPriceCode
      private String priceCode;
      private String[] numberValues = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9"};
      public FindPriceCode()
        priceCode = "s2_71G4BA";
        for(int i=0; i<numberValues.length; i++)
          int location = priceCode.lastIndexOf(numberValues);
    System.out.println("Character " + numberValues[i] + " found at position: " + location);
    public static void main(String[] args)
    FindPriceCode myPriceCode = new FindPriceCode();
    ...finding the location of numberValues string within the given example code. I am now at a loss as to how I can determine the location of the last number occurence (moving right to left) and then build a substring from that number. Any help will be greatly appreicated.
    Thanks
    David

    Hello,
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class CutNumberTest extends JFrame implements ActionListener {
         private JTextField input= new JTextField(10);
         private JTextArea result=new JTextArea(10,10);
         char[]numbers=new char[]{'0','1','2','3','4','5','6','7','8','9'};
         public CutNumberTest() {
              super("CutNumberTest");
              setDefaultCloseOperation(DISPOSE_ON_CLOSE);
              JButton cutButton = new JButton("cut number");
              cutButton.addActionListener(this);
              JPanel topPanel=new JPanel();
              JLabel label=new JLabel("Please enter price-code:");
              topPanel.add(label);
              topPanel.add(input);
              topPanel.add(cutButton);
              getContentPane().add(topPanel, BorderLayout.NORTH);
              getContentPane().add(new JScrollPane(result));
              pack();
              setLocationRelativeTo(null);
         public void actionPerformed(ActionEvent e) {
              char[] code=input.getText().toCharArray();          
              int counter=code.length;
              boolean lastNumFound=false;
              while(!lastNumFound && --counter >= 0)
                   lastNumFound=isNumber(code[counter]);
              result.append(lastNumFound ? "result: "+input.getText().substring(counter+1)+"\n" : "No number found!\n");
         private boolean isNumber(char chr){
              boolean isNumber=false;
              int counter=-1;
              while(++counter < numbers.length && !isNumber)
                   isNumber=numbers[counter]==chr;
              return isNumber;
         public static void main(String[] args) {
              new CutNumberTest().setVisible(true);
    }//copy/paste:
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class CutNumberTest extends JFrame implements ActionListener {
         private JTextField input= new JTextField(10);
         private JTextArea result=new JTextArea(10,10);
         char[]numbers=new char[]{'0','1','2','3','4','5','6','7','8','9'};
         public CutNumberTest() {
              super("CutNumberTest");
              setDefaultCloseOperation(DISPOSE_ON_CLOSE);
              JButton cutButton = new JButton("cut number");
              cutButton.addActionListener(this);
              JPanel topPanel=new JPanel();
              JLabel label=new JLabel("Please enter price-code:");
              topPanel.add(label);
              topPanel.add(input);
              topPanel.add(cutButton);
              getContentPane().add(topPanel, BorderLayout.NORTH);
              getContentPane().add(new JScrollPane(result));
              pack();
              setLocationRelativeTo(null);
         public void actionPerformed(ActionEvent e) {
              char[] code=input.getText().toCharArray();          
              int counter=code.length;
              boolean lastNumFound=false;
              while(!lastNumFound && --counter >= 0)
                   lastNumFound=isNumber(code[counter]);
              result.append(lastNumFound ? "result: "+input.getText().substring(counter+1)+"\n" : "No number found!\n");
         private boolean isNumber(char chr){
              boolean isNumber=false;
              int counter=-1;
              while(++counter < numbers.length && !isNumber)
                   isNumber=numbers[counter]==chr;
              return isNumber;
         public static void main(String[] args) {
              new CutNumberTest().setVisible(true);
    Regards,
    Tim

  • How to split the IDOCS based on document number change whit out BPM

    Hi all,
    Thanks,for giving the responce..
    Scenario:File to IDoc.
    Problum1 : How to Split the IDocs based on document number change in the source file with out BPM.My file contains document numbers like
    20000092
    20000092
    20000092
    50000050
    50000050
    50000065
    I want 3 IDocs in target system.i.e 1 for 20000092,20000092,20000092
                                                       2 for 50000050,50000050
                                                       3 for 5000006
    By using external definations i am getting 6 IDOCs insted of 3.
    Problum 2:Is there any chnges/modifications in Directory when we are using external definations.
    Could u plz provide me the step by step process(Repository/Directory) with using of external definations.
    Thanks in advance.
    Regards,
    KP

    HI,
    for this no need of BPM.
    You can think of Idoc bundling concept to acheive this-just you need to do the external definition to change the idoc occurence
    /people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
    to achieve for each document no, one idoc, you can write small user defined function in the mapping with context handling you an achieve this.
    For this e.g
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6bd6f69a-0701-0010-a88b-adbb6ee89b34
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/877c0d53-0801-0010-3bb0-e38d5ecd352c
    Regards,
    Moorthy

Maybe you are looking for

  • Formula column right or wrong

    hi frds i just want to know whether this formula colum in report builder is right or wrong function CF_1Formula return Number is X NUMBER; begin SELECT sum(ABS(nvl(TRAN.QUANTITY,0))) INTO X FROM RCV_TRANSACTIONS TRAN,RCV_SHIPMENT_HEADERS RCV,PO_LINES

  • Htmlconvertor gives "unterminated string" in generated Javascript?

    The code generated by the htmlconvertor.exe program gives the following: however, IE says "unterminated string or constant on this line, particularly the NAME="VirtualVisIR" [the culprit]. Has anyone else had this problem - what is the solution? Than

  • How translate Subject and body for a e-mail task to different languages ?

    We have several tasks with their corresponding subject and body text in a workflow. We would like to know if there is an easy way to translate all of them to several languages ? Thanks in advance. Juan.

  • My photos wont enlarge when i double click on them

    Some of my photos won't enlarge in iPhoto despite that being the setting in preferences for the double click.

  • Software doesn't work on mac

    hi, i just got an airbook. i have never had a mac before. it is nice, but my language software ( digital publishing) doesn't work on mac, but i don't want xp or vista on my computer. are there any patches or other software which could make my languag