05-16-2011 10:17 AM
Hi all,
My requirement is to upload the file of the Purchase order data using the BAPI method in LSMW
BAPI used in this scenario:
Business Object: BUS2012
Method: CreateFromData
Message Type: PORDCR
Basic IDoc Type: PORDCR02
need to assign the same text file for both the header and item source structures,
when im trying to do this error " File 'C:\Documents and Settings\sreelatha.d\Desktop\poh.' can only be assigned to one source structure" triggering
how to rectify this error
<removed by moderator>
thanks®ards,
sree
Edited by: Thomas Zloch on May 16, 2011 11:54 AM
05-16-2011 9:56 PM
describe how you defined your file in step 7, did you select one source stuctur (table) or many source structures (sequential file)?
05-17-2011 5:14 AM
hi jurgen,
first i tried to assign header and item files for the header and item source structures
but, its not reading the item details
secondly, i tried to assign the same text file for both the header and item source structures
then, its posing an error message stating that text file alerady specified
help me out
thanks®ards,
sree
05-17-2011 9:30 PM
05-18-2011 6:36 AM
Hi Prabhu,
Thnks for ur reply
i selected the Selection Parameter for "Import/Convert Data for Field EBELN at Header Level .
even though i am not getting the data
help me out plz
thanks
sree
05-18-2011 2:43 AM
Hello ,
you need to assign diff files to Header and Items , if its not reading item details from ITEM files ...then you need to tick : Selection Parameter for "Import/Convert Data for Field EBELN at Header Level .
regards
Prabhu
05-18-2011 6:33 AM
Hi jurgen,
Thanks for ur reply
I am using many source structures ( sequential file) only as u said
before i was using single source structure (table)
even though i am not getting the data
I dnt know how to use the processing events in LSMW
help me out plz
thanks®ards,
sree
05-18-2011 8:10 AM
Hi all,
I am able to use the events in the LSMW
and I am able to read the header data only
its not reading the item data
help me out plz
thanks
sree
05-18-2011 11:49 AM
HI all,
I am able to get the header and item data now
I am trying the upload the delivery date field also
but, the issue is when i am assigning it to the source field EKET-EINDT field it is saying that source field is longer than field even i specify the length of the target field- 20 also
how to correct it
help me out
thanks
sree
05-18-2011 12:24 PM
Hello,
If your using two files for header and Item.
Make sure that, there should be a common ( key ) field in both header and item source fields, ( In step3 Display source field) click the tab fields with same Name, then common fields should be marked in differnet color. Make sure your file contians proper values.
In step 7: Specify files: In file content select the radio buttion Data for One Source Structure (Table)
if you follow both the above steps, and data in your file is correct then you should be able to read the data from the input file.
Cheers,
sri.
05-19-2011 7:28 AM
HI sriram,
i am getting header data and item data too
only the issue is my idoc is not posting its saying " source field is longer than target field"
even though i specified the correct field length also
help me
thanks
sree
05-20-2011 8:58 AM
is this really an error message from IDOC posting?
I know such information is listed in step 5 Maintain Field Mapping and Conversion Rules
it is just information that can cause missing data.
e.g. if you have defined your source field in step 3 with a length of 10 and assigned this source field in step 5 to a target field with a length of 8, then this message is listed.
if this source field never has a content longer than 8 digits, then you will not get any issue, but if it has values in all 10 digits, then the last 2 are cut off.
05-20-2011 12:37 PM
HI jurgen,
thanks for the reply
i gave the length of 8 in the source field even though im getting the error and due to this error my idoc is not getting posted
thts only thing im not getting how to correct it
thanks in advance
sree
05-20-2011 1:38 PM
05-23-2011 5:50 AM
hi jurgen,
its eket-eindt field
while im processing idoc in step 14, its giving an error that " please enter a valid delivery date"
help me plz
thanks in advance
sree
05-23-2011 1:31 PM
what did you enter.
a date in a date field takes the date usually in YYYYMMDD format, without any seperator.
05-24-2011 5:31 AM
Hi jurgen,
thank u very much, its working fine now!
i rewarded points
thanks
sree