Read IDOC WMMBID02 information and compare inventory data with SAP

Hi All,
Here is an explanation of the issue:
I need to read the data from an inbound IDOC, status 64, of standard type WMMBID02 and message type WMMBXY. I do not want to post the IDOC, but only read the IDOC information which is mainly the material number, batch, status(INSMK), quantity and unit. This data I have to compare with SAP data and see if it is same for the selected material numbers. Now to read and process the inbound IDOC we have a program RBDAPP01 (BD20 Transaction) which calls the process code WMMB (WE42 transaction) which in turn calls the function module L_IDOC_INPUT_WMMBXY. This FM posts the IDOC. I have created a function module with the same import, export and tables parameters like this FM and have attached it to a custom process code ZWMMB. This function module should just read the data of the IDOC and put it in the table TB_IDOC_DATA like EDIDD (IDOC data records). I then loop into this table, extract SDATA and split it into the 3 segments of WMMBID02 and then extract my required data, MATNR, CHARG, INSMK, MENGE & MEINS.
My Question:
How do I trigger the process code ZWMMB so that I can read the IDOC data when it is fired (status 64), just like program RBDAPP01. Is there any standard code that can be copied and modified or how to do it???
I have tried to be very clear with the question, please reply if the question is not clear. If I am clear, please help
Thanks Anirban

I am able to read the contents of the IDOC, but I need to run the FM when I fire the IDOC of message type ZWMMBXY. I have created a custome FM which will behave as a stndard FM for inbound IDOC processing.

