Application Development and Automation 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: 
Read only

LSMW-BAPI method: Purchase Order issue

Former Member
0 Likes
2,481

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
Read only

JL23
Active Contributor
0 Likes
2,023

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

Read only

Former Member
0 Likes
2,023

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

Read only

JL23
Active Contributor
0 Likes
2,023

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

Read only

Former Member
0 Likes
2,023

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

Read only

Former Member
0 Likes
2,023

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

Read only

0 Likes
2,023

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

Read only

Former Member
0 Likes
2,023

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

Read only

0 Likes
2,023

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

Read only

0 Likes
2,023

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.

Read only

0 Likes
2,023

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

Read only

JL23
Active Contributor
0 Likes
2,023

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.

Read only

0 Likes
2,023

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

Read only

JL23
Active Contributor
0 Likes
2,023

can you give the things a name.

which IDOC which field ....

Read only

0 Likes
2,023

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

Read only

JL23
Active Contributor
0 Likes
2,023

what did you enter.

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

Read only

0 Likes
2,023

Hi jurgen,

thank u very much, its working fine now!

i rewarded points

thanks

sree