LSMW - PA40 - Skip Infotype

Hi,
I intend to make use of LSMW for a specific Action type, which has the Following Infotypes in this order,
0000
0001
0105-Subtype 0001 (System UserID)
0105-Subtype 0020 (Email)
0041
Though i would supply data for all infotypes in the excel sheet, for few employees, I do not have data in 0105-Subtype 0020 (Email).
I still want to include all the employees in this LSMW with the option that -
If data is available in a Subtype, then Save it....else, skip that Infotype (I do not want to Skip the Record, or skip the transaction)..
Tried to write an ABAP Code to read the BDC_OKCODE and try to save or skip as per the requirement... But seems i am missing something...
Hope someone has the answer to this.
Kumarpal

It doesn't matter which recording you do first.
In your "field mappings and conversion rules" section there will be 2 entries, one will be the /ENXT recording and the other with the normal SAVE.
For the recording with /ENXT, you need to insert code that looks something like this:
IF P0105-SUBTYPE = 0010
and P0105-USRID_LONG is INITIAL.
ELSE.
SKIP_RECORD.
ENDIF.
For the other recording you will have the opposite ie:
IF P0105-SUBTYPE = 0010
and P0105-USRID_LONG is INITIAL.
SKIP_RECORD.
ELSE.
ENDIF.
You mappings for both recordings can be identical it makes no difference because when the email is empty it will in any case process the /ENXT recording and skip the screen.
You may have to check for other things in the code but I am not sure of your exact situation. For example you might need to check rather that SUBTYPE 0010 actually exists, instead of checking the USRID_LONG field as I have done above.
If you need any more help let me know.

