How to get a copied transaction from MIR4 only to display??

hi all, we have two transactions named ZZMIR4 and ZZZMIR4. Both are copies from MIR4, but the first one is for modifications and the other one is only to display....
I use two registers in T169 to get this...ZZMIR4 has T169-TRTYP = 'V' so we can change invoices from this transaction and ZZZMIR4 has T169-TRTYP = 'A' so when you enter in this transaction you get the invoice in display mode...but the problem is that I can go through menus and do "edit-change" so I can modify the document anyway...
What Can I do to force only display with ZZZMIR4???
Perhaps using auth. object M_RECH_WRK??? if yes, then what activity I need to use to only allow display and what I can use to allow both change&display??? coz in se93 I set ZZZMIR4 with this object M_RECH_WRK and activity "03" but I can do "edit-change" anyway without problems....
Thanks in advance...any tips would be much appreciated...

Hi,
in program SAPLMR1M, dynpro 600 in PAI you have MODULE exit_6000 AT EXIT-COMMAND.
here you have:
    WHEN 'PPCH'.
      IF akt_typ = c_trtyp_a.
*---------- clear existing buffer and read from database -------------*
*---------- with lock for change                         -------------*
        MOVE rbkpv-rbstat TO f_rbstat_old.
        CALL FUNCTION 'MRM_PUFFER_REFRESH'.
        CALL FUNCTION 'MRM_INVOICE_READ'
          EXPORTING
            i_belnr     = rbkpv-belnr
            i_gjahr     = rbkpv-gjahr
            i_xselk     = 'X'
            i_buffer_on = space
            i_lock      = c_x
          IMPORTING
            e_rbkpv     = rbkpv
          EXCEPTIONS
            lock_error  = 1.
        IF sy-subrc NE 0.
          MESSAGE ID      sy-msgid
          TYPE    'I'
          NUMBER  sy-msgno
          WITH    sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ELSE.
          IF rbkpv-rbstat NE f_rbstat_old.
            MESSAGE i891 WITH rbkpv-belnr rbkpv-gjahr.
          ENDIF.
          CLEAR init.
          CLEAR init_6000.
          mir4_change = 'X'.
          LEAVE TO SCREEN 6000.
        ENDIF.
      ELSE.
        akt_typ = c_trtyp_a.
      ENDIF.
      CLEAR ok-code.
  ENDCASE.
The key here seems to be variables init, init_6000 and mir4_change.
See if you can do something so that when ok-code = 'PPCH' -> init = 'X', init_600 = 'X' and mir4_change = ' '.
(Another option: you can create a variant for transaction ZZZMIR4 so that all fields remain as "display only").
Best regards.
Edited by: Pablo Casamayor on Nov 17, 2009 9:15 AM