Similar Messages

  • Comparing 0FI_GL_14 data with SAP R/3

    Hello Experts,
    Can anyone tell me how to comapare the data of 0FI_GL_14 datasource with SAP R/3 ????
    Will the data match with FAGLB03 or FBL3N or FS.01 or F.01 ?????
    Regards,
    Romil K. Vaghela

    Hi romil,
    If you want to check the balance for any account at perticular date
    then you have to read all the line item amount before that date for that account.
    So you can check it by using 0Fi_GL_14 datasource dta
    filter with company code, GL account and Posting date LE balance date.
    Regards,
    Ashish

  • OSS functionality and synchronization of data with SAP SOLMAN 4.0

    Hi experts,
    I would like to enable the OSS functionality in our SAP SOLMAN 4.0.
    I need a document for the settings to activate the OSS functionality.
    I am looking forward to hearing from you,
    Thanks alot.
    Tolga AKINCI

    If your system has more than one IP/multiple network cards, take care, that not the wrong addresse is sent to OSS.
    We have had quite big trouble last month, when our configuration in OSS got overwritten by wrong IPs, the system was unaccessible and thus support could not access our systems and eventually payroll run one day later and ~ 600 people were angry.
    Our connection was working the last 10 years so nobody came to the idea, that SolMan is the root cause. Since there´s no option to choose, which IP is finally sent to OSS but only a "manual coding" (note 1050693 - Several IP addresses when you synchronize system data) we decided finally to delete all systems/solutions from SMSY.
    So be VERY careful what you synchronize.
    @Rüdiger: I appreciate your enthusiasm, but I got hit just too often with that SolMan things, spent hours and hours because SAPs "labour" environments are clean and tidy. I can just warn people out of my experiences to use too much "automatisms" before any harm is done (and yes, we got substantial harm, not only virtually and in the mind but also $$$).
    Markus

  • Inventory management and physical inventory data transfer

    hi all,
    can anyone plz povide me with inventory management and physical inventory data transfer tutorial or link.
    points are guarented.
    rgds

    The information behind the blue-button for MI34, MI38 (as you mentioned) does not have enough detail. It's basically one-page. Is there another instructional source available?  How is the logical file MMIM_PHYSICAL_INVENTORY_DOCUMENTS tied to the physical, can you clarify? Not sure how to determine where the sequential file being processed needs to be located. Thanks!

  • How can i read the text files and buffer the data in Vector?

    hi. I have been running into this problem for days, but with no luck and losing right direction.
    The problem is : I am trying to read a text file and buffer the data into a
    Queue for each user.
    the sample text file is as below:( 1st column is timestamp, 2nd is user_id, 3rd is packet_id, 4th is packet_seqno, 5th is packet_size)
    0 1 1 1 512
    1 2 1 2 512
    2 3 1 3 512
    3 4 1 4 512
    4 5 1 5 512
    5 6 1 6 512
    6 7 1 7 512
    7 8 1 8 512
    8 9 1 9 512
    9 10 1 10 512
    10 1 2 11 512
    11 2 2 12 512
    12 3 2 13 512
    13 4 2 14 512
    14 5 2 15 512
    15 6 2 16 512
    16 7 2 17 512
    17 8 2 18 512
    18 9 2 19 512
    19 10 2 20 512
    20 1 3 21 512
    21 2 3 22 512
    22 3 3 23 512
    23 4 3 24 512
    24 5 3 25 512
    25 6 3 26 512
    26 7 3 27 512
    27 8 3 28 512
    28 9 3 29 512
    29 10 3 30 512
    30 1 4 31 512
    31 2 4 32 512
    32 3 4 33 512
    33 4 4 34 512
    34 5 4 35 512
    35 6 4 36 512
    36 7 4 37 512
    37 8 4 38 512
    38 9 4 39 512
    39 10 4 40 512
    40 1 5 41 512
    41 2 5 42 512
    42 3 5 43 512
    43 4 5 44 512
    44 5 5 45 512
    45 6 5 46 512
    46 7 5 47 512
    47 8 5 48 512
    48 9 5 49 512
    49 10 5 50 512
    50 1 6 51 512
    51 2 6 52 512
    52 3 6 53 512
    53 4 6 54 512
    54 5 6 55 512
    55 6 6 56 512
    56 7 6 57 512
    57 8 6 58 512
    58 9 6 59 512
    59 10 6 60 512
    60 1 7 61 512
    61 2 7 62 512
    62 3 7 63 512
    63 4 7 64 512
    64 5 7 65 512
    65 6 7 66 512
    66 7 7 67 512
    67 8 7 68 512
    68 9 7 69 512
    69 10 7 70 512
    70 1 8 71 512
    71 2 8 72 512
    What I wanna do is to read all the data above and buffer them in a queue for each user( there are only 10 users in total).
    I already created a class called Class packet:
    public class packet {
        private int timestamp;
        private int user_id;
        private int packet_id;
        private int packet_seqno;
        private int packet_size;
        /** Creates a new instance of packet */
        public packet(int timestamp,int user_id, int packet_id,int packet_seqno, int packet_size)
            this.timestamp = timestamp;
            this.user_id=user_id;
            this.packet_id=packet_id;
            this.packet_seqno=packet_seqno;
            this.packet_size=packet_size;
    }then I wanna to create another Class called Class user which I can create a queue for each user (10 users in total) to store type packet information. the queue for each user will be in the order by timestamp.
    any idea and sample code will be appreciated.

    Doesn't sound too hard to me. Your class User (the convention says to capitalize class names) will have an ArrayList or Vector in it to represent the queue, and a method to store a Packet object into the List. An array or ArrayList or Vector will hold the 10 user objects. You will find the right user object from packet.user_id and call the method.
    Please try to write some code yourself. You won't learn anything from having someone else write it for you. Look at sample code using ArrayList and Vector, there's plenty out there. Post in the forum again if your code turns out not to behave.

  • When I try to install WinXP using bootcamp, the iMac will not recognize the CD after it has already read all the information and is ready to begin installation. What is the problem?

    When I try to install WinXP using bootcamp, the iMac will not recognize the CD after it has already read all the information and is ready to begin installation. What is the problem?

    If your on 10.6.8 like you should be for security/stability updates, somewhere along the line a later Bootcamp version was issued and only supports Win 7.
    You can read my post here for a alternative solution, running a virtual machine software
    https://discussions.apple.com/thread/3772839?tstart=0

  • How to extract Inventory data from SAP R/3  system

    Hi friends How to extract Inventory data from SAP R/3  system? What are report we may expect from the Inventory?

    Hi,
    Inventory management
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/how%20to%20handle%20inventory%20management%20scenarios.pdf
    How to Handle Inventory Management Scenarios in BW (NW2004)
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328
    Loading of Cube
    •• ref.to page 18 in "Upgrade and Migration Aspects for BI in SAP NetWeaver 2004s" paper
    http://www.sapfinug.fi/downloads/2007/bi02/BI_upgrade_migration.pdf
    Non-Cumulative Values / Stock Handling
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/93ed1695-0501-0010-b7a9-d4cc4ef26d31
    Non-Cumulatives
    http://help.sap.com/saphelp_nw2004s/helpdata/en/8f/da1640dc88e769e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/80/1a62ebe07211d2acb80000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/80/1a62f8e07211d2acb80000e829fbfe/frameset.htm
    Here you will find all the Inventory Management BI Contents:
    http://help.sap.com/saphelp_nw70/helpdata/en/fb/64073c52619459e10000000a114084/frameset.htm
    2LIS_03_BX- Initial Stock/Material stock
    2LIS_03_BF - Material movements
    2LIS_03_UM - Revaluations/Find the price of the stock
    The first DataSource (2LIS_03_BX) is used to extract an opening stock balance on a
    detailed level (material, plant, storage location and so on). At this moment, the opening
    stock is the operative stock in the source system. "At this moment" is the point in time at
    which the statistical setup ran for DataSource 2LIS_03_BX. (This is because no
    documents are to be posted during this run and so the stock does not change during this
    run, as we will see below). It is not possible to choose a key date freely.
    The second DataSource (2LIS_03_BF) is used to extract the material movements into
    the BW system. This DataSource provides the data as material documents (MCMSEG
    structure).
    The third of the above DataSources (2LIS_03_UM) contains data from valuated
    revaluations in Financial Accounting (document BSEG). This data is required to update
    valuated stock changes for the calculated stock balance in the BW. This information is
    not required in many situations as it is often only the quantities that are of importance.
    This DataSource only describes financial accounting processes, not logistical ones. In
    other words, only the stock value is changed here, no changes are made to the
    quantities. Everything that is subsequently mentioned here about the upload sequence
    and compression regarding DataSource 2LIS_03_BF also applies to this DataSource.
    This means a detailed description is not required for the revaluation DataSource.
    http://help.sap.com/saphelp_bw32/helpdata/en/05/c69480c357354a8846cc61f7b6e085/content.htm
    http://help.sap.com/saphelp_bw33/helpdata/en/ed/16c29a27db6e4d81a015be8673eb80/content.htm
    These are the standard data sources used for Inventory extraction.
    Hope this helps.
    Thanks,
    JituK

  • "You can't compare a date with a number" in a formula that worked in Excel

    I opened in Numbers an invoice file which was created in Excel. Formula returns hours worked. It has an "if" condition for the date field. I am assuming that that is the reason I get this "You can’t compare a date with a number because their data types are different." What do I do?
    Formula reads =IF(SUM(A11)>0,(D11−C11),"") where A11 is a date and D11- C11 are times, ie 4PM and 5PM
    Message was edited by: iamzoran

    Jerrold Green1,
    I agree with your words about using Sum with a single cell [have no idea why the "creator" of the file did that]; same for the parentheses enclosing subtraction. Yet cleaning it up as you showed me [=IF(A11>0,D11−C11,"") ] I got the same comment
    "You can’t compare a date with a number because their data types are different."
    Makes me think that t quinn is on to something with his "think the issue is with the expression ">0". Could it be that >0 is the number referred to and <>"" and ISBLANK are not numbers?!
    z
    PS: I am so happy that I am able to use Spelling and Grammar Checker with Safari on these posts. I was born and raise in old Yugoslavia and I use the Checker with all my emails etc and its a life saver. hahaha

  • IDOC Type to Create Continous Inventory Document in SAP

    Can someone send me the IDOC type to Create Continous Inventory Document in SAP and to post the Inventory Count.

    Jose,
    If you are talking about the Physcial Inventory cound the
    Message Type :  MATERIALPHYSINV_COUNT
    IDOC Type : MATERIALPHYSINV_COUNT01.
    Regards,
    Ravi
    Note : Please mark the helpful answers

  • Comparing AWR data with baselines.

    Hello,
    I am studying AWR, which will be used in our project for performance analysis.
    My requirement is to create a baseline of load between 2 snapshots during normal system load. We perform load/stress testing before final deployment. We are planning to take snapshots before and after load/stress tests. I want to compare the performance of instance during load/stress test with that of baseline performance.
    Oracle provides package DBMS_WORKLOAD_REPOSITORY for different functions of AWR. It provides function CREATE_BASELINE function for creating baseline. But in report generation function AWR_REPORT_HTML or AWR_REPORT_TXT no parameter is specified for comparing it with the baseline.
    Is it possible to compare AWR data with baseline, during report generation? Or currently Oracle supports only baseline creation and dropping that baseline. It can not be used for performance comparison.
    Thanks,
    Shailesh

    Hi,
    Take a look on the note: 543188
    With rgds,
    Anil Kumar Sharma .P
    Kindly Assign the points to the helpful answers.
    Message was edited by: Anil Kumar Sharma

  • How to compare Sale data with Previous data

    Hi Guys,
        Any one tell me how we will compare Sales data with Last year Sale data. Is there any T.Code or any kind of Report in the SAP. If available please suggest the same.
    Thanks & regards,
    Naveen Bhatia

    Hi Naveen,
    Did yo ucheck t-code SD01
    Regards
    Rohit.

  • Merging  Inventory Data With Other Data

    Dear Experts,
    I have a requirement where in i am trying to combine Inventory Data with data from other datasource (0CO_PC_ACT_05).
    I have designed the Bex query from both the sources. Now i have tried to merge the data at BO level by merging dimesions
    plant and material. It works fine for small data set  but there is performance issue as we have huge inventory data of more than 15 years.
    Kindly suggest me the other methods through which i can merge the data.
    Thanks ,
    Sumit

    Hi! Rajesh,
    The input for Inventory Query is Plant,calender date,storage location, material type.
    For Material Ledger query the input is fiscal year/period and plant.
    I have merged the dimensions Plant and material at BO level.
    Thanks
    Sumit

  • How to delete the sales org information from BP Master Data in SAP CRM 5.0

    Hi Guruu2019s
    How to delete the sales org information from BP Master Data in SAP CRM 5.0
    Thanks...
    Mahesh Pasupunuri

    Hello
    There is a report attached to [SAP Note 725857|https://service.sap.com/sap/support/notes/725857] that performs the deletion.
    Regards
    Joaquin

  • How to compare current date with past date

    Sample code for comparing current date with past date
    i dont want to Calender.set method to compare it.
    How can i do it?

    PLEASE stay with ONE thread:
    http://forum.java.sun.com/thread.jspa?threadID=5143991&tstart=0

  • My iphone is locked how i can know with which id i can unlock it .tell me any web site where i put some information and that tell me with which id i can unlock it?

    my iphone is locked how i can know with which id i can unlock it .tell me any web site where i put some information and that tell me with which id i can unlock it?

    http://support.apple.com/kb/PH13695

Maybe you are looking for

  • My PC broke down, is it possible to still upgrade the ios without loosing everything on the phone?

    Hello, My PC broke down. So my old Itunes (mp3s) and what not are now only on my phone and not my pc. Im affraid that if i try to upgrade my phone i will losse everything on the phone, music,photos and all that. Is there some way to "restore" itunes

  • How do I move photo's to and from iphone.

    L.S. Hello everybody last time when i needed help i got some good response so I thought lets try that again. It seems(looking at other fora) I am Not the only person with this problem but so far I havn't found the solution. Here is my problem. When I

  • Using java function in select statement

    Hi, I am trying to use java function in select statement. public class ClassA{      private static String MyConst = "foo";      public static String functionA(){           return MyConst; in my query I have: select      ClassA.functionA() AS id,     

  • Business Event ORACLE.APPS.PER.API.ASSIGNMENT.UPDATE_EMP_ASG_CRITERIA

    Hi, According to Document id 1402385.1 , I have subscribed the business event ORACLE.APPS.PER.API.ASSIGNMENT.UPDATE_EMP_ASG_CRITERIA with a synchronous subscription with a phase 99. It is calling an extension which in turn calling hr_assignment_api.u

  • Changing the label of 'Catalog'

    Hi In answer page and exactly in the left side where we have "Catalog/     Dashboards     /Manage Catalog and folders" is it possible to change the label of "Catalog" to something else I tried to change OracleBI\web\msgdb\customMessages\catalogsysmes