Help for checkbox display

Hi good souls,
I have 8 check boxes and when i want to insert the record in my table and check any of checkboxes the required field gets updated. but the problem is coming when i want to display the values.
the check boxes are not marked when i display the result. please help me by code and by your ideas on how to display the check mark when i press display.
data: mac1 type c,
mac2 type c,
mac3 type c,
mac4 type c,
mac5 type c,
mac6 type c,
mac7 type c.
WHEN 'INSERT'.
if mac1 = 'X'.
zaa_st-mc1 = 'CORRUGATOR'.
endif.
if mac2 = 'X'.
zaa_st-mc2 = 'INLINE'.
endif.
if mac3 = 'X'.
zaa_st-mc3 = 'LANGSTON'.
endif.
if mac4 = 'X'.
zaa_st-mc4 = 'DRO'.
endif.
if mac5 = 'X'.
zaa_st-mc5 = 'BOBST'.
endif.
if mac6 = 'X'.
zaa_st-mc6 = 'EMBA PRINTER'.
endif.
if mac7 = 'X'.
zaa_st-mc7 = 'EMBA GLUER'.
endif.
INSERT ZAA_ST.
IF SY-SUBRC = 0.
MESSAGE I000(0) WITH 'RECORD INSERTED'.
ELSE.
MESSAGE E001(0) WITH 'RECORD NOT INSERTED'.
ENDIF.

Hi friend,
How is your zaa_st table? Is it contains any field for check box (i.e: check_box). If yes, transfer 'X' to check_box field.
ex:
data: mac1 type c,
mac2 type c,
mac3 type c,
mac4 type c,
mac5 type c,
mac6 type c,
mac7 type c.
WHEN 'INSERT'.
if mac1 = 'X'.
zaa_st-mc1 = 'CORRUGATOR'.
endif.
if mac2 = 'X'.
zaa_st-mc2 = 'INLINE'.
endif.
if mac3 = 'X'.
zaa_st-mc3 = 'LANGSTON'.
endif.
if mac4 = 'X'.
zaa_st-mc4 = 'DRO'.
endif.
if mac5 = 'X'.
zaa_st-mc5 = 'BOBST'.
endif.
if mac6 = 'X'.
zaa_st-mc6 = 'EMBA PRINTER'.
endif.
if mac7 = 'X'.
zaa_st-mc7 = 'EMBA GLUER'.
endif.
* check box
zaa_st-check_box = 'X'.
INSERT ZAA_ST.
IF SY-SUBRC = 0.
MESSAGE I000(0) WITH 'RECORD INSERTED'.
ELSE.
MESSAGE E001(0) WITH 'RECORD NOT INSERTED'.
ENDIF.
please check and reply
regards,

