Which function module i should use in mereq001 for warning message

hi all,
when creating purchase requistion(me51n) with item and plant and material etc.when we enter different plant  for the second item which is not there in first item. we should get the warning message in the popup
for this i have used
fuction module EXIT_SAPLMEREQ_005
written the following code.
  INCLUDE ZXM02U05                                                   *
CHECK SY-TCODE = 'ME51N'.
TABLES MARC.
DATA : BEGIN OF I_MARC OCCURS 0,
       WERKS LIKE MARC-WERKS,
       BNFPO LIKE EBAN-BNFPO,
       END OF I_MARC.
DATA : I_WERKS LIKE MEREQ_ITEM-WERKS.
read table I_MARC index 1.
if sy-subrc <> 0.
IF I_MARC-WERKS IS  INITIAL.
   I_MARC-BNFPO = IM_DATA_NEW-BNFPO.
   I_MARC-WERKS = IM_DATA_NEW-WERKS.
append I_MARC.
endif.
MOVE IM_DATA_OLD-WERKS TO I_WERKS.
elseif IM_DATA_NEW-BNFPO > I_MARC-BNFPO
       and I_WERKS <> IM_DATA_NEW-WERKS.
  CALL FUNCTION 'POPUP_DISPLAY_MESSAGE'
    EXPORTING
    TITEL         =
      MSGID         = 'ZMMMSG'
      MSGTY         = 'W'
      MSGNO         = 001.
    MSGV1         =0
    MSGV2         =
    MSGV3         =
    MSGV4         =
ENDIF.
but after entering the data for first item 00010 ,data is storing in the internal table. but when i entered the data for item 00020 it storing the data in internal table. but item 00010 data is not appearing in the internal table when we give item 00020 data . i have checked in the debugging.
please advise me what to do for the above requirement.
thanks in advance
rama.

Hi Roy,
You should use BI SDK for Java to connect to BW from Web Dynpro (https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/how%20to%20use%20the%20bi%20java%20sdk%20in%20a%20web%20dynpro%20application.pdf)
http://help.sap.com/saphelp_nw04/helpdata/en/6e/011e681cf74ab4b3acf73f77653405/frameset.htm
https://media.sdn.sap.com/public/html/submitted_docs/BW/BI_SDK_JavaDocs/bi_sdk_doc/docs/documentation.html
/people/moya.watson/blog/2004/04/05/the-bi-java-sdk-whats-in-it-for-you
/people/moya.watson/blog/2004/12/27/three-new-how-to-guides-for-the-bi-java-sdk
Best regards, Maksim Rashchynski.

