Want to check the fields content

Hello Experts,
   I  am having a requirement where in particular code has to get executed only if the value of the field is a number.
        LOOP AT lt_line.
          TRANSLATE lt_line-tdline USING ',.'.
          MOVE lt_line-tdline TO l_aux_tare.
          ADD l_aux_tare TO lv_sum_tare.
        ENDLOOP.
Here the code inside the loop has to get executed only if the value of the field lt_line-tdline is a number.
Thanks & Regards,
Uday....

if lt_line-tdline CO '0123456789'.
then process your code here.
endif.

Similar Messages

  • UDF for Checking the field value

    Hi
    I want to check the whether the fiels conatins any value or not in mapping ... if not i want to raise the exception using the UDF
    DO any one have sample code for writing the UDF
    SV

    Hi SV
    what is your requirement first that should br clear.
    i am giving you two UDF
    1) i have written this uDF for string and comparing the field value XYZ
    2) i am entering a string and its returning aa string which starts from the index of your input fixed length
    int len = a.length();
    String res = "";
    String temp = "";
    if ( len >= 10)
    temp = a.substring(0,10);
    if ( temp.equals("XYZ"))
    res = temp;
    else
    res = "";
    return res;
    =======================================
    String fixed = "ABCD";
    String res = "";
    int index = -1;
    index = a.indexOf(fixed);
    if (index == -1)
    res = "NO INDEX FOUND";// or if u wanna set it as null res = "";
    else
    res = b.substring(index4,index12);
    return res;
    ===
    hope these may solve your problem
    Thanks
    Sandeep sharma
    If helpful reward points

  • Tabs smartform don't work when the field content is blank

    Hi,
        I'm doing a report with smartform, I created a paragraph with 4 tabs, when the field content is blank the next field don't stop in the right tab. Anybody know why ??
      Thanks.
    Suzuki - Brasil

    see example prgram sf*
    Here is the step by step procedure
    http://sap.niraj.tripod.com/id67.html
    Procedure:
    1. Create a new smartform
    Transaction code SMARTFORMS
    Create new smartforms call ZTEST
    2. Define looping process for internal table
    Pages and windows
    First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
    Here, you can specify your title and page numbering
    &SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
    Main windows -> TABLE -> DATA
    In the Loop section, tick Internal table and fill in
    ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
    3. To define the table in smartforms
    Global settings :
    Form interface
    Variable name Type assignment Reference type
    ITAB1 TYPE Table Structure
    Global definitions
    Variable name Type assignment Reference type
    ITAB2 TYPE Table Structure
    4. To display the data in the form
    Make used of the Table Painter and declare the Line Type in Tabstrips Table
    e.g. HD_GEN for printing header details,
    IT_GEN for printing data details.
    You have to specify the Line Type in your Text elements in the Tabstrips Output options.
    Tick the New Line and specify the Line Type for outputting the data.
    Declare your output fields in Text elements
    Tabstrips - Output Options
    For different fonts use this Style : IDWTCERTSTYLE
    For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
    5. Calling SMARTFORMS from your ABAP program
    REPORT ZSMARTFORM.
    Calling SMARTFORMS from your ABAP program.
    Collect all the table data in your program, and pass once to SMARTFORMS
    In SMARTFORMS
    Declare your table type in :-
    Global Settings -> Form Interface
    Global Definintions -> Global Data
    Main Window -> Table -> DATA
    Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
    http://sapr3.tripod.com
    TABLES: MKPF.
    DATA: FM_NAME TYPE RS38L_FNAM.
    DATA: BEGIN OF INT_MKPF OCCURS 0.
    INCLUDE STRUCTURE MKPF.
    DATA: END OF INT_MKPF.
    SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
    SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
    MOVE-CORRESPONDING MKPF TO INT_MKPF.
    APPEND INT_MKPF.
    ENDSELECT.
    At the end of your program.
    Passing data to SMARTFORMS
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
    formname = 'ZTEST'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = FM_NAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    if sy-subrc <> 0.
    WRITE: / 'ERROR 1'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function FM_NAME
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    GS_MKPF = INT_MKPF
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5.
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    for Smartforms material
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    How to trace smartform
    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
    http://www.sap-img.com/smartforms/smart-006.htm
    http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
    Re: Need FAQ's
    check most imp link
    http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
    step by step good ex link is....
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    for Smartforms material
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    How to trace smartform
    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
    http://www.sap-img.com/smartforms/smart-006.htm
    http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
    Re: Need FAQ's
    check most imp link
    http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
    step by step good ex link is....
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    for Smartforms material
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    How to trace smartform
    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
    http://www.sap-img.com/smartforms/smart-006.htm
    http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
    Re: Need FAQ's
    check most imp link
    http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
    step by step good ex link is....
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html

  • Mapping : how to see the field contents

    Hi
    I had tested the mapping object ( source : webservice --> dest: RFC )
    When i ran the test after importing the source instance from XML file, i am getting the message testing is succefull , but i want to see the filed contents in the destination message type (RFC) after the the test.is it passible.
    my requirement is to analyse the field contents after mapping had been done.
    Thanks & regards
    Mallik

    Hi,
    If you want to see what is the actual transformation happening during runtime (i.e. when you test the end-to-end scenario from WebService to RFC)
    1) login to SAP GUI
    2) go to transaction /nSXMB_MONI
    3) double-click on Monitor for Processed XML Messages
    4) Fill the details (like Execution Time, Sender/Receiver Service, Interface etc) and press F8.
    5) double-click on the message-entry corresponding to your scenario
    6) You will see a list as:
    Inbound Message
    Interface Determination
    Request Message Mapping and other options
    7) Expand Inbound Message tab --> Payloads --> Right-click on Main Document and say display in Window 1
    8) Expand Request Message Mapping tab --> Payloads --> Right-click on Main Document and say display in Window 2
    Now you can see the message coming into SAP XI in window 1 (upper window) and message going out of SAP XI in window 2 (lower window)
    Regards,
    Abhishek.

  • I want to check the main diffrence in Pop up block enabled and disabled.But,i don't get any difference.Would u please help me to understand the difference using one practical example of website

    I want to check the main diffrence in Pop up block enabled and disabled.But,i don't get any difference.Would u please help me to understand the difference using one practical example of website

    Here's two popup test sites.
    http://www.kephyr.com/popupkillertest/test/index.html
    http://www.popuptest.com/

  • 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

  • I want to check the warranty period of my phone, sony xperia simei number - 352900058991311

    i want to check the warranty period of my phone, sony xperia simei number - 352900058991311
    Solved!
    Go to Solution.

    Hi, 8885817919!
    For questions or concerns about your Sony Xperia C, I recommend you to contact the Sony Mobile Support team in your country for best assistance!
    Sony Mobile Global Support Website: http://www.sonymobile.com/global-en/support/contact-us/contact-info/
    Please use the link to find your country, and under your country name, you will find a phone number.
    Please call that phone number to contact the Sony Mobile Support team in your country!
    Thank you!
    Sony's #1 Fangirl, Esther Smit

  • HT5622 I want to check the emails that are sent to my Apple ID, is that possible? If so, how?

    I want to check the emails that are sent to my Apple ID, is that possible? If so, how? I have an important message to read and it was sent to my Apple ID account at @me.com

    There are no IDs that end in apple.com.  There are mac.com, me.com, and icloud.com.

  • I want to check the status of application No.  For it is written in my account was canceled and I did not do so I urgent news about his condition and the reason for canceled I redial the same time as the sender befo

    Thank you for your attention
    I want to check the status of application No. W439602096
    For it is written in my account was canceled and I did not do so
    I urgent news about his condition and the reason for canceled
    I redial the same time as the sender before you
    We are waiting for you

    This is a user to user forum. You are not talking to Apple here. We cannot help you; you will need to contact wherever the order was placed.

  • Changing the field content of 'wrbtr' in accounting document during Post Goods Issue in VL02N

    Hi Experts,
         I have requirement ,where I need to  change the 'amount in document currency value (wrbtr)' in line item of a accounting document, which is created as part Post Goods issue through VL02N.
              I have already check BADI's below as follows:-.
    1) LE_SHP_GOODSMOVEMENT- No accounting document information flows in this BADI.
    2) AC_DOCUMENT - Field 'WRBTR' is not available in substitutable fields list.
    3) BTE-1050 - This BTE is not getting triggered while doing PGI.
            Please suggest any other possibilities to make the change.
    Thanks & Regards,
    Suganth.

    Hi Kartik,
                I have checked the enhancement you specified, but it didn't trigger during PGI. Can u please let me know is there any other possibilities to make the change.
    Thanks
    Suganth.

  • Checking the field is null or not

    Hi Experts,
    I need to map if the field is not null,if the field is null i dont need to pass the value to target. is there any function to check this?
    Kind Regards,
    Kumar
    Message was edited by:
            praveen kumar

    Hi ;
    By null do you mean blank or the node itself is not comming in from sender.
    If its comming in as blank then you can achive this by User defined function
    Source field Trim UDF -- Target Field
    UDF
    if(SourceField.length()>0)
    return SourceField;
    Mudit
    Award points if it helps

  • 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

  • I want to download the fields of my table into an excel sheet ?

    hi all,
    i would like to download the ztable that i have created along with the fields in the ztable.
    how do i download it.
    can anyone throw light on this
    regds
    haritha

    Hii..
    PLS CHECK THE SIMPLE CODE BELOW...
    data: begin OF itab occurs 0,
    matnr like mara-matnr,
    end of itab.
    data : begin of it_fieldnames occurs 0,
    name(100),
    end of it_fieldnames.
    it_fieldnames-name = 'MATNR'.
    APPEND IT_FIELDNAMES.
    select matnr from mara into table itab UP TO 10 ROWS.
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    BIN_FILESIZE =
    FILENAME = 'C:\Documents and Settings\sampath\Desktop\flatfile.txt'
    FILETYPE = 'ASC'
    APPEND = ' '
    WRITE_FIELD_SEPARATOR = ' '
    HEADER = '00'
    TRUNC_TRAILING_BLANKS = ' '
    WRITE_LF = 'X'
    COL_SELECT = ' '
    COL_SELECT_MASK = ' '
    DAT_MODE = ' '
    CONFIRM_OVERWRITE = ' '
    NO_AUTH_CHECK = ' '
    CODEPAGE = ' '
    IGNORE_CERR = ABAP_TRUE
    REPLACEMENT = '#'
    WRITE_BOM = ' '
    TRUNC_TRAILING_BLANKS_EOL = 'X'
    WK1_N_FORMAT = ' '
    WK1_N_SIZE = ' '
    WK1_T_FORMAT = ' '
    WK1_T_SIZE = ' '
    IMPORTING
    FILELENGTH =
    <b>TABLES
    DATA_TAB = itab
    FIELDNAMES = IT_FIELDNAMES</b>
    EXCEPTIONS
    FILE_WRITE_ERROR = 1
    NO_BATCH = 2
    GUI_REFUSE_FILETRANSFER = 3
    INVALID_TYPE = 4
    NO_AUTHORITY = 5
    UNKNOWN_ERROR = 6
    HEADER_NOT_ALLOWED = 7
    SEPARATOR_NOT_ALLOWED = 8
    FILESIZE_NOT_ALLOWED = 9
    HEADER_TOO_LONG = 10
    DP_ERROR_CREATE = 11
    DP_ERROR_SEND = 12
    DP_ERROR_WRITE = 13
    UNKNOWN_DP_ERROR = 14
    ACCESS_DENIED = 15
    DP_OUT_OF_MEMORY = 16
    DISK_FULL = 17
    DP_TIMEOUT = 18
    FILE_NOT_FOUND = 19
    DATAPROVIDER_EXCEPTION = 20
    CONTROL_FLUSH_ERROR = 21
    OTHERS = 22
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Reward if Helpful

  • Checking the file content in application server

    Hi,
    I am writing an XML file from the raw XSF data from a smartform auto generated function module through OPEN DATASET command in BINARY MODE. When I go to tcode AL11 to check the content of the XML file, I can see only the first few bytes of it as it looks like one single line in AL11. Is there any way so that I can read the whole content of the file in the application server itself without downloading it into my local machine.
    Thanks in advance
    Nilay Ghosh

    You may try eigther transaction AL11 with allows you to browse files and display their content(as long they are textfiles).
    If you need specific conversion an own report may help:
    first read the file via dataset commands
    if content is non readable convert it to chars
    split the string into a char or string table
    use the command 'editor-call' (check online help) to display this table.
    Kind Regards
    Klaus

  • Want to find the field

    Hi all.
    i have a field. but i don't know the table name.
    i want to know that what are all the table/ program holds that fields.
    i tried in where-used list too. but i unable to find.
    for eg.
    i have a field called Vbeln. but i dnt knw the table name. hw to find that what are all table holds the table.
    v know that vbeln is present in vbak, vbrk...
    that same type of scenario.
    *my scenario is " field name is ' bezei ' . what are all table holds that field*
    pls help me out

    BEZEI - Name of the controlling area
    It is a Data Element.
    It is a text field with the description of the Controlling Area.
    Mainly used to define the Cost Centers.
    It is used in only one Data Base Table.
    TKA01 -  Controlling Areas
    with the Field
    BEZEI - Name of the controlling area
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Dec 25, 2007 8:59 AM

Maybe you are looking for

  • Update ip address, HP LaserJet 500 color MFP M570 PCL 6

    Hello, I am having an issue with my HP LaserJet 500 color MFP M570 PCL 6 printer.  The error message i am receiving, while trying to scan, says I need to update my ip address.  How do i do this? 

  • Is there a limit to the number of subclips displayed in FCP7?

    I am editing a piece that has two large clips that I have divided into subclips based on the start and stop date and time. I can only display a little over 40 of these subclips in the project window. How can I see the rest of them?

  • InDesign Server crashes on PDF export

    I've narrowed the problem down to the PDF presets we have defined. We have two PDF Presets that we use with our InDesign Server, one for low quality and one for high quality. When exporting a document using our high quality preset, IDS will sometimes

  • Vendor evaluation periods

    Hi, In  vendor evaluation, How system calculates from and To date? Example, Vendor is evaluated yearly  twice such as september and March Months. First evaluation happened in the september,on that time system takes current date.Next evaluation happen

  • Cam detection in mac OS X

    I've succesfully plugged in my new webcam and it works perfectly with IM applications. But Flash Player doesn't recognize it for web based video chat. It instead only proposes to use my integrated cam. Any help is welcomed...