Similar Messages

  • LSMW using HR Infotype

    Hi All,
    My requirements is to do one LSMW project for the modification of DOB field in IT0002. The problem is the screen is different for various employees(Based on the configuration).
    Eg : Pernr   screen
           1000   2000
           1001   2001
    So while running the batch input session, it's giving error message. Because the screen in the recording may not match with the screens calling while running the sessions.If anybody of you can suggest a solution it would be grateful .
    Thanks in Advance,
    Selvakumar

    what configuration you made ? How it is specifing ?
    If it not stopping and updating others then it ok if it is not updating all and stoping at the error messge then you have to pass in the file with the recognization.
    Otherwise let me know what config you did.
    Somtimes you have to write coding in the LSMW check with the ABAPer for this for skip this kind of error for this BDC is perfect or to create two Projects.
    Manoj Shakya

  • LSMW (PA40) successful but unable to update records in PA30

    Hi,
    I have tried running LSMW ( with external no range) in Fore ground mode. I can see that the data is getting properly picked from Excel sheet and in foreground mode, I am able to see this data getting into screens when i run LSMW last step.
    But actually when i go and check in tables and in PA30 if these employees are hired, there is no data.
    Can you please check the below --->
    My guess is while recording when we save 0,1,2 there should be some code written for "SAVE". In my recording BDC Code i ddint find any specific code. Can you check in your recordings if there is any special code for "SAVE" like BDC_OKCODE = "SAVE".
    Since there is no code written in my recording, i think this is the reason data is not getting saved.
    Can you let me know what needs to be done? If the above doubt is right, how to insert that in my BDC code.
    For your information-> U can find my BDC code pasted here.
    Recording REC7 M7
    PA40 Personnel Actions
    SAPMP50A 2000
    BDC_CURSOR T529T-MNTXT(01)
    BDC_OKCODE =PICK
    RP50G-PERNR PERNR Personnel Number
    RP50G-EINDA EINDA Entry Date
    RP50G-SELEC(01) X SELEC_01 Indicator for list sc
    BDC_SUBSCR /1PAPAXX/HDR_30060A
    MP000000 2000
    BDC_CURSOR PSPAR-PERSK
    BDC_OKCODE =UPD
    P0000-MASSN MASSN Action Type
    PSPAR-WERKS WERKS Personnel Area
    PSPAR-PERSG PERSG Employee Group
    PSPAR-PERSK PERSK Employee Subgroup
    MP000200 2010
    BDC_CURSOR Q0002-GESC1
    BDC_OKCODE =UPD
    Q0002-ANREX ANREX Form of address text
    P0002-NACHN NACHN Last Name
    P0002-VORNA VORNA First Name
    Q0002-PERID PERID Personnel ID Number
    P0002-GBDAT GBDAT Date of Birth
    Q0002-GESC1 GESC1 Gender key
    Q0002-GESC3 GESC3 Gender key
    BDC_SUBSCR SAPMP50A
    Thanks & Regards,
    Mamta
    Edited by: Mamta on Oct 28, 2008 7:58 PM
    Edited by: Mamta on Oct 28, 2008 7:59 PM

    Dear All,
    First of all I would like to answer all your questions.
    1. Yes, I tried LSMW by including PSPAR-PERNR PERNR Personnel Number in BDC code under MP000000 2000 too. Also, I did add the Perner again in the upload file too. In Read data mode I can see that Perner appeared twice as per our recording. In convert data Perner appeared only one. When I run last step of LSMW in foreground mode everything was perfect. But again when I go and check in PA30 there is no data.
    2. Yes, I did use PA40 for recording.
    3.  The sequence is 0000->0002->0001 while recording , in uploading file and in foreground mode too.
    4. When I run in foreground it appears like the regular Manual PA40 transaction.
    I donu2019t what might be causing this error. I would be glad to know your answers for the above issue.

  • Regarding lsmw and spefic infotype fields

    hi , experts
    i want to upload reimbursement amount in sap through lsmw so for this first we should prepare format in excel right
    so in excel which fields we will maintain and how we will prepare
    suppose this amount upload in 0015 info type so give me advice and once u can test in ides then tell me the process
    as same in implementation stage master data should be upload in sap so for this now i want to give the formats for all info types to users then only they will prepare the master data in excel
    after completion of the configuration we will upload the employee master data into sap
    thanks in advance..

    Hi Nethi,
    For uploading 0015 infotype, generally we give Wagetype, Amount/Number, Date of Origin.
    It purely depends on your requirement again.
    Once your upload is successful in IDES, then export LSMW to local system. And import the same in Production.
    Pradeep.

  • LSMW for HR infotypes, using HRMASTER  Bapi

    hi,
    can some one tell me the procedure of updating the infotypes using BAPI in LSMW
    thanks,
    Raj

    Hi
    Welcome to SDN
    Better use the fun module HR_INFOTYPE_OPERATION for the data upload into infotypes instead of LSMW
    if needed see the link for LSMW-BAPI
    http://esnips.com/doc/ef04c89f-f3a2-473c-beee-6db5bb3dbb0e/LSMW-with-BAPI.ppt
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • LSMW for PP01 infotype 1050 -Job Evaluation results

    While doing the recording for IT1050 using LSMW, in the Process recording field the field for Job evaluation results doesn't get picked up.
    When the recording is done, in the maintain Object Attributes step of LSMW, I select the Object type as S , enter an object ID and then select the Job evaluation result infotype and then click on create. I enter the values in the respective fields and then save it. Now I am in the Process Recording screen and I enter the field details. There in the INS screen the Markfield value for the Job evaluation result infotype is not getting picked properly.
    Can u plz help as to what settings need to be done for correctly inserting the infotype fields with the values provided?
    Thanks!!
    Regards,
    Vijetha

    Hi Bala,
    Thank U for the reply.
    I tried it using the PP02 and i cud successfully complete the LSMW process.
    Thank You.
    Regards,
    Vijetha

  • LSMW to upload infotype data

    Hi,
    I need to upload folowing data for InfoType0000 using LSMW...
    Start Date
    End Date
    Personnel number
    Action type
    Reason for Action
    Customer Specific Status
    Employee Status
    Special Payment Status
    Position
    Personnel Area
    Employee Group
    Employee Subgroup
    Can any one plz let me know how to do this......
    Thanks,
    Shilpa K

    Check below Link
    http://www.sapbrainsonline.com/TUTORIALS/TECHNICAL/LSMW_tutorial.html
    Rewards points  if useful....
    Regards
    Minal

  • LSMW - PA30 for infotype 851

    Hi Everyone,
    I am loading some files for IT851 and I am having some problems with the metro field. I can see that for metro the value should be passed is 1 and 0 for non-metro. When I am running the batch in foreground I could see that the recording is setting this field to 1 - Metro. The batch was saved successfuly but this field is always set to non-metro. I tried to change it manually and it is working. I am not sure if the LSMW cannot set this properly. Is there anyway to fix this problem? thanks in advance!
    Regards,
    Mike Nacionales

    HI,
    After you do the recording,delete the recorded values in the pararmeter or else the system may  take the defualt values from the recording. After this try to upload it ,it may solve your problem.
    Thanks

  • LSMW to upload data using PA40 (Hiring Action)

    Hi All
    I have a requirement to upload the data in Actions (Infotype 0000) & Org.Assignment (Infotype 0001) using PA40.
    For More information : I have to use the Action type = Hiring , this infogroup has 8 infotypes in a sequence as mentioned below .
    1 . 0000
    2.  0002
    3.  0001
    4.  0006
    5. 0007
    6. 0008
    7. 0009
    8. 0015
    Now to upload the Actions & Org.Assignment data in need only the  0000 & 0001 infotypes .
    Now the problem is while recording , once i enter the 0000 Infotype data & save . It goes to the 0002 (which i dont have to upload now).
    Now my question is can i skip infotype 0002 while recording ?? 
    After skipping  i will enter the 0001 infotype (which is next in a sequence mentioned above) & save it .
    After saving it goes to the 0006 (which follows the 0001 in a sequence mentioned above) .
    As i dont want to enter the 0006 data now i will come out of it . Now the recording is complete . up to last step in lsmw
    "Run Batch Input session "  it is working fine .
    But when i execute the Batch Input session , I am getting the error "No batch input data for screen SAPMP50A 2000"
    Pls let me know the solution for this .  Thanks in advance

    Hi,
    As suggested by experts here, create a new action for data upload with only IT0000 / IT0001 for updation of record as in LSMW PA40 doesnt run properly if there are too many fields for updation. Once these 2 infotypes are uploaded, then you can upload the remaining infotypes individually.
    Also pls remember that you use external number range for the Hiring Action through LSMW.
    Hope this helps.
    Thanks
    Ranjeeta

  • LSMW : INFOTYPE 0066 and 0067

    Hi All,
    I am working on LSMW for following Infotype
    0066 - Garnishments/Cession Order and
    0067 - Garnishment Debt.
    In PA30 when i update the infotype 0066 it automatically goes to Infotype 0067 (i.e to next screen) , but while recording in LSMW after updating infotype 0066 it dosent go to infotype 0067. As per PA30 process it should go to next screen i.e infotype 0067. but in case of recording it directly comes out of recording of infotype 0066 and save it and doesn't go to infotype 0067.
    can anyone answer this?
    Regards,
    Archana.

    Hi Archana,
    Some times it occurs thorugh LSMW.
    I think it not  a issue. First you can upload the data 0066.
    Then again second recording you can upload the data 0067.
    Thanks and Regards,
    Revathi.

  • Hr_maintain_masterdata showing an infotype that the user does not have auth

    subject: hr_maintain_masterdata showing an infotype that the user does not have authorisation for
    Hi all,
    I've a user account that's meant to perform staffing, based on the actual HR role.  The system is also set up with an infogroup that contains infotypes 0000, 0001, 0006, 0185, XYZ and other infotypes; XYZ representing an actual infotype.  The HR role is not supposed to have this infotype XYZ.
    When PA40 is used, infotype XYZ will be skipped, as the user account do not have authorisation for it.  I could then proceed to create the record.
    When the fm: hr_maintain_masterdata is used, I was prompted that I do not have authorisation for infotype XYZ.
    I have setup my fm with the mininum amount of values, as indicated below.
    I did not populate a table for "proposed_values" so the infotypes called were due to the actions of the infogroup.
    fm: hr_maintain_masterdata
    pernr = 01234567
    massn = 01          (new staff)
    actio = INS          (insert record)
    tclas = A          (master record)
    begda = 01.09.2010
    endda = 31.12.9999
    werks = myCompanyPlant
    dialog_mode = 2     (online)
    luw_mode = 1          (commit, if no errors encountered)
    no_existance_check = X
    Q. Is there any way to let the function module call the infotypes, with authorisation checks, as what PA40 is doing?
    Your guidance would be appreciated.
    Thank you,
    James Wong

    A behaviour that has been observed was that, after infotype 0185 was saved, the function module throws me back to infotype 0000, citing, "No authorization to maintain XYZ exists".  Data that I had populated to the screen, either via the FM or by manual input were cleared.  If I skip the next 4 screens, I'll arrive at the Infotype after XYZ, with the data populated.  Subsequent infotypes also have their data filled in.
    Once I complete the sequence, the personnel record will be created.  Upon examination, the frist 4 screens that were skipped in the 2nd pass contains data that were entered in the 1st pass.
    My question, as posted in the original post, is why infotype XYZ is triggered by the function module, as the staffing account does not hae access for it.  If I repeat the process using PA40, the infotype is skipped accordingly.
    Any help would be appreciated.
    Thank you,
    James Wong,

  • Not able to update organizations units in an infotype 0001

    Iam unable to update organizational units, positions through lsmw in an infotype 0001 if i do manually it is updating in 1infotype.
    Iam trying to run reports rhinteoo still not able to figure it out
    experts share your experience on this

    Ran LSMW Record created successfully for position
    If I see in organizational Assignment Infotype The record is not displaying
    As per your email Iam trying reports to display organizational units for the positions
    RHINTE10
    Done Livrun
    Next step RHINTE20
    My position is not in the list that is 600450
    Executed RHINTE30 I wonder how do we come to know personnel number when we are recording positions and organizational units. Still i checked personnel number in organizational assignment infotype and executed but it is displaying No batch input folder created . Yes we didnt create any batch input for personnel  numbers we created batch input for positions and org units.
    I believe we need to run first two records
    After running above reports i checked in an organizational assignment Infotype . Still data is not updating what would be the cause please let me know

  • Bdc for infotype 581

    hi
    I have to do bdc for infotype 581. The manual senario for this is after entering data in 581 and if i click save button it will save the data and it will go to infotype 8 screen.  There it will populate the hra and value in wagetype and amount automatically. i will save that too.
    but when i did this in bdc, after entering the data in 581 and clicking the save button it is not going to infotype 8 screen.
    how can i store that hra in infotype 8 for that particular PERNR.
    pls send the solutions for this
    thanks in advance to all who will help

    Hi,
    When you are using BDC it will skip infotype 8. You should again upload infotype 8 for HRA.
    Regards,
    Ramu N.

  • HR_MAINTAIN_MASTERDATA substitutions

    Hi Gurus,
    we are facing a problem using the FM HR_MAINTAIN_MASTERDATA to save substitutions. The problem is the FM doesn't delimit  the substituion if we enter a new one.
    For example, a substitution from 07.02.2011 to 13.02.2011, we try to book a new subtitution for the 09.02.2011. The FM delete the substitution from 07 to 13 and just matain the 09.02.2011.
    I have tried with the operation LIS9, MOD and INS. INS works as I have described before, MOD and LIS9 doesn't work (error: Complex error ...)
    This is very weird becuase sometime works, (10% of the times), but I didn't find anything different.
    In addition, I have tried to use the FM HR_INFOTYPE_OPERATION, but I dind't find the proper values to make it works.
    The same tests have been done for absences with op=INS, and they are delimited.
    Do you know a way to delimit the IT2003?
    Thank you and regards,
    Rodolfo

    A behaviour that has been observed was that, after infotype 0185 was saved, the function module throws me back to infotype 0000, citing, "No authorization to maintain XYZ exists".  Data that I had populated to the screen, either via the FM or by manual input were cleared.  If I skip the next 4 screens, I'll arrive at the Infotype after XYZ, with the data populated.  Subsequent infotypes also have their data filled in.
    Once I complete the sequence, the personnel record will be created.  Upon examination, the frist 4 screens that were skipped in the 2nd pass contains data that were entered in the 1st pass.
    My question, as posted in the original post, is why infotype XYZ is triggered by the function module, as the staffing account does not hae access for it.  If I repeat the process using PA40, the infotype is skipped accordingly.
    Any help would be appreciated.
    Thank you,
    James Wong,

  • SAP HR Data Migration Strategy

    Hello Guys,
                I worked in Data migration in the areas like SD,MM,FI. But I am new to HR. Can anybody please give me the HR data migration stratagey like what data's (eg, Master ,transactional etc) we need to load and sequences and methods available for each type?
    Thanks
    Kal

    Hi  chakri,
    Documentation we use is Data Convertion Bueprint which is simply customer's requirements accroding to what infotypes he needs, what data should be migrated and which org. elements will be imported.
    Another one is Master Template which is actually prepared by us (technical team). We prepare LSMW for each infotype mentioed in former document, then we document it in this master template to provide to customer required flat files format. We prepare such becuase sometimes some filed may be fixed, some added and even are read-only so should be skipped. So this document differs a bit with previous one in regards to infotypes' used fields. Than we sent this document to our local functional team which is resposible for providing files with given format.
    In first document there are also some Golden rules, which describes exact steps for one entire cycle (staring from deliveirng the file, ending with validation of loaded data for one infotype), which each involed party should follow.
    The last but not least important document is what we call Loading sequence. I already described it previously. It is just the order of loading the data to infotypes which you should follow. It also contains such information as
    - number of records in provided file
    - number of errors, successfully loaded records
    - files which we share with functional team (error logs)
    - finally files which we sent as validation data (extracted from system after successful load of infotype)
    Unfortunatelly I can't provide you any of them as these are company documents which are not to be distributed. Sorry I am not allowed to break this rule.
    Anyhow I hope it will give you an overview of what kind of documentation you need. It is of course of your team how you organize your work and documentation.
    All in all crucial thing is communication between teams, which from my experiaence sometimes fails.
    One more thing:
    Always remeber to give points to usefull answers, that's how the forum works. Of course it is not obligatory !
    Rememebr if you get something, you appreciate it by assigning points:)
    Cheers
    Marcin

Maybe you are looking for

  • How to create a game. Basic steps.

    So, just browsing through these forums, I see many posts by prospective game designers wanting to get started. But many of these questions are so ill-researched or off basis that most people don't even know how to respond. So here's a quickie guide o

  • Dispatcher Running Server Not Connected

    Hi, I have the same problem on Windows 2003 Server EP6 WAS640 SR1 SP9 I have the WAS640 for ABAP with the Java Add In and the Enterprise Portal installed on top. When I try to connect to the Portal through a browser I get the message: Dispatcher Runn

  • Using brochure template, the second side prints upside down.  How to fix?

    When using the brochure template how does one correct the back page from printing upside down?

  • Formatting a Hard Drive for RAID 5

    Hey everyone, I'm a bit new to RAID formatting. I understand how it works, but I want to make sure I'm formatting correctly. We are looking to format a 12TB drive for RAID 5 for optimal space, speed and safety. In Disk Utility, I am selecting 5 parti

  • Control which Interactive Report is initially displayed.

    Hi, I have a page with an Interactive Report which has a default page and a saved public page called 'My Cases'. The interactive report is accessed from several different pages and I want to be able to display either the default page or the public pa