Similar Messages

  • Which function module could be used to create ACTIONs in transaction

    HI,
        when we open a transaction use TCODE CRMD_ORDER, there is always a tab named 'Action'. And Which function module could be used to create a new action?
    THS!

    Hi Gang,
    I am not sure about the Function Module but ya if you access through this link i belive you will be able to create ACTION for your Transaction.
    Link:[Action|http://help.sap.com/saphelp_crm70/helpdata/en/54/238e39e1ba3541e10000000a11402f/frameset.htm].
    Let me know in case you need any more help.
    Vijayata

  • Which functional modules we can use to update the costs in WBS?

    Hello friends,
         I need to update the costs assigned to WBS elements at cost element level using TCode CJR2. Which function modules are available to do this?
    Can you show me sample implementation for the same?
    Thanks in advance,
    Amol C.

    You can't.
    A UIImage object is a high-level way to display image data. You can create images from files, from Quartz image objects, or from raw image data you receive. The UIImage class also offers several options for drawing images to the current graphics context using different blend modes and opacity values.
    Image objects are immutable, so you cannot change their properties after creation.

  • Function Module to create AFS Outbound delivery for sales order

    Guys,
    I am looking for a function module to create deliveries for a sales order IN IS-AFS.
    I cannot make BAPI_DELIVERYPROCESSING_EXEC work. Also, if I use the IDOC type /AFS/DELVRY03 via message type WHSCON and function module IDOC_INPUT_DELVRY it doesn' work either.
    Does anyone know which function module I could use? I need to select specific AFS schedule lines though, but at this point I am not able to make any work.
    Thanks
    Leonardo

    This will not help .
    Edited by: Amit Khare on Aug 7, 2008 3:49 AM

  • Which RFC module/s should I use to access DSO tables?

    Hello,
    I am in a proccess of creating an adaptive RFC model in Web Dynpro.
    I am in a stage where I need to select my RFC modules.
    My requirement is to access our DSO tbles.
    I see many BAPI's and functions under the SAP Business Information Warehous tree. Which one should I use for needs?
    Roy

    Hi Roy,
    You should use BI SDK for Java to connect to BW from Web Dynpro (https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/how%20to%20use%20the%20bi%20java%20sdk%20in%20a%20web%20dynpro%20application.pdf)
    http://help.sap.com/saphelp_nw04/helpdata/en/6e/011e681cf74ab4b3acf73f77653405/frameset.htm
    https://media.sdn.sap.com/public/html/submitted_docs/BW/BI_SDK_JavaDocs/bi_sdk_doc/docs/documentation.html
    /people/moya.watson/blog/2004/04/05/the-bi-java-sdk-whats-in-it-for-you
    /people/moya.watson/blog/2004/12/27/three-new-how-to-guides-for-the-bi-java-sdk
    Best regards, Maksim Rashchynski.

  • Which RFC module/s should I use to access BW tables?

    Hello,
    I am in a proccess of creating an adaptive RFC model in Web Dynpro.
    I am in a stage where I need to select my RFC modules.
    My requirement is to access our BW tables.
    I see many BAPI's and functions under the SAP Business Information Warehous tree. Which one should I use for needs?
    Roy

    Hi Roy,
    You should use BI SDK for Java to connect to BW from Web Dynpro (https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/how%20to%20use%20the%20bi%20java%20sdk%20in%20a%20web%20dynpro%20application.pdf)
    http://help.sap.com/saphelp_nw04/helpdata/en/6e/011e681cf74ab4b3acf73f77653405/frameset.htm
    https://media.sdn.sap.com/public/html/submitted_docs/BW/BI_SDK_JavaDocs/bi_sdk_doc/docs/documentation.html
    /people/moya.watson/blog/2004/04/05/the-bi-java-sdk-whats-in-it-for-you
    /people/moya.watson/blog/2004/12/27/three-new-how-to-guides-for-the-bi-java-sdk
    Best regards, Maksim Rashchynski.

  • Which  Function Module is used for converting the DATE in BDC

    HI,
    Which  Function Module is used for converting the DATE Format in BDC for Uploading purpose please help me.

    data : date like sy-datum.
    data : odate(10) type c.
    date = sy-datum.        " in format YYYYMMDD
    CALL FUNCTION 'CONVERSION_EXIT_PDATE_OUTPUT'
      EXPORTING
       input         = date
    IMPORTING
       OUTPUT        = odate         .
    write:/ odate.  "in ur format '.
    1.
    In ur itab make a field for date as 10 characters and use this Fm to store the date .
    2. Pass the date as the charcter field to the screen and now check .

  • How to identify Which function modules are used in the planning area?

    Hi all,
    there are couple of function module derviation is used to derive the calendar year, month, fiscal period etc.
    But how to identify which function module is used in which planning area?
    I cant find out from the where used list from function modules?
    Thanks
    pooja

    Hi Pooja,
    Go to characteristic relationship tab,click on detail icon on extreme left of the derivation,there you will get the name and the details of function module used for derivation.
    Regards,
    Indu

  • Which function module or class is used to import UNICODE files

    Hello all,
    Does anyone know which function module or global class is used to import files when the UNICODE check for the FILE port is ON?
    Thanks
    Ed Baker

    Hi,
    According to your requirement, you can prepare report through S_PH0_48000513 - Ad Hoc Query , you can get percentage from IT0007 in Ad Hoc query. first decide how many fields you want and then choose in selection criteria and generate the report.
    Thanks,
    Nirali P.

  • Which function module is used?

    Hi all,
    The function module C1CA_SD_INTERFACE_TO_EHS_NEW is used to generate messages to the workflow inbox.
    From this function module how or which function module is used to get the information to the inbox documents..
    Please reply to my above question...
    Thanks & regards,
    Sunil.

    Hello Sunil
    It is not so clear to me what your are looking for. If you take a look here (as an example)
    http://www.se80.co.uk/sapfms/c/c1ca/c1ca_sd_interface_to_ehs_new.htm
    you will find a "documentation"  of this function module.
    I have copied only thee most important part here of the docu on this link:
    "This is the central function module for linking the R/3 component Product Safety (EHS-SAF) to the R/3 component Sales and Distribution (SD). The function module is used to generate report shipping orders using data from SD. An example of a report is a material safety data sheet. "
    The "inbook" in some "sense" is EHS and there transaction CVD1 and only if you have performed a correct EHS set up.
    What "workflow inbox" are you looking for?? Those of the SAP SD messages ??
    Could you please explain a little bit there you are "struggeling"?
    With best regards
    C.B.
    Edited by: Christoph Bergemann on Apr 9, 2011 9:06 AM

  • Which function module is used for transfering form one version to another

    HI
    COULD ANYBODY TEL ME
    WHICH FUNCTION MODULE IS USED FOR TRNASFORING FROM ONE VERSION TO ANOTHER VERSION.................

    Hi Chaithu,
    Go to SE37,enter your function module, click on where used list button on the application bar.
    All the program used your function module used is displayed.
    Regards,
    Venkat.

  • Which function module used

    Hi all,
    The function module C1CA_SD_INTERFACE_TO_EHS_NEW is used to generate messages to the workflow inbox.
    From this function module how or which function module is used to get the information to the inbox documents..
    Please reply to my above question...
    Thanks & regards,
    Sunil.

    Hello,
    I don't understand the question. What sort of messages? Where did you get that function name from?
    regards
    Rick Bakker
    hanabi technology

  • Which function module i translate russian language pdf to english

    which function module i translate russian language pdf to english

    Hi,
    The based PDF you can translate it in SE63, and if your PDF using some standard texts, you should translate it in SO10.
    SE63 refer this, http://scn.sap.com/thread/330568
    Regards,
    Archer

  • Which function module to delete job log?

    Hi, I submit report via jobname and jobcount. After I close job and run it, we can see jobname is still in job log by SMX. But client doesn't want to see it, so who can kindly tell me which function module can delete jobname from job log?
    Thanks a lot.
    Jack

    try        CALL FUNCTION 'BP_JOB_DELETE'
    If you have used JOB_OPEN before the SUBMIT to create the job, you can automatically delete the job upon successful completion by setting the parameter DELANFREP = 'X' in the JOB_OPEN function call.. this way the user will only see the logas for cancelled/aborted jobs..
    ~Suresh
    Message was edited by: Suresh Datti

  • Which Function Module can find all direct and indirect subordinate.

    Hi,
        I have a employee number(Chief of a organizational unit A). Do you know which function module can get all the direct and indirect subordinate of this chief? Indirect subordinate means that this chief can also view the Organizational unit(for example, Org. unit B) that under Org. Unit A. Further more, this chief can also view all the employees in other org unit that under Org. Unit B. If there is no such function module, do anyone of you have the example coding to get it? Your help is greatly appreciated. Thanks.

    use RH_STRUC_GET
    ~Suresh

Maybe you are looking for

  • Arabic fonts problem

    Hi All! I'm working with Macromedia Flash MX 6.0 (Thats not a professional version). Here is a picture showing you my ideas. I want to make a registration form that needs user to type his/her information in Persian/Arabic.(I mean persian or arabic fo

  • How to create entity reference in DOCTYPE

    Hi, I am having trouble creating entity nodes in the doctype line Something like this <!DOCTYPE model SYSTEM "/my/local/copy/of/the/cellml_1_0.dtd" [ <!ENTITY % mathml_dtd_path "'relative/path/to/mathml2.dtd'"> <!ENTITY % use_mathml_dtd "INCLUDE"> ]>

  • Multiple key presses I'm stuck!!

    i want to make a hidden navigation thingy so that if the user types a word, but only the whole word it goes to next marker, i know the keyUp and KeyDown navigation but how do i make it only work when all have been pressed? Thank you

  • Within JBuilder, Reading Environment Variable From a BATCH File

    Hi ppl: Following my scenario without JBuilder. I would like to be able to do the same with JBuilder, so that I can run my application from within. 1. In the DOS window, I run a config.bat file that sets up a whole bunch of environment variables and

  • 90%space is empty still working very slow

    below is my macbookpro detail .. working very slow still 90% space is empty what to do???? Hardware Information:           MacBook Pro (13-inch, Late 2011)           MacBook Pro - model: MacBookPro8,1           1 2.8 GHz Intel Core i7 CPU: 2 cores