Co11n check on field

hi experts,
    I am using WORKORDER_GOODSMVT BADI  to put check on quantity field of CO11n tcode. I found the method GOODS_RECEIPT having the changing parameter CT_GOODS_RECEIPT which is containing the field ERFMG (quantity).
I created an implementation  ZBADI_co11n for the BADI.
I am trying to write code like this :
IF ct_goods_receipt-erfmg = 0.
    MESSAGE e001(0) WITH  ' Please Enter Exact Quantity ' .
  ENDIF.
it is throwing error CT_GOODS_RECEIPT is a table without header line therefore has no component called ERFMG.
can anyone tell what to write in the mehtod GOODS_RECEIPT  for my check on field.
help pls

hi ira,
   thanks for your reply. I am able to code it without error.
but my requirement is this BADI  is triggered after I press goods movement & the message
is displayed on the confirmation screen itself, i want it to display it in goods movement screen.
how?

Similar Messages

  • 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

  • Validation to check a field in Purchase Order.

    Dear friends ,
    Could we create an Validation to check a field in tcode ME21N, and this validation must check if field (header) is empty if yes when SAVE send error message"You could not create PO without release strategy , please contact IT area! "
    Rule to check it.
    Tcode ME21N
    if field EKKO-FRGSX or EKKO-FRGKE without value when Saving document so send an error message as discribed above not allowing user to save and create PO.
    Best regards
    Ale

    hi Amams
    check this link
    Adding Fields to Sales order
    i think it may give u some idea
    Regards,
    Naveen

  • 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 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

  • Incoming Payment Check No. field not editable directly

    SBO 2007A, PL 42
    Banking >> Incoming Payments >> Payment Means
    When I am entering an incoming check from a customer, on the Payment Means window, I can't click in the Check No. field and enter data, but if I tab over it to it from the amount field, I can.
    Is this by design or a bug? What's the point of it?

    Hi Cindy
    It works fine on mine .Is that you are having problem when you enter incoming payment at first time or when you are trying to edit .
    It is working fine on mine .I can put check number .
    What patch level you are in ? which SBO version
    Thank you
    Bishal

  • Check number field coming in blank

    I am new to this forum, and I am searching but canu2019t find a solution.
    I have a database, which contains a field called u201CCheck Nou201D, which contains the check numbers as well as type of payment received from a contributor.
    So, if the contributor paid which a check, then the check number is there, but if they paid by money order, pay pal or cash, then those terms are there.
    The problems is when I bring the data into CR, it is only bringing over the check numbers, as number.
    Now, I wrote a formula to convert the numbers to text, but it still is not reading the literal data, u201Cmoney order, pay pal or cashu201D.
    The formula that I wrote is:
    If {2009.CHECK_NO} = 0.00 Then
    "*CASH*"
    Else
    ToText ({2009.CHECK_NO},0,"")
    and believe, it or it works, u2018cause the check numbers come in great.
    I called tech support up and they told me something about marking the field as u201Calphanumericu201D, and to look to the forum for a solution, or else pay $195 per incident for tech support.
    I figure this must be a common occurrence, u2018cause all organizations maintain some type of check register, and there are times, now a days when pays with something other than a check, e.g. wire transfer, debit card, etc.., and if that literal text is in the check number field, Iu2019d like to bring it over as such.
    Thx in advance for answering my question.

    Here is the formula I have in my CR report:
    ToText ({Sheet1_.F3},0,"")
    and here is the result I get:
    Check No     
    4204     
    6008     
    448     
    2079     
    13495     
    1216     
    369     
    320     
    2227     
    231     
    139     
    351     
    524     
    1562     
    402     
    5098     
    1109     
    2240     
    922     
    Where the blank lines are records containing text entries in that field, such as "cash, credit card, paypal".
    My problem is that no matter what I'm trying, the numbers come across fine, but now the literal text isn't.
    I've tried some variation of the formula as follows:
    If IsNull({Sheet1_.F3}) then "" ELSE
    if not(Isnumeric({Sheet1_.F3}))  then ({Sheet1_.F3}) else 1
    As a suggestion from the board, but when I check for errors, I get various errors such as  "string needed" or something else.
    I'm getting lost on this.
    And, I'm sure it is something simple, but I just can't grasp it from the manual or help screen.
    Please help!!

  • 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

  • Checking a field in VA01 at the time of saving

    Hi,
    I want to check a field at item level in VA01 at the time of saving the document. Can anyone tell me about the user exit I should look for.
    Thanks,
    Salman Zahir

    Thanks Suresh,
    I have put a break point is the include RV60AFZC, but it is not stopping while saving the document, it stops  when I do other activities.  Actually in the Item Detail I want to check that account assignment group is not blank. If it is I want to show a error message.
    Thanks ,
    Salman

  • Entry in field Funds Center required; check the field control Mg No.FMEF010

    Hi,
    We have a Z tcode for converting planned order to purchase requisition.
    We use Account assignment P - Project and A - Asset.
    We have WBS element and fund center linked to it.
    For the Z tcode while converting Planned order to purchase requisition we are getting below error
    Error: Entry in field Funds Center required; check the field control Msg No.FMEF010
    While creating manually purchase requisition with same GL code and WBS element the fund center gets automatically picked.
    Can anyone pls let me know in which table we can find the link between WBS element and fund center so that we can code the same in our program. In PRPS table we can find the link between WBS and profit center.
    Or is there any user exit that can be used.
    Thanks in advance.
    Regards,
    Radha

    Hello
    If you do a F1 in the value date field it will give you the answer - The value date is used in bank accounts and bank sub-accounts.
    As regards the other query check whether the tax code has been already created.
    Hope it helps.
    Rgds

  • 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

  • Check changed fields

    Hi, I should write an update query that checks if the fileds of a record are changed and if also only one element was changed the query has to update the record.
    The record that I would update is formed by 85 fields so I would ask you if it exists a method to check the fields simultaneously or I should write a procedure and check one by one the fields.
    What should I do?
    Thanks, bye bye.

    abdujaparov wrote:
    Hi, I should write an update queryAn update is an update, a query is a query, there is no such thing as an "update query".
    that checks if the fileds of a record are changed So you will need to have kept hold of the data as it was previously or trapped the update and logged the change somewhere using triggers.
    and if also only one element was changed the query has to update the record. queries don't update as already pointed out. What if more than one element has changed, do you still want to update something? What happens when you update the record because something has been updated on it, will this cause an endless loop of updates or are you just targetting specific columns on the record?
    The record that I would update is formed by 85 fields so I would ask you if it exists a method to check the fields simultaneously or I should write a procedure and check one by one the fields.If you have two tables, one with the old data and one with the new data, you can identify inserted, updated and deleted records using set operations as follows...
    SQL> select * from old_data;
            ID NAME  SURNAM
             1 Fred  Smith
             2 Joe   Bloggs
             3 Peter Pan
    SQL> select * from new_data;
            ID NAME   SURNAM
             1 Fred   Smith
             2 Joseph Bloggs
             4 Peter  Pervis
    SQL> create table iu as select * from new_data minus select * from old_data;
    Table created.
    SQL> select * from iu;
            ID NAME   SURNAM
             2 Joseph Bloggs
             4 Peter  Pervis
    SQL> create table du as select * from old_data minus select * from new_data;
    Table created.
    SQL> select * from du;
            ID NAME   SURNAM
             2 Joe    Bloggs
             3 Peter  Pan
    SQL> create table u_key as select id from iu intersect select id from du;
    Table created.
    SQL> select * from u_key;
            ID
             2
    SQL> create table i_key as select id from iu minus select id from u_key;
    Table created.
    SQL> select * from i_key;
            ID
             4
    SQL> create table d_key as select id from du minus select id from u_key;
    Table created.
    SQL> select * from d_key;
            ID
             3
    SQL>So now:
    the table u_key identifies the keys of the records that have been updated (these records will exist in both new and old data)
    the table i_key identifies the keys of the records that have been inserted (these records will exist in the new table only)
    the table d_key identifies the keys of the records that have been deleted (these records will exist in the old table only)
    If you want to know which of the columns of updated records have been updated then you will have to do a column by column comparison. This can be done in SQL or PL/SQL, although SQL would be preferable for performance reasons.

  • FI Check , check number field

    hie gurus , i need your assistance with a field i'm having a problem with for the check number. in my form its showing the last check printed and not the current check. if i look in the table PCEC its at the current check number. does anyone know any other reference for check number field, or how i can go about solving this problem. tried clearing it from the form, still nothing.

    Hi Deniel,
    Check Number you can get it fin payr table with reference of Document number.
    Regards,
    Syed Tayab Shah

  • Check of field values from the delivery address in PO

    The customer likes to check a field from the delivery address (f.e. NAME1) before the PO is saved. I looked for Userexits but diddn't find any. The only way sees to be a modification. The question is where to modify...

    Name 1 fields is under Delivery Address tab for PO line item details.        -> This was not my question
    It can be maintained i n SPRO itself by defining Address for store locations .  -> This was not my question
    User have to put storage location in PO line Item itself then Name 1 field will displayed values in SPRO -> This was not my question
    It has to be CHECKED by the system if the content of field NAME1 (from wherever the system gets the address) equals to a special text. There must be a statement such as:
    if ADDR1_DATA-NAME1 eq '1234657678' ....
    The problem is to identify the right include where i can get the relevant fields.

  • Check Notification Fields at technically completion of the Order

    Hi All,
    i want to check at the technically completion of the PM-Order, if a field in the notification is filled out (for example the cause). If this field empty, the user should not be able to finish the order. Now i tried to use the exit QQMA0014, but he dont run at the completion. In the Exit "Customer Check for order completion" i cant get the notification-fields. I also cant set the field in the notification as a required field.
    Any idea?
    Thanks a lot for any help!

    Thank you for your support, but its not very user-friendly.
    In normal case the user jump into the order and will complete it. After push the button "complete" a small window comes up.
    In best case the user should insert the cause in this window, but i couldnt find a way to check this field in this window. If i use your idea, the user have to insert the cause before using the complete-button. After this he have to save the order at first and he must jump into the order a second time to complete it.
    I hope i explain it clearly. Any possibility to check the cause in the second small window and not before?

