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

Similar Messages

  • 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

  • How to find the error message populating for infotype 2001 iN pa30

    Hi ,
    I got a requirement that one of our end user a a error message is populating when he tries to enter the data in 2001 absences infotype.
    I check the documents ...it is written as a there is long back they modified the original T-code of 2001(report or userexit not sure) to allow only HR Department people , no one can enter the details apart from HR ,no-one else should be able to do that!!
    Now i need to find where the error message is getting .............i dont know what is the best approach,
    i debugged it(before savgin) but its too long to find......I put the break points for the user-exits available for the infotype(Total i found 16 Package PTIM) ......no user-exit is triggerring..i searching from morning....
    The main problem is  it is working fine for me.I am not getting error message...so unable to catch
    Please help me how to search...or need to search with 'AUTH ' field? if so in how many programs?
    or need to search using the 'MESSAGE' i just have the screen shot of the message..with the content how could i found that ??
    waiting for your valuable inputs....
    regards
    sas

    Hi Gautam,
    Thanks for reverting back, but my problem is i am not getting error message!!
    enduser is getting that!!
    Rgars
    sas

  • 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 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 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 use the same POWL query for multiple users

    Hello,
    I have defined a POWL query which executes properly. But if I map the same POWL query to 2 portal users and the 2 portal users try to access the same page simultaneously then it gives an error message to one of the users that
    "Query 'ABC' is already open in another session."
    where 'ABC' is the query name.
    Can you please tell me how to use the same POWL query for multiple users ?
    A fast reply would be highly appreciated.
    Thanks and Regards,
    Sandhya

    Batch processing usually involves using actions you have recorded.  In Action you can insert Path that can be used during processing documents.  Path have some size so you may want to only process document that have the same size.  Look in the Actions Palette fly-out menu for insert path.  It inserts|records the current document work path into the action being worked on and when the action is played it inserts the path into the document as the current work path..

  • How to get the "last changed by" for a set of function modules?

    How to get the "last changed by" for a set of function modules?
    is there any table to get it??

    See [this|Re: Date of creation of function module] I posted earlier.
    >TFDIR will give you the name of the function group program and the include number.
    >E.g. SAPLZFUNCGROUP Include 01.
    >From this you can construct the include name: LZFUNCGROUPU01.
    >You can look this up in TRDIR to find the creation date (CDAT) of the function module.
    In your case, you need unam and udat.
    matt

  • How to use the same services-config for the local and remote servers.

    My flex project works fine using the below but when I upload my flash file to the server I doesn't work, all the relative paths and files are the same execpt the remote one is a linux server.
    <?xml version="1.0" encoding="UTF-8"?>
    <services-config>
        <services>
            <service id="amfphp-flashremoting-service"
                class="flex.messaging.services.RemotingService"
                messageTypes="flex.messaging.messages.RemotingMessage">
                <destination id="amfphp">
                    <channels>
                        <channel ref="my-amfphp"/>
                    </channels>
                    <properties>
                        <source>*</source>
                    </properties>
                </destination>
            </service>
        </services>
        <channels>
        <channel-definition id="my-amfphp" class="mx.messaging.channels.AMFChannel">
            <endpoint uri="http://localhost/domainn.org/amfphp/gateway.php" class="flex.messaging.endpoints.AMFEndpoint"/>
        </channel-definition>
        </channels>
    </services-config>
    I think the problem  is the line
            <endpoint uri="http://localhost/domainn.org/amfphp/gateway.php" class="flex.messaging.endpoints.AMFEndpoint"/>
    but I'm not sure how to use the same services-config for the local and remote servers.

    paul.williams wrote:
    You are confusing "served from a web-server" with "compiled on a web-server". Served from a web-server means you are downloading a file from the web-server, it does not necessarily mean that the files has been generated / compiled on the server.
    The server.name and server.port tokens are replaced at runtime (ie. on the client when the swf has been downloaded and is running) not compile time (ie. while mxmlc / ant / wet-tier compiler is running). You do not need to compile on the server to take advantage of this.
    Hi Paul,
    In Flex, there is feature that lets developer to put all service-config.xml file configuration information into swf file. with
    -services=path/to/services-config.xml
    IF
    services-config.xml
    have tokens in it and user have not specified additional
    -context-root
    and this swf file is not served from web-app-server (like tomcat for example) than it will not work,
    Flash player have no possible way to replace token values of service-config.xml file durring runtime if that service-config.xml file have been baked into swf file during compilation,
    for example during development you can launch your swf file from your browser with file// protocol and still be able to access blazeDS services if
    -services=path/to/services-config.xml
    have been specified durring compilation.
    I dont know any better way to exmplain this, but in summary there is two places that you can tell swf  about service confogiration,
    1) pass -services=path/to/services-config.xml  parameter to compiler this way you tell swf file up front about all that good stuff,
    or 2) you put that file on the webserver( in this case, yes you should have replacement tokens in that file) and they will be repaced at runtime .

  • How to use the same email address for outgoing email on two iPads?

    How to use the same email address for outgoing email on two iPads?.   My wife and I both use the same email address.  We receive the same incoming email on both iPads but are unable to send email from my wife's iPad.  She is using an iPad 2 and is usng IOS 6.0.1

    Hi Creaturekeeper,
    If you've added the account into the iPad and you are unable to send email from it, then please follow the troubleshooting in the article below.
    Get help with Mail on iPhone, iPad, and iPod touch - Apple Support
    Take care,
    Alex H.

  • 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 find the exact user exit for our requirement?

    Dear Mr. keerthi,
    can you please explain me how to find the exact user exit for our requirement?

    Hi sandip
    There is more than one method in which you can check for user-exits.The following method is used very often.
    <b>How to find the exact user-exit for your requirement.</b>
    1.     You can check the user exists using transaction SE85.
    2.     Repository Information System -> Enhancements -> Customer exits
    3.     You can search the user-exits by package name.
    4.     Double click on each exit name to check the function module exits.
    <b>The procedure to find the package name.</b>
    Execute transaction SE93 
    Enter the tcode of the transaction for which you want to check the user exit.
    Example: if you want to find the user-exit for purchase orders while changing, enter ME22n  and press display.
    You will get to see the package name
    But you need to confirm that the user exit will get triggered at the appropriate event.
    ( example: you might want some validations to be done ON SAVE of a purchase order)
    <b>Checking if the user-exit is getting triggered or not.</b>
    1.     Open the user exit function module (that you have got in step 4) in Tcode SE37.
    2.     Click on where used button. In the pop up that immediately appears choose only programs .
    3.     You will get a list of programs. Double click on the program name.
    4.     You will get the list of location where this function module user exit is used.
    5.     Place session break points at each of these location ( at each CALL FUNCTION statement)
    6.     Now go to your transaction ( say change purchase order tcode:Me22n) and check if the user exit is getting triggered on appropriate event.
    regards,
    Prasad

Maybe you are looking for