How to check Le field is missed?

Hi,
When the protocol is T=1, I have problem with Le field.
When the card recieve Case 2 format command without Le(like '00B2010C' - Read Record) , how to check the Le field is missed?
I tried below but not working.
if(APDU.getProtocol() == APDU.PROTOCOL_T1 && apduBuffer[ISO7816.OFFSET_LC] != 0 && apdu.setIncomingAndReceive() != 0){
          ISOException.throwIt(ISO7816.SW_WRONG_LENGTH);
I look forward your feedback.
Many thanks in advance!
글 수정: user11280436
글 수정: user11280436

Hi,
You should check the response from apdu.setOutgoing() to see what value was passed in as Le. This will return the number of bytes expected by the terminal.
You only need to call apdu.setIncomingAndReceive() if the INS expects data. You can also use it to ensure that there was no data passed in (returns 0).
Cheers,
Shane

Similar Messages

  • How to check what fields are output from ABAP to smartform

    Hi All,
    I am working on a Zcopy of RLB_INVOICE smart form and need to check what fields are being output to the vendor_address window in the smartform.
    I have examined the NACE setup and found "Medium -> printoutput", "Program -> ZRLB_INVOICE", "Form Routine -> "ENTRY_INS", "Form -> ZRLB_INVOICE", "PDF/SmartForm -> ZRLB_INVOICE".
    Where would I find the code that shows the direct correlation between the driver program and a specific element of the smart form.
    All I need to check is that all elements of the venfore address are being sent to the form as I am hearing reports that we are missing house number on the printed output.
    Many thanks

    Hi Meenakshi,
    First you find out your driver program. Here in your case it is ZRLB_INVOICE. Then within that check where address of the vendor is found and is assigned to which import parameter of the smartform.
    Check your smartform also. Find which all fields are being printed in that. If vendor_address window is an address window, then there will be uniques identifier passed to that window from the driver program.
    Regards,
    Abijith

  • How to check which fields of a table are changed

    Hi
    I have a FM in which i pass VBAK and VBAP. I store records of table in internal tables and update the values during execution and at the end of this i have to cpmare VBAK and VBAP with internal tables to chcek which field value is changed in both VBAK and VBAP. Its not possible to check all fields bcause there are so many fields in VBAK and VBAP. Can any body help me.
    Thanks and Regards
    Aditya

    Hi,
    Try using where used list.
    click on the field. pree F1. select Technical Info from the pop-up. then from the field data, double click one the field name. it will navigate to the table/structure where the field is used. double click on the field there or
    press CntrlShiftF3.
    It will give you the where used list.
    Pls reward poins if useful.
    Regards,
    Chandru

  • How to check two fields are matching in a validator?

    I have a "Password" field and a "Conform password" field. I like to check whether these two fields are matching in the password_validate(FacesContext context, UIComponent component, Object value) method. How to do that?
    Thanks.

    The actual problem is you can't get the value of one
    component into the next component's validator
    method.I do not find this to be true. For example, in the blog that I gave the URL to, you can see this code
    public void endCalendar_validate(FacesContext context, UIComponent component, Object value) {
    Date endDate = (Date)value;
    Date startDate = startCalendar.getSelectedDate();
    Here the validator for the endCalendar component is getting the value from a different component, the startCalendar component.

  • How to check the field existence in a string at Header level?

    Hello,
    I have a bunch of fields on my_form, just for example here in this posting I am using US state names ....., say for example,
    I have 3 fields, their names are as below
    1) NY,
    2) CA, 
    3) TX
    I placed a hidden a text field, its name is GFL (i mean, Grey Fields List), am using this GFL for my programming purpose
    From the back end (in our case, its an ERP -SAP) am populating/filling this GFL field, say for example.... its data looks like, CA TX (i mean, am concatenating the state names with a seperation of a space)
    ( FYI.....Already i have some JS piece in my_form INITIALIZATION and docReady events for some other purposes)
    Now, my requirement is as below,
    1) LOOP all the FIELD objects (here they are as State names) of my_form , then check whether their name (NY) existing in GFL's data..........if exisitng (in our case, its not existing) pls. greyed out with readOnly.......... if not existing
    (in our case, its not existing)   then skip the coloring and readOnly, go to next loop / iteration / state / Field
    Actually, i can achieve my requirement by putting JS in each field objet's INITIALIZATION event itslef as below, (but, i have around 200 feilds in my_form, hence i would like to put at HEADER level by generically looping all the field objects in my_form in one piece of code),
    var myStateName = /NY/;
    var returnValue = GFL.search(myStateName);
    if(returnValue != -1){; // This state/field/object is found in the Grey Fields List, hence greyed out with readOnly
    this.ui.oneOfChild.border.fill.color.value = "192,192,192";
    this.access = "readOnly";
    For some other requirement one of expert has provided the below JS in these forums, as below
    function findNodes(vNode) {
        if (vNode.className === "field") {
                       if (vNode.isPropertySpecified("name") === true) {
                                      if (vNode.getAttribute("name").search(/_U$/g) !== -1) {
                                          // Script to execute, when a match was found
        for (var i = 0; i < vNode.nodes.length; i += 1) {
            findNodes(vNode.nodes.item(i));
    findNodes(xfa.form);
    Actually, I tried to change the above JS as per my requirement, but its not working, pls. provide me correct JS as per my requirement
    Thank you

    Try this:
    function findNodes(vNode){
         if (vNode.className === "field"){
              if (vNode.isPropertySpecified("name")===true){
                   var myStateName=new RegExp(vNode.name);
                   var returnValue = GFL.search(myStateName);
                   if (returnValue!=-1){
                        this.ui.oneOfChild.border.fill.color.value="192,192,192";
                        this.access="readOnly";
                   else{  
                        this.ui.oneOfChild.border.fill.color.value="255,255,255";//whatever colour is open access
                        this.access="open";
         for (var a=0;a<vNode.nodes.length;a++){
              findNodes(vNode.nodes.item(a));
    findNodes(xfa.form);
    Kyle

  • How to check a field in Message mapping wether it is Non Numeric?

    Hi XI Guru's
    I am totally new to XI world, Kindly help hopw can I chexk a field while doing message mapping whether the field is non numeric or not.
    I dont find any built in function for the same.
    If it is using UDF can some body help me in providoing a UDF for this.
    Many Thanks
    Arun

    Hi Arun,
    In SAP PI, all the XML contents by default treated as STRINGS.
    So if u want to check whether the incoming field is numeric or not... the only way is to write a UDF code for the same.
    the UDF will be,
    1. At first
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    in functions.
    2.UDF content:
    input: field,container
    output:boolean
    Code
    boolean return_Value;
    Pattern p = Pattern.compile("[0-9]*");          // If u are using the decimals please change the regular expression accordingly.
    Matcher m = p.matcher(field);
    if(m.matches())
    retuen_Value = true;
    else
    return_Value = false;
    return return_Value ;
    I hope this will solve ur problem....
    Babu

  • In material master MRP3 screen "checking group" field is missing,

    Dear All,
       I am facing above problem.
       can anybody help me to recall this field.
    Kishor

    Kishor
    The reason for this is that the field Checking group may be hidden in the customisation.you have to chage it to Optional or mandatory
    This is done in Field group setting
    SPRO>Logistics general>Material Master>Field selection
    I am not recalling the exact path.You find with the above path

  • How to check delta field in EDIDS table

    Hi,
    I have to create generic delta based on EDIDS (Status record) table. Since there is lot of data so i have to set delta point for this data-sources.
    Could you please help to find delta field in this table?
    Thanks & Regards
    Devesh babu

    Seems like there is no other fields which an be relevant delta.
    check docnum is possible to use as numeric pointer.
    Numeric pointer can be used when table allows for entering new records only.
    if there is no delta relevant field, go with full load every time.
    Use dso inyour data flow. so that we can introduce delta between dso to cube.
    data flow like this
    data source---> Every time full load to PSA--->You use delta or full load. it pulls latest request which is full to dso---> dso to cube, load delta dtp.
    Need to delete the psa request before every load.
    thanks

  • How to check a field value within an Internal table

    Hi Friends,
    My requirement is:
    I have a line item of PO records, in that each line item of Plant field should not diffe with other line items. If it differs or say the records have different plant values line items, then I have to throw an error message.
    Below example for better understanding.
    lineitem Plant
    010       ABC
    020       ABC
    030       XYZ
    040       LKG
    So, my report will throw an error like "All line items must be identical'.
    How to do proceed it.Please advise.
    Thanks & Regards
    Sankar.

    Hi Sankar
    first you need to fetch all the values in one internal table from your PO.
    After that create an internal table with only plant field and move all the plan values in this table.
    let assume ITAB is a table with all the values. and ITAB1 with plant only.
    wa_itab is the work area for ITAB and wa_itab1 is WA for ITAB1.
    ITAB has all the values and ITAB1 has all the values only for plant.
    delete adjacent duplicate from itab1 compairing plant.
    loop at itab1 into wa_itab1. " this will fetch all the plant values in workarea.
    read table itab into wa_itab where wa_itab-plant = wa_itab1-plant.  " this will fetch only the values matching to the table itab1
    if su-subrc <> 0.       
    message 'plants are not similar' TYPE 'E'.
    elseif sy-subrc = 0.
    write your code*.
    endif.
    endloop.
    hope this will help you.
    Thanks
    Lalit Gupta

  • Check list field values using LINQ

    I have to check if the CURRENT USER is already in the list USERS by comparing his AccountName to the list field ACCOUNTNAME.
    If the USER is on the list I have to check if the field IsFollower is YES or NO and change it according to some conditions.
    I think LINQ would be the correct way of doing this but I have no clue how to do that.
    Any ideas pls, thanks

    Hi,
    Yes, you can query the list using LINQ.
    You need to get the SPList Object firstly, and then you can query list item value using LINQ.
    More information about how to check list field value using LINQ:
    http://msdn.microsoft.com/en-us/library/office/ee538250(v=office.14).aspx
    http://www.wolfsys.net/query-sharepoint-lists-with-linq/
    http://geekswithblogs.net/TanviBlog/archive/2013/06/06/linq-in-sharepoint-and-querying-list-items.aspx
    More information about how to use Server Object Model in SharePoint lists:
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splist.aspx
    http://msdn.microsoft.com/en-us/library/office/ms456030(v=office.14).aspx
    Best regards

  • How to check for missing fields in the file?

    Hi friends,
    I have a file to file scenario in which if any of the fields have a blank value, i have to put the file back in the source folder. If none of the fields are missing, the scenario should work normally.
    Can anybody tell me <b>how can i check for the field lengths</b> and if any of the fields are blank, <b>how do i send it back to the original folder.</b>
    Waiting for your responses,
    Divija.

    Hi Divija,
    >><i>how can i check for the field lengths</i>
    Since you need to basically check if the field has a value or not, i dnt think you need to check for the length of the field. Instead, you can use any one of the booloean functions available in the graphical mapping editor to check if the field has a value or not(filed value true or false)
    >><i>how do i send it back to the original folder.</i>
    You can maintain a flag variable in the target structure such that if any of the source fields donot have values, the flag's value becomes 1 else it remains 0.
    Now, you can check if the value of flag is equal to 1/0 in the bpm and accordingly send the data.
    If in case, you donot want the flag to come in the target file that is loaded/sent from the bpm in the end, i think even tat can be taklen care of.
    You can create two receiver communication channels and define one file adapter in each such that one has the destination as the actual target directory and the other has the original source directory as the destination.
    Regards,
    Sushumna

  • How to insert check box fields in a htmlb: tableview

    Hi,
    Can anybody tell me how to insert check box fields in a htmlb: tableview in a sequence of rows in a table view. How to generate the sequence no for the checkbox inorder to know the row that is checked.
    Thanks in advance,
    Aruna.

    Here is the code which has the custom "Checkbox" in the tableview & Triggers the event. <b>You can identify the checkbox based on cell ID (p_cell_id)</b> in the method "IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START" & Based on the event name + Cell ID. Look at the code & let me know if you any issue.
    <b>Layout:</b>
    <%@page language="abap" %>
    <%@extension name="htmlb" prefix="htmlb" %>
    <htmlb:content id               = "content"
                   design           = "design2002+design2003"
                   controlRendering = "SAP"
                   rtlAutoSwitch    = "true"
                   forceEncode      = "ENABLED" >
      <htmlb:page title="Test " >
        <htmlb:form>
          <%
      data TV_ITERATOR Type Ref To zcl_itr.
      data iterator type ref to IF_HTMLB_TABLEVIEW_ITERATOR.
      create object tv_iterator exporting appl_cons = application.
      iterator = tv_iterator.
          %>
          <htmlb:tableView id              = "fligts"
                           headerText      = "Flight"
                           width           = "100"
                           headerVisible   = "true"
                           design          = "alternating"
                           visibleRowCount = "10"
                           fillUpEmptyRows = "true"
                           showNoMatchText = "true"
                           filter          = "server"
                           sort            = "server"
                           onHeaderClick   = "MyEventHeaderClick"
                           table           = "<%= APPLICATION->itab %>"
                           iterator        = "<%= ITERATOR %>" />
        </htmlb:form>
      </htmlb:page>
    </htmlb:content>
    <b>Event Handling:</b>
    DATA: EVENT_ID1 TYPE REF TO IF_HTMLB_DATA.
    EVENT_ID1 = CL_HTMLB_MANAGER=>GET_EVENT_EX( REQUEST ).
    CASE EVENT_ID1->EVENT_SERVER_NAME.
    IF NOT event_id1 IS INITIAL.
       if event_id1->server_event+0(9) = 'chkevent'.
      SPLIT event_id1->server_event AT '-' INTO v_event v_dummy v_row v_col.
      endif.
    endif.
    method IF_HTMLB_TABLEVIEW_ITERATOR~GET_COLUMN_DEFINITIONS.
         CLEAR p_column_definitions.
        CLEAR p_overwrites.
        DATA: tv_column  TYPE TABLEVIEWCONTROL.
        tv_column-COLUMNNAME  = 'FLDATE'.
        tv_column-edit        = 'X'.
        tv_column-sort        = 'X'.
        tv_column-TITLE               = 'Flight Date'.
        tv_column-WIDTH  = '100'.
        APPEND tv_column TO p_column_definitions.
        CLEAR tv_column.
        tv_column-edit        = 'X'.
        tv_column-COLUMNNAME          = 'CONNID'.
        tv_column-TITLE               = 'Conn.ID'.
        tv_column-WIDTH  = '70'.
        tv_column-HORIZONTALALIGNMENT = 'center'.
        APPEND tv_column TO p_column_definitions.
        CLEAR tv_column.
        tv_column-edit        = 'X'.
        tv_column-COLUMNNAME          = 'CHECKBOX1'.
        tv_column-TITLE               = 'Check Box'.
        tv_column-WIDTH  = '30'.
        tv_column-HORIZONTALALIGNMENT = 'center'.
        APPEND tv_column TO p_column_definitions.
    endmethod.
    METHOD IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START.
           DATA: L_EVENT TYPE STRING.
      CASE P_TABLEVIEW_ID.
        WHEN 'fligts'.
          CASE P_COLUMN_KEY.
            WHEN 'CHECKBOX1'.
    *          CONCATENATE 'chk_event' '123' '2323' INTO L_EVENT SEPARATED BY '-' .
    CONCATENATE 'chkevent' p_cell_id INTO l_event SEPARATED BY '-'.
              P_REPLACEMENT_BEE = CL_HTMLB_CHECKBOX=>FACTORY( ID = P_CELL_ID
            ONCLICK = L_EVENT CHECKED = 'false' ).
          ENDCASE.
      ENDCASE.
    ENDMETHOD.
    Hope this will solve your problem.
    <b><i>* Reward each helpful answer.</i></b>
    Raja T
    Message was edited by:
            Raja T

  • How to check lock status of field in current document?

    Hi,
    How to check the status of field in current document(master agreement), that is whether its locked or not.
    I locked "Publish to Supplier" checkbox after MA is saved first time. Now, I want to check the status whether this field is locked or not in the same document.
    IsLockOwner( ) is not returning the correct value. Its not giving the current document field lock status.
    Is there any way to get current document field status?
    Thanks,
    Saloni

    Hi,
    If I understand correctly, your requirement is to get the value of this field "Publish to Supplier on". It can be achieved by writing the below:
    isVendorVisible = doc.getExtensionField("VENDOR_VISIBLE").get();
    Meaning, if the box is checked, it will return a value = true and if not then false.
    Hope this helps,
    Regards,
    Vikram Shukla

  • How do you spell check a field?

    How are people spell checking their fields?
    In searching around, I have only found (a) suggestions to yank the text into MS Word, do a spell check, then yank the resulting text into the field; (b) software from DC AL CODA that we aren't clear how they actually work (http://www.dcalcoda.com).
    Specifically, my manager wants a tool that'll interface with Oracle like this: give a table name and a field name and be asked about each spelling error, much like an email spell check. The tool would change things as you ask, directly in the database. You wouldn't have to cut and paste into it and back to the db fields.
    We aren't using forms. We use SQL*Plus, Quest Software's TOAD, and our own Java servlets (using JDBC to enter SQL statements).
    I would love to hear how people do their spell checking.
    Hopefully this is an appropriate forum for this question. There doesn't seem to be a general or SQL forum. Our database tables include a fair amount of text that shows up on Web pages. These are the fields we want to spell check.

    I thought I'd reply to my own question since I found a workable solution, at least for our office which has MS Windows.
    MS Access can connect directly to an Oracle data source. Access has a spell checking feature where you can select a field and spell check it. Below are tips and instructions for doing this.
    TIPS:
    It's surely a good idea to back up tables and be the only person or process changing those tables during the spell check.
    One thing to watch for is whether the entire table comes in. At the bottom of the screen is a >* button which seems to get all fields. For large tables, you have to hit this button before you get the entire table.
    Another glitch is that all of the given database user's tables show up in one list box -- makes for some painful scrolling, but all of the tables are listed.
    A much smaller glitch is that if you widened any of the fields in the view of the table, when you close the window, it asks if you want to save the formatting. It has nothing to do with saving the data (that is automatic). It's safe to say no.
    The spell check doesn't recognize HTML tags (asks about "br"s from <br> tags) but seems to know to ignore things like &quot;
    How to set up an ODBC Data Source in Windows:
    1. MS Start -> Settings -> Control Panel -> ODBC Data Sources (32 bit)
    2. Drivers tab, scroll down and select Oracle ODBC Driver
    3. OK
    4. User DSN tab, Add...
    5. Select Oracle ODBC Driver and Finish
    6. Make up a data source name (example: src)
    7. Enter a description for it
    8. For Service name, put what your service name is (for an SQL*Plus connection, 'usr/passwd@svc', this is 'svc')
    9. For UserID, put your user id (for an SQL*Plus connection, 'usr/passwd@svc', this is 'usr')
    10. Ignore the rest of the fields, click OK
    11. Another OK.
    How to use Access to Spell Check an ODBC Data Source Field:
    0. Install Access from (MS Office 2000).
    1. Start Access (by the way, you might find it way down the list in Start -> Programs).
    2. Open file, in the file type box, scroll to the end: ODBC Databases. You'll get a dialog.
    3. Machine Data Source tab, select the name you gave it (src in step 6 above)
    4. You'll be prompted for the password (for an SQL*Plus connection, 'usr/passwd@svc', this is 'passwd')
    5. Select from the huge list of every table the table you want. Ok.
    5.a. If the table has no key, you'll be prompted for the unique key from a list of all fields.
    6. Double click the item that has just been added to the dialog that remains on the screen. It'll have a globe next to text like USR_TABLENAME. This brings up a randomly sized first chunk of the table.
    7. To make sure you get the entire table, on the paging buttons on the bottom (|< < > >| >*), click >*. It may take a few moments to get a huge table.
    8. Click the heading of the field (column) you want to spell check). This selects the entire column.
    9. Hit spell check (ABC checkmark tool or Tools -> Spelling)
    10. Check away. The changes are made immediately to the database.
    11. Close the table display window.
    null

  • How to check a checkbox field value in fw9 PDF form

    Hi,
    I got a PDF given form IRS (http://www.irs.gov/pub/irs-pdf/fw9.pdf). While creating a widget to this pdf form to sign it, I merged the custum data to those PDF form fields using API setMergeFields.
    All the data fields are merged fine except the checkboxes. I tried by passing the values to the merge_fields array as 'On', '1', 'checked', 'checkbox(checked)' but no luck
    What is wrong here in checking the chexbox field in this fw9 PDF or How to check a checkbox field in a form?
    Thank you,

    Hi Simon,
    I re-added and edited the fields of fw9 form by pdf printer. While doing so, I made fields as ready only so that, the data cannot be edited in the form through the widget but will be merged the data to fields only be the code. Wherein Im using the widget only for signature but not for form filling.
    Here, Im able to merge my custom data to all fields while creating widget but not to the fields of checkboxes. The checkboxes fields which are made ready-only are not allowing me to merge the value as checked by the API.
    Please help me,
    Thanks you,

Maybe you are looking for

  • Report Template href with column value

    I have created a Report template and want to have a field that is a href with link to other page passing column value. I'm having trouble passing the column value. If I hard code the value the href code works. If I try to pass #1# or the column name

  • Transferring iTunes from pc to mac still using my external drive

    I have a pc and an external drive with all of my music and videos stored on it the external drive. How can I transfer the library to my new macbook and still have my songs on my external drive?

  • How to get the dynamic query result

    If in one query, there is the amount range dimension, based on different dimension value combination, the customer revenue should be refreshed into different range, how to make it by cube? eg. Customer Store    Material  Month    Amount C001     M &

  • PSE 11 don't see my Printers

    PSE 11 don't see my Printers. But PSE 8 works with no Problems. After an Error message I cannot enter ( and change ) the Printer menue . Have anyone an idea what the problem could be.

  • View Objects

    Ok, I would like my JSP project to: - Show the user a datatable with just a FEW record from a particular table (viewobject). - When the user would like to 'Edit' one of those records, he would like to edit ALL the available fields of the record, and