Similar Messages

  • How to get full resolution screenshots from iPad with Retina display?

    A coworker in another state has an iPad 3 with Retina display. I need him to email me some screenshots from his iPad. The native resolution is 2048x1536 yet every screenshot he sends me is only 1280x960 when opened in Photoshop. We've tried copying and pasting an individual photo in the mail message, as well as going to the camera roll, selecting 1 or multiple images and then sharing to a mail message, but all I ever get is 1280x960. This happens regardless of what the screenshot is of (either a specific app or just the iPad home screen).
    Why aren't I getting full 2048x1536 screenshots? What do we need to do to get them? Thanks.
    Mark

    Welcome to the Apple Community.
    Mirroring won't fill the TV screen. The iPad has an aspect ratio of 4:3 and the iPhone 4S or prior an aspect ratio of 3:2, neither of these will fit exactly into a TV screen which as an aspect ratio of 16:9. The Apple TV will not zoom the mirrored image, because it may well cut off information which is situated at the top or bottom of the screen.
    You may wish to try each of the settings in settings > AirPlay > Adjust for Overscan for the best setting that suits you.

  • How to get a copy of stagecraft (flash lite 3.1) source distribution

    Hi everyone,
    I am a PhD student doing embedded system development. As the flash lite for digital home is pretty attractive to me, I am wondering how to get a copy of stagecraft (flash lite 3.1) source distribution. I cannot find download link anywhere. Does it require a license or is it free? Can anybody tell me how to get a copy of that. Your help will be highly appreciated.
    Seamus

    Adobe usually license to OEMs or operators on a per-unit royalty basis for each device. Not for small clients or individuals. You can get commercial-grade flash player source code from Zeeis, many embedded devices vendor use Zeeis Embedded Flash Layer to play SWF files.

  • How to get all the values from the dropdown menu

    How to get all the values from the dropdown menu
    I need to be able to extract all values from the dropdown menu; I know how to get all those values as a string, but I need to be able to access each item; (the value in a dropdown menu will change dynamically)
    How do I get number of item is selection dropdown?
    How do I extract a ?name? for each value, one by one?
    How do I change a selection by referring to particular index of the item in a dropdown menu?
    Here is the Path to dropdown menu that I'm trying to access (form contains number of similar dropdowns)
    RSWApp.om.GetElementByPath "window(index=0).form(id=""aspnetForm"" | action=""advancedsearch.aspx"" | index=0).formelement[SELECT](name=""ctl00$MainContent$hardwareBrand"" | id=""ctl00_MainContent_hardwareBrand"" | index=16)", element
    Message was edited by: testtest

    The findElement method allows various attributes to be used to search. Take the following two examples for the element below:
    <Select Name=ProdType ID=testProd>
    </Select>
    I can find the element based on its name or any other attribute, I just need to specify what I am looking for. To find it by name I would do the following:
    Set x = RSWApp.om.FindElement("ProdType","SELECT","Name")
    If I want to search by id I could do the following:
    Set x = RSWApp.om.FindElement("testProd","SELECT","ID")
    Usually you will use whatever is available. Since the select element has no name or ID on the Empirix home page, I used the onChange attribute. You can use any attribute as long as you specify which one you are using (last argument in these examples)
    You can use the FindElement to grab links, text boxes, etc.
    The next example grabs from a link on a page
    Home
    Set x = RSWApp.om.FindElement("Home","A","innerText")
    I hope this helps clear it up.

  • How to get the return values from a web page

    Hi all :
       how to get the return values from a web page ?  I mean how pass values betwen webflow and web page ?
    thank you very much
    Edited by: jingying Sony on Apr 15, 2010 6:15 AM
    Edited by: jingying Sony on Apr 15, 2010 6:18 AM

    Hi,
    What kind of web page do you have? Do you have possibility to for example make RFCs? Then you could trigger events (with parameters that could "return" the values) and the workflow could react to those events. For example your task can have terminating events.
    Regards,
    Karri

  • How to get warranty service claim from nokia c5-03...

    how to get warranty service claim from nokia c5-03 in india because i have problem with nokia c5-03 I Purchase 2 week ago a new nokia c5-03 but from day 1 i facing same problem like 1) app close itself 2) internet browse close if any thing is downloading or downloading over 3) memory full always then i should reboot the phone then it work. 4) ovi map is open it shows memory full close the app So kindly help me how to get warranty service claim from nokia c5-03 in india i am unhappy with nokia c5-03
    Solved!
    Go to Solution.

    i updated software also but the same problem cont... I want to know that nokia will give back money or exchange for other new mobile

  • For some reason the system is telling me my birth date is wrong when it's not and it won't let me proceed to reset my password. Can someone tell me how to get a "real" person from tech on line?

    For some reason the system is telling me my birth date is wrong when it's not and it won't let me proceed to reset my password. Can someone tell me how to get a "real" person from tech on line?

    contact itunes support

  • How do I move/copy contacts from Entourage to iCloud Address Book without creating duplicates? Address Book on Mac, iCloud, iPhone and iPad is now empty

    How do I move/copy contacts from Entourage to iCloud Address Book without creating duplicates? Address Book on Mac, iCloud, iPhone and iPad is now empty

    Thank you for letting me know!
    Going to give it a go. Had a back up of all my clients files stupidly not my software as I have the originals disks. Just realised that amongst the software is ibiz and have lost al my accounting and billing files for the last 7 years want to cry so losing my contacts now will really tip me over the edge!
    Fingerscrossed this works!

  • How to get the current transaction variant ?

    dear guru,
    could you please tell me how to get the current transaction variant?
    i tried the following method:
      DATA l_tcvariant TYPE tcvariant.
      CALL 'DY_GET_TX_VARIANT'
         ID 'VARIANT' FIELD l_tcvariant.
    but it failed.
    best regards.
    zj

    Try something like this
    DATA:  VARIANT LIKE SHDTVCIU-TCVARIANT.
      CLEAR VARIANT.
      CALL FUNCTION 'RS_HDSYS_GET_TC_VARIANT'
       IMPORTING
         TCVARIANT                     = VARIANT
    *     FLAG_CLIENT_INDEPENDENT       =
    *     RC                            =
    *   TABLES
    *     T_SCREEN_VARIANTS             =
    *     T_INACTIVE_FUNCTIONS          =

  • How to get the current week from sysdate?

    Hi sir,
    i want to know how to get the current week from sysdate?
    thanks

    Hi Nicolas
    It seems you like to check my post and also make commend ;) thanks for your attention
    Have you ever read the posts above and given solutions ?Yes, I did
    Have you read the docs ? Yes, I checked
    What's the added value here ?Did youYou shared doc with solution(long one), I shared short one which point same solution(Check what Joel posted)..So what is benefit, As you can guess oracle docs are sometimes become so complicated as specialy for beginner...(At least it was like that for me and Belive me somedocs are still sooo complicated even for oracle coworkers ) But for you I dont know ;)
    => Why writting the PS in bold ?Why.. Let me think... Ohh Maybe I am looking some questions(many) and even user get answer they should not changed status so I am reading some posts and try to get problem and loosing time..
    So I am putting that PS wiht BOLD because I dont wanna lose time my friend ;) Because While I am trying to help ppl here In same time I am trying to giving support to my customer prod systems. Which mean time is very important for me...
    Hope my answer could satisfy you..
    One important PS for you.. You may not like my posts (or someone) but my friend I become tired to read&answer and make commend to on your comment which is about my posts.
    I am not newbie in forum(At least I fell like that) and I belive I know how I should make post..
    Thank you
    Regards
    Helios

  • How to get the selection parameters from logical database into one of the t

    Hi Sap ABAP Champians,
    How to get the selection parameters from logical database into one of the tab in the tabstrip selection-screen.
    Please help me for this
    Thanks
    Basu

    Hi
    Thanks, that will work, but then I'll have to insert code into all my reports.
    I can see that "Application Server Control Console" is able to rerun a report.
    This must mean that the Report Server has access to the runtime parameters.
    But how?
    Cheers
    Nils Peter

  • How to get payment document number from paid column in monthly invoice

    Dear experts
    I use SBO japan version and i need to know how to get payment document number from paid column in monthly invoice ?
    in table MIN1, only contain invoice and credit note document number, there is no payment document number
    thank you for your help
    Best Regards
    JeiMing

    Dear Gordon
    Yeah, you are right, i can use field MIentry in RCT2
    thank you
    Best regards
    jeiming

  • How to get the date starting from 1 to the current date from the system dat

    Dear all,
    Please tell me how to get the date starting from 1 based on the system date
    and it should come with respect of time also.
    example.
    suppose today is 6 Dec, 2006
    so ABAP report should find the 1 dec. 2006.
    Please help me as soon as possible.
    Regards,

    concatenate sy-datum0(2) '01' sy-datum4(4) into v_firstdate.
    or yo ucan use the fm:
    HR_JP_MONTH_BEGIN_END_DATE
    usage:
        call function 'HR_JP_MONTH_BEGIN_END_DATE'
             exporting
                  iv_date             = sy-datum
             importing
                  ev_month_begin_date = gv_begda
                  ev_month_end_date   = gv_endda.
    Regards,
    Ravi
    Message was edited by:
            Ravi Kanth Talagana

  • How to get auto proxy configuration from plugin?

    I need to retrieve the name of the client's proxy server to pass it along to my signed applet (because it doesn't seem to be getting the information automatically despite the fact that the java plugin is set to the use the browser settings for proxies).
    The Java Plugin loads the proxy server information based on the browser preferences, but I haven't figured out how to retrieve that proxy information from the Plugin itself. Sometimes the javaplugin.proxy.auto.url system property is null, even if the browser (MSIE) is configured to use an auto-configuration script/url for the proxy server configuration. I can see in the Java Console that the plugin knows the auto-config url, so how can I access that property from within my applet?
    Even if javaplugin.proxy.auto.url is not null, I don't know how to call the javascript function at that URL from within the applet to get the proxy server host name and port.
    Does anyone know how to get the proxy information from the plugin?

    Thank you! Indeed, the answer was there, but I hadn't been able to find it earlier (I guess I was searching on the wrong forums). For those who might be interested, here's the thread that helped:
    http://forum.java.sun.com/thread.jsp?forum=30&thread=281981

  • How to get the extension Info from firefox? Do we have any firefox API to communicate with the browser? I couldnt see the HTML of the widget displayed in the toolbar how to access the widget using JS or any way

    How to get the extension Info from firefox? Do we have any firefox API to communicate with the browser? I couldnt see the HTML of the widget displayed in the toolbar how to access the widget using JS or any way

    Hi,
    Thanks for the suggestion. I've been playing around with some of the classes of the java.net package and java.io
    Using the URL class i can get the content of the data from a STATIC page and output that response to file so that is does not display to the client broswer.
    But this only works if the URL i give points to a static html page.
    So the problem i'm getting is if i'm righting in arguments in the URL, this means that server needs to process the arguments i give and its sends back a dynamic result. Because its dynamic the URL class can not handle this and throws me an exception everytime :(
    Have u ever tried to do some things like this?
    Rahul

Maybe you are looking for