How to validate the Male or Female in for infotype 002 in LSMW at FieldMapp

Dear freinds,
           Small problem in LSMW for infotype 0002.
Whiel recording for infotype 002  ihae done for an employee based on FeMale(GESC2) , no when i uploading data i am having for male (GESC1) ...how can i toggle in my
Field mapping please can any body tell me
My field mapping presenlty have is :
__BEGIN_OF_RECORD__ Before Using Conversion Rules
                    Rule :   Default Settings
                    Code:    ZPA30_002 = INIT_ZPA30_002.
TABNAME                      Table Name
                    Rule :   Default Settings
                    Code:    ZPA30_002-TABNAME = 'ZPA30_002'.
TCODE                        Transaction Code
                    Rule :   Default Settings
                    Code:    ZPA30_002-TCODE = 'PA30'.
PERNR                        Personnel Number
                    Source:  ZP0002_STRUC-PERNR (Personnel number)
                    Rule :   Transfer (MOVE)
                    Code:    ZPA30_002-PERNR = ZP0002_STRUC-PERNR.
TIMR6                        Time period indicator: Period
                    Rule :   Constant
                    Code:    ZPA30_002-TIMR6 = 'X'.
CHOIC                        Infotype selection for HR master data maintenance
                    Rule :   Constant
                    Code:    ZPA30_002-CHOIC = '0002'.
BEGDA                        Start Date
                    Source:  ZP0002_STRUC-BEGDA (Start Date)
                    Rule :   Transfer (MOVE)
                    Code:    * Date Value as DDMMYYYY
                             ZPA30_002-BEGDA0(2) = ZP0002_STRUC-BEGDA6.
                             ZPA30_002-BEGDA2(2) = ZP0002_STRUC-BEGDA4.
ENDDA                        End Date
                    Source:  ZP0002_STRUC-ENDDA (End Date)
                    Rule :   Transfer (MOVE)
                    Code:    * Date Value as DDMMYYYY
                             ZPA30_002-ENDDA0(2) = ZP0002_STRUC-ENDDA6.
                             ZPA30_002-ENDDA2(2) = ZP0002_STRUC-ENDDA4.
                             ZPA30_002-ENDDA+4(4) = ZP0002_STRUC-ENDDA.
ANREX                        Form of address text
                    Source:  ZP0002_STRUC-ANREX (Title)
                    Rule :   Transfer (MOVE)
                    Code:    ZPA30_002-ANREX = ZP0002_STRUC-ANREX.
NACHN                        Last Name
                    Source:  ZP0002_STRUC-NACHN (Last Name)
                    Rule :   Transfer (MOVE)
                    Code:    ZPA30_002-NACHN = ZP0002_STRUC-NACHN.
VORNA                        First Name
                    Source:  ZP0002_STRUC-VORNA (First Name)
                    Rule :   Transfer (MOVE)
                    Code:    ZPA30_002-VORNA = ZP0002_STRUC-VORNA.
GESC2                        Gender key  -
> how can i put MAle condition
                    Source:  ZP0002_STRUC-GESC2 (Female)
                    Rule :   Transfer (MOVE)
                    Code:    ZPA30_002-GESC2 = ZP0002_STRUC-GESC2.
GBDAT                        Date of Birth
                    Source:  ZP0002_STRUC-GBDAT (Date of birth)
                    Rule :   Transfer (MOVE)
                    Code:    * Date Value as DDMMYYYY
                             ZPA30_002-GBDAT0(2) = ZP0002_STRUC-GBDAT6.
                             ZPA30_002-GBDAT2(2) = ZP0002_STRUC-GBDAT4.
                             ZPA30_002-GBDAT+4(4) = ZP0002_STRUC-GBDAT.
GBLND                        Country of Birth
                    Source:  ZP0002_STRUC-GBLND (Country of Birth)
                    Rule :   Transfer (MOVE)
                    Code:    * Leave date value in internal format (YYYYMMDD)
                             ZPA30_002-GBLND = ZP0002_STRUC-GBLND.
Caution: Source field is longer than target field
                     Code:    ZPA30_002-NATI2 = ZP0002_STRUC-NATI2.
FATXT                        Marital Status
                     Source:  ZP0002_STRUC-FATXT (Marital Status)
                     Rule :   Transfer (MOVE)
                     Code:    ZPA30_002-FATXT = ZP0002_STRUC-FATXT.
Note : however my SourceField if i click i can see both GESC1 & GESC2.
Please help me in this regard
Regards
Syamla

Hello,
Male or female in 0002 is determined the field ANRED. (Mr. Ms.) based on this only the GESCH(Gender key is determined).
So if a employee is a male fill ANRED with 1 else with 2.
Thanks.
Krishna

