EPSTP (PSTYP) field to grey up dynamically in ME5xN tx

Hi all experts,
a tricky task, I'm losing months over this but without finding any acceptable solution.
I have a simple requirement: any Purchase Requisition's item that meets particular conditions (e.g. field ZSTATE <> 0) must show the PSTYP field (Item category) grey, not editable.
This is -obviously- a dynamic condition that must be checked runtime; moreover, since it involves each row of the purchase requisition, the solution of a screen variant seems not suitable (moreover, I don't know if it's possible to switch dynamically between variants).
Details: SAP_APPL 46C (quite old). No active BADIs as far as I've seen. The only user exit I've seen for these tx are the EXIT_SAPLMEREQ* family.
Tried so far:
- EXIT_SAPLMEREQ_007 is triggered any time a Purchase requisition is loaded and for any row in the PR; I can easily check if conditions are meet for any single item, but unfortunately there's no visibility over the correct SCREEN in it, so I cannot work on the visibility of that field.
- Same for EXIT_SAPLMEREQ_005; this ue is triggered every time the user press the ENTER key; i can easily check if conditions are satisfied for any single item, but once more, no visibility on SCREEN to disable that field.
- I tried to activate an ad-hoc field-exit (not yet deprecated on 46C) without success...
I should avoid - if conditions at item granularity are meet - any user operation on that field (EPSTP pressing F1 on the grid in the tx, which corresponds to the PSTYP field in EBAN) for that row; seems to be an impossible task, so I'd ask you to support me with some info and help on how accomplish this requirement. I guess if there's a way yo retrieve info on the screen and modify that at runtime in an usr exit, in cases like mine in which SCREEN visibility is almost inexistent.
EDIT:
I found an interesting description of the MEREQ001 exits family:
[http://sapass.metro.client.jp/UserExit/MEREQ001.htm|http://sapass.metro.client.jp/UserExit/MEREQ001.htm]
I think that
EXIT_SAPLMEREQ_007: Read Customer's Own Requisition Data when Reading Requisition
is a good place to start from. I've seen there's a (partial) implementation on the backend and this userexit is always triggered @ load time of a PR for every item. I can easily check there if a particular item meets my condition, but then I don't know how to make the EPSTP/PSTYP field non-editable on the transaction screen. Any help?
Edited by: Matteo Montalto on Jun 30, 2009 5:56 PM

Hi,
I think you are done lot of research on user exit's for PR,
small help from you regarding PR creation,
my requirement is while creating PR have to show how much quantity is available for requested material based on the plant and storage location in POP-UP or New Tab strip,
which exit can use for this, if we create new screen for this(Tab strip) , is it possible to show all the details in tab strip for that material,(user will enter multiple line items, will it change dynamically?)
Regards,
Suresh

Similar Messages

  • PO Material Field got grey-Error

    Hi All,
    We have created  a PO by refering the PR with Accnt assignment category K, so the entry of matl code is not required, we entered the matl decription.
    After that we have creted a PO with Account assignment cat A, as it is a asset, ..
    In all these cases the material field was grey.
    We done GRn for this PO also.
    But due to some mistake we have cancelled the GRN.
    BUT NOW THE PO MATERIAL IS BECOME GREY.
    I have checked the PO it is showing open qty for all line item.
    Please help me out why it become grey and how to make it as editable.
    Regards,
    Nagaraj S

    Hi,
    as per your thread, you have made GRN and cancelled , hence automatically that PO is Open, where you are seeing the PO Material Field as grey ? in PO or in MIGO screen ?
    In PO thru ME22n , you still can edit the material text
    Regards,
    Vikas

  • How to populate field catalogue fields in ALV using  dynamic internal table

    Hi All,
    Please let me know how to populate field catalogue fields in ALV using  dynamic internal table.
    I have created <dyn_table> using code below.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
                     EXPORTING
                       it_fieldcatalog = g_t_ifc
                        it_fieldcatalog = g_t_fieldcat
                     IMPORTING
                        ep_table        = dy_table.
      ASSIGN dy_table->* TO <dyn_table>.
    Create dynamic work area and assign to FS
      CREATE DATA dy_line LIKE LINE OF <dyn_table>.
      ASSIGN dy_line->* TO <dyn_wa>.
    Now this  <dyn_table>  has fields like idoc no.,creation date ,
    segment field 1, segment field 2 etc..Now idoc no.,creation date  are static fields from table EDIDC. And segment field 1, segment field 2 etc are dynamic fields from table EDSAPPL.
    In my  ALV report I am getting the final layout properly but I am unable to move values to corresponding fields in the final layout shown.Please let me know how to populate these fields from different tables.
    I tried this way but its not working.
    SORT g_t_edid4 BY docnum.
      LOOP AT g_t_edidc INTO g_r_edidc.
        READ TABLE g_t_edid4 into g_r_edid4
                         WITH KEY docnum = g_r_edidc-docnum
                                        BINARY SEARCH.
        IF sy-subrc = 0.
          <dyn_wa> =  g_r_edid4-sdata.
         MOVE-CORRESPONDING g_r_edid4 to <dyn_wa>.
       CLEAR g_r_edid4.
        ENDIF.
    MOVE-CORRESPONDING g_r_edidc to <dyn_wa>.
    APPEND <dyn_wa> TO <dyn_table>.

    You have to assign each field to field symbol and then assign the value to that field symbol and asssign that field symbol to workarea field symbol.
    LOOP AT g_t_edidc INTO g_r_edidc.
    READ TABLE g_t_edid4 into g_r_edid4
    WITH KEY docnum = g_r_edidc-docnum
    BINARY SEARCH.
    IF sy-subrc = 0.
    ASSIGN COMPONENT 'SDATA' OF STRUCTURE <DYN_WA> TO <DYN_FLD>.
    <DYN_FLD> = g_r_edid4-sdata.
    " <dyn_wa> = g_r_edid4-sdata.
    " Assign each fields like this.
    " MOVE-CORRESPONDING g_r_edid4 to <dyn_wa>.
    CLEAR g_r_edid4.
    ENDIF.
    " MOVE-CORRESPONDING g_r_edidc to <dyn_wa>.
    APPEND <dyn_wa> TO <dyn_table>.
    Regards,
    Naimesh Patel

  • J1iex-duty fields are greyed out

    Dear all,
    while doing j1iex, all the excise duty fields are greyed out? The quantity field is also in grey in colour. What might be the reason? Please suggest.
    Thanks & Regards,
    AR

    Dear pankaj singh,
    My question is i havent even captured the excise invoice. I did MIGO with only part I. Then came to J1IEX and tried capturing excise invoice. There i find all the duty fields are greyed out. It might be due to some note number. Please suggest.
    Thanks & Regards,
    AR

  • Fields appear grey instead of light blue

    I have a user (using Acrobat X) that when she opens a pdf form she sees the fields in grey. Even though she changes the settings in Prefernces to light blue, it defaults back to grey.

    Hey George .. just got back from the user's desk. Here's what I can report and maybe that'll make things clearer. I open Adobe Acrobat x pro - go into prefernces, then forms and select light blue. click ok and then I can open the document with a light blue field. I can successfully do this multiple times .. however, when I close Adobe and re-open it the default color is pink ( which gives nmeme a grey field again). The user sauid any other peerson in her area can open those same documents with no color issue. Any suggestions? Is there a location in the registry that can change the default color to make it stick?

  • Adding fields on selection screen dynamically

    Hi all,
    Can we add some fields to selection screen dynamically on pushbutton click?
    Regards,
    Dnyanesh

    just have look below code
    REPORT zrsdvsr1
           LINE-SIZE 220
           LINE-COUNT 65(5).
    TYPE-POOLS : slis.
    TABLES
    TABLES: vbak.
    DATA DECLARATIONS
    Ranges
    RANGES: r_posnr FOR vbap-posnr.
    DATA: BEGIN OF t_veramt OCCURS 0,
            vbeln TYPE vbap-vbeln,
            posnr TYPE vbap-posnr,
            matnr TYPE vbap-matnr,
            netwr TYPE vbap-netwr,
            mwsbp TYPE vbap-mwsbp,
          END OF t_veramt.
    DATA: BEGIN OF t_disamt OCCURS 0,
            vbeln TYPE vbap-vbeln,
            posnr TYPE vbap-posnr,
            matnr TYPE vbap-matnr,
            netwr TYPE vbap-netwr,
            mwsbp TYPE vbap-mwsbp,
            netwr_v TYPE vbap-netwr,
            mwsbp_v TYPE vbap-mwsbp,
            disc_val TYPE vbap-mwsbp,
          END OF t_disamt.
    *&   ALV FIELDS
    DATA : alv_fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,
           alv_layout TYPE slis_layout_alv.
    SELECTION SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS:  p_ver RADIOBUTTON GROUP g1 USER-COMMAND rad DEFAULT 'X',
                 p_sab RADIOBUTTON GROUP g1 .
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    SELECT-OPTIONS: s_vbeln FOR vbak-vbeln NO INTERVALS MODIF ID gr1.
    PARAMETERS:    p_dwfile TYPE  rlgrap-filename
                   DEFAULT 'C:\test1.txt' MODIF ID gr2,         "#EC NOTEXT
                   p_upfile TYPE  rlgrap-filename
                   DEFAULT 'C:\test.txt' MODIF ID gr3.          "#EC NOTEXT
    SELECTION-SCREEN END OF BLOCK b2.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_upfile.
    **************F4 Help For Input File Name****************************
      CALL FUNCTION 'F4_FILENAME'
           EXPORTING
                program_name  = syst-cprog
                dynpro_number = syst-dynnr
                field_name    = 'C:\'
           IMPORTING
                file_name     = p_upfile.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_dwfile.
    **************F4 Help For Input File Name****************************
      CALL FUNCTION 'F4_FILENAME'
           EXPORTING
                program_name  = syst-cprog
                dynpro_number = syst-dynnr
                field_name    = 'C:\'
           IMPORTING
                file_name     = p_dwfile.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF  p_sab = 'X'.
          IF screen-group1 = 'GR1' OR screen-group1 = 'GR2'.
            screen-active = '0'.
            screen-invisible = '1'.
          ELSE.
            screen-active = '1'.
            screen-invisible = '0'.
          ENDIF.
          MODIFY SCREEN.
        ELSE.
          IF screen-group1 = 'GR3'.
            screen-active = '0'.
            screen-invisible = '1'.
          ELSE.
            screen-active = '1'.
            screen-invisible = '0'.
          ENDIF.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    START-OF-SELECTION
    START-OF-SELECTION.
    Check Radio Button
      IF p_ver = 'X'.
        PERFORM get_details_open_so_vertex.
      ELSE.
        PERFORM get_details_open_so.
      ENDIF.
    Display the output.
      PERFORM diplay_report .
    regards
    vinod

  • ALV display: Default setting field in grey mode

    Hi
    In SE16 or SE11 when we are checking the table (any table, say MARA, RESB etc) with ALV option, we are getting the "save layout" with default setting field in grey mode. So whatever layout is created it is not a default layout, the user has to select the layout. However when I check with another friend in another project there the ALV setting is coming with editable option.
    So how shall I get that the field in change mode. Pls suggest.
    Regds

    Hi BNR,
    for reasons that may be discussed elsewhere, the layout saved in SE16 is applied to all tables displayed using SE16. Thus a default layout does not make too much sense. In the layout the columns displayed are stored. If you have a default layout you will see only the columns that have all displayed columns in common.
    By the way, in my system I can store a default layout but only user-specific. I can not save standard (non-user-specific) layouts in SE16/SE11.
    In SE16N I can store both general (non-user-specific) and Default layouts. Here the layout is table-specific.
    If you users want a special layout (and they are allowed to use SE16!!!) , you should switch to SE16N.
    Regards,
    Clemens

  • Return order - your reference field is grey

    hi,
    I want to make use the field "your reference" in item -->  PO tab --> your reference. however, this field is grey in return order. how can I make it changable. Thanks

    Hi
    Normally this field is not grayed out. Check field varient with help of SHDO. In order to copy PO number from order to return order you will have not create copy control routine with help of T code VOFM. Standard routine is 101. Copy and modify routine according you need and assing the new routine in copy controls between OR to RE.
    Vijay

  • Changing the field properties (editabel/greyed out) dynamically?

    Hello
    I am developing an Adobe interactive form. My requirement is dynamically changing the filed properties based on the other field values/selections/inputs.
    1) For example in the form, if user puts value_A in field_1, then, the field_2 should be greyed out.
    2) If user puts value_B in field_3, then, system automatically populate the value_C in field_4 in order to let the user make easy- user friendly
    3) If user puts value_D in field_5, then, only allowed value in field_6 is value_E, if by mistake user puts value_F in field_6, then, system should throw error message
    Pls. let me know how to achive this DYNAMIC functionality in the FORM or do we need to handle from WEbDynPro ABAP side?
    Thank you

    Hi,
    Everything you have mentioned is possible in the form itself. Just write the valid script at valid event of valid field.
    1) For example in the form, if user puts value_A in field_1, then, the field_2 should be greyed out.
    Ans: Write on change event of Field1:
    if($.rawValue eq "value_A")
    then
    Field2.access = "readOnly"
    Field2.fillColor = "192,192,192"
    endif
    2) If user puts value_B in field_3, then, system automatically populate the value_C in field_4 in order to let the user make easy- user friendly
    Ans: Write on change event of Field3:
    if($.rawValue eq "value_B")
    then
    Field4.rawValue =  "value_C"
    endif
    3) If user puts value_D in field_5, then, only allowed value in field_6 is value_E, if by mistake user puts value_F in field_6, then, system should throw error message
    Ans: Write at exit event of Field6:
    if(Field5.rawValue eq "value_D" and $.rawValue ne "value_E")
    then
    xfa.host.messageBox("Wrong Value", "Error", 0)
    endif
    For such type of scripts you can refer to designer help also. So please check there before posting your query that would save your time.
    Regards,
    Vaibhav

  • For Z Po order type - Item category field is  greyed out.

    Hi MM Experts,
    I am an ABAper working on PO creation with respect to PR( PR with account assignment N)  for Z order type . The requirement includes to update item category of PO with B , But for this Z order type both PO transaction Create/Change(ME21/ME22) the field item category has been greyed out ( Non editable). I checked the SPRO setting for this order type ( SPRO-MM->Purchasing-PO->Define Screenlayout at document level .The field item category has been made as optional.
    Please let me know why this field ( item category still showing in display mode) and How to make it as editable .I need it as editable in ME22 to implement the new requirement of updating that field with item ategory B.
    Thanks in Advance
    Pravee.

    Hi All,
    Since I was creating a PO with respect to PR - after running through all the screens the item category field was becoming non editable, But during the create in one of screen the field item category was still editable, so I updated the item category with B during the create and created the PO, I have used BDC to do the same and its working fine. Thanks for all your inputs.
    Thanks
    Pravee.

  • How to know or check the type of a field when processing a dynamic table?

    Dear all,
        When processing a dynamic table i have a short dump because of a convert_of_type incorrect, so i would like to check the type of field-symbol <f> before moving the data (type char) to this field-symbol <f>.
    Could you please help me how to check or get the type of field-symbol <f> (because field-symbol <f> is assigned dynamic, so this <f> can be type char, unit, or quantity, ...)?
    The source code same as below:
       ASSIGN COMPONENT lc_field OF STRUCTURE ls_data TO <f>.
       MOVE lv_field TO <f>. (Dump is here when lv_field is char type and <f> is quantity type => could i check the type of <f> if it's char type before using this instruction "MOVE ..."?)
    Thanks a lot in advance,
    Vinh Vo

    Try to use this way
    WRITE lv_field TO <f>.
    Instead of
    MOVE lv_field TO <f>.

  • Refer to Tabular Form field in Condition of Dynamic Action

    I tried to filter on this topic but didn't come up with anything.
    Is there a way to refer to a field in a tabular form as a condition of a dynamic action?
    For example, I want to pop up a message (javascript 'alert') when the value of one field in a tabular form is changed, but only if another field for that same row meets a certain condition.  So let's say the field in the condition is XYZ.  So in the condition section, i would have PL/SQL Expression - XYZ IS NULL.  Something like that.  How would I refer to that XYZ field from my tabular form in the condition section of a dynamic action?
    Thanks in advance.
    John

    Thanks for your help on this.  I think going with the action being an 'execute javascript code' is a good approach.  So here is my situation - I have a tabular form.  I have 2 fields (among others) - SPECIES and WEIGHT.  The SPECIES is a select list in the tabular form.  The WEIGHT is a text box in the tabular form.
    To make this simple, let's say this is for only one species - SNSG.  If the person changes the select list to SNSG and the associated WEIGHT field is NULL, I need to pop up a message that says 'Fill in weight field if selecting SNSG'.
    So here is what I have:
    Event: Change
    Selection Type: jQuery Selector
    jQuery Selector: :.speciesClass
    Condition: In List
    Value: SNSG
    True Action: Execute JavaScript Code
    ** Here is where I am stuck: In the JavaScript code I need to this:
    If WEIGHT is null THEN:
    confirm('Warning: Enter weight if entering SNSG species.');
    I am not sure how to write that "If WEIGHT is null THEN" part in javaScript and be able to refer to the WEIGHT field associated with the SPECIES value I just changed in the tabular form.
    I hope that makes sense!
    I appreciate your help!!
    Thanks,
    John

  • Fields not greyed out in display mode in screen exit

    Hi all,
    i am working on an screen exit for CJ02 transaction. the values in the customer subscreen are getting updated in database and even it is reflecting in fields when viewed again. the problem is that in display mode (CJ03) the fields are still editable. though there is no save button, but the fields should be greyed out.
    i have tried to modify screen using LOOP AT SCREEN in the function exit provided in PBO.....but it is not picking the subscreen.
    please provide any solution as soon as possible.
    thanks in advance

    In the PBO in your screen exit:
    IF sy-tcode EQ 'CJ03'.
    LOOP AT SCREEN .
    if screen-name 'your field'
    screen-input = 0.
    screen-output = 1.
    MODIFY SCREEN.
    ENDIF.
    endif.
    what enhancement are you using?
    bye

  • APEX: Store Values of fields which are created dynamically(Using APEX_ITEM)

    Hello All,
    I am creating one application in which i create one report with dynamic fields(using APEX_ITEM Package) and non-dynamic fields(Taking from table). Now i want to store the value of the dynamic fields into table. So please help me on that.
    I want to store value of APEX_ITEM.TEXT fields in a table, but i don't have names of it so how to store value in table?
    select APEX_ITEM.CHECKBOX2(1,HC.S_ID) "SELECT",
    HC.ACT_NAME,HC.REBOOT_DATE,
    APEX_ITEM.TEXT(2,00) "Start Time",
    APEX_ITEM.TEXT(3,00) "End Time",
    APEX_ITEM.TEXTAREA(4,'Enter Remarks',2,40) "Remarks" FROM HWC_CHK_SCHEDUELE HC;
    Thanks,
    Jiten

    Let me clarify a finer point. The APEX_ITEM API provides for value , which can come from a table.
    You need to add APEX_ITEM to your columns selected from the table as well.
    Once you have done that then the p_idx value , the first numeric, in the APEX_ITEM, is accessing in DOM as well as PL/SQL.
    In DOM, for JavaScritps, the p_idx 1 becomes f01, 2 becomes f02 ,etc.
    In PLSQL the same are APEX_APPLICATION.G_F01, APEX_APPLICATION.G_F02, etc.
    Hope that explains what you need to do.
    select APEX_ITEM.CHECKBOX2(1,HC.S_ID) "SELECT",
    APEX_ITEM.TEXT(2,HC.ACT_NAME) "ACT_NAME",
    APEX_ITEM.DATE_POPUP(3,HC.REBOOT_DATE) "REBOOT_DATE",
    APEX_ITEM.DATE_POPUP(4,SYSDATE) "Start Time",
    APEX_ITEM.DATE_POPUP(5,SYSDATE) "End Time",
    APEX_ITEM.TEXTAREA(4,'Enter Remarks',2,40) "Remarks"
    FROM HWC_CHK_SCHEDUELE HC  /* no semi colon in SQL; */In the OnSubmit process
    FOR I IN APEX_APPLICATION.G_F02.COUNT LOOP
      -- LOGIC HERE.
    END LOOP;Note I have not used Check box F01 in the above code. Look up the documentation for checkbox in Referencing Arrays. Checkbox behaves different as compared to other item types.
    BTW, why are you not using Tabular form for this?
    Regards,
    Edited by: Prabodh on May 9, 2012 5:32 PM

  • SQL Subscription field shows * only with Dynamic Text Label in SQL query

    We are using Hyperion Analyzer 7.2.x for showing budget and actual data. I have to show this financial data based on the security e.g. person in IT can see only IT dept. data. Hence I want to use dynamic text label <<userid>> for the security based on the person logging in to Analyzer.
    But when I use dynamic text label <<userid>> in the SQL query in SQL Spreadsheet, SQL Subscription field shows * only selection option. Does anyone have idea how to solve this problem?
    Thanks in advance for your help.
    -SV

    Hi
    Okay i know this is a bit crazy way.....but i think this is the solution for your issue.
    Create a report without the where clause (<<useris>>) then add a filter (sql subscription) then you can find all the values that are there in the SQL field (try to increase the query limit it is set to 250 as default) then edit the spreadsheet and add the where clause (<<userid>>).
    This will help you having the filter and the dynamic text label. I think there is an issue when you try to filter it with a where clause.
    Hope it helps.
    CK

Maybe you are looking for

  • Songs are in my itunes won't transfer to iphone

    i have transfered songs from my library to the iphone library in itunes. the songs are grey and dont appear on my phone music! any suggestions on how to rectofy?

  • I pad mini with retina display

    The safari app. in my I pad mini with retina display crashes several times per a day . Is there any solution for this problem ?

  • Problems with the UnitedLoad OBE Tutorial

    I wanted to do the United Loan Web Service Tutorial, but the link to the application required it's broken and redirects me to the Oracle error page. Any info about this ? Should I post this in another place ?

  • I can't update my ipod touch 5th generation to iOS 6.1.2

    iTunes says it has detected my an error and need to restore. I tried to restore few times, it give me the same messages.

  • XI2 scheduling to file location problem

    source file error. CrystalEnterprise.DiskUnmanaged: The system cannot find the path specified. I receive the above error when scheduling to put a file in a file location. I have used the format servername\directory\subdirectory\subdirectory and serve