Multiple choices and table fields

I am designing a form application now and I am stuck in some problems. One of them is related to multiple choices:
The application looks like question-answer style. E.x:
Funded goods before:
a. Bed b. Chair c. Computer d. Clothing e. Book
How do I save those answers? I mean do I need to create 5 fields in the table for saving the each above anwsers like:
create table Goods (Bed varchar(1), Chair varchar(1), Computer varchar(1)...)
If a, c, e are chosed, goods.bed = 'Y', goods.computer = 'Y', goods.Book= 'Y'.
Please give me help. Many thanks and waiting.

No, you don't need to store them in a table. You will put 5 checkboxes next to each of the five choices and you will check the value of the combo if it is either 1 or 0. You will set the ValueWhenChecked property of the item to 1 and the ValueWhenUnchecked property of the item to 0 . So if the value of the checkbox is 0 then it is unchecked and when it is 1 it is selected.
So in your example you can write :
if ( :bed='1' and :computer = '1' and :book = '1' ) then
I hope i helped you.
Regards,
Bill...

Similar Messages

  • How to design a smartform with below tables and table-fields??

    How to design a smartform  and driver program using this tables and table fields
    FIELD DESCRIPTION     TABLE-FIELD                                   
    Tax Invoice No:     vbrk-vbeln                    
    Code     vbpa-kunnr where parvw = RG                                   
    Ship To     vbpa-kunnr where parvw = WE                                   
    PAN No     J_1IMOCUST-J_1IPANNO for WE                              
    ECC     ,,                                   
    Range     ,,                                   
    Div     ,,                                   
    Excise Reg No     ,,                                   
    LST No     ,,                                   
    CST No     ,,                                   
    Invoice No:      vbrk-vbeln                                   
    Do No:     vbfa-vbelv where vbeln = inv no and vbtyp_v = C get the vbeln where vbak-auart = 'ZDO'           
    Sales Doc Num:     vbfa-vbelv where vbeln = inv no and vbtyp_v = C get the vbeln where vbak-auart = 'ZSO'                             
    PO:     vbkd-bstkd where vbeln = sales doc no                                   
    Delivery No:     select vbelv from vbfa where vbeln = inv no and vbtyp_v = J                             
    Goods Removal Dt&Time:     select vbeln from vbfa where vbelv = dlv no and vbtyp_v = R Put this vbeln in mkpf and get BUDAT and CPUTM     
    Selection screen parameter should be : vbrk-vbeln.

    Hi,
    First design your form interface, this is the set of fields that you need to display in your form and create this as a structure in SE11.  In your print program code the logic to extract the data into this structure, this is just regular ABAP, nothing special here.
    When you have your data call function module SSF_FUNCTION_MODULE_NAME to determine the name of the generated smartform function module.  Then call this function module, passing the data collected into your structure.  If necessary you will need to find the print parameters required and pass these too.
    In your smartform you will need to use the data structure you created in SE11 as the smartform interface and design the layout required to display these fields.
    Regards,
    Nick

  • Attaching search help to SCREEN FIELDS AND TABLE FIELDS

    Hello experts,
    Himanshu here.
    Could you please explain how we can assign search Help to a screen field AND TABLE FIELDS in ABAP?
    Please reply at the earliest,as we have some deliverables to be met
    Thanks

    Hi,
    In the initial screen of the ABAP Dictionary, select object class Search help, enter the name of the search help and choose Create.
    A dialog box appears in which you must select the type of search help.
    Select Collective search help and choose .
    The maintenance screen for collective search helps is displayed.
    Enter an explanatory text in the field Short text.
    You can for example find the search help at a later time using this short text.
    In the Definition tab page enter the parameters of the collective search help.
    Select the Imp flag if it is an import parameter. Select the Exp flag if it is an export parameter.
    Define the types for the parameters of a collective search help by assigning a data element. Enter the name of the data element that describes the contents of the search help parameter in the Data element field.
    You can assign the parameter a default value in the Default value field.
    In exceptions it could be necessary to change the standard process defined by the search help. You can implement the deviation from the standard using a search help exit.
    In this case enter the name of the search help exit in the corresponding field.
    On the Included search helps tab page, define the search helps that you want to include in the collective search help.
    You can include elementary search helps and collective search helps.
    Use the Hide flag to control whether an included search help should appear in the dialog box for selecting the elementary search help. If the flag is set, the search help is not offered.
    It makes sense to hide search help inclusions if one or more search paths in the standard system should not be used in a concrete R/3 System. Similarly, search help inclusions can also be already hidden in the standard system because they only can be used meaningfully in a few R/3 Systems. You have to cancel the flag in this case.
    Position the cursor one after the other on each allocated search help and choose Parameter assignment.
    In the next screen, enter the parameter names of the elementary search helps to which the corresponding parameters of the collective search help should be assigned in the field Reference parameter.
    You can select the parameters contained in the included search help using the input help. Create a proposal for the assignment with Proposal.
    Save your entries.
    A dialog box appears in which you have to assign a development class to the search help.
    Choose .
    Result
    The collective search help is activated. You can find information about the activation flow in the activation log, which you can display with Utilities ® Activation log. If errors occurred when the collective search help was activated, the activation log is automatically displayed.
    Do not forget to link the search help to a screen field. The search help attachment is not part of the search help definition; it is part of the object definition to which the search help is attached.
    regards,
    veeresh.

  • How to compare table data and table field

    Hi buddy,
        I have some question about how to compare table data and table field.
       1. I know there is one method:   CL_ABAP_UNIT_ASSERT=>ASSERT_TABLE_CONTAINS  , it use in unit test to compare the table data(A and B) , you can loop table A into structure A1, then use this mehtod it can compare whether table B contain structure A1.  but when I try to use this in main program it will dump.
              CL_ABAP_UNIT_ASSERT=>ASSERT_TABLE_CONTAINS(
                                                                                                        LINE    = A1
                                                                                                        TABLE = B ).
           Is there any method or FM can be used to compare the table data ?
        2. I also want to compare two table field , try to find out the different. How to realize this.
    Thank you for your sincerely answer.

    Hi Zongjie,
    What`s the difference, if you using loop A into wa_A, read table B into wa_B with all field, then compare with wa_A and wa_B.
    The question 2, seems no standard FM available here.
    Loop A into wa_A.
       Loop B into wa_B.
           if wa_A-field1 eq wa_B-field1.
           endif.
            if wa_A-field2 eq wa_B-field2. 
           endif.
       endloop.
    endloop.
    regards,
    Archer

  • Create Multiple Signature and Date fields with a custom Toolbar Button

    First off, thanks in advance!  I am a scripting newbie and I am trudging my way through with very little experience with scripting of any kind.  I am good at taking other's scripts and forming them into something I need, but I can't seem to find anything to do what I want.
    Using Adobe Acrobat X, I am trying to create a toolbar button that I can press to create multiple signature and date fields with predetermined locations.
    Below is the script I have that is working to create just a single signature box, but I can't seem to figure out the exact syntax to have that same button create multiple fields.  In total it is 9 signature fields and 9 date fields need to be created.  If you can just give me an example of what the button would look like with multiple scripts?  I was assuming I would set up multiple variables and then in the cExec property of the toolbar button I could just call out all of those variables? 
    var sigswm = "addField('sigSWM', 'signature', '0', [108, 198, 494.64, 72])"
    app.addToolButton({cName: "dotbutton", cExec: sigswm, cLabel: "Place Signature and Date Blocks",});
    Thanks in advance for any help you can provide.
    Billy Sweeney

    Thanks!  That was probably the only thing I didn't try.
    I do have one more question.  What I want is when the signature field is clicked it fills out a specific date field. I beleive the script I want would be:
    var currentTime = new Date()
        var month = currentTime.getMonth() + 1
        var day = currentTime.getDate()
        var year = currentTime.getFullYear()
        var signingTime = day +"/"+month+"/"+year
        var f = this.getField("dateSWM"); 
        f.value = signingTime;
    I found this on another thread that mentioned it could be placed in the Signed tab of the signature properties dialog.  I am assuming it would be placed in my button script file as a setAction script for each signature, but I am not real sure exactly where or how?

  • Unable to access the data and table fields from handheld

    Hi,
    I've created a Testing.sdf file on the local pc using SQL Server Management Studio, creating table, fields and insert some data. in local pc i can access the the data as normal. the problem is after i moved the file to handheld device i
    cannot access the data within the table, it shown error 'Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)' . I tried to google it, but still got no solution.
    Thanks,

    'Name Space
    Imports System.Data.SqlServerCe
    'String Connection
    'Data Source = D:\SKUDWN3 .sdf'
    Public Sub CreateDB(ByVal StrConn As String)
            'Declaration
            Dim cn As SqlCeConnection = Nothing
            Dim cm As SqlCeCommand = Nothing
            Dim SQLEngine As SqlCeEngine = Nothing
            Dim rs As SqlCeResultSet = Nothing
            Dim rec As SqlServerCe.SqlCeUpdatableRecord = Nothing
            'Tables -
            Const TB_SKUDWN3 As String = "SKUDWN3"
            'Fields TB_SKUDWN3
            Const FL_SKUDWN3_UPC As String = "UPC"
            Const FL_SKUDWN3_SKU As String = "SKU"
            Const FL_SKUDWN3_LD As String = "LD"
            Const FL_SKUDWN3_SD As String = "SD"
            Const FL_SKUDWN3_AN As String = "AN"
            Const FL_SKUDWN3_Price As String = "Price"
            Const FL_SKUDWN3_GST_FLAG As String = "GSTFLAG"
            'Create Database
            SQLEngine = New SqlCeEngine(StrConn)
            SQLEngine.CreateDatabase()
            SQLEngine.Dispose()
            'Open Connection
            If IsNothing(cn) Then cn = New SqlCeConnection(StrConn)
            If cn.State = Data.ConnectionState.Closed Then cn.Open()
            cm = cn.CreateCommand
            'Create Table, Fields
            cm.CommandText = "CREATE TABLE " & TB_SKUDWN3 & " (" & FL_SKUDWN3_UPC & " NVARCHAR (13)," & _
                " " & FL_SKUDWN3_SKU & " NVARCHAR (9), " & FL_SKUDWN3_LD & " NVARCHAR(30)," & _
                " " & FL_SKUDWN3_SD & " NVARCHAR (18), " & FL_SKUDWN3_AN & " NVARCHAR(15), " & _
                " " & FL_SKUDWN3_Price & " NVARCHAR (10), " & FL_SKUDWN3_GST_FLAG & " BIT)"
            cm.ExecuteNonQuery()
            'Close Connection
            cm = Nothing
            If Not IsNothing(cn) Then
                If cn.State = ConnectionState.Open Then cn.Close()
                cn.Close()
                cn.Dispose()
            End If
        End Sub
    'The DB was successfully created, but after moving to Handheld the fields of table can't be accessed

  • Connection between Structure Field and Table Field

    Hello everybody,
    I'm trying to find a connection between a field in the structure and the actual filed in the table of the database. For example in the structure CAUFVD you have the field PLNNR. This information is stored in the table AFFL in the field PLNNR.
    In the transaction SE84 you can display a structure with all it's fields but I don't see anywhere from which table and field the information is gathered.
    Can you please help me in finding the connection between the structure field and the table field in the database in which the displayed information is stored?
    Thanks and best regards,
    CALIN Marius-Bogdan
    SAP - PP-KeyUser

    Double-click on the structure field and you can do a where-used to find the codepoints, interface usage, etc.  You might find it that way.  You could also look at the flow logic of your screen and try to trace it back.  Otherwise, you'd have to use watchpoints, the debugger, runtime analysis or various other developer tools to find the data population.  If you are a user and not a developer as your signature indicates, you might need to find a developer for this.  Sometimes, it can be incredibly frustrating with SAP because the data field will be handed off 4 or 5 times before it actually reaches its destination field.  Unfortunately, I haven't worked with PP in at least 10 years so I can't give you a better answer; maybe someone else can.

  • How to print out the Forms and Table fields relationship, data mapping?

    I create a forms and tables relationship inside the Form Developer 11g, once I created the Data relationships between the form data field and the Table column name. I don't have any command to print it out, such as Layout Wizard.
    Are there any programs on Windows platform can print it out?

    hi all,
    i have try to do this
    public static void Readbinary() throws Exception
              String file = "D:\\05-09.190501+0800";
              DataInputStream dis = new DataInputStream(new FileInputStream(file));
              //but then how to read the content ??????can you give me more hint ?????
    i have find the netflow v5 structure by C
    struct NFHeaderV5{
    uint16_t version; // flow-export version number
    uint16_t count; // number of flow entries
    uint32_t sysUptime;
    uint32_t unix_secs;
    uint32_t unix_nsecs;
    uint32_t flow_sequence; // sequence number
    uint8_t engine_type; // no VIP = 0, VIP2 = 1
    uint8_t engine_id; // VIP2 slot number
    uint16_t reserved; // reserved1,2
    struct NFV5{ 
    ipv4addr_t srcaddr; // source IP address
    ipv4addr_t dstaddr; // destination IP address
    ipv4addr_t nexthop; // next hop router's IP address
    uint16_t input; // input interface index
    uint16_t output; // output interface index
    uint32_t pkts; // packets sent in duration
    uint32_t bytes; // octets sent in duration
    uint32_t first; // SysUptime at start of flow
    uint32_t last; // and of last packet of flow
    uint16_t srcport; // TCP/UDP source port number or equivalent
    uint16_t dstport; // TCP/UDP destination port number or equivalent
    uint8_t pad;
    uint8_t tcp_flags; // bitwise OR of all TCP flags in flow; 0x10
    // for non-TCP flows
    uint8_t prot; // IP protocol, e.g., 6=TCP, 17=UDP, ...
    uint8_t tos; // IP Type-of-Service
    uint16_t src_as; // originating AS of source address
    uint16_t dst_as; // originating AS of destination address
    uint8_t src_mask; // source address prefix mask bits
    uint8_t dst_mask; // destination address prefix mask bits
    uint16_t reserved;
    but how to translate the structure to java,then get the data from the file ?
    Edited by: 903893 on Dec 21, 2011 10:52 PM

  • Multiplication using header level variable and table field

    Have header level field (conversion rate) I want to use in calculation with a field in table (transaction currency). I can get my variable using
    <?xdoxslt:set_variable($_XDOCTX, 'X', ACCTD_EXCHG_RATE )?> in the header level field
    and <?xdoxslt:get_variable($_XDOCTX, 'X')?> in the field.
    What is the syntax I use to perform a calculation on the variable and the transaction currency field.
    Thanks in advance,
    Nancy Hoye

    Please help me................ still i am having the problem....
    Need to increase the field width on popup and colum height.

  • How to use one pop up window for multiple buttons and input fields?

    Hi Experts,
    I have created a pop up window that will be opened from multiple buttons in the same view. There are input fields that the data will be populated from a pop up window.  How can I set up which button that a pop up window is opened from? I also would like to populate the data from a pop up window to the input field next to a clicked button. There are 6 buttons and 6 input fields that share the same pop up window. I would very appreciate your responses.
    Thank you,
    Don

    Hi,
    Try creating 2 context attributes, one in your component controller and the other in the pop-up view. Bind the attribute of pop-up view to the component controller attribute.
    In the main view, on click of every button set a unique code in the controller's context which helps you in identifying the button clicked. Since u have created a binding to the pop-up view attribute the value flows from the controller.
    In the init method of your pop-up view, check the value of the attribute and based on that display which ever UI elements are required.
    Eg:
    On Button 1 click set value "B1", Button 2  value "B2" etc. In the init() of pop-up view u can check the values and perform the required operation:
    if(("B1").wdContext().currentContextElement().getButtonIdentifier()){
    else...{
    Hope this helps you.
    Regards,
    Poojith MV

  • Table and table field for PICKING QUANTITY.

    Hi friends,
           I need to use PICKING QTY in script. but it is in structure LIPSD-PIKMG.
    Please say Table and Field for Picking quantity.
    I need a table and field.
    THANKS in advance.
    balaji.

    Hi Tarani, Rasmi,
    Thank you for quick response.
          LIPS-LFIMG is Delivery Qty . It is not Picking Qty.
    please let me know for PICKING QTY to display in my Script.
    Thank you.

  • Relationship b/w tables and table fields

    Dear Experts,
    I have a requirement where I need to display...
    userid, username, Broadcasting setting name, Workbook/Report name, Variable Inpur parameters, Broadcasting frequency, Recipients email-ids, status and scheduled date......
    User input would be : job schedulers name.
    I am not sure of the tables to fetch data and the relationship among them.
    please suggest me if you have any idea regarding the same.
    Regards
    Sathya

    Hi Sathya,
    Check the table RSRD_SETTING, RSRD_SETT_NODE, RSRD_REGISTRATN.
    You may check the broadcast settings scheduled by a user in RSRD_REGISTRATN.
    Once you retrieve setting id, then you could use  RSRD_SETTING for other information.
    Hope this helps,
    Best regards,
    Sunmit.

  • Structure field and Table field

    Hi All,
    How is using a field from a global structure different from using a field in a table?
    Moderator Message: Please search before posting.
    Edited by: Suhas Saha on Sep 13, 2011 12:48 PM

    Hi ,
    in structure   Data is available only during Runtime   where as in Database table  it is stored permanently  .
    now it depends upon the requirment  .  which data  you are expecting  .
    you cannot use  SELECT statement for Structure   where as  for database tables you can .
    regards
    Deepak.

  • Numbers Question, Finding Values In Multiple Sheets and Tables

    I would like for a cell to be looking at all sheets, and calculate the Debt 1 or Debt 2 allocated funds. It would need to find the word, Debt 1 and take the number two cells to the right...I have attached a document to my webpage...
    http://web.me.com/chris.ducasse/Forum/ForumBlog/Entries/2010/1/12009_Bi-Weekly_Budgets_ForForums.html

    Hello
    Working on the OP's document, I discovered a surprising odd behaviour.
    In a table I grab datas from other tables using VLOOKUP.
    The formula is :
    =IFERROR(VLOOKUP(A$1,INDIRECT("Outgo "&ROW()&" :: A:C"),3,FALSE),0)
    The cell in B1 grabs a value from table Outgo 1
    The cell in B2 grabs a value from table Outgo 2
    As the OP named its first table Outgo, when I named it Outgo 1,
    I decided to edit the formula in cell B1. It becomes ::
    =IFERROR(VLOOKUP(A$1,INDIRECT("Outgo :: A:C"),3,FALSE),0)
    The funny behaviour is that in a sheet where there is no Outgo table (I had the "Outgo 1" one),
    the formula continue to return the value grabbed from the table "Outgo 1".
    For see, I renamed "Outgo 1" as "Outgo 3" with a different numerical value.
    The formula referencing "Outgo" continue to return the value which was in "Outgo 1"
    Continuing to play with this problem.
    I edited the formula as:
    =IFERROR(VLOOKUP(A$1,INDIRECT("Outgo 3 :: A:C"),3,FALSE),0)
    Bingo, it grabbed the value from the true Outgo 3 table.
    One more time I edited the formula as:
    =IFERROR(VLOOKUP(A$1,INDIRECT("Outgo :: A:C"),3,FALSE),0)
    Son of a …, it gives again the value which was in the now unavailable table "Outgo 1".
    I guess that it grabs it from the undo buffer but it's absolutely foolish.
    Serious smelling of bug but I wish to know if you get the same behaviour in other machines (maybe something is odd on mine).
    Happily, there is a way to get rid of this odd behaviour :
    cut the entire formula
    press return
    The cell is now empty.
    Select it then paste.
    The pasted formula will have a correct behaviour.
    Yvan KOENIG (VALLAURIS, France) samedi 2 janvier 2010 16:37:16

  • Export multiple schemas and tables in the same time

    Please help with this
    If I need to export 3 schemas SCH1, SCH2 and SCH3, also table tab1 and tab2 in schema SCH4, can anyone write only one parfile to export them in once.

    Are you going to use original exp/imp or data pump?
    It's not easy to do this in one shot if it's even possible.

Maybe you are looking for

  • Mac mini Late 2012 - 8 gb of ram worth it?

    Hello :) Are 8 gigabytes of ram worth it for my my Mac mini? I use it for Xcode and sometimes my Mac takes a bit too long for easy tasks. Or should I take 16 gb ? Thanks for answers Thomas

  • Sometimes a note will not let me edit it on my iPad or iPhone.

    Something is happening in the notes app. It's not happening just on the iPad, so it's not actually an iPad issue but an issue with the notes app. Out of nowhere, one of the notes will not be editable. As in, when I try to type in, it won't give me a

  • Pse 13 not opening up

    pse 13 not opening up

  • Question in photoshop

    I created a new brush  in photoshop and I cant change the hardness of the new brush what is the solution

  • Transfer vendor COA data in the inspection lot

    Hi All, When the goods receipt purchase order (transaction MIGO) is saved inspection lot is created. In the MIGO we have designed custom screen which has inspection characteristics (fields QAMKR-KURZTEXT, TOLGRENZE, SOLLSTPUMF, QERGDATH). Now using t