MEREQ001 - set data in the screen when ME54N/ME53N/ME52N

Hi Friends,
I have implemented the user exit for PR 'ME51N' MERE001. Here ive defined a user subscreen in which i have a user field " ZZAAA". I got the field and even saved in the database EBAN.
Now my problem is ... when the transaction ME52N/ME53N/ME54N is called this field is not geting populated. I do have to do something in EXIT - 001 (PBO)....  But what should i do???
The code which i have done in PBO is as follows...
Declaration of a 'type' of type IF_PURCHASE_REQUISITION_ITEM
types : pur_req_item type ref to IF_PURCHASE_REQUISITION_ITEM.
Declaration of an Object for the type.
data : obj_pur_req_item type pur_req_item.
To get the MEREQ_ITEM data
data : l_item type mereq_item.
For Display purposes
data : l_mepo_doc type mepo_document.
data : l_trans_type type trtyp.
To determine the transaction type.
obj_pur_req_item = IM_REQ_ITEM. " <-- i want to know Y this code should be given .. ???
A method to get the data and get the data to a
Local variable l_item.
CALL METHOD obj_pur_req_item->GET_DATA
  RECEIVING
    RE_DATA = l_item.
This is done to set the display properties of the customer screen
like whether it has to be disabled ( display ) / enabled
( create / change )
To get the header details and to update the get_transaction_state.
types : pur_req_hdr TYPE REF TO IF_PURCHASE_REQUISITION.
Declaration of an Object for the type.
data : obj_pur_req_hdr type pur_req_hdr.
Get header data using the method "GET_REQUISIION"
CALL METHOD OBJ_pur_req_item->GET_REQUISITION
  RECEIVING
    RE_REQUISITION = obj_pur_req_hdr.
To get the status of the transaction display /
create / add / change using ex_document.
CALL METHOD obj_pur_req_hdr->GET_TRANSACTION_STATE
IMPORTING
EX_DOCUMENT = l_mepo_doc
EX_TCODE =
EX_UNCOMPLETE =
EX_PARKING_ALLOWED =
EX_CHANGED =
l_trans_type = l_mepo_doc-trtyp.
if l_trans_type eq 'V' "change
or l_trans_type eq 'A'. "display
break-point.
  l_mode = 'X'.
  call method im_req_item->set_data
    EXPORTING
      im_data = l_item.
endif.
what am i missing?????
thanks in advance !

Hi,
The following is my code in PBO (001)
The code which i have done in PBO is as follows...
Declaration of a 'type' of type IF_PURCHASE_REQUISITION_ITEM
types : pur_req_item type ref to IF_PURCHASE_REQUISITION_ITEM.
Declaration of an Object for the type.
data : obj_pur_req_item type pur_req_item.
To get the MEREQ_ITEM data
data : l_item type mereq_item.
For Display purposes
data : l_mepo_doc type mepo_document.
data : l_trans_type type trtyp.
To determine the transaction type.
obj_pur_req_item = IM_REQ_ITEM. " <-- i want to know Y this code should be given .. ???
A method to get the data and get the data to a
Local variable l_item.
CALL METHOD obj_pur_req_item->GET_DATA
RECEIVING
RE_DATA = l_item.
This is done to set the display properties of the customer screen
like whether it has to be disabled ( display ) / enabled
( create / change )
To get the header details and to update the get_transaction_state.
types : pur_req_hdr TYPE REF TO IF_PURCHASE_REQUISITION.
Declaration of an Object for the type.
data : obj_pur_req_hdr type pur_req_hdr.
Get header data using the method "GET_REQUISIION"
CALL METHOD OBJ_pur_req_item->GET_REQUISITION
RECEIVING
RE_REQUISITION = obj_pur_req_hdr.
To get the status of the transaction display /
create / add / change using ex_document.
CALL METHOD obj_pur_req_hdr->GET_TRANSACTION_STATE
IMPORTING
EX_DOCUMENT = l_mepo_doc
EX_TCODE =
EX_UNCOMPLETE =
EX_PARKING_ALLOWED =
EX_CHANGED =
l_trans_type = l_mepo_doc-trtyp.
if l_trans_type eq 'V' "change
or l_trans_type eq 'A'. "display
break-point.
l_mode = 'X'.
call method im_req_item->set_data
EXPORTING
im_data = l_item.
endif.
The follwoing is one in PAI (003)
GET_DATA is a method which will capture the data given in the
field Nature Of payment and update the variabl L_MEREQ_ITEM
    L_MEREQ_ITEM = IM_REQ_ITEM->GET_DATA( ).
    MOVE EBAN-ZZPAYMENT TO L_MEREQ_ITEM-ZZPAYMENT.
    IF NOT IM_REQ_ITEM IS INITIAL.
      IF NOT L_MEREQ_ITEM IS INITIAL.
        CALL METHOD IM_REQ_ITEM->SET_DATA( L_MEREQ_ITEM ).
        EX_CHANGED = 'X'.
      ENDIF.
    ENDIF.
If not clear revert back ...

Similar Messages

  • Cannot get pass the "Setting date and time" screen

    Hi, I am faced with a very serious problem... someone please help!
    I bought home an Apple TV (2nd generation) for my parent overseas, but when I switched on - it got stuck on "Setting date and time" screen and cannot continue. Pressing "menu" button (or hold on for many seconds) does not work at all! I am stuck in that screen. Restart the Apple TV does not helped.
    I thought it is the issue of the remote control (maybe "menu" key has failed), so I bought another one (the aluminum model) and the same issue persists! I tested the remote control on Mac (boot up and press menu key, using Better Touch Tool... both shows the menu key is working).
    What shall I do? Thanks!

    is it connected to the internet either wired or wirelessly

  • I'm trying to set up a signature on my email account.  The signature appears on the screen when I'm creating an email, but does'nt appear on the email to the person I've sent it to.  All it shows is an empty box... Please help! xoxo

    I'm trying to set up a signature on my email account.  The signature appears on the screen when I'm creating an email, but does'nt appear on the email to the person I've sent it to.  All it shows is an empty box... Please help! xoxo

    I did use that functionality. I am looking at this thread now on my iPhone and I see the images just fine!

  • HT200197 my apple tv won't pass the setting date and time screen?

    why won't my apple tv pass the setting date and time screen?

    That indicates a network issue.
    Check the DNS settings, they should be set to automatic.

  • How to reload the screen when changing languages in JavaFX 2?

    I'm beginner with javaFX and i need to change language of the screen. but i have no idea how to reload the screen when the language was changed. The application have a button where have the language available. I want just refresh screen when the user change language.
    Here is the start method to show the stage.
        @Override
        public void start(Stage stage) throws Exception
            this.stage = stage;
            Locale locale = Locale.getDefault();
            ResourceBundle rb = ResourceBundle.getBundle("resources/Label",locale);
            loader = new FXMLLoader(getClass().getResource("FXMLDocument.fxml"),rb);
            root = (Parent)loader.load();
            FXMLDocumentController controller = (FXMLDocumentController) loader.getController();
            controller.setMain(this);
            scene = new Scene(root);
            stage.setScene(scene);
            stage.show();
    here is the function to change the language(in the same class with start function),the rb is the new ResourceBundle:
        public void refresh(ResourceBundle rb)
              //change the language here
    1. I don't want to use the resourceBundle to get value in resource file and set label in scene one by one.like following:
    this.btnLabel.setText(rb.getString(key.test));
    2. I don't want to reload the scene,like following:
        public void refresh(ResourceBundle rb)
             try
                loader = new FXMLLoader(getClass().getResource("FXMLDocument.fxml"),rb);
                root = (Parent)loader.load();
                scene.setRoot(root);
                FXMLDocumentController controller = (FXMLDocumentController) loader.getController();
                controller.setMain(this);
            catch(Exception err)
                err.printStackTrace();
    So do we have a solution to just set the resourceBundle and reload the scene easier?
    Thanks and best regards!

    Your option 2 (reload the FXML for the scene using the new resource bundle as a parameter), is the way this would normally be done and what I would recommend.
    Failing that, you could use option 1 of individually resetting the label text of labeled items (I don't really recommend this).
    Why don't you want to use option 2?
    Perhaps it is because there is some internal state of the UI which differs from the initial state when the the UI is first loaded (e.g. user has typed text in a text field and you want to preserve that).  If that's the case you will need to either go with your option 1 of individually resetting the label text of labeled items, or implement something which preserves the UI state and user data by saving it in memory or to disk, reloading the UI via the FXMLLoader (essentially your option 2), then restoring the UI state and user data to what it was before the language change.  Preserving and restoring the modified state seems complicated to me if you have a lot of state, so I wouldn't really advise this approach unless you really needed it.

  • Reader XI has the print button off the screen when on 800x600 resolution

    Reader XI has the print button off the screen when on 800x600 resolution as well, how to fix without changing resolution?  A user needs the resolution set to that for her eyes.
    I see that this was an issue in Reader X and update 10.1.3 resolved it.  What was the fix?

    The scrollbar appears and works but unfortunately the dialog size is still too big therefore the print button ends up being hidden by the windows taskbar. Could you please make sure that the print dialog size is calculated against the work area (desktop size minus the taskbar, there's a win32 API to get that) rather than the whole desktop to fix the issue?
    That would also fix another issue: when the taskbar is sized higher than usual whatever the resolution you have it could still end up covering the print buttons but if you calculate against the work area rather than the desktop area that issue would be fixed as well.
    Please don't leave it unfixed because even if the requirements say 1024x768 if you have higher DPI settings or have a taskbar with a non-default size the print button could easily become unreacheable.

  • A conversion error occurred while the program -- display data on the screen

    HI all,
    Iam getting a dump error described below:
    A conversion error occurred while the program was trying to
    display data on the screen.
    The ABAP output field and the screen field may not have the
    same format.
    Some field types require more characters on the screen than
    in the ABAP program. For example, a date field on a screen needs
    two characters more than it would in the program. When attempting to
    display the date on the screen, an error will occur that triggers the
    error message.
                  Screen name.............. " Ztable_MM_MRQ "
                  Screen number............ 0100
                  Screen field............. "WA_PO_ITEMS-MENGE"
                  Error text............... "FX015: Sign lost."
    Further data:
    Give us step by step procedure to rectify the same with T.codes
    Thanks
    Regards
    Siraj

    Raymond
    please give details in se51 where i have to put a "V"  to allow negative amounts
    whether it is in Text or I/O templates
    name                                     type of screen element         Text or I/O field
    WA_PO_ITEMS-MENGE     Text                           PO_quantity__     
    regards

  • How to show the Current Date in the Screen as default

    Hi all,
    This is may be simple to u all, but i need the solution for this,
    I want to show the Current date in the Screen, i am using the structure. but the calendar control showing when i run the program. But i want to show the current date as default.
    Thanks
    Shankar

    Is this a screen or a report?
    If its a report, try assigning DEFAULT sy-datum (to the parameter/select-option name)
    If its a screen field, try writing this in the PBO:
    IF fieldname IS INITIAL.
    fieldname = sy-datum.
    ENDIF.
    Hope this helps.
    Sudha

  • HT201401 use a iphone4S and I will say that since I installed IOS6, I block 2-3 seconds the screen, when you open a page in Safari, I salt directly into the sprinboard, and going harder, moving hard, last version I had no problem ...I hope to get a new ve

    I use a iphone4S and I will say that since I installed IOS6, I block 2-3 seconds the screen, when you open a page in Safari, I salt directly into the sprinboard, and going harder, moving hard, last version I had no problem ...I hope to get a new version IOS6.
    had anyone this problems?

    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

  • Why do my ipad turn blue (the screen) when i charged it?

    why do my ipad turn blue (the screen) when i charged it?

    Try a Reset [Hold the Home and Sleep/Wake buttons down together for 10 seconds or so (until the Apple logo appears) and then release. The screen will go blank. Be patient, the device will power ON again in the normal way. It is app and data safe!]

  • How can I make iPhone 4S Video's fill the screen when using them in iMovie 11 on My MacBook Pro

    Hey Guys.
    I am a singer songwriter from he UK.... I recently bought an Iphone4s, Ipad and Mac book pro (haha, apple hero, I know). I have always wanted to make the big jump to apple, just was waiting a little while.
    I am thrilled so far, it's all great. But, I use Imovie (i am still getting to grips with it, but the features are amazing) to make videos of me singing coversand original videos for youtube.
    The Camera on the iphone4s is great.
    But, when I import videos into Imovie11, the videos do not fill the screen in their original form.
    In some videos, I use the Ken Burns effect. Now, on the parts of my video when I use this effect, it fills the screen as it should do.
    Why do the videos in their untampered form not do this?  I have tried importing widescreen, original size, and Large, but it alwys sits in the middle of the screen, fairly thin lookin. It fills the screen when it's on my Iphone, I am very lost.
    plesse help.
    thanks.

    if i can offer any more info please just ask

  • Is there a way to hide the bookmarks bar in iOS 8 on the iPad? It takes up a large part of the screen when in landscape mode

    Since I upgraded to iOS8, my iPad screen permanently shows the bookmarks bar down the left. This means I can only use about ⅔ of the screen when in landscape mode. Is there something I am missing which allows me to hide/show the bookmarks bar? Thanks

    TThank you so much! I felt it must be something straightforward.

  • How do you get your text messages to not show on the screen when they come in

    How do you get your text messages to show on the screen when then come in?  My iphone 3s would just say the persons name and text message.  This says the persons name and the whole message

    Settings > Notifications > Messages > Show Preview - Turn to OFF

  • What can i do about my iphone that has a blue tint to the screen when i have sunglasses on?

    what can i do about my iphone that has a blue tint to the screen when i have sunglasses on?

    That sounds like an issue with the sunglasses and possible polarization...there is nothing that you can do to offset that on the iPhone itself.

  • Getting garbage on the screen when importing photos and morie patterns.

    I'm trying to put together a presentration and I'm getting garbage on the screen when a certain picture is supposed to be displayed. The picture should be visible for 7 seconds, but is replaced by a grey screen with small boxes in vertical rows for several seconds. Any idea as to what is happening? Also some buiding photos that appear to look fine in photoshop end up with strange patterns in the brick- very bothersome. These photos are all in PSD format ayt 230 DPI.

    Is it this old v4 bug:
    http://docs.info.apple.com/article.html?artnum=93785

Maybe you are looking for