Similar Messages

  • How to validate the Male or Female for infotype 002 in LSMW at FieldMapping

    Dear freinds,
               Small problem in LSMW for infotype 0002.
    Whiel recording for infotype 002  ihae done for an employee based on FeMale(GESC2) , no when i uploading data i am having for male (GESC1) ...how can i toggle in my
    Field mapping please can any body tell me
    My field mapping presenlty have is :
    __BEGIN_OF_RECORD__ Before Using Conversion Rules
                        Rule :   Default Settings
                        Code:    ZPA30_002 = INIT_ZPA30_002.
    TABNAME                      Table Name
                        Rule :   Default Settings
                        Code:    ZPA30_002-TABNAME = 'ZPA30_002'.
    TCODE                        Transaction Code
                        Rule :   Default Settings
                        Code:    ZPA30_002-TCODE = 'PA30'.
    PERNR                        Personnel Number
                        Source:  ZP0002_STRUC-PERNR (Personnel number)
                        Rule :   Transfer (MOVE)
                        Code:    ZPA30_002-PERNR = ZP0002_STRUC-PERNR.
    TIMR6                        Time period indicator: Period
                        Rule :   Constant
                        Code:    ZPA30_002-TIMR6 = 'X'.
    CHOIC                        Infotype selection for HR master data maintenance
                        Rule :   Constant
                        Code:    ZPA30_002-CHOIC = '0002'.
    BEGDA                        Start Date
                        Source:  ZP0002_STRUC-BEGDA (Start Date)
                        Rule :   Transfer (MOVE)
                        Code:    * Date Value as DDMMYYYY
                                 ZPA30_002-BEGDA0(2) = ZP0002_STRUC-BEGDA6.
                                 ZPA30_002-BEGDA2(2) = ZP0002_STRUC-BEGDA4.
    ENDDA                        End Date
                        Source:  ZP0002_STRUC-ENDDA (End Date)
                        Rule :   Transfer (MOVE)
                        Code:    * Date Value as DDMMYYYY
                                 ZPA30_002-ENDDA0(2) = ZP0002_STRUC-ENDDA6.
                                 ZPA30_002-ENDDA2(2) = ZP0002_STRUC-ENDDA4.
                                 ZPA30_002-ENDDA+4(4) = ZP0002_STRUC-ENDDA.
    ANREX                        Form of address text
                        Source:  ZP0002_STRUC-ANREX (Title)
                        Rule :   Transfer (MOVE)
                        Code:    ZPA30_002-ANREX = ZP0002_STRUC-ANREX.
    NACHN                        Last Name
                        Source:  ZP0002_STRUC-NACHN (Last Name)
                        Rule :   Transfer (MOVE)
                        Code:    ZPA30_002-NACHN = ZP0002_STRUC-NACHN.
    VORNA                        First Name
                        Source:  ZP0002_STRUC-VORNA (First Name)
                        Rule :   Transfer (MOVE)
                        Code:    ZPA30_002-VORNA = ZP0002_STRUC-VORNA.
    GESC2                        Gender key  -
    > how can i put MAle condition
                        Source:  ZP0002_STRUC-GESC2 (Female)
                        Rule :   Transfer (MOVE)
                        Code:    ZPA30_002-GESC2 = ZP0002_STRUC-GESC2.
    GBDAT                        Date of Birth
                        Source:  ZP0002_STRUC-GBDAT (Date of birth)
                        Rule :   Transfer (MOVE)
                        Code:    * Date Value as DDMMYYYY
                                 ZPA30_002-GBDAT0(2) = ZP0002_STRUC-GBDAT6.
                                 ZPA30_002-GBDAT2(2) = ZP0002_STRUC-GBDAT4.
                                 ZPA30_002-GBDAT+4(4) = ZP0002_STRUC-GBDAT.
    GBLND                        Country of Birth
                        Source:  ZP0002_STRUC-GBLND (Country of Birth)
                        Rule :   Transfer (MOVE)
                        Code:    * Leave date value in internal format (YYYYMMDD)
                                 ZPA30_002-GBLND = ZP0002_STRUC-GBLND.
    Caution: Source field is longer than target field
                         Code:    ZPA30_002-NATI2 = ZP0002_STRUC-NATI2.
    FATXT                        Marital Status
                         Source:  ZP0002_STRUC-FATXT (Marital Status)
                         Rule :   Transfer (MOVE)
                         Code:    ZPA30_002-FATXT = ZP0002_STRUC-FATXT.
    Note : however my SourceField if i click i can see both GESC1 & GESC2.
    Please can any one let me know .
    Regards
    Syamla

    Hello,
    Male or female in 0002 is determined the field ANRED. (Mr. Ms.) based on this only the GESCH(Gender key is determined).
    So if a employee is a male fill ANRED with 1 else with 2.
    Thanks.
    Krishna

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

  • How to find the number of idocs generated for a customer on the basis of his purchase order in a day ?

    How to find the number of idocs generated for a customer on the basis of his purchase order in a day ?

    Dear Friends,
    I am absolutely agree with your answer .
    But my question is,
    Lets say.....
    One customer sending X number of purchase orders in a day , so how many IDocs generated on that specific day for that specific customer .
    So, Question is , How can we find the no of sales orders(IDocs) generated for the customers on the specific day ?
    Hope you all understood my requirement .
    Thanks & Regards,
    Aditya

Maybe you are looking for

  • How to upgrade iOS on iPhone when disk iTunes is installed on is virtually full

    I'm trying to upgrade iOS on my iPhone. The PC that I run iTunes on is old and as such the C: has only a 40GB capacity and us virtually full. I have a symlink set up which points the default iTunes backup folder at a secondary, larger internal hard d

  • IPod service error - been through all the steps in tech articles

    Hi, I bought an iPod nano for my wife (she uses Windows XP). She previously had installed iTunes on the computer (not sure which version) and it worked fine. We then used the CD to install the iPod software before trying to connect the nano for the f

  • DMS Console Exception in JSP Page

    Hello. I have a simple jsp page that calls a method in a class file. In the class I have a function, where I get an error when the connection is attempted. I know that the connection is the problem because the jsp page calls it ( <%=opduser.count()%>

  • Problem with Matching and Merging Step of MDM Workflow

    Hi, I have created a workflow which will first Match Step where the user will do both Matching and Merging. Then, it will go for a process step Final Review. Then, it will go for Branch step which is named as Decide on Check in. There are two workflo

  • Installing Photoshop CS4

    Why can't I install Photoshop CS4 on my new MacBook Pro, OS 10.7.3