Maybe you are looking for

  • My itunes freezes when i connect my ipod touch?

    I have had my 4th gen. 8GB iPod Touch for about 8 months now. It has worked perfectly, up until now. When i plug my iPod in, iTunes finds it( after about 30 seconds) and it just shows the little icon showing that it's syncing, or loading. It keeps do

  • IMessages are not coming through to iPad

    Recently, my iMessages have not been coming through to my iPad.  My sent messages will show up, but the received ones will not.  I have check all of my Message settings, and they have not changed from what they were before. I've checked my Wifi conne

  • Outlook 2010 on Windows 7

    Your message did not reach some or all of the intended recipients. Subject:    Levy Statement Sent: 26/11/14 12:12 The following recipient(s) cannot be reached:(Blank)  This is all that comes up - impossible to tell who received their statements and

  • How do I put a box around a line of text like I did in Appleworks?

    Please help me. I miss the toolbox in Appleworks where I could easily put a box around text, resize it, make it darker, etc. I've tried the Help menu in Pages and am ready to give up. Could someone please walk me through this? I don't want to use tem

  • Memory Used for Saving Files

    My IT person is giving me a hard time because I've used 5.5 gigabytes of memory in the 2.5 years that I've worked here design everything from brochures to ads, etc.  Does that sound like an unreasonable amount of memory for desktop publishing?  His s