How to put display-only condition in a custom include program

hello everyone,
I have to make a custom include program that will be used instead of the already available 'bdcrecx1'.
I have a couple of questions and would appreciate your help.
I need to create a parameter with a checkbox. When this checkbox is 'X' the following 2 fields need to be greyed out, otherwise user should be able to enter values in them. How can I grey out the fields?
Using my include I should have just the following:
1)parameter with checkbox
(if 'X', session and user greyed out)
2)Session Name
3)User Name
Also, is there a way I can avoid putting the following onto the screen:
1)Keep session (this will always be defaulted to 'X'
2)No Data
<b>Note:</b> I made a copy of 'bdcrecx1'and i'm doing changes according to my requirement.
Thanks in advance.
Regards,
Fred.

Hi,
For your first question.
use
assign user command for checkbox say 'CLICK'..
at selection-screen output.
loop at screen.
if screen-group3 = 'VALUE' and checkbox condition.
screen-active = 0.
else
screen-active = 1.
endloop.
To make sure that the user enters the data in fields if checkbox is not grayed,
do it in event
start-of selection.
if field is initial.
exit.
go back to previous screen.
endif.
for removing 'keep session' , check out for exits..
Regards,
Tanveer.
Please mark helpful answers
Sorry about the previous error in reply.
Message was edited by: Tanveer Shaikh

