cancel
Showing results for 
Search instead for 
Did you mean: 

LSMW - Inspection Plan Upload - Direct Input Method

Former Member
0 Kudos

Dear friends,

I am using LSMW - Direct input method for uploading the inspection plans (Program Name - RCPTRA01).

I have prepared three files for Header, Operations and Characteristics. But while uploading I am not understating how to set the logic of connection between the three files.

The only fields common in all three files seem to be Group and Group counter. But we want to set Group number as an internal number. Hence can not be specified. Due to this, the program is not able to pick up the right connections between the files.

Please let me know how to do it.

Regards,

Avinash

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi,

The Group Number can not be kept blank if you are trying to upload the inspection plan through LSMW - Standard Object. This is because, the only link coupling the Header Data, Operation Data & Characteristics Data is the combination of Group & Group Counter Number.

Also, the Standard Object LSMW can only be used for Creating Inspection Plan & not for changing the inspection plan which is already uploaded in system.

Regards,

Prashant Kolhatkar

sanjeev_das4
Explorer
0 Kudos

Thanks Prashant for replying . My scenario is that both the Group and Group counter needs to be defaulted by the system while creating . In case only group counter is given , will the LSMW able to create the Group .

Former Member
0 Kudos

Hi,

No. You will have to give Group & Group Counter (Both) as input in your flat file for Header, Operation as well as Characteristics Data. System links the Header, Operation & Characteristics Data based on combination og Group & Group Counter Number.

For example please check data given below -

Header Data -

Group / Group Counter / Material / Usage / Status ......................................

50050001 / 1 / A

50050001 / 2 / B

50050002 / 1 / C

50050002 / 2 / D

Operation Data -

Group / Group Counter / Material / Operation Number / Control Key ......................................

50050001 / 1 / A / 0010

50050001 / 1 / A / 0020

50050001 / 2 / B / 0010

50050002 / 1 / C / 0010

50050002 / 2 / D / 0010

Characteristics Data -

Group / Group Counter / Operation Number / Characteristics Number / Description ..........................

50050001 / 1 / A / 0010 / 10

50050001 / 1 / A / 0010 / 20

50050001 / 1 / A / 0020 / 10

50050001 / 1 / A / 0020 / 20

50050001 / 1 / A / 0020 / 30

50050001 / 2 / B / 0010 / 10

50050002 / 1 / C / 0010 / 10

50050002 / 2 / D / 0010 / 10

In above case, if Group Number is not given alongwith Group Counter, system will not be able to link which Characteristics Data is relevant for which Operation & Which Operation Data isrelevant to which Header Data.

Hence, while uploading Inspection Plan through Standard Object LSMW, you will have to give Group as well as Group Counter. Other wise the inspection plans will not get uploaded through LSMW.

Also, please note that the recorded LSMW also will not work, because, each inspection plan may have differnt number of operations & each operation may have differrent number of Characteristics.

Regards,

Prashant

sanjeev_das4
Explorer
0 Kudos

Thanks Prashant . Really appreciated . Can you advise which would be the best method to upload a inspection plan . Is it not possible to upload inspection plan without the Group adn group counter.

Regards

Sanjeev

Former Member
0 Kudos

Hi,

The inspection plans can be uploaded -

1) Manually one by one without referring to Group / Group Counter. System will take the Group / Group Counter automatically

2) Through LSMW - By giving Group / Group Counter in all 3 files.

Regards,

Prashant

sanjeev_das4
Explorer
0 Kudos

Hi Avinash ,

Did you find a solution to the problem . I am struck up with similar problem while creating inspectin plan through standard program using three files . The group counter is not getting generated automatically. If you have found the solution please post .

Thanks

Sanjeev

Former Member
0 Kudos

You must create a field in each load file that ties all files together. You can use a random number or the legacy number, it doesn't matter. This field does not need to be loaded. That way, LSMW is able to group all information that belongs together in an inspection plan:

Example

Header:

RANDOM_NUMBER_1 | HEADER_INFO_1

RANDOM_NUMBER_2 | HEADER_INFO_2

Item:

RANDOM_NUMBER_1 | ITEM_INFO_1A

RANDOM_NUMBER_1 | ITEM_INFO_1B

RANDOM_NUMBER_2 | ITEM_INFO_2A

LSMW will identify the first two items as belonging to HEADER_INFO_1.

Former Member
0 Kudos

Hi

It would be very difficult to use LSMW for upload the Inspection plan that too with three different files.

Best way is to use BDC may be along with BAPI : BAPI_INSPECTIONPLAN_CREATE.

Also search in SDN PLM & QM to upload the Inspection plan through BAPI_INSPECTIONPLAN_CREATE.

You will get lot of support

Regards

Sujit

Former Member
0 Kudos

As u said, u have made 3 files

then upload these files 1 by one

as group number is internally generated upload Header file first so that group number will be generated

keep this group number as input in operation file and Characteristics filr

after header upload operations and then characteristics

Former Member
0 Kudos

Hi Avinash,

Its your intrest to upload the data,but If uploaded the Qplan using BDC it would be easy and fast without error.only small work is required is

1. Record the transcation using SHDB.

2. Ask Abaper to create program.it will take few mins to do that.

3. upload it.

Even mass data can be uploaded.if the plans are less then also its safe and easy method.

Thanks and Regards,

VJ