2009 Feb 12 8:47 AM
Dear Freinds,
I have uploaded infotyep 0002 using LSMW wiath a project id , now i have to upload another
infotype 0006 ,as per the documentation i have found that i can use only one project for all my infotypes.
so i created one project zproject , zsubproject,zobject.
in the step 1) Maintain object Attributes>Bath input Recording> Recording Name It0002>Recording IT0002
setpe 2) MaintainSourceStructures >Source Structure >z0002
step3) Maintain source feilds > i have given structre exactly what is there in my flat file
PERSNO N(008) Personnel number
BEGDA C(010) From Date
ENDDA C(010) To Date
NACHN c(40) LastName
VORNA c(40) First Name
GBDAT c(10) Date of birth
Step 4)Maintain Structure Relations
Structure Relations
IT0002 Date upload for infotype 0002 <<<< ZP0002 Data upload for 0002
Select Target Structure IT0002 .
and i able to use all the steps and successfully iam able to upload the data which is given in my flat file.
now i am getting problem while iam doing uploading for infotype 0006 , plese correct me where i went wrong
Step 1) Maintain object Attributes>Bath input Recording> Recording Name It0006>Recording IT0006
setpe 2) MaintainSourceStructures >Source Structure >
here only doubt it asked me do you wan to create same level or under ... i have opted for same level
and created strucuture z0006
step3) Maintain source feilds > i have given structre exactly what is there in my flat file
PERSNO N(008) Personnel number
BEGDA C(010) From Date
ENDDA C(010) To Date
ANSSA c(20) Address type
STRAS c(40) Street
ORT02 c(10) District
Step 4)Maintain Structure Relations
This the place where iam getting actual problem i found the relatiion as below
Structure Relations
IT0006 Date upload for infotype 0006 <<<< ZP0002 Data upload for 0002
Select Target Structure IT0006 .
iam not able understand why iam not getting as below
IT0006 Date upload for infotype 0006 <<<< ZP0006 Data upload for 0006
Select Target Structure IT0006 .
but when i did for infotype i got what exactly should be mapping
IT0002 Date upload for infotype 0002 <<<< ZP0002 Data upload for 0002
Select Target Structure IT0002 .
Please correct me where i went exactly .
regards
srinivas.
2009 Feb 12 8:56 AM
first,
you can have same project and subproject but create different objects for different requireement.
create 2 different objects for info type 002 and 006 differently and it would work.
if you want to use same object delete the first the source structure for infotype 0002 and keep only one sturcture in src structureb i..e for infotype6.
reassign relationships and rest remains the same.
we genrally do not have 2 src structures at same level.
Dear Freinds,
I have uploaded infotyep 0002 using LSMW wiath a project id , now i have to upload another
infotype 0006 ,as per the documentation i have found that i can use only one project for all my infotypes.
so i created one project zproject , zsubproject,zobject.
in the step 1) Maintain object Attributes>Bath input Recording> Recording Name It0002>Recording IT0002
setpe 2) MaintainSourceStructures >Source Structure >z0002
step3) Maintain source feilds > i have given structre exactly what is there in my flat file
PERSNO N(008) Personnel number
BEGDA C(010) From Date
ENDDA C(010) To Date
NACHN c(40) LastName
VORNA c(40) First Name
GBDAT c(10) Date of birth
Step 4)Maintain Structure Relations
Structure Relations
IT0002 Date upload for infotype 0002 <<<< ZP0002 Data upload for 0002
Select Target Structure IT0002 .
and i able to use all the steps and successfully iam able to upload the data which is given in my flat file.
now i am getting problem while iam doing uploading for infotype 0006 , plese correct me where i went wrong
Step 1) Maintain object Attributes>Bath input Recording> Recording Name It0006>Recording IT0006
setpe 2) MaintainSourceStructures >Source Structure >
here only doubt it asked me do you wan to create same level or under ... i have opted for same level
and created strucuture z0006
step3) Maintain source feilds > i have given structre exactly what is there in my flat file
PERSNO N(008) Personnel number
BEGDA C(010) From Date
ENDDA C(010) To Date
ANSSA c(20) Address type
STRAS c(40) Street
ORT02 c(10) District
Step 4)Maintain Structure Relations
This the place where iam getting actual problem i found the relatiion as below
Structure Relations
IT0006 Date upload for infotype 0006 <<<< ZP0002 Data upload for 0002
Select Target Structure IT0006 .
iam not able understand why iam not getting as below
IT0006 Date upload for infotype 0006 <<<< ZP0006 Data upload for 0006
Select Target Structure IT0006 .
but when i did for infotype i got what exactly should be mapping
IT0002 Date upload for infotype 0002 <<<< ZP0002 Data upload for 0002
Select Target Structure IT0002 .
Please correct me where i went exactly .
regards
srinivas.
2009 Feb 12 8:56 AM
first,
you can have same project and subproject but create different objects for different requireement.
create 2 different objects for info type 002 and 006 differently and it would work.
if you want to use same object delete the first the source structure for infotype 0002 and keep only one sturcture in src structureb i..e for infotype6.
reassign relationships and rest remains the same.
we genrally do not have 2 src structures at same level.
2009 Feb 12 9:06 AM
Hi srinivas,
The infotype 0002 and 0006 both are two different objects.
In lSMW u can have same project and subproject but the objects should differ from object to object.
U neeed to create one object for 00002 and 0006 another object.
Then it will work for you.
Thanks,
2009 Feb 12 9:59 AM
Hi,
As you specified in in your details you need only on Project that means we can create multiple Sunprojects and Objects under same Project.
If you want only one Project, Subproject, Object for Infotypes 0002, 0006 then you need to do
1. Create Separe two recording for Infotypes ZHR_0002, ZHR_0006 and specify both in first step (Maintainn objrct attribute), here we can assign multiple recording.
2. Create one souce structure for all required fields of 0002, 0006
3. Assign Source structure to different target structure
4. In Maintain field mapping and conversion rules do mapping for all fields
But here you need to implement some login
In Source structure create one more field to store Infotype number.
then when mapped for PERNR,
if zsource-infty = '0002'.
ztarget-pernr = zsource-pernr.
else. "If fails means it will skip whole record and goes to second recordin
skip_record.
endif.
In second recording you need to check
if zsource-infty = '0006'.
ztarget-pernr = zsource-pernr.
else.
skip_record.
endif.
But you must specify in flat file the Infotype number 0002 02 0006, based on this number mapping will refer to corresponding recording.
Instead of this Create one Project, Subproject and Multiple Objects for different Infotypes. This is good to avoid complexity.
Regards,
Sunil
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |