Call Transaction "MIGO" in display mode only

Hi friends,
I have changed the standard the SAP standard program MB51 to a Customer Program 'ZMB51' based upon the user requirement.Iam able to get all the values (output)
Now my requirement is .... iam trying to call transaction "MIGO" when the user clicks on the Material Document Number (MBLNR) (as how in Standard program)
I ve used "ALV_GRID..." display. and given a callback_user_command also .... iam able to call the trasaction ...... but it is editable and not in the display mode ..........
Here my code :
FORM SY_UCOMM_FOR_MBLNR USING R_UCOMM LIKE SY-UCOMM RS_SELFIELD TYPE
SLIS_SELFIELD.
  IF RS_SELFIELD-FIELDNAME EQ 'MBLNR'.
  IF NOT RS_SELFIELD-VALUE IS INITIAL  AND
         RS_SELFIELD-VALUE NE SY-ULINE.
      CALL TRANSACTION 'MIGO'.
    ENDIF.
    IF R_UCOMM EQ SPACE.
    ENDIF.
  ENDIF.
ENDFORM.                    " SY_UCOMM_FOR_MBLNR
So ??????????????????
What is the remedy ????
Expecting ur answers....
Thanks in Advance
Cheers,
R.Kripa.

Hi ... it is solved ...
I ve changed the code as how it was in MB51 report.
Here is my code
FORM SY_UCOMM_FOR_MBLNR USING R_UCOMM LIKE SY-UCOMM RS_SELFIELD TYPE
SLIS_SELFIELD.
  CASE RS_SELFIELD-TABNAME.
    WHEN 'I_FINAL'.
      READ TABLE I_FINAL INDEX RS_SELFIELD-TABINDEX.
  ENDCASE.
  CHECK SY-SUBRC = 0 .
  IF R_UCOMM = '&IC1'.
    CHECK RS_SELFIELD-TABNAME = 'I_FINAL'.
    CASE RS_SELFIELD-FIELDNAME.
      WHEN 'MBLNR'.
        SET PARAMETER ID 'MBN' FIELD I_FINAL-MBLNR.
        SET PARAMETER ID 'POS' FIELD I_FINAL-ZEILE.
        SET PARAMETER ID 'MJA' FIELD I_FINAL-MJAHR.
    ENDCASE.
    IF SY-SUBRC = 0.
      SELECT SINGLE * FROM MKPF
                WHERE  MBLNR = I_FINAL-MBLNR
                  AND  MJAHR = I_FINAL-MJAHR.
      IF SY-SUBRC = 0.
MIGO_DIALOG is a funcion module to set the MIGO transaction
in Display mode.
        CALL FUNCTION 'MIGO_DIALOG'
          EXPORTING
            I_ACTION            = 'A04'
            I_REFDOC            = 'R02'
            I_NOTREE            = 'X'
            I_NO_AUTH_CHECK     = ' '
            I_DEADEND           = 'X'
            I_SKIP_FIRST_SCREEN = 'X'
            I_OKCODE            = 'OK_GO'
            I_MBLNR             = I_FINAL-MBLNR
            I_MJAHR             = I_FINAL-MJAHR
            I_ZEILE             = I_FINAL-ZEILE.
      ENDIF.
    ENDIF.
  ENDIF.
But still if anyone knows how to call MIGo transaction i Display mode using 'CALL TRANSACTION 'MIGO''.
Thanks friends,
Cheers
R.Krpia.

