Lsmw for qp01 (inspection charactoristics).
Hello ,
I am trying to do lsmw for qp01 transaction (inspection charactoristics.)
I am using Recording method to upload the data.
I have started recording and filled
first screen i.e header :
MATNR C(018) Material
WERKS C(004) plant
STTAG DDMY(008) Key Date.
then i have clicked enter next screen comes. which is inspection plan create tast list overview.
here i have selected a first line and clicked 'operations' pushbutton.
next screen operations overview opened.
following 2 fields are for selecting line and clicking the pushbutton.
ENTRY_ACT C(011) Entry
FLG_SEL_01 C(001) FLG_SEL_01
Then i have selected first line and clicked 'inspection charactoristics' pushbutton.
next screen charactoristics overview screen is opened.
Inspection charactoristic screen :
VERWMERKM_03 C(008) VERWMERKM_03
VERWMERKM C(008) VERWMERKM
QPMK_WERKS C(004) QPMK_WERKS
PMETHODE C(008) PMETHODE
QMTB_WERKS C(004) QMTB_WERKS
KURZTEXT C(040) Description
SOLLWERT C(016) SOLLWERT
TOLERANZOB C(016) TOLERANZOB
My data is in .txt file.
When i run the lsmw , when i process this session , then in inspection charactoristic screen it uploads values of master inspection charactoristics from datafile and takes automaticaly short text insp. charactoristics but system show a window to enter the Target value for quantitative charactoristics Upper specification limit and lower specification limit values for mic's .
But i have already given these values in my .txt file.
It is not taken from my .txt file. Again asking me to enter the values.
Please tell me solution for this problem.
Hi,
For each Quantitative Char enter the quantitative data in QS23 .Then you do the LSMW recording.
This is because you might selected control Indicators Lower and Upper specific limit.
Regrds
Praveen
Similar Messages
-
Hello ,
I am trying to do lsmw for qp01 transaction (inspection charactoristics.)
I am using Recording method to upload the data.
i am using these fields.
1) first screen i.e header :
MATNR C(018) Material
WERKS C(004) plant
STTAG DDMY(008) Key Date.
following 2 fields are for selecting line and clicking the pushbutton.
ENTRY_ACT C(011) Entry
FLG_SEL_01 C(001) FLG_SEL_01
2) Inspection charactoristic screen :
VERWMERKM_03 C(008) VERWMERKM_03
VERWMERKM C(008) VERWMERKM
QPMK_WERKS C(004) QPMK_WERKS
PMETHODE C(008) PMETHODE
QMTB_WERKS C(004) QMTB_WERKS
KURZTEXT C(040) Description
SOLLWERT C(016) SOLLWERT
TOLERANZOB C(016) TOLERANZOB
My data is in .txt file.
When i run the lsmw , when i process this session , then in inspection charactoristic screen it uploads values of master inspection charactoristics from datafile and takes automaticaly short text insp. charactoristics but system show a window to enter the Target value for quantitative charactoristics Upper specification limit and lower specification limit values for mic's .
But i have already given these values in my .txt file.
It is not taken from my .txt file. Again asking me to enter the values.
Please tell me solution for this problem.Hi santosh,
please check with mapping. As I have already faced this kind of problem and it was because of mapping.
recheck and try take help from your senior ABAPers.
cheers
Suvi -
LSMW for Quality Inspection Plan
Dear All,
I am in process of uploading Quality Inspection Plans through process of LSMW with standard object 0240 (Inspection Plans) with batch input method. With this when I am trying to create Batch Input Session, system is throwing me error as 'Characteristics is not yet created' (Message Number - QS 320). I have maintained all the relevant master data before going to upload Q Inspection Plan.
Could any one pl. throw light on this issue?
Regards,
PrashantDepending on what control indicator key for master inspection characteristics have you implemented in the operations within the plan, the system checks if the characteristics are completely maintained.
This has nothing to do with LSMW, it's just a normal message,.....what I find estrange is that the message you're saying is a warning message not an ERROR message. -
Hi Sapiens,
I am a requirement to upload the Quality Management data through LSMW.
1) Quality Info Recrod
2) Inspection Plan
For the first one, I could able to create Project in LSMW and successfully do for over 200 customers.
I am saying problem in creating and uploading the Inspection Plan data.
I created one inspection plan with a material in QP01 (Tcode), and assigned one customer in "Material Assignment".
We have only hand full of materials (6-10 max) with MICs (10 - 15 max). So I using the same Inspection plan for material and I want to assign all the customer in Inspection plan at "Material Assignment". But at "Run Batch Input Record" in LSMW, it is failing. due to the below errors.
1) Field MAPL-PLNAL(2) is not an input field
2) Field MAPL-MATNR(2) is not an input field
3) Field MAPL-WERKS(2) is not an input field
I understand that these fields are repeating, as these fields are required in "Material Assignment" tab, where I will mention Counter, Matl, Plant and Customer. but it is saying these fields are not for input. If I dont use these fields in Field mapping then it will throw an error during actual recording.
So, I need some inputs on it and all of your suggestions will be valuable.
Awaiting of your reply on this soon.
thanks,
MukeshHi Mukesh,
I would suggest to go for BAPI instead of LSMW for the inspection plans, if possible.
Regards,
Rahul -
Hi Experts,
Iam uploading data through LSMW for QP01 but in the second last step that is create batch input session its giving me this error "No profile with entry tool for task list / / / in session QP01" can anyone help to get rid of this error. pls reply ASAP.
Thanks in advance.
Abhishek Pandey.Hi,
Check below link, it may be useful.
Re: QM_LSMW BY RECORDING METHOD FOR QP01
Thanks,
Asit Purbey. -
QM_LSMW BY RECORDING METHOD FOR QP01
Dear QM Experts,
1. I am doing LSMW by recording method for QP01 transaction code
2. I am facing one problem while recording in inspection characteristic screen
3. While saving another screen opens prompting to put inspection method, plant and version for inspection method.
4. This is not at all needed as per the requirement.
I removed default Plant for Inspection Method version, Version Number of the Inspection Method while recording LSMW in inspection characteristic screen. Still it is happening.
Surprisingly when we create inspection plan though QP01 it never asks for these things.
Any remedies?
Best Regards,
Thanks is advance
Anand RaoDo not use Recording for QP01.
There is a pragram named "RCPTRA01". It can be selected in step1 of lsmw>>Object Type and Import Method>> Standard Batch/Direct Imput>>Object 0240;Method 0000;Program RCPTRA01; Program Type B.
Then Step 2, define source structure. In fact you may go to step 4 to have a look at the structure of the target structure. It would be easy to copy that. The source structure would be as below, ZBI001 would be the top level and the others the same lever under ZBI001:
Source Structures
ZBI001 Transaction Header Record for Data Transfer of Routings
ZBIMPL Batch Input Structure for Allocation of Mat. to Task Lists
ZBIPKO Batch Input Structure for Task List Header
ZBIPPO Batch input structure for task list operation
ZBIPMK Inspection characteristics for batch input of task lists
In step 3, define source fields for source structure. For easy define, you may click "Object Overview">> Table to get the possible fields of the related structure, and then copy to Excel; after that, you may copy the fields directly from Excel to fields difining window in step 3.
Step 4, assign the source structures to target structures, the target structures are named the same as the source structures above, just without the letter "Z". For example, assign ZBIMPL to BIMPL, ZBIPKO to BIPKO, except ZBI001 is assigned to BI000 and BI001 as well.
Then Step 5, you may find there are RECTY and default settings are "00" "99" "01" "03" "09" "18" for BI000, BI001, BIMPL, BIPKO, BIPPO and BIPMK. Let alone "99" and imput these value to field "RECTY" in corresponding source structure fields
Then you may run auto field mapping in step 5, and make some values constant, like PLNTY=Q etc.
Then a problem with the profile under field "PROFIDNET". Run TCODE 'SPRO' to IMG>Quality Management>Quality Planning>Inspection Planning>General>Maintain Profiles for Default Values>Profile: default values plan/general. You may find there is a box named "Entry tool", tick that box, if not it is not possible to run QP01 in lsmw. And at the same time you may find the profile is 0000001. Key the value to field "PROFIDNET" and make the rule as constant.
For step 6 there is nothing to do
in Step 7, unlike other objects, you can use just one .txt file for uploading the inspection plan. When specy file, select "Data for Multiple Source Structures(Seq.file); Delimiter: Tabulator; File structure: Field order Matches source structure definition(as in Seq.file) I find not possible to put field names at start of file, so "Field Order Matching" is very important
Then how to prepare the file? We can accomplish this with 5 excel sheets
the fields orders for my customer is like this:
1)for RECTY 18(Inspection Charatristics):
MATNR RECTY MERKNR KURZTEXT VERWMERKM QPMK_ZAEH PMETHODE QMTB_WERKS STICHPRVER PROBEMGEH STELLEN MASSEINHSW SOLLWERT TOLERANZOB TOLERANZUN
2)for RECTY 09(Operation):
MATNR RECTY VORNR STEUS WERKS LTXA1 UMREZ UMREN
3)for RECTY 03(Header):
MATNR RECTY DATUV VERWE WERKS STATU PLNME LOSVN LOSBS VAGRP KTEXT
4)for RECTY 01(Allocation of Material)
MATNR RECTY MATNR WERKS LIFNR KUNR
5)for RECTY 00(Transaction Header)
MATNR RECTY TCODE START
Creat a new blank sheet and copy the fild contents of these 5 sheets into it, then you can sort the fields in A to Z order with Column A(MATNR), B(RECTY), and C(MERKNR), then the seq.file to be uploaded is completed.
for example:
10001042 00 QP01 20090119
10001042 01 10001042 1200
10001042 03 20090119 5 1200 4 PC 0 99999999 Screw\M16x45\GB/T5783
10001042 09 0010 QM01 1200 inspection 1 1
10001042 18 10 inspection on material C101 1200 JF035 1200 GUD5 PC
10001042 18 20 Inspection on size C102 1200 JF034 1200 GUD5 PC
Then copy start from Column B, i.e., without the material numbers in Column A, to .txt file.
Specy the file in Step 7 in lsmw.
the step 8, assign this .txt file to all structures
then step 9, 10, 11, 12, 13 Creast Session and run it in at the end.
Actually this program is not possible for QP02. If you want to make some correction on the inspection plans in SAP, you'd better delete them and upload the revised one.
This program is very similar to CA01 Production Routing and thus also applicable to CA01. But I recommend using Object 0170;Method 0002;Program RCPTRA02; Program Type D for CA01, because it provides testing transfer at the end so that you can check out logical errors, and much fastee. Pity that for QP01 there is no such program
Currenty I am acting as Data cunsultant for an Elevator Manufaturer in China, hope my experience would help for you. My MSN is zhangxiaojun at msn dot com -
LSMW for routing with standard batch input
Hello All,
I am trying to prepare one LSMW for routing upload for PP module. Routing data contains header data, operation data and master inspection characteristics data.
I have created three source structures viz. material- task list header, task header data, operation and inspection.
Header has been assigned to target structure BIMPL- Batch Input Structure for Allocation of Mat. to Task Lists,
Task header data source structure has been assigned to BIPKO- Batch Input Structure for Task List Header,
Operation source structure has been assigned to target structure BIPPO- Batch input structure for task list operation,
and inspection source structure has been assigned to BIPMK- Inspection characteristics for batch input of task lists.
Every source structure has been identified with an identifier value of which have been set as H, I,J,K for all source structures resp.
The excel file has been prepared as follows,
H MATNR WERKS PLNNR PLNAL
H 100045 1000 50000043 1
H 100045 1000 50000043 2
I MATNR WERKS PLNNR PLNAL VALID_FROM USAGE STATUS
I 100045 1000 50000043 1 01012000 1 1
I 100045 1000 50000043 2 01012000 1 1
I have mentioned here the combination of first two structures only. But it contains data of other two source structures as well (for identifier J & K).
The data from the excel is copied to the flat file and same is specified in LSMW in the step 'Specify file'.
In 'Assign file' step the flat file is assigned to all the four source structure.
Now at the time of reading data system is throwing me an error as 'Ensure field sequence is correct for data for mutiple source structures' Message no. /SAPDMC/LSMW_OBJ_060026
How to overcome this?
<removed by moderator> answers will be greatly appreciated........
Mimiri
Edited by: Thomas Zloch on Jul 11, 2011 10:16 AMHello ,
have you maintained this check box for the key fields"
LSMW>Maintain Source fields>double click on fieds : MATNR WERKS PLNNR PLNAL
Selection Parameter for "Import/Convert Data"-->Tick this check box
regards -
QM:Setting for Recurring Inspections(every 2 hour)for Batch Material Stock.
Hi, all =)
I hope, you know necessary settings for my situation. Because on our russian SAP-forum I haven't got answer until now.
Situation:
We have Batch Material Stock on the plant.
And it is necessary to do for that stock Quality Control every 2 hours.
I activete 09 type of control in Material Master.
Create quality specification for material.
Create in QA05 Schedule\ Schedule periodically \ Repeat period - 2 hours.
But it doesn't work - inspection lot does not create.
Who knows what I shall to do?
Thanks for answer.
Masha.
Edited by: Maria Soloviova on Jun 26, 2008 12:51 PMHi, Craig
Want to share with you my progress.
I config QM in the such way:
step\ transaction\ config
Master Inspection Characteristic \ QS21 \ +
Material -> Quality management-> Inspection Type \ MM01 \ 09
QM-stock\ MM01 \ -
Material Specification\ QS61 \ -
Batch valuation without material specification \ spro -> Plant Customizing\ +
Inspection Plan \ QP01 \ +
Inspection Points \ active-no \ +
Inspection Points Type -> Last inspected sample is valid \ spro \ 150: +
Physical Samples\ active- no \ -
Sample-drawing procedure\ QPV2 \ -
Sampling Procedure \ QDV1 \ +
Inspection Method \ QS31 \ -
Recurring insp.: job planning \ QA05 \ +
Everything is ok, but when I want to record result (in qe51n) for inspection point and at the end of the process press the button "Inspection point" -> "Batch carac." -> "Continue" -> error appear "ABAP/4 error during dynamic assign beyond program bounds".
Is it because I haven't edit FM from config 150 Inspection point?
I don't know how to do it. And deside to config all the process before give to edit that FM to our ABAP-consultants.
Thanks a lot.
Best regards
Masha -
Hi
After creation or change of Inspection plan (QP01 and QP02) i need to start some additional process. Is there any BADI or userexit?
Thanks all,
BrankoHI,
Check the below enhancements.
QPAA0001 Enhancements: Formula checking / editing
QPAA0002 Customer exit - info fields
QPAA0004 Enhancement for transferring mstr insp. char. to task lists
QPAA0005 Deactivation of functions for insp. char. maintenance
QPAA0006 Additional consistency checks - inspection characteristics
QPAP0002 Enhancement for material/plan assignment, plan selection
QPAP0003 Conversion of sample unit of measure to material unit
CNEX0026 Customer enhancement for general inspection of material
QAPP0001 User exit QAPP 1 (create inspection point)
QAPP0002 User exit QAPP 2 (create inspection point & other data)
QAPP0003 User exit QAPP 3 (IDI: inspection point and other data)
QEEM0002 User exit add. functions after reading inspection features
QEEM0006 User exit: add. functions after closing inspection characs
QEVA0002 Calculation of share of scrap in inspection lot
QEVA0003 Calculate "Next inspection date" for batch
QMSB0001 User exit after reading in inspection catalog data
QMSC0001 User exit after reading in inspection method data
QMSC0002 User exit for search field entry in the inspection method
QMSC0003 User exit after saving inspection method data
QMSD0001 User exit after importing master inspection charac. data
QMSD0003 User exit after saving master inspection charac. data
QPAA0003 Additional (auth.) check in plan (inspection chars.)
QPAA0006 Additional consistency checks - inspection characteristics
QPL10003 Sample calculation for inspection lot without plan
QVDM0003 Determ. of deliv. type for inspection lots from deliv. note
Thanks,
Ramakrishna
Message was edited by: Ramakrishna Prasad -
Dear ALL,
We want to trigger Email on save for Transaction code QP01 ( INspection plan creation ).
P. help its urgent.
Regards,
PRERNAI am not aware of a user exit that is available at the time of saving the inspection plan in QP01.
There is a BADI available IF you create your plans through the CWBQM. You'll find it in config under the Environment>Tools>Busineess Add-Ins-->Quality Planning --> Business Add-In When Saving Inspection Plan (EWB)
With that you should be able to use it to trigger an email. But you'd have to train your users to no longer use QP01.
FF -
QP01 Inspection Plan Charecteristics....
Hi all,
I am uploading QP01 Inspection plan, in that inspection charecteristics after 16th row the data is not inserting and giving errors, i use entry RQPAS-ENTRY_ACT..
not usable Can any one send me right way to upload more than 16 Inspection charecteristics...
thanks...FORM F_START_BDC .
DATA : LV_FNAM(20) TYPE C, " Concatenated field name
LV_IDX1(3) TYPE N VALUE 1, " Index For Table Control 1
LV_IDX2(3) TYPE N VALUE 1, " Index For Table Control 2
LV_GOTO(4) TYPE N , " Index for GoTo Line No incase of Page Down
LV_PG(3) TYPE N VALUE 1, " Index for Page No
LV_IDX(3) TYPE N VALUE 1.
IF ITST_TABDATA[] IS INITIAL.
MESSAGE E000. " If Inspection Plan exists for all items in file, show error message
ENDIF.
LOOP AT ITST_TABDATA INTO WA_TABDATA.
LV_IDX2 = '1'.
CLEAR ITST_BDCDATA.
REFRESH ITST_BDCDATA.
GV_YEAR = SY-DATUM+0(4).
GV_MNTH = SY-DATUM+4(2).
GV_DATE = SY-DATUM+6(2).
CONCATENATE GV_DATE '.' GV_MNTH '.' GV_YEAR INTO GV_DATUM.
PERFORM BDC_DYNPRO USING 'SAPLCPDI' '8010'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'RC27M-MATNR'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'/00'.
PERFORM BDC_FIELD USING 'RC27M-MATNR'
WA_TABDATA-MATNR. " 'kiz0006c'
PERFORM BDC_FIELD USING 'RC27M-WERKS'
WA_TABDATA-WERKS. " 'B001'
PERFORM BDC_FIELD USING 'RC271-PLNNR'
WA_TABDATA-PLNNR. " 60000000-99999999
PERFORM BDC_FIELD USING 'RC271-STTAG'
GV_DATUM. " '16.01.2008'
IF WA_TABDATA-KTEXT <> SPACE.
PERFORM BDC_FIELD USING 'PLKOD-KTEXT'
WA_TABDATA-KTEXT. " 'ZOLMITRIPTAN STAGE C1111'
ENDIF.
PERFORM BDC_FIELD USING 'PLKOD-VERWE'
WA_TABDATA-VERWE. " '5'
PERFORM BDC_FIELD USING 'PLKOD-STATU'
WA_TABDATA-STATU. " '4'
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'PLKOD-QPRZIEHVER'.
PERFORM BDC_FIELD USING 'PLKOD-SLWBEZ'
WA_TABDATA-SLWBEZ. " '200'
PERFORM BDC_FIELD USING 'PLKOD-QPRZIEHVER'
WA_TABDATA-QPRZIEHVER. " 'ACTIVE'
PERFORM BDC_DYNPRO USING 'SAPLCPDA' '1200'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=VOUE'.
LOOP AT ITST_TABCTRL1 INTO WA_TABCTRL1 WHERE MATNR = WA_TABDATA-MATNR
AND WERKS = WA_TABDATA-WERKS
AND PLNNR = WA_TABDATA-PLNNR.
ON CHANGE OF WA_TABCTRL1-MATNR OR WA_TABCTRL1-WERKS OR WA_TABCTRL1-PLNNR.
PERFORM BDC_DYNPRO USING 'SAPLCPDI' '1400'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'PLPOD-LTXA1(01)'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'/00'.
CONCATENATE 'PLPOD-ARBPL(' LV_IDX1 ')' INTO LV_FNAM.
PERFORM BDC_FIELD USING LV_FNAM
WA_TABCTRL1-ARBPL. " 'qc01'
CONCATENATE 'PLPOD-STEUS(' LV_IDX1 ')' INTO LV_FNAM.
PERFORM BDC_FIELD USING LV_FNAM
WA_TABCTRL1-STEUS. " 'qm01'
CONCATENATE 'PLPOD-LTXA1(' LV_IDX1 ')' INTO LV_FNAM.
PERFORM BDC_FIELD USING LV_FNAM
WA_TABCTRL1-LTXA1. " 'opearation1'
PERFORM BDC_DYNPRO USING 'SAPLCPDI' '1400'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'PLPOD-VORNR(01)'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=QMUE'.
PERFORM BDC_FIELD USING 'RC27X-ENTRY_ACT'
'1'.
PERFORM BDC_FIELD USING 'RC27X-FLG_SEL(01)'
'X'.
PERFORM BDC_DYNPRO USING 'SAPLQPAA' '0150'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'PLMKB-STELLEN(01)'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'/00'.
LOOP AT ITST_TABCTRL2 INTO WA_TABCTRL2 WHERE MATNR = WA_TABCTRL1-MATNR AND
WERKS = WA_TABCTRL1-WERKS AND
PLNNR = WA_TABCTRL1-PLNNR.
AND ARBPL = WA_TABCTRL1-ARBPL AND
STEUS = WA_TABCTRL1-STEUS.
LV_GOTO = LV_PG * 140. " For Page Down on Second Table Control
IF LV_IDX2 >= 14.
PERFORM BDC_DYNPRO USING 'SAPLQPAA' '0150'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'RQPAS-AB_MKNR'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'/00'.
PERFORM BDC_FIELD USING 'RQPAS-AB_MKNR'
LV_GOTO .
LV_IDX2 = 2.
LV_PG = LV_PG + 1.
PERFORM BDC_DYNPRO USING 'SAPLQPAA' '0150'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'/00'.
ELSE.
PERFORM BDC_DYNPRO USING 'SAPLQPAA' '0150'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'PLMKB-STELLEN(01)'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'/00'.
ENDIF.
CONCATENATE 'PLMKB-VERWMERKM(' LV_IDX2 ')' INTO LV_FNAM.
PERFORM BDC_FIELD USING LV_FNAM
WA_TABCTRL2-VERWMERKM. " 'MIC00001'/ ' MIC00050'
IF WA_TABCTRL2-PMETHODE <> SPACE.
CONCATENATE 'PLMKB-PMETHODE(' LV_IDX2')' INTO LV_FNAM.
PERFORM BDC_FIELD USING LV_FNAM
WA_TABCTRL2-PMETHODE. " 'met00001'
CONCATENATE 'PLMKB-PMTVERSION(' LV_IDX2 ')' INTO LV_FNAM.
PERFORM BDC_FIELD USING LV_FNAM
WA_TABCTRL2-PMTVERSION. " '1'
CONCATENATE 'PLMKB-STICHPRVER(' LV_IDX2 ')' INTO LV_FNAM.
PERFORM BDC_FIELD USING LV_FNAM
WA_TABCTRL2-STICHPRVER." 'APIFX1'
CONCATENATE 'PLMKB-PRUEFEINH(' LV_IDX2 ')' INTO LV_FNAM.
PERFORM BDC_FIELD USING LV_FNAM
WA_TABCTRL2-PRUEFEINH. " '20'
CONCATENATE 'PLMKB-PROBEMGEH(' LV_IDX2 ')' INTO LV_FNAM.
PERFORM BDC_FIELD USING LV_FNAM
WA_TABCTRL2-PROBEMGEH. " 'G'
IF WA_TABCTRL2-STELLEN <> SPACE.
CONCATENATE 'PLMKB-STELLEN(' LV_IDX2 ')' INTO LV_FNAM.
PERFORM BDC_FIELD USING LV_FNAM
WA_TABCTRL2-STELLEN." '2'
ENDIF.
IF WA_TABCTRL2-MASSEINHSW <> SPACE.
CONCATENATE 'RQPAS-MASSEINHSW(' LV_IDX2 ')' INTO LV_FNAM.
PERFORM BDC_FIELD USING LV_FNAM
WA_TABCTRL2-MASSEINHSW. " '%'
ENDIF.
IF WA_TABCTRL2-SOLLWERT <> SPACE.
CONCATENATE 'QFLTP-SOLLWERT(' LV_IDX2 ')' INTO LV_FNAM.
PERFORM BDC_FIELD USING LV_FNAM
WA_TABCTRL2-SOLLWERT." '10'
ENDIF.
IF WA_TABCTRL2-TOLERANZUN <> SPACE.
CONCATENATE 'QFLTP-TOLERANZUN(' LV_IDX2 ')' INTO LV_FNAM.
PERFORM BDC_FIELD USING LV_FNAM
WA_TABCTRL2-TOLERANZUN." '5'
ENDIF.
IF WA_TABCTRL2-TOLERANZOB <> SPACE.
CONCATENATE 'QFLTP-TOLERANZOB(' LV_IDX2 ')' INTO LV_FNAM.
PERFORM BDC_FIELD USING LV_FNAM
WA_TABCTRL2-TOLERANZOB." '15'
ENDIF.
PERFORM BDC_DYNPRO USING 'SAPLQPAA' '1501'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=ENT1'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'PLMKB-VERWMERKM'.
PERFORM BDC_DYNPRO USING 'SAPLQPAA' '1502'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=ENT1'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'PLMKB-PMETHODE'.
PERFORM BDC_DYNPRO USING 'SAPLQPAA' '1502'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=ENT1'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'PLMKB-PMETHODE'.
PERFORM BDC_DYNPRO USING 'SAPLQPAA' '0150'.
CONCATENATE 'PLMKB-MERKNR('LV_IDX2')' INTO LV_FNAM.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
LV_FNAM.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=QMAM'.
PERFORM BDC_FIELD USING 'RQPAS-ENTRY_ACT'
'1'.
IF LV_IDX2 = 1. " If only one entry then select it
CONCATENATE 'RQPAS-SEL_FLG('LV_IDX2')' INTO LV_FNAM.
PERFORM BDC_FIELD USING LV_FNAM
'X'.
ELSE.
LV_IDX = LV_IDX2 - 1. " Deselect previous entry and select current one
CONCATENATE 'RQPAS-SEL_FLG('LV_IDX')' INTO LV_FNAM.
PERFORM BDC_FIELD USING LV_FNAM
CONCATENATE 'RQPAS-SEL_FLG('LV_IDX2')' INTO LV_FNAM.
PERFORM BDC_FIELD USING LV_FNAM
'X'.
ENDIF.
PERFORM BDC_DYNPRO USING 'SAPLQPAA' '0160'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=QMBW'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'PLMKB-QERGDATH'.
PERFORM BDC_FIELD USING 'PLMKB-QERGDATH'
'01'. " Quality Certificate
ELSE.
CONCATENATE 'PLMKB-PMTVERSION(' LV_IDX2 ')' INTO LV_FNAM.
PERFORM BDC_FIELD USING LV_FNAM
WA_TABCTRL2-PMTVERSION. " '1'
CONCATENATE 'PLMKB-STICHPRVER(' LV_IDX2 ')' INTO LV_FNAM.
PERFORM BDC_FIELD USING LV_FNAM
WA_TABCTRL2-STICHPRVER." 'APIFX1'
CONCATENATE 'PLMKB-PRUEFEINH(' LV_IDX2 ')' INTO LV_FNAM.
PERFORM BDC_FIELD USING LV_FNAM
WA_TABCTRL2-PRUEFEINH. " '20'
CONCATENATE 'PLMKB-PROBEMGEH(' LV_IDX2 ')' INTO LV_FNAM.
PERFORM BDC_FIELD USING LV_FNAM
WA_TABCTRL2-PROBEMGEH. " 'G'
IF WA_TABCTRL2-STELLEN <> SPACE.
CONCATENATE 'PLMKB-STELLEN(' LV_IDX2 ')' INTO LV_FNAM.
PERFORM BDC_FIELD USING LV_FNAM
WA_TABCTRL2-STELLEN." '2'
ENDIF.
IF WA_TABCTRL2-MASSEINHSW <> SPACE.
CONCATENATE 'RQPAS-MASSEINHSW(' LV_IDX2 ')' INTO LV_FNAM.
PERFORM BDC_FIELD USING LV_FNAM
WA_TABCTRL2-MASSEINHSW. " '%'
ENDIF.
IF WA_TABCTRL2-SOLLWERT <> SPACE.
CONCATENATE 'QFLTP-SOLLWERT(' LV_IDX2 ')' INTO LV_FNAM.
PERFORM BDC_FIELD USING LV_FNAM
WA_TABCTRL2-SOLLWERT." '10'
ENDIF.
IF WA_TABCTRL2-TOLERANZUN <> SPACE.
CONCATENATE 'QFLTP-TOLERANZUN(' LV_IDX2 ')' INTO LV_FNAM.
PERFORM BDC_FIELD USING LV_FNAM
WA_TABCTRL2-TOLERANZUN." '5'
ENDIF.
IF WA_TABCTRL2-TOLERANZOB <> SPACE.
CONCATENATE 'QFLTP-TOLERANZOB(' LV_IDX2 ')' INTO LV_FNAM.
PERFORM BDC_FIELD USING LV_FNAM
WA_TABCTRL2-TOLERANZOB." '15'
ENDIF.
PERFORM BDC_DYNPRO USING 'SAPLQPAA' '1501'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=ENT1'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'PLMKB-QMTB_WERKS'.
PERFORM BDC_FIELD USING 'PLMKB-VERWMERKM'
WA_TABCTRL2-VERWMERKM.
PERFORM BDC_FIELD USING 'PLMKB-QPMK_WERKS'
WA_TABCTRL2-WERKS.
PERFORM BDC_FIELD USING 'PLMKB-QMTB_WERKS'
PERFORM BDC_DYNPRO USING 'SAPLQPAA' '0150'.
CONCATENATE 'PLMKB-MERKNR('LV_IDX2')' INTO LV_FNAM.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
LV_FNAM.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=QMAM'.
PERFORM BDC_FIELD USING 'RQPAS-ENTRY_ACT'
'1'.
IF LV_IDX2 = 1. " If first entry select it
CONCATENATE 'RQPAS-SEL_FLG('LV_IDX2')' INTO LV_FNAM.
PERFORM BDC_FIELD USING LV_FNAM
'X'.
ELSE.
LV_IDX = LV_IDX2 - 1. " Deselect Previous entry ans select current one
CONCATENATE 'RQPAS-SEL_FLG('LV_IDX')' INTO LV_FNAM.
PERFORM BDC_FIELD USING LV_FNAM
CONCATENATE 'RQPAS-SEL_FLG('LV_IDX2')' INTO LV_FNAM.
PERFORM BDC_FIELD USING LV_FNAM
'X'.
ENDIF.
PERFORM BDC_DYNPRO USING 'SAPLQPAA' '0160'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=QMBW'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'PLMKB-QERGDATH'.
PERFORM BDC_FIELD USING 'PLMKB-QERGDATH'
'01'. " Previous Inspection Lot
ENDIF.
LV_IDX2 = LV_IDX2 + 1.
ENDLOOP.
ENDON.
ENDLOOP.
PERFORM BDC_DYNPRO USING 'SAPLQPAA' '0150'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'RQPAS-ENTRY_ACT'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=QMBU'.
PERFORM BDC_FIELD USING 'RQPAS-ENTRY_ACT'
'1'.
CALL TRANSACTION C_QP01 USING ITST_BDCDATA
MODE C_A UPDATE C_S
MESSAGES INTO ITST_MSGTAB. "#EC CI_CALLTA
ENDLOOP.
ENDFORM. " F_START_BDC -
Dear ALL
Recorded an LSMW for PA40 hiring actions which includes infogroup - [ IT 0000, 0001, 0002, 0105-ZVEN (Sub type)]
This is for external vendor employees hiring actions.
While recording or manually running the process, it is working fine.
When in foregroud or background process, the alternate pernr is getting generated. Say for 1st record , pernr generated is 80023, then for next it is 80025, 80027so on.
Kindly suggest me in this issue.
Thanks
MJHi,
1-you keep no range as external and assign PERNR sequentially so that it remains same as you want it
2-kindly go through the LSMW abain to see what have you assigned in field mapping & conversion rules
3- check one record created thru LSMW and see if next (alternate number gets assigned to Ref PERNR in IT0000)
Check the alternate number to see if anything gets assigned to it.
salil -
How to create LSMW for a transaction having scroll bar
Hi all,
I am trying to create an LSMW for MP)! transaction for Uploading AMPL (Approved Manufacturer Parts list data) data.
For this LSMW is not working fine when i need to upload more number of records. Suggest me some way to solve it out,Also provide me some code samples and process if it can be handled with BDC.
Thanks,
Pavan.you can solve it with bdc:
e.g. a table control contains only 10 entries , you've to program the dynpro-change ( in german "Bildwechsel")
with sth like this:
ERG = BUZEI MOD 10 .
IF ERG = 1.
Dynpro darf nur alle 10 Zeilen prozessiert werden -
PERFORM BDC_DYNPRO USING 'SAPMF10B' '0150'. "ins
ENDIF.
add 1 to buzei.
A. -
Error in the LSMW for vendor master using standard batch/direct input
I am facing the problem in the LSMW for the Vendor master data. The vendor is initially created for the company code 350 by using LSMW. NOw when I try to uploasd the same vendor using the same LSMW for the company code 450 then I get the error in the Bach input creation as follows:
Batch Input Interface for Vendors
FB012 Session 1 : Special character for 'empty field' is /
FB007 Session 1 session name VNDR_CREATE_ was opened
FB104 Trans. 2 XK01 : Acct already exists; general area not being processed
FB125 ... Data in table BLFA1 cannot be processed
FB016 ... Last header record ...
FB014 ... BLF00-STYPE 1
FB014 ... BLF00-TCODE XK01
FB014 ... BLF00-LIFNR 300951
FB014 ... BLF00-BUKRS 402
FB014 ... BLF00-EKORG /
FB014 ... BLF00-KTOKK VEND
FB017 ... Last data record ...
FB014 ... BLFA1-STYPE 2
FB014 ... BLFA1-TBNAM BLFA1
FB014 ... BLFA1-ANRED /
FB014 ... BLFA1-NAME1 SAVOIE AUTOMATISME DEXIS
This is because when we use XK01 to create the vendor by using thePlease check this answered link:
Re: LSMW for Vendor Master
LSMW Upload vendor master data
Edited by: Afshad Irani on May 5, 2010 12:42 PM -
Error in LSMW for MM41 - "No batch input data for screen SAPLMGMW 0100"
I'm trying to create an LSMW for MM41 to create new Retail articles en Mass. This will be used to only create the Basic view as other LSMW's already exist to maintain the other views. I've created the Recording and setup the LSMW already. My data is read correctly from the source file. When I execute the batch session it fails with the following error - "No batch input data for screen SAPLMGMW 0100".
I assume the fields in MM41 screen are not setup for batch processing. Could someone with more knowledge or experience in SAP Retail please confirm my assumption and explain where this is setup or provide an alternative to creating new articles en Mass via MM41? The direct input method is more suited for MM01 and not MM41.
Regards
FawaazHi Guys,
Thanks so much for all the prompt responses. My issue is now resolved.
The issue, I'm sure, was my default settings in the MM41 screen which the recording probably took into account or the batch program didn't like. I deleted my recording and created a new one but before I started the recording, I went into the MM41 screen and removed all default values AND view selections. I made my Basic view selection constant in my recording and also in my field mapping. My LSMW for MM41 is now working perfectly.
Just to answer some of the questions above, my LSMW was Reading and Converting the data in my source file fine. When I display the Read and Converted data, it shows the data fields in the correct place.
Thanks again.
Regards
Fawaaz
Maybe you are looking for
-
What size partition do I need to install windows 8.1 & Bootcamp Question
Hello, I installed windows 8.1 on my MBA 128gb, I5, 8gb ram using bootcamp but I messed up and did not make the partition big enough. After the install of windows I only have 7.6gb left out of 30gb that I partitioned the drive to. So how big of a par
-
Xfinity Toolbar will not show even when enabled and checked?
The Xfinity Toolbar shows as if it should be seen in the "View Toolbars" area, and the space is there, but nothing shows in the space. I can't pinpoint when this started, but in previous versions of Firefox I'm sure I had use of this toolbar.
-
How to create a complete delivery
Hi Gurus, I want to create a delivery with the full qty as sales order. Please advice Partha
-
AI CC versioned files do not open in Fireworks CS6
Other AI files seem to be fine opening up with Fireworks, but not my files saved with AI CC. It only opens 1 artboard. But I have 24 of them saved in this file. I cannot open them again with AI CC (See this unanswered question regarding that http:/
-
Hi, I purchases an app on my Iphone, called fashion story, by STORM8. My Storm id is purrrrfection and I'm at level 19. I made an accidental purchase of 100,000 coins for 100 diamonds and and I also accidentally purchased ankle bracelet for around 25