How to Validate the Fileds in LSMW - In step 6.   Maintain Fixed Values, T

Hi
How to validate the fileds in the LSMW in the step
  6 Maintain Fixed Values, Translations, User-Defined Routnes.
In this step how to i validate the fileds.
Please help.
Regards
Gangi

Hi,
You can validate the fields in the LSMW in field mapping section .
For example you are loading the BOM using LSMW and you want to validate those material numbers which do not exist in the material master .
For this purpose write a select statement to check the materials existence like below :
select single matnr into v_matnr
from mara
where matnr = source-matnr .
if sy-subrc <> 0.
skip_record. " this statement will skip the record .
endif.
To get such statements to handle the records withing LSMW during data transfer .Go to the field mapping step , there in abap conversion routine step
go to ' INSERT' -> 'GLOBAL FUNCTIONS' -> ( then a pop will open offering various function options for your requirement. ) In fact SKIP_RECORD is also available there .
reward if it helps...
Regards,
Omkar.

Similar Messages

  • How to validate the dates in the table control ?

    How to validate the dates in the table control ?
    Can I write like this ?
    LOOP AT it_tab .
    CHAIN.
    FIELD : it_tab-strtdat,it_tab-enddat.
    module date_validation.
    ENDCHAIN.
    ENDLOOP.
    Module Date_validation.
    ranges : vdat type sy-datum.
    vdat-sign = 'I'.
    VDAT-LOW = it_tab-STRTDAT.
    VDAT-HIGH = it_tab-ENDDAT.
    VDAT-OPTION = 'BT'.
    APPEND VDAT.
    WHAT CODE I have to write here to validate ?
    and If I write like this How can we know which is the current row being add ?
    It loops total internal table ..?
    Bye,
    Muttu.

    Hi,
    I think there is no need to put chain endchain.
    To do validation you have to write module in PAI which does required validations.
    Thanks
    DARSHAN PATEL

  • How to validate the file path when downloading.

    Hi
    How to validate the file path when downloading to Presentation or application Server.

    hiii
    you can validate file path by following way
    REPORT zvalidate.
    TYPE-POOLS: abap.
    DATA: w_direc TYPE string.
    DATA: w_bool TYPE abap_bool.
    w_dir = 'c:\Myfolder\'.
    CALL METHOD cl_gui_frontend_services=>directory_exist
    EXPORTING
    directory = w_direc
    RECEIVING
    result = w_bool
    EXCEPTIONS
    cntl_error = 1
    error_no_gui = 2
    wrong_parameter = 3
    not_supported_by_gui = 4
    OTHERS = 5.
    IF NOT w_bool IS INITIAL.
    WRITE:/ 'Directory exists.'.
    ELSE.
    WRITE:/ 'Directory does not exist.'.
    ENDIF.
    regards
    twinkal

  • How to Validate the Cube in Essbase

    Hi All,
    in Essbase How to Validate the ASO Cube. How can we validate the data is loaded correctly or not after data loading.
    please let me know how to do this job?
    Regards

    If you load data you can see the data load successful and the no of cells updated in the dialogue box.
    If there any records rejected they are thrown into dataload .err file.
    If you want to validate the input data you can verify the input records in the excel add-in.
    If you want validate the business logic ( ie data at the high level ) you have to write SQL Procedures or Custom programs at the Source layer to calculate the high level data in ESSBASE and compare the results in essbase Roll UP Using Excel add-in.

  • How to validate the field when i am populating the data cursor to block

    Hi,
    I am populating data cursor to multi record block.
    Block contain 5 items. I am populating data cursor to block for 4 items. User will enter one item value that is quantity field.
    If user enter negative values and decimal points in quantity filed i need to display message to user item level.
    Please do the needful how to do it.

    902434 wrote:
    Hi,
    I am populating data cursor to multi record block.
    Block contain 5 items. I am populating data cursor to block for 4 items. User will enter one item value that is quantity field.
    If user enter negative values and decimal points in quantity filed i need to display message to user item level.
    Please do the needful how to do it.If you want to validate at entry level then use When-Validate-Item trigger and check the input and show message. Like
    If :quentity <0 then
    message('do not enter negative value');
    message('do not enter negative value');
    raise form_trigger_failure;
    end if;Why u open same thread again ? not closing one.. check this one
    </a>
    How to validate the field when i am populating the data cursor to block
    Hopes this helps
    If someone's response is helpful or correct, please mark it accordingly.

  • How to validate the warranty of my iphone 5 where I live, in Caracas, Venezuela

    How to validate the warranty of my Iphone 5 in Caracas, Venezuela. I have problems with the start button and the phone is unlocked one. I found only service for all Apple products except Iphone5, What can I do?

    I'm not sure what you're asking.
    You can find out if your phone is under warranty by entering the serial number here: https://selfsolve.apple.com/agreementWarrantyDynamic.do
    If you want to know if you can get it serviced in Venezuela... that depends on where you purchased it.  The warranty is NOT international. It can only be serviced in the country where it was originally sold.
    What is the model number in Settings>General>About?

  • How to validate the fields  and how to display the error messagein presenta

    Hi,
    I am new to OBPM 10g, pls tell me how to validate the fields in a presentation.
    for example if we take login presentation if user enters his user name and password wrongle and submit the form. Then we need to display error message right side of the each field i.e user name and passowrd is wrong and try again.
    Regards
    jaya
    Edited by: 12345 on Aug 12, 2010 10:38 PM

    Hi Jaya,
    You can initially set the validation for empty values.. that is when the user dint enters any value and clicks on submit.
    for these vadliations you need to write a method and call it on submit button click!!
    secondly, you can validate for the format if required.
    thirdly, you can validate against a database for the credentials. For this you need to fetch list of usernames from database and search for user entered value in that list.
    Optimal query would be : if user name not null, query for pwd of the entered user name from database or file storage. if you dont get any value for pwd of given username, its incorrect user name. if you get some pwd value for username, then check against the one user entered in pwd field..
    Write all this logic in a method and call on submit button click event of the login form!!
    HTH
    Sharma

  • How to hide the fileds

    how to hide the fileds in a form for one activity and how to display the same fields to another activity? in the same process
    Edited by: jaya on Aug 9, 2010 10:07 PM
    Edited by: jaya on Aug 9, 2010 10:40 PM

    Inside of the screenflow, you can determine the name of the activity in an Autmatic task using logic like this:
    myObject.activityName = Activity.nameThe use of upper case "Activity" in the above logic is correct for logic inside of an automatic task inside a screenflow.
    This would let you use an if / elseif statement inside your presentation initialization method to hide or show the fields based on the activity's name. Note that this is actually the activity id. It is not the activity name you see in Studio that can be edited.
    Dan

  • How to validate the valid email

    Hi all
    i have a creation page in that page email field is ther .while saving the transaction i need to check that email is a valid email or not
    how can we achieve this functionality
    Regards
    Sreekanth

    Please see this link
    Re: how to validate the email
    Thanks
    --Anil                                                                                                                                                                                                                               

  • How to validate the Email in JSF 2.0

    Hi,
    I am developing web application using jsf2.0.
    In this case, I wish to validate the email field with the help of import org.hibernate.validator.Email;
    But it is not working, How to validate the email fileld...
    Thank.

    ManiForum wrote:
    ...I wish to validate the email field with the help of import org.hibernate.validator.Email;
    But it is not working, How to validate the email fileld...Are you asking on how to do it with the Email class from Hibernate? Or, are you open to other alternatives?

  • How  to validate the mandatory fields in the view in WDA?

    Dear experts,
                            Iam new to WDA. i just want to know how  to validate the mandatory fields in the view in WDA?please refer any documents for validating the mandatory fields.
    Regards,
    murthy.
    Edited by: Murthy Ganti on Jul 13, 2009 2:31 PM

    Hi,
    Firstly goto view->select the element that you want to make mandatory and set the State property to required.
    Secondly place the below code in the WDDOBEFOREACTION
    DATA: l_view_controller TYPE REF TO if_wd_view_controller.
    * Get view controller
      l_view_controller = wd_this->wd_get_api( ).
    * Check for mandatory attribute
      cl_wd_dynamic_tool=>check_mandatory_attr_on_view(
      EXPORTING view_controller  = l_view_controller
                display_messages = abap_true
    Regards,
    Radhika.

  • How can validate the ASM size and free space correctly?

    Dears ,,
    I faced problem in ASM size as it appeared in alert file as below
    ORA-19504: failed to create file "+DG_DATA"
    ORA-17502: ksfdcre:4 Failed to create file +DG_DATA
    ORA-15041: diskgroup space exhausted
    So we resize ASM space and large it. But we faced the same problem also although there is free space in ASM.
    It seems that the shown free space is not real.
    How can validate the ASM size and free space correctly?
    Thanks & Regards,,

    *Oracle DBA* wrote:
    Dears ,,
    I faced problem in ASM size as it appeared in alert file as below
    ORA-19504: failed to create file "+DG_DATA"
    ORA-17502: ksfdcre:4 Failed to create file +DG_DATA
    ORA-15041: diskgroup space exhausted
    So we resize ASM space and large it. But we faced the same problem also although there is free space in ASM.
    It seems that the shown free space is not real.
    How can validate the ASM size and free space correctly?
    Thanks & Regards,,
    I was having this problem. Im my case i couldn add datafiles to a tablespace despite the fact that i was having a lot of space in the asm. Try rebalancing. It might help. In my case rebalancing also didn work because it seems that there need to be a threshold space in all the disks for the rebalancing to happen which was not in my case, so i had to shrink some unused space in the tablespace and then after gaining the required space I rebalanced the disk and then the disks got rebalanced, also i was able to use the free space that was showing .

  • How to validate the Oracle9iAS Infrastructure

    How to validate the successful installation of the Oracle9iAS Infrastructure?
    We installed the Oracle9iAS Infrastructure followed the default setps, but how can we validate the successful installation?

    Access
    http://fully_qualified_domain_name:port/oiddas
    You could also check to see if the following infrastructure components are running:
    1. repository database - sid = iasdb
    2. repository network listener - port 1521
    3. infra http server - default port - 7777
    4. oracle internet directory - default port 4032 (389 windows)
    5. oc4j_das component - dcmctl getstate -v -d OC$J_DAS

  • How to set the default selection to "Select All" in a Multi valued parameter in SSRS 2008?

    Hello Everyone,
    How to set the default selection  to "Select All" in a Multi valued parameter in SSRS 2008?
    Regards
    Gautam S
    Regards

    You need to specify "Default Values" in the report parameter property. Choose similar option used in the "Available Values" option, this will allow the parameter to check "Select All".
    Regards, RSingh

  • Please help me how concatenate all the error messages and send it as out parameter value.

    Hi Experts,
    Please help me how concatenate all the error messages and send it as out parameter value.
    Thanks.

    Agree with Billy, exception handling is not something that is done by passing parameters around.
    PL/SQL, like other languages, provides a suitable exception handling mechanism which, if used properly, works completely fine.  Avoid misuing PL/SQL by trying to implement some other way of handling them.

Maybe you are looking for

  • Default Cost Center

    Hi All I need to assign a new cost center to the HR module to allocate for payroll costs... I m not sure what needs to be done but can anyone guide me on this Thank you Rukshana

  • DEP update for acrobat Vulnerability identifier: APSA09-07

    I deactived javascript in my acrobat to prevent the issue Adobe made everyone aware of on 12/1/509. Does the update 9.3.0 take care of this? can i now enable javascript again?

  • Multiple home screen

    I'm a simple user, with many needs, i install so many wonderfull apps from nokia store, and test apps from nokia beta labs. there is so many widgets and apps i use, and probably there is so many people that has the same problem. there is no enough sp

  • Modifying the Data Binding value at runtime

    Hi just wondering if there is a programmatic way of adding or removing the Default Binding value at runtime? This is the value that is showing up on the Binding Tab of the Object Tab. thanks, John

  • Execute .sql scripts from a remote login

    Hello, 1) How do I execute a remote sql script from sqlplus? SQL>@remote_server:$HOME/test_sql.sql ...this did not work, which would work? 2) Another question, in sqlplus I can do...! echo testing123>$HOME/test123.txt. How do I do this within a store