Similar Messages

  • Help for checkbox display as marked

    HI ALL,
    I am facing some problem displaying the check box as marked or flagged when displaying the record.
    my requirement is that when i display a record it should also display the check box as marked. how do i do that. help me with the code.
    i have 8 checkboxes and when each checkbox is marked, the respective field is filled with a record. and when i display ( using push button) the selected record , it should show me the check box as marked if the field is not empty. how do i do it?

    LOOP AT T_SFLIGHT  INTO sflight.
                WRITE:
                  / SFLIGHT-FLDATE,
                    SFLIGHT-SEATSMAX,
                    SFLIGHT-SEATSOCC.
                MODIFY CURRENT LINE FIELD FORMAT BOX INPUT on.
                BOX = 'X'.
                MODIFY CURRENT LINE FIELD VALUE BOX.       
      ENDLOOP.
              ULINE.
    Try the highlighted lines.It will helps u.I

  • Need some help for checkbox

    Hi and Evening to Everybody,
    I have a Scenario where i need to select an entire row using the check box. Let me first define the Situation. I created a Simple Sql-report where the first column is a Simple Checkbox and the second column is a display only name and followed by the rest 5 columns as a checkbox.
    my table structure is :
    **create table satt (SELECT_ALL VARCHAR2(10), Name VARCHAR2(50), Object1 VARCHAR2(10), Object2 VARCHAR2(10), Object3 VARCHAR2(10), Object4 VARCHAR2(10), Object5 VARCHAR2(10));**
    Now i had a requirement where i need to Check All or Uncheck All Checkbox by clicking SELECT_ALL column header and i made it using
    simple java-script :
    "<input type="Checkbox" onclick="$f_CheckFirstColumn(this)">"
    Now i need to Check all checkbox in a row by clicking any of the SELECT_ALL check boxes. (Say i have 5 checkboxes in SELECT_ALL column and if i click 3rd checkbox... i need the entire 3rd row checkbox to be checked on click of that 3rd check box).
    I hope i was clear with my question. i did my best. Please help me out with this... Im eagerly lookin for the solutions.
    Thanks & Regards,
    - The Beginner.
    Edited by: 854477 on Jul 18, 2011 1:50 AM

    Dear BEGINNER..
    Assuming that you're using a standard table based layout for the report, what you need to do is add some code in the HTML attributes of the checkbox in the first column..
    The following javascript would set all other checkboxes in the same ROW as the first checkbox to the same state as it is.
    onclick="if (this.checked) {$f_CheckAll(this.parentNode.parentNode, true);} else {$f_CheckAll(this.parentNode.parentNode, true);}"NOTE: that this will only fire if the first checkbox on the row is actually clicked by the mouse. It won't fire if the first checkbox in the row is set by the CHECK_ALL in the column header.
    Hope this helps.
    Doug gault
    www.sumneva.com

  • Help for alv display

    HI experts,
    I have a requiment to display in ALV out put, for the TEXT COLUMM i need to display in single cell  not in multiple cells.
    please find below sceens for ref. so please help me how to proceeed its very urjent..
    As is
    To BE

    Hi Raghu,
    Please use word wrap functionality.
    Refer to the link below for more information:
    Word Wrap Functionality in ALV
    Regards,
    Ashvin

  • Help for J3D display in JSplitPane!!!

    I create a JSplitPane component to load a J3D canvas in it's right side and
    another panel in it's left .
    At first, It feels good.
    But after the windows of J3D canvas collapsed and expand it again,the
    problem appeard, and reports:
    Fail to Reset() D3D device, try Recreate device again. - D3DERR_DRIVERINTERNALERROR
    I view the bug-report of this error,and no use.
    Here is the code:
    http://zhdodo.8866.org/default/splitPaneTest1.java
    http://zhdodo.8866.org/default/actionTest1.java

    Did you ever find a workaround for this problem? I've been having lots of problems with java3d-1_3_2-beta3 using the openGL driver, with the program frequently not redisplaying panes containing Java3D content (although it's better than beta2). Eventually, as a last resort, I tried the DirectX implementation. This seemed to fix the redisplay problem until I collapsed and then expanded a pane within the splitter and ran into the problem you described. Java3D is turning into a bit of a minefield :-(

  • Can you use a single webhelp file to display different help for two apps?

    I have updated a WebHelp project for a Windows app (let’s call it App1). Now the Dev team is creating a separately installed app (lets call it App2) that shares some of the same Help information as the original app. Both apps can be installed on the same system. The Help for App1 is accessed from an About menu in the app UI.  Some of the topics are dialog boxes accessed from a question mark icon (?) at the bottom of the UI (I assume map IDs are involved in hooking up the dialog box Help - I need to verify this with Dev). The Help for App2 will be accessed from the App2 UI, which looks very similar to the App1 UI, except that certain features in App1 are missing from App2.
    Here are the parameters:
    In some cases, entire Help topics will apply to both apps.
    In some cases, a portion of a topic for App1 will also apply to App2.
    In some cases, a topic or topic portion for App 1 does not apply to App2 and vice versa
    I’m using Robohelp 9 (RH9). Is there a way to allow App1 to display only the WebHelp that is relevant to that app and for App2 to display only the WebHelp that is relevant to that app? Is there a solution that would allow me to use one Help project and build only one Help file, with the result that App 1 displays only the Help it needs and App 2 displays only the Help it needs?  Would conditionalizing the Help and providing two sets of WebHelp be the solution? Or is there some other alternative?

    You could do it in a couple of ways – one way is to have 1 project & use conditions to generate 2 flavours of WebHelp output, one for each App; the other way would be to use one project and create DUCC flavoured WebHelp – that way the use would choose to read the appropriate flavour of help for their App.

  • Can we provide new f4 help for a field in a list using grid display

    Hi Gurus,
    Can I provide F4 help for field in edit mode for (which is not using any std. data type, uses only custom char field ) in the list displayed using CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'.
    I know this can be done using OOPS concepts but, I need to know whether it is possible in this manner.
    And please dont suggest me to use CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' to get automatic  f4 help.
    I need to provide F4 help with my own logic once I press F4 in the edited field in GRID_DISPLAY
    Regards
    Mac.

    Hi Macmohan,
    You have to use F4AVAILABL attribute of fieldcatalog to achieve this.
    lv_fldcat-f4availabl = 'X'.
      lv_fldcat-ref_table = 'T582A'.
      lv_fldcat-ref_field = 'ZEITB'.
    This works with ALV GRID CONTROL
    Regards
    Abhii
    Edited by: Abhii on Dec 16, 2009 3:37 PM

  • How to display Help for the message in our program

    Hi Experts,
    Do any one know how to display the HELP for the Message in our ABAP program? Just like the user click the Long Text button in SE91.Do we have any function modules or Class method to do that? Thanks in advance.
    Joe

    Hi Joe,
    While creating a message class in se93, theres a button (documentation) on the application tool bar. Click on that and you will be lead to a text editor where you can fill in the necessary documentation for the message you have created.

  • Can i assign a collective srch help for select option in list display

    can i assign a collective srch help for select option in list display

    Hi,
    Yes ,u can assign a collective search help for select-option in list display.
    Eg:
    Define your select option like this
    SELECT-OPTIONS: s_vbeln FOR likp-vbeln MATCHCODE OBJECT vmva.
    Regards,
    Shiva.

  • Creating search help for AFNAM, and display the hit list with values only

    Hi guys,
    I have created a search help for AFNAM, but the hit list displays all even if it is blank.
    I want to display in the hit list the AFNAM with values and do not diplay the blank values...
    Is it possible? How am i going to do it?
    Thanks!
    Mark

    Hi Mark,
    After selecting data use this statement.
    DELETE it_table WHERE AFNAM is initial.
    Regards,
    Suneel G

  • Help matching color profiles for 2 displays??

    I have two cinema display monitors (one new, the other 1 year old), and I can't get them to share a color profile. Through SysPrefs I can calibrate them individually, but the results look completely different. The older monitor appears "pinker" overall, esp. in the light tones. When I finish calibrating, the last dialogue box asks to if I want to share the color profile, but I can't see the new profile in the other monitor's Display Profile list.
    Any help is greatly appreciated!

    Did you uncheck "Show profiles for this display only"? If the displays are not the same model, and age, you probably want different profiles, anyway. To calibrate properly you need a colorimeter.

  • Display Help for Field not referred through Data Elements in ALV

    Hi,
    I am working on a report program where the output is in ALV_LIST display format.The internal table used to define the field catalog contains fields that are not declared using Data elements.For these fields, when i press F1 from the output, the message I receive is 'No Document Available'.Can someone tell me how I can attach a help document to these fields without creating a new data element for each of these fields....
    For eg : My internal table that forms the field catalog is
      Data : Begin of i_itab occurs 0,
             matnr like mara-matnr,
             Name(50),
             end of i_itab.
    When this table is displayed in ALV, if F1 is pressed on the field matnr the corresponding dictionary help pops out.But since the field Name has no help document attached to it, i cannot view any help for this..Kindly tell me how i can attach my own help document to this field.
    Thanks,
    Swathi

    Hi,
    This issue was solved using the followiing steps.
    1. There is a parameter 'IT_EVENT_EXIT 'in the FM REUSE_ALV_LIST_DISPLAY or REUSE_ALV_GRID_DISPLAY.
    2.Set the value of the field of this paramter as
    EXIT-UCOMM= '&ELP'  " F1
    EXIT-BEFORE = 'X'
    This will make the control go directly to the user command functio written inside the program rather than the standard SAP define duser command....
    3. Inside the perform -usercommand in the ALV program use the FM HELP_DOCULINES_SHOW to show the appropriate help document
    This method may be used to display help text for those fields/columns in the ALV which are not referred to the fields/data elements in the data dictionary tabel

  • I got a new Mac Pro and I am using my 30 inch cinema display.  It has been flickering grey sometimes and then will stay grey and I have to reboot... this is very annoying..help.  I have reset the pram and that seems to help for a bit but then it starts up

    I got a new Mac Pro and I am using my 30 inch cinema display.  It has been flickering grey sometimes and then will stay grey and lock up my computer and I have to reboot... this is very annoying..help.  I have reset the pram and that seems to help for a bit but then it starts up again...and please don't tell me to check for software updates:)

    I got a new Mac Pro and I am using my 30 inch cinema display.  It has been flickering grey sometimes and then will stay grey and lock up my computer and I have to reboot... this is very annoying..help.  I have reset the pram and that seems to help for a bit but then it starts up again...and please don't tell me to check for software updates:)

  • Extender for Mini Display Port. Need help.

    I am running a setup with a 30m optical extender for DVI. I have just upgraded to the 8-core Mac Pro with 27" display which uses mini-display port. But that will give me maximum 1920x1200 resolution that is way too low for the 27" and I have to buy a converter from mini-display port to DVI.
    Is there any available extender cables for mini display port (30 meter)?

    that will give me maximum 1920x1200 resolution
    To go higher than 1920 wide, you need Dual Link.

  • User command for checkbox in alv grid output

    Hi,
    Does anyone knows the user command for checkbox in alv grid display. My requirement is to have a column for checkbox in alv output. When the user checks the checkbox, a pop-up dialog box will appear. This dialog box was created in screen painter. I can't find the user command for this. Please help.
    Thanks in advance.

    Hi,
    there r two ways for creating checkbox col on the ALV grid.
    1.)  take an extra field in your internal table i.e 
    data:
       checkbox type c.
    loop at internal_table into wa.
    checkbox.
    endloop.
    or
    the fieldcatalog attribute
    2.) wa_fcat-checkbox = 'X'.
    append wa_fcat to t_fcat.
    clear wa_fcat.
    if itab-checkbox = 'X'.
    call screen <dialogbox screen number>.
    endif.
    regards
    ravi

Maybe you are looking for