Capture Screen message while ME21N

How can I capture the PO Number while executing Me21N.
In one report I am called ME21N. SAP Displays message PO <PO Number > Created. I want to capture the PO Number and wanted to do further processing.
I tried to get data from SYST MSGV1, MSGV2 MSGV3 MSGV3. But all variables are blank.
I cant use set and get parameters. Because if user exit PO creation without creating the PO then get parameter picks the last created PO number.
CALL TRANSACTION 'ME21N'.
EBELN = ???????

I have to Call Just ME21N and then user will create the PO mannually. after he saves the PO I want the PO number for further processing.
by using the following code I can Capture the PO number, but the problem is that it will behave like a BDC with differnet screen attribute.
Note i_BDCDATA table is blank.
DATA : EBELN TYPE EBELN.
CALL TRANSACTION 'ME21N'
USING i_bdcdata
MESSAGES INTO i_messtab.
*CLEAR i_messtab.
*SORT i_messtab DESCENDING by msgtyp.
*READ TABLE i_messtab  WITH KEY msgtyp = 'S'.
*IF sy-subrc = 0 .
EBELN = i_messtab-msgv2.
I just want to capture the screen value after ME21N.

Similar Messages

  • Unable to capture error message while creating an SO using bapi

    Hi,
    Can anybody suggest how to capture the error message while creating a SO using BAPI.
    I have developed a customeized BAPI and using the BDC format to create the SO.
    Note: i am using a call transaction method for the BDC.
    I am sending the message into message1.
    but i am unable to send the same into an internal table
    shyam.

    Hi Shyam
    If my understanding is correct, you are performing BDC process within the customized BAPI...
    And you want to collect the messages from BDC to an internal table and pass to the output.
    Proceed as below:
    1. While calling BDC, use CALL TRANSACTION .... with addition: <b>MESSAGES INTO itab</b>. The structure of itab should be like <b>BDCMSGCOLL</b>.
    2. Now the messages will be collected in ita.
    3. Prepare the messages using FM: <b>FORMAT_MESSAGE</b>
    4. Collect to the returning table.
    Hope this helps...
    Though i could not understand the reason of creating a BDC within BAPI, you can opt for loading orders via BAPI's like: BAPI_SALESORDER_CREATEFROMDAT1 or BAPI_SALESORDER_CREATEFROMDAT2.
    Kind Regards
    Eswar

  • Suppress an error message while creating a return PO ( ZRO type) (ME21n)

    Hello All,
    I have to write a code in order to suppress the below message while creating a return purchase order (of type ZRO) , transaction ME21n  after entering the purchase organization, purchase group, the vendor & the material no :-
    "You have no authorization to create without reference to another document".
    For users with the below values of parameter ID & parameter value :-
    parameter ID = EFB & parameter value = 02 in transaction 'SU3' , under "parameters" tab, this message is getting triggered.
    My requirement is to suppress this message.
    Please suggest an exit name or a BADI name wherein I can implement the code for this requirement.
    Regards,
    Rachana.

    You can remove parameter ID EFB
    and for Order type other then ZRO you can put check of doc. reference.

  • Capture error messages in message log in ME21n transaction

    Hello friends,
    i have a question here.I have created a Z-table which contain data about material groups which will not be used for the particular plant.when we create a PO now ,i am checking for each line item whether the material group entered for each line item exists in Z-table or not.If exists then throw a message 'XXXXXXXX.'
    as this is an enhancement to Me21n transaction , i am using User exit EXIT_SAPMM06E_012 .Now my problem is for each line item i am checking for condition and throwing a message.My requirement is show up all messages(for eg : If more than 1 line item contain errors for the same condition) in the message log of the transaction ME21n screen.I dont think we can do this in the User exit as showing up messages in ME21n is standard functionality
    Could anyone please give any idea how to achieve this??
    Thanks in advance!

    Hi,
    You may write to application error log or call screen to show error log in user exit.
    Cheers.
    ...Reward if useful.

  • I received the following message while i was on my macbook air "you do not have enough space in your start up disk - you must delete some files"-restarted; only got startup noise then blank screen.  turned off tried to turn on no noise no screen load. thx

    i received the following message while i was on my macbook air "you do not have enough space in your start up disk - you must delete some files"-restarted; only got startup noise then blank screen. i waited for a few minutes to see if it would load - nothing just the lit up screen but nothing loaded - held power button it asked did i really want to turn off - i selected shutdown -turned off and left it off for awhile tried to turn on no noise no screen load. the same lit up screen but nothing loading.  please help thx in advance if anyone can offer some suggestions

    You can get there from here (booting normally); it just may take you a few steps to do it.
    If the disk is almost full and the system won't boot then sometimes it will boot in Safe Mode.
    http://support.apple.com/kb/HT1564?viewlocale=en_US
    Empty the trash after it boots.
    Then for hints on how to free disk/SSD storage see https://discussions.apple.com/thread/5872318?tstart=0
    If the Safe Mode boot does not do the trick then you can install OS X on an external hard disk, boot from that, and then delete files.  You can also reach the disk via Target Mode.  A third option is to take it to an Apple store where they can do a network boot and help you remove some files.

  • Iphone5 screen freezes while checking messages

    I have a problem with my iphone 5; it's quite common that the screen freezes while i'm checking my text messages... It doesn't stay that way very long, just a couple of seconds (like 10 sec maybe)... And then it goes back to normal...
    It perfectly works with other apps though... Has anyone had that problem before? Do you know what should be done? Should i take my phone to the Apple store?
    thanks !

    Try This...
    Close All Open Apps...  Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
    http://support.apple.com/kb/ht1430
    The Basic Troubleshooting Steps are:
    Restart... Reset... Restore from Backup...  Restore as New...
    If you try all these Steps and you still have issues... Then a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is the Next Step...
    Be sure to make an appointment first...

  • N70 Screen flickers while typing message

    Hello:
    I have bought Nokia N70 Music Edition 3 days back but i am noticing that the screen flickers while typing the message.
    The screen flickering that occurs while typing a msg does not occur when i m using any of the nokia builtin themes...but when i m using the themes which i have downloaded from www.zedge.net, the flickering while typing msg takes place...i had installed the themes in mem card, but i have also tried installing them to phone and then checking the theme, but still the flickering occurs. The theme installation puts some application called OWN SKIN ANIMATOR in the startup of my mobile. It has something to do with the animation of the theme, although i have tried exiting the application and then testing the msg flickering, and it STILL occurs ...can u please suggest a solution or tell me some good themes or a good site to download themes for N70 ME.
    P.S. I have been downloading themes from www.zedge.net for quite a long time and it has never created any problems on my previous phones i.e. Nokia 5200 and 6300

    Sorry to hear that but you have to contact your local Xperia Care
    http://support.sonymobile.com/global-en/contactUs/
    "I'd rather be hated for who I am, than loved for who I am not." Kurt Cobain (1967-1994)

  • Facing problem while capturing error messages in ME51N

    Hi Experts,
    In ME51N transaction, we have included custom fields and tried to capture Error messages by building ex_message.
    Below is the code that we used:
             loop at tb_error into wa_error.
                wa_message-type   = WA_ERROR-TYPE.
                wa_message-id     = c_zpr.
                wa_message-number = '007'.
                 wa_message-message    = wa_error-message.
              wa_message-message_v1 = WA_ERROR-MESSAGE.
                wa_message-message_v2 = wa_eban1-bnfpo.
                APPEND WA_MESSAGE TO EX_MESSAGES.
                CLEAR WA_ERROR.
              endloop.
    In my message class we have not hardcoded the messages because we need to capture dynamic messages(In message class it is 007: & & ). For that we have passed message text in wa_message-message.
    But when Check button is selected, we are not the desired error message.
    But if we pass the same message in Message_v1, we are getting the error message but it is getting truncated as the size is small when compared to Message field.
    Waiting for your response.
    Thanks & Regards,
    Amarnath

    Looks like configuration prob.
    Have you tried jms examples of weblogic ? you may need to re-configure your server setup, to create example server.

  • Capture Messages while Inbound processing of IDOC

    Hi ,
    I have a scenario where in i have to upload a file from application server using inbound IDOC. I am using the program RSEINB00 (using submit) for this, The idoc is getting posted successfully but i need to capture the messages in form of a log so that i can find out what all IDOC numbers are generated and how many of them. In case any error is there. I need to display a log of it.
    Timely help in this regard will be appreciated and rewarded suitably.
    Rgds,
    Kewal
    P.S. : Please suggest if there is any other method to process inbound IDOC (accept we19 TX)

    Hi kewal ,
    As per the scenario explained by you , I suggest you to do following steps
    1.The program you are using is RSEINB00 , has a function mosule present named ' IDOC_ERROR_WORKFLOW_START'. This function module can gice yo the Error message log in case of Inboung IDOC processing fails.
    2.You have two options , eithe you find out any user exit and atttach your own code to it or Complaetely cope that code into your z-program. Int he function module mentioned above , the export parameter  ' G_MESSAGE_FIELDS ' wud give you the error message , error status , error no etc.
    3. So for the INbound IDOC status messages starts with 51-70 , so depending upon ur logic , read all those message into an internal table .Then transfer that to a file .So an error log can be genearated.
    I hope this solves ur problem.
    Regards.
    Note: Reward if useful.

  • I get a black capture screen (preview), but video captures fine.  What gives?

    I get a black capture screen when capturing with CS6 on a Windows 7 machine.  I'm capturing through Firewire from DV tape, via the VCR function of a Canon XL2 camera.  I have tried restarting, etc.; also toggled the "preview video" radio from the Settings button in the capture Window.  Nothing works and I need to be able to preview my video as I'm capturing.  It is not good enough that the video actually captures fine.  Also, I am forced to turn off Device Control in order to capture because it kicks me out of every capture (an immediate message of : "no frames captured") unless I do.  Please help.

    I'm not familiar with the process of rolling back to a previous update and I assume that is what you are suggesting?  It looks like I'm running 6.05.  Are you suggesting I roll all the way back to 6.00 past 6.04. 6.03, etc? And if I do roll back, does that mean I have to completely uninstall and reinstall CS6 first?  That would be a royal pain. 
    A little more updated info:  It's not just in attempting to capture from a DV tape that I get the black capture screen, but the live firewire signal is also black, though again it actaully captures just fine, I just cannot monitor the screen while doing it. 
    And it's definitely not something physical, like a bad firewire cable, because I also have the old 2.0 version of Premiere installed on the same machine so I tried an experiment:   I open CS6, then open the capture screen (which of course remains black).  So I close CS6 and open 2.0 and then open the capture window.  It too is black.  But if I restart my machine and open 2.0 without first opening CS6, and then open the capture window, the display is just fine.  So obviosuly some service from CS6 is remaining open when I close it and thus affecting 2.0.
    This problem is really starting to irritate me.

  • Unable to capture screen fields in eCATT

    Problem description 1 : Unable to capture screen fields in eCATT
    Recording using SAP GUI Method.
    Problem description 2 :Unable to capture Tab controls while recording
    in eCATT using SAP GUI Method.
    Thaks for any suggestion you could provide me and once again for your courtesy attention.
    Regards,
    Eric Monteiro

    Hi Phani,
    Please try below code:
    *data declaration for reading values given by user in the selection screen field.
      DATA: BEGIN OF i_tab OCCURS 0.
              INCLUDE STRUCTURE rsselread.
      DATA: END OF i_tab.
      MOVE: 'LOGSYS' TO i_tab-name,
            'P' TO i_tab-kind. u201CP For parameter
      APPEND i_tab.
      MOVE: 'GP_SIMVE' TO i_tab-name,
            'P' TO i_tab-kind. u201CCheck if field is Parameter
      APPEND i_tab.
    *move program name and screen number into local variable.
      l_prog = sy-repid. u201C(Try by directly passing program name also)
      l_dynnr = sy-dynnr. u201C(Try by directly passing Screen number also)
    *calling function module to get the value given by user.
      CALL FUNCTION 'RS_SELECTIONSCREEN_READ'
        EXPORTING
          program     = l_prog
          dynnr       = l_dynnr
        TABLES
          fieldvalues = i_tab.
    Hope this should slove your issue.
    Thanks & Regards,
    Gaurav.

  • Pop up warning message while creating PO

    Hi,
    How to give a Genral or a POP up Warning Message while creating and checking a PO in ME21n and ME22n.
    Even i tried in changing the local setting in the menu bar, but it doesnt work.
    Help and suggestions will be much appreciated.
    Thanks & Regards.
    Kumar.

    Hi Jay,
    I tired with the BADI ME_PROCESS_PO_CUST  in the method IF_EX_ME_PROCESS_PO_CUST~CHECK, but still i am able to display only error message not Warning message.
    Any suggestion regarding this.....
    Thanks & Regards.
    Kumar.

  • Error message while shipping restricted batches

    I  am trying to get an error message while picking  a batch in restricted status.
    I have done the following:
    1. Set up batch determination at shipping : Condition table set up at the Sales Org. level. Access sequence set up, Batch Search Procedure setup .....
    2. Set up an error message in OVM1 for message VL 215
    3. Set up condition records in VCH2 for the Sales Org level with indicator N. This is to ensure sending of batch search strategy to EWM.
    When I create an outbound delivery for a 3 PL in ECC and enter a restricted batch in the outbound delivery I get no error message. In fact I can do the PGI of the outbound delivery as well.
    Can you please tell me how to get an error message for this scenario.
    Thanks

    Just found SAP is checking with the requirements date.
    Anyhow click the batch split button in your delivery, and then the display batch determination
    In that screen you will see 3 buttons with a paper icon, one for strategy analysis  which is able to show you whether an condition record could be found and via which access sequence.
    then a button for the Determination Log  where you can see the details of all 5 steps that are carried out in a batch determination. And finally the Availability check button which actually takes you the CO09.  Here click the scope of check to see whether restricted use stock is customized as available.

  • Error message while creating GL masters

    Hi,
    I am getting an error message while ncreating GL masters. "No account group is defined in chart of accounts" i have created in chart of accouts despite creating also it showing some message when i clink on create GL.
    Please advise.
    Chakri

    Hi
    Please Check in OBD4 t.code we can create account group or not?
    Ex: above screen here define the structure of gl a/c. befor creation.
    Regards
    Suresh

  • Re: capturing screen resolution in JSP or servlet

    "Mike Tickle" <[email protected]> wrote ...
              > Is it possible to capture screen resolution in JSP or a Servlet? I can
              > currently do it in JavaScript and write the result in to a cookie that a
              > servlet can read, but is there a better solution.
              > Is it possible to get the time zone of a visitor using JSP or servlets?
              > Can JSP or servlets determine if a visitor has scrolled the page to view
              all
              > of it?
              You seem to be very confused about what servlets and JSPs are. These are
              things that run on the server and generate HTML. They can't possibly know
              if a user has scrolled the page, because the user hasn't seen the page yet
              when they are run. If they tried to read screen resolution, they'd get the
              screen resultion for the graphics subsystem on the server, or an exception
              if one isn't available (eg, there is no X display set).
              For these kinds of client interaction tasks, JavaScript is probably still
              your best option.
              Chris Smith
              

    Hey all you non-ASP programmers, here's the deal. Microsoft has a Browser
              Capabilities component and they have defined a special way for you to
              populate a specially named cookie on the client side that will then allow
              the component to pick up what you sent it. In the ASP script, you then use
              the component. Behind the scenes, it works exactly like what you guys
              imagine, but Microsoft provides the format for sending the information and
              the parsing.
              The client side script does need to be written to include the information
              you want, but it would typically be written once and hidden by the lead
              programmer in a common include file where most programmers never had to
              think about it and thus might think it happened automatically.
              If you're really curious, here's an MSDN link to the details:
              http://msdn.microsoft.com/library/psdk/iisref/comp1vol.htm.
              Rick Joi, former ASP developer
              [email protected]
              www.rickanddonna.com/ips
              "Chris Smith" <[email protected]> wrote in message
              news:[email protected]...
              > "Mike Tickle" <[email protected]> wrote ...
              > > > You seem to be very confused about what servlets and JSPs are.
              > >
              > > I am quite familiar with servlets as I have been using them for 6 months
              > as
              > > part of a uni project. I had the presentation yesterday and the
              moderator
              > > asked why I used JavaScript to determine time zone and screen res. I
              said
              > > JSP/Servlets can not do it as they are server side and he seemed
              confused.
              >
              > Okay. Apologies if I was condescending. Such things happen in newsgroups
              > where I have no idea what your background is.
              >
              > > Apparently ASP can do it. So against my better judgement I thought I
              > would
              > > ask in case I was wrong.
              >
              > I'm surprised if ASP can do it... I can't imagine how that occurs. I
              agree
              > with Jeff, especially after reading the URL he provided; it appears the
              > moderator was just plain wrong, or that there are only very non-portable
              > solutions for IE only.
              >
              > > I currently write the time zone and screen resolution in to a session
              > cookie
              > > so that it can be read every time the servlet is run. Is there a better
              > way
              > > than this?
              >
              > Seems to me like the best way to me.
              >
              > Chris Smith
              >
              >
              >
              

Maybe you are looking for

  • MacBook display resets to maximum brightness

    Hello, after attaching an external display (Cinema display) to my macbook it automatically resets the LCD display of my MacBook to maximum brightness. After detaching the external display the maximum brightness setting remains on my MacBook. Does any

  • At line-selection and user command

    hi, is it possible to use both at line selecion and at user command at a time.

  • Failure starting a script in uccx9

    Hi I am installing a new uccx based in a copy of the customer with a version 6. All have been copied, CTI RP are registered in CCM, application mgmt, prompts and scripts are uploaded yet in uccx9 and agents are logged in EM. The script is for a conta

  • Help with logic installation anyone?

    Hi since i updated my system to maverick OS X 10.9.5 I have had problems with a few things but mainly logic. Half of the screen is black when i open the program and try to record anything. I called customer support and they said to reinstall the logi

  • Getting the Serial ID of a hard disk using Java

    Hello, Can anybody help me in getting the volume serial ID and label of the hard disk using java programing. How to write a program in Java which can read the Volume Serial ID or label of the hard disk ? I will be thankful if you can paste a sample c