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

Function Module for get Material Inspection setup data

Former Member
0 Likes
2,562

Hi ALL

I'm looking for a Function Module or Method that we can get Material Inspection setup data. ( QMAT data )

Please let me know if you know that.

Regards

Rie

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,183

Hi Rie

Try


QST04_GET_INSPLOTS_STOR_CON
QET4_GET_INSPLOT
QPLS_MATERIAL_INSPECT

Pushpraj

4 REPLIES 4
Read only

Former Member
0 Likes
1,184

Hi Rie

Try


QST04_GET_INSPLOTS_STOR_CON
QET4_GET_INSPLOT
QPLS_MATERIAL_INSPECT

Pushpraj

Read only

0 Likes
1,183

Hi Pushpraj

Thank you for you quick responce.

I'm sorry that I can't do these FMs.

I think that we can get QALS data using 'QST04_GET_INSPLOTS_STOR_CON'.

also, 'QET4_GET_INSPLOT'.

I want to get QMAT data.

Hi Aastha

Thank you for you polite responce.

I did create Material Inspection setup data, but I can't get these data.

If you know BAPi for get, please let me know.

Regards

Rie

Read only

0 Likes
1,183

HI Pushpraj

I saw your responce.

I can get QMAT data using 'QPLS_MATERIAL_INSPECT'.

Thank you veryu much!

Regards

Rie

Read only

Former Member
0 Likes
1,183

Hello Rie,

*INTERNAL TABLE TO HOLD THE QMAT with Inspection Setup Data to be

*Distributed

data : insctrl type table of bapi1001004_qmat with header line.

**Internal Table to hold the records in the text file

types:begin of it,

matnr(18), " Material number

mbrsh(1), " Industry sector

mtart(4), " Material type

werks(4), " Plant

lgort_d(4), "Storage Location

maktx(40), " Material description

meins(3), " Base unit of measure

matkl(9) , " Material group

bismt(18), " Old Material number

spart(2), " Division

gewei(3), " Weight Unit

text1(30), " Purchasr Order Text

text2(30),

text3(30),

text4(30),

text5(30),

text6(30),

dzeinr(22), " Document

ekgrp(3), " Purchasing group

ekwsl(4), " Purchase Value Key

webaz(3), " Goods receipt processing time in days

dismm(2), " MRP Type

minbe(13), "Reorder point

dispo(3), " MRP Controller

disls(2), "Lot size (materials planning)

mabst(13), "Maximum stock level

plifz(3), " Planned delivery time in days

webaz1(3), " Goods receipt processing time in days

fhori(3), "Scheduling Margin Key for Floats

eisbe(13), "Safety stock

mtvfp(2), "Checking Group for Availability Check

lgpbe(10), "Storage Bin

qmatauth(6),"Material Authorization Group for Activities in QM

qmpur(1), " QM in Procurement is Active

qsspur(8), "Control Key for Quality Management in Procurement

****************************************Add for Inspection setup

qpart1(8), "Inspection Type

qpart2(8),

qpart3(8),

qpart4(8),

qpart5(8),

qmataktiv1(1), "Inspection Type - Material Combination is Active

qmataktiv2(1),

qmataktiv3(1),

qmataktiv4(1),

qmataktiv5(1),

**************************************Add for Inspection setup

bklas(4), " Valuation Class

bwtty_d(1), "Valuation Category

vprsv(1), " Price control indicator

verpr_bapi(23), "Moving average price/periodic unit price

peinh(5), "Price Unit

end of it.

*INTERNAL TABLE TO HOLD THE QMAT with Inspection Setup Data to be

*Distributed

data : insctrl type table of bapi1001004_qmat with header line.

********Fn Call for Insp Set Up******************************Add

call function 'BAPI_MATINSPCTRL_SAVEREPLICA'

tables

return = returnm

inspectionctrl = insctrl.

Regards,

Aastha