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

Uploading Task Lists Using Direct Input LSMW

Former Member
0 Likes
980

Hi Gurus,

I am using direct input for uploading General Task Lists (IA05) in the system. The following parameters have been defined in the system for this:

Object 0490

Method 0000

Program Name IBIP

Program Type B

Source Structures

TEST_STRUCTURE

TLOPERATIONS

Strucuture Relation

IBIPTLST IBIP: Task List header <<<< TEST_STRUCTURE Test Src Structure

IBIPTLOP IBIP: Task List Operation <<<< TLOPERATIONS Operations in a Task List

Also I have defined and assigned two different files to the Source Structures. Using Read Data, it reads both the files, but writes only the TL Header Data File onto the MAYFAIR_MAYFAIRTLUPLD_MAYFAIRTLUPLD.lsmw.read.

How could I resolve this issue as the operations are not being created for the task list yet the task list is ceated again and again.

Regards

Usman

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
719

Hi,

But keep in mind, that read program needs to find some kind of relation between header and item.

Thats why you should define structures as follows:

STRUC1:

key1

key2

header_data1

header_data2

header_data3

STRUC2

key1

key2

item_data1

item_data2

item_data3

If you do so, program will know which item goes to which header. If you didn't do it, system reads only header data - search for corresponding item data but couldn't find anything.

In LSMW step 5 (mapping) you do not have to pass fields key1 and key2 to any LSMW structure, because they are used only to identify relation header <-> item.

Regards,

MC

3 REPLIES 3
Read only

Former Member
0 Likes
719

Hi,

are you sure you have the same fields (key fields) defined in both structures? It is necessary to allow linking corresponding rows from both structures.

Read only

0 Likes
719

The Source Structures that I have defined manually have different fields but the TL Optns Srce Structure is at a lower level than its superior structure and I have maintained the field mapping with the System standard structures that IBIPTLST and IBIPTLOP have the same fields as my source structures. The problem that i am having is : when I import data in the import file it only picks up data for the structure TLHeader and not for TL Optns. Why is it so?

Read only

Former Member
0 Likes
720

Hi,

But keep in mind, that read program needs to find some kind of relation between header and item.

Thats why you should define structures as follows:

STRUC1:

key1

key2

header_data1

header_data2

header_data3

STRUC2

key1

key2

item_data1

item_data2

item_data3

If you do so, program will know which item goes to which header. If you didn't do it, system reads only header data - search for corresponding item data but couldn't find anything.

In LSMW step 5 (mapping) you do not have to pass fields key1 and key2 to any LSMW structure, because they are used only to identify relation header <-> item.

Regards,

MC