Similar Messages

  • Call Transaction 'MIGO'

    Dear All,
    I am using call transaction 'MIGO' in report.If i click on MBLNR number of report output then it lead to MIGO transaction.
    I use the following code.
    SET PARAMETER ID 'MBN' FIELD I_VALUE.
    CALL TRANSACTION 'MIGO' AND SKIP FIRST SCREEN.
    I am passing the MBLNR values into I_VALUE variable.
    It is not working fine.
    If i choose A04 Display , R02 Materail document and MBLNR number in MIGO transaction and run the progarm then above piece of code is working fine.
    If i choose other values instead of A04 Display , R02 Materail document  in MIGO transaction and run the report above piece of code is not working.
    The Above piece is not working it showing latest values selected in MIGO transaction only.
    Please let me know the solution for this.
    Thanks.
    Regards,
    Simha.

    check with this
    CALL FUNCTION 'MIGO_DIALOG'
    EXPORTING
    I_ACTION = 'A04'
    I_REFDOC = 'R02'
    I_NOTREE = 'X'
    I_NO_AUTH_CHECK = ' '
    I_DEADEND = 'X'
    I_SKIP_FIRST_SCREEN = 'X'
    I_OKCODE = 'OK_GO'
    I_MBLNR = I_FINAL-MBLNR
    I_MJAHR = I_FINAL-MJAHR
    I_ZEILE = I_FINAL-ZEILE.

  • How to know if an transaction is in display mode or change mode

    Hi,
    I have to set an information message if any transaction is in display mode and an error message if it is in change mode for a particular condition.
    How would I know programmatically that it is in display mode or change mode for a screen?

    >
    Neela M B wrote:
    > Hi,
    >
    > You can use the importing parameter I_ACTIVITY of the method SET_DATA in the BADI. Pass this flag along with the data  and use it to determine the Create/Change or Display Mode.
    >
    >
    > CASE I_ACTIVITY.
    >   WHEN 'H' or 'V'.  " Create or Change
    >     ...
    >   WHEN 'A'.    " Display
    >     ...
    > ENDCASE.
    You sure are a direct collegue and have access to his problem or you are indeed the successor of Uri Geller.
    I never would have guessed he's using SET_DATA in a BADI.
    Test: what am i thinking right now?

  • Requirement is OB52 should be in display mode only

    Dear Experts,
    In sap users profile sap_new is required but OB52 should be in come in display mode only on PRD system, How can I provide the t-code OB52 for Disply only.
    Regards,
    TVS

    Hi,
    If SAP_NEW given to any one,then we can't change it to display mode.OB52 is purely depend on type of
    System.In PROD system it will come in change mode only.Where as in other Boxes like DEV/QAS,OB52 will be accessible depend on Client state(SCC4).
    So I guess it is not possible in PROD box after giving SAP_NEW.
    Rgds,
    Durga.

  • Transaction goes to display mode after an error message / POPUP - Urgent

    Hi All,
        We have a requirement that, in the Service order transaction IW31/ IW32 in the components tab ,  based on the material numbers entered by the user we need to call a Popup and inform user to fill in the correct value for special stock indicator.
       I tried using the BADI Workorder_update , but within that I could not call a pop up or a message.  I tried using the exit  EXIT_SAPLCOMK_014 where
       in I collect the incorrect components and call a POP UP with all of them. But once I call the POP UP the IW31/IW32 screen in the background goes
       to display mode and then we are not able to change the value as per information from the POP UP.  This is the same problem that we faced with the
       BADI.
      Please let me know if this could be handled in any other way.
    Regards,
    Prabaharan.G

    check with exit
    Transaction Code - IW31                     Create Order
    Exit Name           Description
    IWO10012            Maintenance order: Priority handling on central header
    No of Exits:          1
    Transaction Code - IW32                     CHANGE ORDER
    Exit Name           Description
    IWO10012            Maintenance order: Priority handling on central header
    No of Exits:          1
    USER EXIT
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.sap-img.com/ab038.htm
    http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
    Rewards if useful.........
    Minal

  • Depriciation key and useful life periods in asset master should in display mode only

    Hi all
    At the time of creation asset master AS01 we are given the Asset class, company code and similar of asset (1) then we click enter button we will get Create asset: master data screen here in general tab we enter the description and in time dependent tab we enter cost center manually
    But
    When we click on Depreciation tab here the  Depreciation key and use life fields are automatically come with Dep.key(ABC) and use life(15) (Because we maintained in OAYZ)
    Here user have a chance to change the Dep.key(ABC) and use life(15).so my requirement is these two fields are display with only display mode .
    User don’t have chance to modify this.

    Hi Anil,
    The screen layout for Asset and its depreciation tab are different. You have to make these fields as Display only in the screen layout. This can be done using T-Code AO21. Below are the screenshots for the path and screen layout for your reference. This should solve your issue
    Regards
    Pankaj Pareek

  • X200s - 50Hz interlaced display mode only... What a headache!

    Bought X200s (1440x900 resolution) recently.
    Have found it to be very bad for my eyes.
    I've used to work on my aforetime Quanta for hours w/o any problems.
    Now with X200s I do have blearing eyes and headache very soon.
    Investigating the problem I've found that the best (and the only) display resolution possible is 50Hz.
    Moreover, only interlaced display mode is possible, even with native resolution!
    So the best mode we have with the newest X200s is 50Hz interlaced...
    Well, I've seen such LCD monitors when I was young (that was ages ago)...
    But now???
    I wonder if there is any other notebook (either netBook) on the market now with maximum refresh rate less then 60Hz?
    No fear!
    I'm definitely sure that Lenovo should recall this piteous product ASAP.
    Message Edited by gelleal on 03-20-2009 12:25 PM

    @lead_org
    I do not compare CRT to LCD at all.
    To be more clear:
    1. All modern LCD screens (including all laptop screens currently on market) hold at least 60Hz refresh rate/non-interlaced mode.
    2. Whereas cheap laptop LCDs work usually at not more then 60Hz, good screens possess 75Hz and sometimes 90Hz rates.
    3. Only very old LCD screens (10+ years ago) had 50Hz of refresh rate maximum and could work utilising interlaced modes only.
    4. The common notion states that any good LCD (not CRT) screen must render 60Hz refresh rate at least.
    On smaller CRT monitors (~<14 inches) few people notice any discomfort below 60–72 Hz. On larger CRT monitors (~>17 inches) most people would experience mild discomfort unless the refresh is set to a more comfortable 85 Hz or higher. (http://en.wikipedia.org/wiki/Refresh_rate)
    Some major manufactures consider 60Hz to be unsufficient, offering 75Hz-capable laptop screens.
    5. Low refresh rate setting affects the LCD’s performance (see http://support.apple.com/kb/TA22119?viewlocale=en_US etc. etc.).
    So, am I wrong? Or is the market wrong?
    Are there any other laptops with 50Hz (interlaced) maximum refresh rate I'm not aware of?
    I doubt if any.
    Back on topic: with new X200s (1440x900), I have 90Hz (non-interlaced) on external 17" 1280x1024 Sony LCD monitor, and up to 100Hz on external 20" NEC LCD monitor (any resolution).
    Both have a great picture.
    50Hz interlaced is definitely the laptop screen limitation, not of the Intel 4 Series Express graphic adapter.
    I've tried the older X200s (1280x800), which runs at 60Hz non-interlaced and does have a good stable picture.
    Did Lenovo accomplish a product invention, or there is a sales pitch of cheap screens below standards?
    BTW, in some countries LCD screens with refresh rates below 60Hz are prohibited by public health regulations.

  • Workflow: call transaction CJ20N not displaying customized screen

    Experts,
    My workflow needs to call transaction CJ20N. so that the user can accept a customized field on the project display. When I called the transaction, I did not see the customized fields on the display. I need to call transaction CJ20N that will display all the fields that have been customized on the screen display. I am not using SET PARAMETER before I make the call as it was unclear to me what the SET PARAMETER is used for.
    Any clue would be appreciated.
    thank you
    david Dittmer

    Hello Modak,
    I agrree that a parameter ID will not solve this issue. To test I built a stand alone ABAP program with the following code:
    data: bdcdata_wa typr bdcdata,
    bdcdata_tab type table of bdcdata.
    clear bdcdata_wa,
    bdcdata_wa-program = 'SAPLCNPB_M'.
    bdcdata_wa-dynpro = '1000'.
    bdcdata_wa-dynbegin = 'X'.
    append bdcdata_wa to bdcdata_tab.
    bdcdata_wa-fnam = 'PSP'.
    bdcdata_wa-fval = 'P.2009.00002'.
    append bdcdata_wa to bdcdata_tab.
    Call transaction 'CJ20N' using bdcdata_tab.
    This call works  just fine in a stand alone ABAP but will not work in a workflow method....any suggestions or clues
    Thank you

  • Part2 tab in MIGO at display mode not visible

    Hi Experts,
    After capturing part 1 in MIGO and posting part 2 in J1IEX, part2 tab in MIGO display mode is not visible after a few days.
    It appears immediately after posting part2 in J1IEX but if we refer the same material document after a few days pat2 tab is not visible.
    We are in ECC 6.0 EHP4 recently upgraded from 4.7
    Kindly reply
    Regards
    NDS

    Hello,
    Follow the below steps to manually regenerate of enhancement spots.
    1)     MB_DOC_BADI_INTERNAL
    2)     MB_GOODSMOVEMENT
    3)     MB_MIGO_BADI
    Standard MIGO enhancement spots are not getting regenerated which contains the code changes to update excise tables.
    if you want to manualy regenerate, through SE18 generate,
    if you want to automatic  contact Basis guys,
    Regards
    Mahesh Naik.

  • Part 1 generated while creating migo but display mode Excise tab not appear

    Hi
    I created migo Part 1 generated. and excise tab also appeared.
    but while display mode Excise tab not appearing. In table J_1part1 Part 1 details are updated.
    Please explain What could be the reason
    Regards
    sitaram

    Hi
    Please any body give me valuable suggesition.
    Thanks and regards
    sitaram

  • How to display form in display mode only

    Dear firends...
         My BSP applications's page which is form actually is opend in change mode by default, I want to initialize this page in display mode as default. please help me to know how could carry out this task. Any suggestion, code, article will be great help of mine.
    thanking you,

    I think you mean HTMLB textEdit. Is that right ?
    If it's the case, you have the <i>disabled</i> attribute to set to 'TRUE' in order to prevent any input by the user.
    Here is the example adapted from SBSPEXT_HTMLB, page TextEdit.bsp
    <htmlb:textEdit  id       = "txtEdit"
                     text     = "The quick brown fox jumped over the lazy dog."
                     disabled = "true" />
    Best regards,
    Guillaume

  • Call Same screen in display Mode

    Hi all ,
    I have designed a screen with Inputfields as UI elements.
    On a button click , i need to display the same screen in DISPLAY mode .
    Is there any solution other than making a copy of the same screen ?
    Thanks
    Supriya

    Hi supriya,
    Create Transparent Container or Tray to place all your input fields.
    Create one attribute of type  WDY_BOOLEAN and bind it to enable property of your TC or Tray.
    On action of button click enable that property using set_attribute.
        get single attribute
          lo_el_context->set_attribute(
            EXPORTING
              name =  `ENABLED` // your attribute
                value = ABAP_FALSE ).
    Cheers,
    Kris.

  • Call transaction in new session (but only one)

    Dear all,
    as a hotspot functionality I would like to open a new transaction in a new session. For that reason, I use the FM ABAP4_CALL_TRANSACTION with the option STARTING NEW TASK.
    However I would like to restrict the new tasks in a way that only one session is used (no matter how often the user clicks the hotspot. Kind of like the ABAP Help in the workbench.
    I checked the class CL_IMC_MODE to see if it could work as a new internal session but the new mode dumped when I pressed the back button and according to the dump Statements that closes the internal mode unexpectedly like LEAVE are not allowed. Since I call standard transactions (like VA03) I can hardly prevent that. Did I miss something or do you have any other idea how I could solve my problem?
    Thank you for any input.
    Christian

    Hi Christian,
    Here is a sample code that takes in a sales order number, displays the document number as hotspot and when the user clicks on the hotspot, it opens a new window for displaying the order. No matter how many times the user clicks on the hotspot, it will only display one window for VA03. I hope this solves your problem.
    REPORT ztest.
    PARAMETERS: p_vbeln LIKE vbak-vbeln.
    DATA: ls_vbak LIKE vbak.
    DATA: BEGIN OF i_rfc_spagpa OCCURS 0.
            INCLUDE STRUCTURE rfc_spagpa.
    DATA: END OF i_rfc_spagpa.
    DATA: v_mode LIKE sy-index.
    START-OF-SELECTION.
      SELECT SINGLE * FROM vbak
                      INTO ls_vbak
                     WHERE vbeln = p_vbeln.
      IF sy-subrc <> 0.
    *-- error.
      ENDIF.
      WRITE:/ ls_vbak-vbeln HOTSPOT,
              ls_vbak-vkorg.
    AT LINE-SELECTION.
      CASE sy-ucomm.
        WHEN 'PICK'.
    *-- Delete the previous session and then call VA03 in a new session
          CALL FUNCTION 'TH_DELETE_MODE'
               EXPORTING
                    mode = v_mode.
          CLEAR: i_rfc_spagpa, i_rfc_spagpa[].
          i_rfc_spagpa-parid = 'AUN'.
          i_rfc_spagpa-parval = p_vbeln.
          APPEND i_rfc_spagpa.
          CLEAR i_rfc_spagpa.
          CALL FUNCTION 'ABAP4_CALL_TRANSACTION' STARTING NEW TASK 'TEST'
            EXPORTING
              tcode                         = 'VA03'
              skip_screen                   = 'X'
              mode_val                      = 'A'
              update_val                    = 'A'
    *       IMPORTING
    *         SUBRC                         =
           TABLES
    *         USING_TAB                     =
              spagpa_tab                    = i_rfc_spagpa
    *         MESS_TAB                      =
            EXCEPTIONS
              call_transaction_denied       = 1
              tcode_invalid                 = 2
              OTHERS                        = 3 .
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
        WHEN OTHERS.
      ENDCASE.

  • I have connected my iPad 2 to an Infocus X1 projector using a 30 pin / VGA connection cord. The iPad displays the slide display mode only and does not permit slide show to be launched?

    I have connected my iPad 2 to an Infocus X1 projector using a 30 pin / VGA connector.  The iPad will not change from slide sorter mode to presentation mode. How do I change the iPad to 'slide show' and get the projector remote to respond to changing slides?

    The new Apogee Duet for iPad and Mac, is compaible with iOS devices and includes a USB Midi input. This sounds like the perfect solution for your workflow.

  • BP transaction, even in create mode i am getting only display screen

    Hi,
    When i create a Business partner- Foreign Trade Organisation i am getting the screen in display mode only. I am not able to enter any details
    in the screen. I did all settings related to activation in table TB056, I don't know what is missing in customizing
    Can anybody help me
    Thanks & Regards,
    Ramji

    Hi Dave / Amandeep,
    Thanks for reply . When i create by giving business partner externally i am able to save but not able to change fields. I suspect the issue with Authorisation profile . If i check for it whether the role /SAPSLL/SR_AES_MD_BPA i need to check or any other role is there.
    Appreciate your response
    Thanks & Regards,
    Ramji

Maybe you are looking for