Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

LSMW-BAPI method: Purchase Order issue

Former Member
0 Kudos

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&regards,

sree

Edited by: Thomas Zloch on May 16, 2011 11:54 AM

16 REPLIES 16

JL23
Active Contributor
0 Kudos

describe how you defined your file in step 7, did you select one source stuctur (table) or many source structures (sequential file)?

Former Member
0 Kudos

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&regards,

sree

JL23
Active Contributor
0 Kudos

try to answer my question, it may help to solve your issue.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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&regards,

sree

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

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.

0 Kudos

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

JL23
Active Contributor
0 Kudos

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.

0 Kudos

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

JL23
Active Contributor
0 Kudos

can you give the things a name.

which IDOC which field ....

0 Kudos

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

JL23
Active Contributor
0 Kudos

what did you enter.

a date in a date field takes the date usually in YYYYMMDD format, without any seperator.

0 Kudos

Hi jurgen,

thank u very much, its working fine now!

i rewarded points

thanks

sree