Skip to Content
0
Former Member
May 10, 2008 at 04:26 PM

Handling Date in LSMW

494 Views

Hi friends,

Previously i had posted a post regarding," How to upload HR master data using LSMW"

and i wanted to Know how to upload OM data.

I was asked to use the t-code pp01.

I did that and I tried to upload OM data.

My source fields are---

OTYPE BEGDA ENDDA SHORT STEXT

S 19000101 99991231 ACCOUNTNG MANAGER ACCOUNTING MANAGER

Everything is working fine . I have done the recording for the above fields only in PP01.

I first placed the cursor in Object Type. Then selected Position from it.

Then pressed enter. Under active tab the Infotypes appeared.

I need to upload into Objects infotype. HRP1000

so I selected Objects. Then clicked on "create infotype".

It took me to the next screen.

There gave the BEGDA ENDA SHORT and STEXT.

clicked on save and the recording was complete.

It said record created .

Then i did the rest things fine.

Import data fine.

Display imported data fine.

convert data is fine too.Everything looks great. The whole 350 records.

Now when i see display converted data.

For BEGDA its showing 19000101 . For ENDDA its showing 12-31-9999 and that's fine.Thats how it should be.

When i run the session in Background. The data obviously is not getting uploaded.

The BEGDA is screwing me here.

Please someone provide me inputs on this.

i tried the following for BEGDA-----

In field mapping option. Step 5. I wrote this for BEGDA.

code--

SAPTABLE-BEGDA0(2) = SOURCETABLE_DATE-BEGDA 6.

SAPTABLE-BEGDA2(2) = SOURCETABLE_DATE-BEGDA4.

SAPTABLE-BEGDA+4(4) = SOURCETABLE_DAT-BEGDA.

Is the above code right???

Inputs please.

If i can sove this do this i will be able to upload for other OM infotypes too.

Thanking you all in advance,

Hari Kiran