Similar Messages

  • How do I display only key instead of description in MDX query

    Hi,
    Whenever I try to display material number, QN number.... in MDX it only displays the description instead of key. In query designer, it says "display as key and text".  How do I display the key only instead of text?
    Thanks,
    Duy

    I used your query and pointed to my query and the result is as expected - both key and text. I'm not sure what is different between our IO and mine.
    SELECT [Measures].MEMBERS ON COLUMNS,
    [0VENDOR].[LEVEL01].MEMBERS 
          PROPERTIES    [0VENDOR].[20VENDOR] ON ROWS
    FROM [MY QUERY]
    then I tried to hardcode the value it only showed me just the text. I tried different ways to make it show either just the key or both - but couldnt figure out. And one more thing I confirm is that the display settings in Bex really DOESNT matter or taken into consideration my MDX.
    SELECT [Measures].MEMBERS ON COLUMNS,
    {[0VENDOR].[ABCD]} ON ROWS
    FROM [MYQUERY]
    let me know if were able to figure it out
    Try the below statement and see what it does
    SELECT [Measures].MEMBERS ON COLUMNS,
    NON EMPTY [0NOTIFICATN__0NOT_TYPE].[LEVEL01].MEMBERS
    DIMENSION PROPERTIES [0NOTIFICATN__0NOT_TYPE].[20NOTIFICATN__0NOT_TYPE] ON ROWS
    FROM [YOURQUERY]
    Edited by: voodi on Sep 28, 2010 3:08 PM

  • How do we display only subordinate?

    I wanted to display only child records. The below query display starting with employee Scott and all subordinates... But i want to display only subordinate... How can i display here... any help is appreicated.
    SELECT HIERARCHY_NAME
    FROM T_HIERARCHY_CONVERT
    START WITH HIERARCHY_NAME = 'Scott'
    CONNECT BY PRIOR HIERARCHY_NO = HIERARCHY_MGR_NO

    The other way
    select
         sys_connect_by_path(ename,'/') xc, level, connect_by_root ename
    from      emp
    connect by  prior empno =   mgr
    start with ename='SCOTT'
    XC                                  LEVEL CONNECT_BY
    /SCOTT                                  1 SCOTT
    /SCOTT/ADAMS                            2 SCOTTOnly Subordinate.
    select
         sys_connect_by_path(ename,'/') xc
    from      emp
    where ename!='SCOTT'
    connect by  prior empno =   mgr
    start with ename='SCOTT'
    XC
    /SCOTT/ADAMS
    OR
    select
         ename xc
    from      emp
    where ename!='SCOTT'
    connect by  prior empno =   mgr
    start with ename='SCOTT'
    XC
    ADAMSSS

  • How can I display only one value of a field with two or more values?

    Post Author: skiabox
    CA Forum: Crystal Reports
    I have a field in my report with 2 or more values (depending of another field id).For example for id = 1 the report gives me 2 names in that field.For id = 3 the report gives me 3 names in that field.I want to display only one of these names in the id row.The selection of name is random.Thanks!

    Hello Tim,  would barely fit in this situation since this code resides on the client’s interaction side of things. I’d recommend using JavaScript for this matter, e.g. var Data_FName1 = document.getElementById(‘Data_FName1’).value;. If you still opt for using CFML, then you’d go for proxying your JavaScript code to a CFC.

  • How to set Display Only for some records in CAT2 Worklist

    Hi,
    I have a requirement to modify an attributes for some records in the Worklist of CAT2.
    We have an external system where we book our time. Weekly we import data from that external system into CATSDB using BAPI for every single employee.
    We would like when the user wants to modify his time sheet to be able to add/modify all records except those which were imported from the external system. Which means that those records should be in Display only mode / grayed out / before release.
    Is there any user exit or BADI that could help to modify that attribute and that will be triggered before displaying the Worklist ?
    Please advise !
    Thanks,
    Stefan

    I've solved the problem.
    First I've added customer field in CI_CATSDB structure and when I am importing the data I am populating that field with 'X', which means that this is record from the external application.
    I've created enhancement implementation in Function group->CATS, screen->2003 MODULE->D2000_MODIFY_LOOP, subroutine->modify_d2000_loop where I am checking the field mentioned above if it is 'X' I am modifying the screnn-output = off.
    It works, thak you for your help.
    Regards,
    Stefan

  • Display Only / Non-editable parameters on concurrent programs

    Is there a way to have a parameter be "display only" ... and not make it available to the user to change?
    Example:
    PO Number From:
    PO Number To:
    User enters PO Number From parameter, then the PO Number To parameter is prefilled with the value entered in PO Number From, but the user cannot change it. But it is available on the parameter screen for the user to see.
    Is there a way to do this?

    I don't think there's a default way from oracle to make parameter field "read only",
    but I can suggest a workaround though for your case.
    for example PO_NuMBER_FROM is having value set PO_NUM
    you can create new value set specifically for PO_NUMBER_TO (for example PO_NUM_TO).
    in the where condition of the new value set you can put condition to make it the same as PO_NUM, for example :
    where segment1 = :$FLEX$.PO_NUM
    This will make PO_NUMBER_TO LOV could only have one value which is same with PO_NUMBER.
    To show the default value in LOV, you can put the default value for paramter PO_NUMBER_TO as SQL Statement with value (for example ) : Select segment1 from po_headers_all where segmetn1 = :$FLEX$.PO_NUM.
    To make it perfect, you can make the paramter "Required" checkbox to Yes, so finally it should behave like below :
    1. PO_NUMBER_TO LOV will show default value same as PO_NUMBER_FROM shown as default
    2. Only one value in LOV, so user can't change into other value.
    3. The parameter is required so user can't change it into null.
    Hope this helps,

  • How to transfer SRM PO Condition Type and Custom fields to ECC?

    Hi All,
    I have a scenario to transfer SRM Line item condition types and few custom fields to ECC.
    I have found the following things but structure  'CI_EKPODB' does not exists in ECC.
    I am using 'SRM 5.00' and 'SAP ECC 6.0'.
    NOTE: I have to transfer condition records when PO is getting created / modified.
    1) Earlier I was planning to use BADI 'BBP_CREATE_BE_PO_NEW' in SRM and this will transfer the data to ECC in case of PO 
        Creation.
                   It contains the Condition fields to be passed to ECC.
    But i am unable to implement the same, whenever i create implementation when i click 'Activate' its getting activate then after few seconds its getting deactivate, i think this is because this BADI is not allowed for multiple use and SAP has already made one implementation on the same.
    2) I need to implement BADI 'BBP_ECS_PO_OUT_BADI' in SRM and 'BBP_PO_INBOUND_BADI' in ECC.
    SRM BADI will pass verified field details to ECC as a custom fields
           It does not contains the Condition fields to be passed to ECC, so i was planning to pass the same as custom field(s).
    ECC BADI 'BBP_PO_INBOUND_BADI'  will be used to map the fields to correct place and this should work.
    i need to modify the structures and pass all the custom fields (z-fields) - (CI_EKPODB but does not exists kindly suggest) as data.
    Other required details:
          Transfer of PO does not supported by SAP for service PO's, any suggestion on the same?
    Expecting quick reply from your end.
    Thanks in advance.
    Regards,
    Hemant

    Naresh,
    Thanks for quick response.
    My concern is this BADI 'BBP_CREATE_BE_PO_NEW' will trigger only in case of creation, not when PO is changes.
    I have to transfer condition types and custom fields to ECC in both the case (create / change)
    If i have to do this only in case of creation then i can pass Condition types / custom fields then i can use parameter 'CS_PO1_DOCUMENT' from method 'FILL_PO_INTERFACE1'.
    this parameter contains 'IT_POCOND', 'IT_POCONDX' and 'IT_EXTENSIONIN' as parameter  so my problem will be solved.
    But i dont think this will trigger in both the cases and 2nd thing i cann't implement the BADI since its not marked for multiple use so i am unable to implement the same.
    Kindly correct me if i am wrong.
    Once again thanks for your reply.
    Please suggest on the same.
    Regards,
    Hemant

  • When sending e-mails, how can I show only the name and not include the e-mail address?

    When sending e-mails, how can I show only the name of the recipient and not include their full e-mail address?

    Hi beverlyfromnull,
    Have you added the recipients to your address book?

  • How does someone get invited into Apple's customer seeding program?

    I would just like to know how can I get invited to join the  Apple’s customer seeding program.

    Read https://appleseed.apple.com/cgi-bin/WebObjects/SeedPortal.woa/

  • How to put display on screensaver while still using the beamer?

    How can i put my display on screensaver while still using the beamer?
    My beamer can be on for a long time, i would like to use my screensaver at the same time, but then the beamer screen also goes to screensaver.
    Is there a way to use just the beamer screen, while the computer screen is on screensaver?
    I use a macbook pro with Mavericks.
    Thanks in advance - Daan

    What you can do is hiding the tabs (see pic below) and force the active tab programmaticily
    Hope this helps
    Message Edité par TiTou le 09-20-2006 10:35 AM
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
    Attachments:
    Clipboard01.png ‏151 KB

  • Shortcut to put display only to sleep?

    hi all --
    i have my iMac in my bedroom and like to fall asleep to iTunes at the end of the night. I have my display sleep settings set to "30 minutes" for regular use during the day. When i turn iTunes on at night i'd like the screen to go to sleep right away.
    Is there an easy way to do this -- like with a keyboard shortcut -- other than annoyingly going back every night and changing the display sleep prefs to 1 minute?
    many thanks,
    michael

    " Can you think of any way of modifying the script so it is "one time only"?"
    Well, it's getting a little ugly but something like this might work:<pre>set old to (do shell script "pmset -g|awk '/displaysleep/ {print $2}'")
    do shell script "pmset force displaysleep 1"
    delay 90
    do shell script "pmset force displaysleep " & old</pre>It would be nicer if I could find an option to put the display to sleep immediately, but one minute seems to be the minimum. The script sets the display sleep timer to one minute, waits 90 seconds, then sets the displaysleep interval back to what it was before. This means that if you don't commence your one minute period of inactivity within 30 seconds, the setting will go back to what it was before, and the display won't sleep until then. The 90 second interval could be made longer, but running a counter for a long period is somewhat inelegant. There's probably a better way...

  • How can I display ONLY bookmarks, and not History?

    I'm sorry to ask a question with probably such an obvious answer, but I have never been able to figure this out. I want to display all my bookmarks so I can do a search & find the right page. But I always get my entire list of every page I've ever visited. I don't want to delete my history, but I want to only show real bookmarked pages.
    Here's what I've been doing: I select "Show ALl Bookmarks." Then I select a folder on the left under the header "BOOKMARKS." It still shows all the pages I've visited today.
    Thanks.

    After you enter the search criteria make sure you click on Bookmark Menu in the upper left of the coverflow window.

  • How can I display only the Data Logging pull down menu on my LV front panel?

    Is it possible to hide all unused pull down menu on my front panel vi like File, Edit, View etc.. and only
    display the pull down menu for the Data logging?!
    best regards
                          Norick

    Hey,
    You can build your own runtime menu (Edit>runtime menu) and then e.g. only display the application items you want to.
    Christian

  • How can I display only speaker notes on iPad?

    I have an IT dept that takes care of getting the ppt slides on the screen. I just want to use my iPad for my notes. Being able to get the notes into my iPad from a ppt would be awesome.

    Hey,
    You can build your own runtime menu (Edit>runtime menu) and then e.g. only display the application items you want to.
    Christian

  • How can you display only one artboard in the Navigation Panel?

    I would like to be able take advantage of the Navigation Panel as a thumbnail view of the artwork I am illustrating. The Adobe Illustrator file has 5 art boards. Is there an option in the Navigation Panel to view the art board I am working with, alone? 

    > That could work if all of the group items were the same size.
    Why would that matter? Each GroupItem has its own controlBounds, height, width, position properties. Each Document has its own height, width, pageOrigin properties. The script would reference those properties to position the Group in the center of the document.
    JET

Maybe you are looking for